// Address cloaking script.
//Rogier Gruys/David Wolowicz, University of Victoria, 2004
function address(one, zero, something, subject)
{

	var a = 'ma';
	var b = 'il';
	var c = 'to:';
	document.write('<a href="');
	document.write(a+b+c);
	document.write(zero);
	document.write('&#64;');
	document.write(one);
	if (subject){
		document.write('?subject='+subject);
	}
	document.write('" title="">');
	if (something){
		//document.write(zero);
		document.write(something);
		document.write('</a>');
	}
	else{
		document.write(zero);
		document.write('&#64;');
		document.write(one+'</a>');
	}
}

function addressText(one, zero, nearzero)
{

	var a = 'ma';
	var b = 'il';
	var c = 'to:';
	document.write('<a href="');
	document.write(a+b+c);
	document.write(zero);
	document.write('&#64;');
	document.write(one);
	document.write('" title="">');
	document.write(nearzero+'</a>');
}

function getScreenResolution() { //v1.0
	var screenx = screen.width;
	var screeny = screen.height;
	var ret = screenx + ' x ' + screeny;
	document.write(ret);
}

function getMainTableHeight(){
	var screeny = screen.height;
	if (screeny<="800"){
		document.write('<td height="360" width="100%" align="center" valign="top">');
	}
	else {
		document.write('<td height="460" width="100%" align="center" valign="top">');
	}
}

function getBackground_bak_20090602(){
	var screeny = screen.height;
	if (screeny<="800"){
		document.write('<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" background="Pics/HG.jpg">');
	}
	else {
		document.write('<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" background="Pics/HG_long.jpg">');
	}
}

function getBackground(){
	var screeny = screen.height;
	if (screeny<="800"){
		document.write('<body bgcolor="#FFFFFF" topmargin="0" background="Pics/HG.jpg">');
	}
	else {
		document.write('<body bgcolor="#FFFFFF" topmargin="0" background="Pics/HG_long.jpg">');
	}
}

function getTableHeightIndex(){
	var screeny = screen.height;
		if (screeny<="800"){
			document.write('<tr height="134">');
		}
		else {
			document.write('<tr height="224">');
	}
}

function getContainerTag(){
	var screeny = screen.height;
		if (screeny<="800"){
			document.write('<div id="divContainer"><div id="divContent">');
		}
		else {
			document.write('<div id="divContainer_lang"><div id="divContent_lang">');
	}
}
