
/* the CO2 hub js file for restricted area */

var tmreg_on = new Image()
tmreg_on.src = "../images/tmreg_on.gif"
var tmlog_on = new Image()
tmlog_on.src = "../images/tmlog_on.gif"
var tmcon_on = new Image()
tmcon_on.src = "../images/tmcon_on.gif"

function newImage(arg) {
	if (document.images) {
		rslt = new Image();
		rslt.src = arg;
		return rslt;
	}
}

function changeImages() {
	if (document.images && (preloadFlag == true)) {
		for (var i=0; i<changeImages.arguments.length; i+=2) {
			document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
		}
	}
}

function swapImg(arg1,arg2) {
  document[arg1].src = arg2;
}

var preloadFlag = false;
function preloadImages() {
	if (document.images) {
		mhome_on = newImage("../images/mhome_on.gif");
		mabout_on = newImage("../images/mabout_on.gif");
		mserv_on = newImage("../images/mserv_on.gif");
		mbene_on = newImage("../images/mbene_on.gif");
		mcare_on = newImage("../images/mcare_on.gif");
		msmap_on = newImage("../images/msmap_on.gif");
		preloadFlag = true;
	}
}


function disphead() {
	document.write('<div id="tophead1"><image src="../images/lside1.gif" border="0" width="150" height="60"><image src="../images/motto5.gif" border="0" width="600" height="35" align="top"></div>');
}

function topmenu(which) {
	if (which=="register") {
	document.write('<div id="tophead2"><image src="../images/tmreg_on.gif" border="0" align="top" alt="To participate in the Market Floor">');
	}
	else {
	document.write('<div id="tophead2"><A HREF="../register_u.aspx" ONMOUSEOVER="swapImg(\'tmreg\', \'../images/tmreg_on.gif\'); return true;" ONMOUSEOUT="swapImg(\'tmreg\', \'../images/tmreg.gif\'); return true;"><image name="tmreg" src="../images/tmreg.gif" border="0" align="top" alt="To participate in the Market Floor"></a>');
	}
	if (which=="login") {
	document.write('<image src="../images/tmlog_on.gif" border="0" align="top" alt="Enter the Market Floor">');
	}
	else {
	document.write('<A HREF="restricted/login.aspx" ONMOUSEOVER="swapImg(\'tmlog\', \'../images/tmlog_on.gif\'); return true;" ONMOUSEOUT="swapImg(\'tmlog\', \'../images/tmlog.gif\'); return true;"><image name="tmlog" src="../images/tmlog.gif" border="0" align="top" alt="Enter the Market Floor"></a>');
	}
	if (which=="contact") {
	document.write('<image border="0" src="../images/tmcon_on.gif" align="top"><img border="0" src="../images/tmend.gif" align="top" alt="We look forward to hearing from you"></div>');
	}
	else {
	document.write('<A HREF="../contact.htm" ONMOUSEOVER="swapImg(\'tmcon\', \'../images/tmcon_on.gif\'); return true;" ONMOUSEOUT="swapImg(\'tmcon\', \'../images/tmcon.gif\'); return true;"><image name="tmcon" border="0" src="../images/tmcon.gif" align="top" alt="We look forward to hearing from you"></a><img border="0" src="../images/tmend.gif" align="top"></div>');
	}
}

function autodisp() {
	document.write('<div id="tophead3"><image src="../images/lside2.gif" border="0" width="150" height="21"></div>');
	document.write('<div id="staticnav">');
	document.write('<image src="../images/lside3.gif" border="0" width="150" height="25"><A HREF="/" ONMOUSEOVER="changeImages(\'mhome\', \'../images/mhome_on.gif\'); return true;" ONMOUSEOUT="changeImages(\'mhome\', \'../images/mhome.gif\'); return true;"><IMG NAME="mhome" SRC="../images/mhome.gif" border="0" WIDTH=150 HEIGHT=38 alt="\'the CO2 hub\' Homepage"></a>');
	document.write('<A HREF="../about.htm" ONMOUSEOVER="changeImages(\'mabout\', \'../images/mabout_on.gif\'); return true;" ONMOUSEOUT="changeImages(\'mabout\',\'../images/mabout.gif\'); return true;"><IMG NAME="mabout" SRC="../images/mabout.gif" border="0" WIDTH=150 HEIGHT=38 alt="Motivation, Philosophy"></a>');
	document.write('<A HREF="../services.htm" ONMOUSEOVER="changeImages(\'mserv\', \'../images/mserv_on.gif\'); return true;" ONMOUSEOUT="changeImages(\'mserv\', \'../images/mserv.gif\'); return true;"><IMG NAME="mserv" SRC="../images/mserv.gif" border="0" WIDTH=150 HEIGHT=38 BORDER=0 ALT="Market Floor, Monitoring, Analysts\' Hub"></a>');
	document.write('<A HREF="../benefits.htm" ONMOUSEOVER="changeImages(\'mbene\', \'../images/mbene_on.gif\'); return true;" ONMOUSEOUT="changeImages(\'mbene\', \'../images/mbene.gif\'); return true;"><IMG NAME="mbene" SRC="../images/mbene.gif" border="0" WIDTH=150 HEIGHT=42 BORDER=0 ALT="Benefits for Stakeholders"></a>');
	document.write('<A HREF="../careers.htm" ONMOUSEOVER="changeImages(\'mcare\', \'../images/mcare_on.gif\'); return true;" ONMOUSEOUT="changeImages(\'mcare\', \'../images/mcare.gif\'); return true;"><IMG NAME="mcare" SRC="../images/mcare.gif" border="0" WIDTH=150 HEIGHT=36 BORDER=0 ALT="Career Opportunities"></a>');
	document.write('<A HREF="../sitemap.htm" ONMOUSEOVER="changeImages(\'msmap\', \'../images/msmap_on.gif\'); return true;" ONMOUSEOUT="changeImages(\'msmap\', \'../images/msmap.gif\'); return true;"><IMG NAME="msmap" SRC="../images/msmap.gif" border="0" WIDTH=150 HEIGHT=39 BORDER=0 ALT="\'the CO2 hub\' Site Map"></a><image src="../images/lside4.gif" border="0" width="150" height="51">');
	document.write('</div>');
}


function dispfooter() {
	document.write('<image class="logo" src="../images/logo6.gif" width="150" height="100">')
	document.write('<div id=footer align="center">');
	document.write('<span style="position:absolute; left:0px;"><image src="../images/lside5.gif" border="0" width="150" height="41" align="top"></span><font size="4.5em">&nbsp;</font><A HREF="../policy.htm" class="botmenu">Privacy Policy</A> | <A HREF="mailto:%20webmaster@theco2hub.com%20" class="botmenu">Feedback</A>');
	document.write('<div id="fineprn" style="top:10;">&#0169; 2008 The CO2 Hub Inc. &#0149; All rights reserved</div>');
	document.write('</div>');
	//document.write('<div id="fineprn">&#0169; 2004 The CO2 Hub Inc. &#0149; All rights reserved</div>');
}

