function doRollOver(id)
{
	if(document.all && document.getElementById){
		document.getElementById(id).style.color = '#fc6';
	}else if(document.all && !document.getElementById){
		document.all[id].style.color = '#fc6';
	}
}

function writeYear(){
	document.write((new Date).getFullYear());
}

function doRollOut(id)
{
	if(document.all && document.getElementById){
		document.getElementById(id).style.color = '#fff';
	}else if(document.all && !document.getElementById){
		document.all[id].style.color = '#fff';
	}
}

function openWindow(FrameURL) {
	theWinMap = window.open( FrameURL,'newWinMap','resizable=yes,scrollbars=yes,location=no,toolbar=no,menubar=no,width=685,height=685,left=10, top=10');
}

function writeTopMenu()
{

	menu1Content = '<table id="table1" border="0" cellspacing="0" cellpadding="0" bgcolor="#003333"> \n'+
	'<tr><td width="170" height="1" bgcolor="#99CCCC"><img src="../images/submenu_pxl.gif" width="1" height="1"></td></tr> \n'+
	'<tr><td class="cursorStyle" width="170" height="20" class="menuLink" onMouseOver="doRollOver(\'link0\');" onMouseOut="doRollOut(\'link0\');" onclick="javascript:window.location.href=\'../corporate_info/index.html\'"><a id="link0" class="menuLink" href="../corporate_info/index.html" target="_self">&nbsp;&nbsp;Overview</a></td></tr> \n'+
	'<tr><td width="170" height="1" bgcolor="#99CCCC"><img src="../images/submenu_pxl.gif" width="1" height="1"></td></tr> \n'+
	'<tr><td class="cursorStyle" width="170" height="20" class="menuLink" onMouseOver="doRollOver(\'link1\');" onMouseOut="doRollOut(\'link1\');" onclick="javascript:window.location.href=\'../corporate_info/comp_profile.html\'"><a id="link1" class="menuLink" href="../corporate_info/comp_profile.html" target="_self">&nbsp;&nbsp;Company Profile</a></td></tr> \n'+
	'<tr><td width="170" height="1" bgcolor="#99CCCC"><img src="../images/submenu_pxl.gif" width="1" height="1"></td></tr> \n'+
	'<tr><td class="cursorStyle" width="170" height="20" class="menuLink" onMouseOver="doRollOver(\'link2\');" onMouseOut="doRollOut(\'link2\');" onclick="javascript:window.location.href=\'../corporate_info/customers.html\'"><a id="link2" class="menuLink" href="../corporate_info/customers.html" target="_self">&nbsp;&nbsp;Customers</a></td></tr> \n'+
	'</table> \n';
	
	menu2Content = '<table width="290" border="0" cellspacing="0" cellpadding="0" height="41" bgcolor="#003333"> \n'+
	'<tr><td width="290" height="1" bgcolor="#99CCCC"><img src="../images/submenu_pxl.gif" width="1" height="1"></td></tr> \n'+
	'<tr><td class="cursorStyle" width="240" height="20" onMouseOver="doRollOver(\'link3\');" onMouseOut="doRollOut(\'link3\');" onclick="javascript:window.location.href=\'../products/integration.html\'"><a id="link3" class="menuLink" href="../products/integration.html" target="_self">&nbsp;&nbsp;REIMS Integration Range Overview</a></td></tr> \n'+
	'<tr><td width="290" height="1" bgcolor="#99CCCC"><img src="../images/submenu_pxl.gif" width="1" height="1"></td></tr> \n'+
	'<tr><td class="cursorStyle" width="240" height="20" onMouseOver="doRollOver(\'link3\');" onMouseOut="doRollOut(\'link3\');" onclick="javascript:window.location.href=\'../products/cloud-integration-management-range.html\'"><a id="link3" class="menuLink" href="../products/cloud-integration-management-range.html" target="_self">&nbsp;&nbsp;REIMS Cloud Integration Management Range Overview</a></td></tr> \n'+
	'<tr><td width="290" height="1" bgcolor="#99CCCC"><img src="../images/submenu_pxl.gif" width="1" height="1"></td></tr> \n'+
	'<tr><td class="cursorStyle" width="240" height="20" onMouseOver="doRollOver(\'link3\');" onMouseOut="doRollOut(\'link3\');" onclick="javascript:window.location.href=\'../products/index.html\'"><a id="link3" class="menuLink" href="../products/index.html" target="_self">&nbsp;&nbsp;REIMS Secure Commerce Overview</a></td></tr> \n'+
	'<tr><td width="290" height="1" bgcolor="#99CCCC"><img src="../images/submenu_pxl.gif" width="1" height="1"></td></tr> \n'+
	'<tr><td class="cursorStyle" width="240" height="20" onMouseOver="doRollOver(\'link3\');" onMouseOut="doRollOut(\'link3\');" onclick="javascript:window.location.href=\'../products/index.html\'"><a id="link3" class="menuLink" href="../products/integration-services-range.html" target="_self">&nbsp;&nbsp;REIMS Integration Services Range Overview</a></td></tr> \n'+
	'<tr><td width="290" height="1" bgcolor="#99CCCC"><img src="../images/submenu_pxl.gif" width="1" height="1"></td></tr> \n'+
	'<tr><td class="cursorStyle" width="240" height="20" onMouseOver="doRollOver(\'link4\');" onMouseOut="doRollOut(\'link4\');" onclick="javascript:window.location.href=\'../products/architecture.html\'"><a id="link4" class="menuLink" href="../products/architecture.html" target="_self">&nbsp;&nbsp;REIMS Secure Commerce Architecture</a></td></tr> \n'+
	'<tr><td width="290" height="1" bgcolor="#99CCCC"><img src="../images/submenu_pxl.gif" width="1" height="1"></td></tr> \n'+
	'<tr><td class="cursorStyle" width="240" height="20" onMouseOver="doRollOver(\'link5\');" onMouseOut="doRollOut(\'link5\');" onclick="javascript:window.location.href=\'../products/productset.html\'"><a id="link5" class="menuLink" href="../products/productset.html" target="_self">&nbsp;&nbsp;REIMS Secure Commerce Product Range</a></td></tr> \n'+
	'<tr><td width="290" height="1" bgcolor="#99CCCC"><img src="../images/submenu_pxl.gif" width="1" height="1"></td></tr> \n'+	
	'<tr><td class="cursorStyle" width="240" height="20" onMouseOver="doRollOver(\'link6\');" onMouseOut="doRollOut(\'link6\');" onclick="javascript:window.location.href=\'../products/platforms.html\'"><a id="link6" class="menuLink" href="../products/platforms.html" target="_self">&nbsp;&nbsp;REIMS Product Platforms</a></td></tr> \n'+
	'<tr><td width="290" height="1" bgcolor="#99CCCC"><img src="../images/submenu_pxl.gif" width="1" height="1"></td></tr> \n'+
	'<tr><td class="cursorStyle" width="240" height="20" onMouseOver="doRollOver(\'link7\');" onMouseOut="doRollOut(\'link7\');" onclick="javascript:window.location.href=\'../products/cloudoptions.html\'"><a id="link7" class="menuLink" href="../products/cloudoptions.html" target="_self">&nbsp;&nbsp;REIMS Cloud Deployment Options</a></td></tr> \n'+
	'<tr><td width="290" height="1" bgcolor="#99CCCC"><img src="../images/submenu_pxl.gif" width="1" height="1"></td></tr> \n'+
	'<tr><td class="cursorStyle" width="240" height="20" onMouseOver="doRollOver(\'link8\');" onMouseOut="doRollOut(\'link8\');" onclick="javascript:window.location.href=\'../products/hmrc_gateway.html\'"><a id="link8" class="menuLink" href="../products/hmrc_gateway.html" target="_self">&nbsp;&nbsp;REIMS HMRC Connector</a></td></tr> \n'+
	'<tr><td width="290" height="1" bgcolor="#99CCCC"><img src="../images/submenu_pxl.gif" width="1" height="1"></td></tr> \n'+
	'<tr><td class="cursorStyle" width="240" height="20" onMouseOver="doRollOver(\'link9\');" onMouseOut="doRollOut(\'link9\');" onclick="javascript:window.location.href=\'../products/bacstel_ip_solutions.html\'"><a id="link9" class="menuLink" href="../products/bacstel_ip_solutions.html" target="_self">&nbsp;&nbsp;REIMS BACSTEL-IP Solutions</a></td></tr> \n'+	
	'<tr><td width="290" height="1" bgcolor="#99CCCC"><img src="../images/submenu_pxl.gif" width="1" height="1"></td></tr> \n'+
	'<tr><td class="cursorStyle" width="240" height="20" onMouseOver="doRollOver(\'link10\');" onMouseOut="doRollOut(\'link10\');" onclick="javascript:window.location.href=\'../products/library.html\'"><a id="link10" class="menuLink" href="../products/library.html" target="_self">&nbsp;&nbsp;Brochure Library</a></td></tr> \n'+
	'</table> \n';
	
	menu3Content = '<table width="240" border="0" cellspacing="0" cellpadding="0" height="104" bgcolor="#003333"> \n'+
	'<tr><td width="240" height="1" bgcolor="#99CCCC"><img src="../images/submenu_pxl.gif" width="1" height="1"></td></tr> \n'+
	'<tr><td class="cursorStyle" width="240" height="20" onMouseOver="doRollOver(\'link11\');" onMouseOut="doRollOut(\'link11\');" onclick="javascript:window.location.href=\'../services/index.html\'"><a id="link11" class="menuLink" href="../services/index.html" target="_self">&nbsp;&nbsp;Overview</a></td></tr> \n'+
	'<tr><td width="240" height="1" bgcolor="#99CCCC"><img src="../images/submenu_pxl.gif" width="1" height="1"></td></tr> \n'+
	'<tr><td class="cursorStyle" width="240" height="20" onMouseOver="doRollOver(\'link12\');" onMouseOut="doRollOut(\'link12\');" onclick="javascript:window.location.href=\'../services/reimsnet_services.html\'"><a id="link12" class="menuLink" href="../services/reimsnet_services.html" target="_self">&nbsp;&nbsp;REIMSnet Services</a></td></tr> \n'+
	'<tr><td width="240" height="1" bgcolor="#99CCCC"><img src="../images/submenu_pxl.gif" width="1" height="1"></td></tr> \n'+
	'<tr><td class="cursorStyle" width="240" height="20" onMouseOver="doRollOver(\'link13\');" onMouseOut="doRollOut(\'link13\');" onclick="javascript:window.location.href=\'../services/methodology.html\'"><a id="link13" class="menuLink" href="../services/methodology.html" target="_self">&nbsp;&nbsp;REIMS Methodology</a></td></tr> \n'+
	'<tr><td width="240" height="1" bgcolor="#99CCCC"><img src="../images/submenu_pxl.gif" width="1" height="1"></td></tr> \n'+
	'<tr><td class="cursorStyle" width="240" height="20" onMouseOver="doRollOver(\'link14\');" onMouseOut="doRollOut(\'link14\');" onclick="javascript:window.location.href=\'../services/b2bservices.html\'"><a id="link14" class="menuLink" href="../services/b2bservices.html" target="_self">&nbsp;&nbsp;Professional Services</a></td></tr> \n'+
	'<tr><td width="240" height="1" bgcolor="#99CCCC"><img src="../images/submenu_pxl.gif" width="1" height="1"></td></tr> \n'+
	'<tr><td class="cursorStyle" width="240" height="20" onMouseOver="doRollOver(\'link15\');" onMouseOut="doRollOut(\'link15\');" onclick="javascript:window.location.href=\'../services/training_education.html\'"><a id="link15" class="menuLink" href="../services/training_education.html" target="_self">&nbsp;&nbsp;Education and Training</a></td></tr> \n'+
	'</table> \n';
	
	menu4Content = '<table width="190" border="0" cellspacing="0" cellpadding="0" height="21" bgcolor="#003333"> \n'+
	'<tr><td width="190" height="1" bgcolor="#99CCCC"><img src="../images/submenu_pxl.gif" width="1" height="1"></td></tr> \n'+
	'<tr><td class="cursorStyle" width="190" height="20" onMouseOver="doRollOver(\'link16\');" onMouseOut="doRollOut(\'link16\');" onclick="javascript:window.location.href=\'../saa_news/index.html\'"><a id="link16" class="menuLink" href="../saa_news/index.html" target="_self">&nbsp;&nbsp;Upcoming Events</a></td></tr> \n'+
	'</table> \n'; 

	menu5Content = '<table width="230" border="0" cellspacing="0" cellpadding="0" height="42" bgcolor="#003333"> \n'+
	'<tr><td width="230" height="1" bgcolor="#99CCCC"><img src="../images/submenu_pxl.gif" width="1" height="1"></td></tr> \n'+
	'<tr><td class="cursorStyle" width="190" height="20" onMouseOver="doRollOver(\'link17\');" onMouseOut="doRollOut(\'link17\');" onclick="javascript:window.location.href=\'http://www.reims.net/\'"><a id="link17" class="menuLink" href="http://www.reims.net/" target="_self">&nbsp;&nbsp;REIMSnet</a></td></tr> \n'+
	'<tr><td width="230" height="1" bgcolor="#99CCCC"><img src="../images/submenu_pxl.gif" width="1" height="1"></td></tr> \n'+
	'<tr><td class="cursorStyle" width="190" height="20" onMouseOver="doRollOver(\'link18\');" onMouseOut="doRollOut(\'link18\');" onclick="javascript:window.location.href=\'http://www.reims.net/general/login.html\'"><a id="link18" class="menuLink" href="http://www.reims.net/general/login.html" target="_self">&nbsp;&nbsp;REIMSnet Customer Centre</a></td></tr> \n'+
	'</table> \n'; 

	if(document.all)writeIeMenu(menu1Content, menu2Content, menu3Content, menu4Content, menu5Content);
	if(document.layers)writeNs4Menu(menu1Content, menu2Content, menu3Content, menu4Content, menu5Content);
	if(!document.all && document.getElementById)writeNs6Menu(menu1Content, menu2Content, menu3Content, menu4Content, menu5Content);
}

function writeIeMenu(m1,m2,m3,m4,m5)
{
	document.all.menu1.innerHTML = m1;
	document.all.menu2.innerHTML = m2;
	document.all.menu3.innerHTML = m3;
	document.all.menu4.innerHTML = m4;
	document.all.menu5.innerHTML = m5;	
	document.all.menu1.style.visibility = 'hidden';
	document.all.menu2.style.visibility = 'hidden';
	document.all.menu3.style.visibility = 'hidden';
	document.all.menu4.style.visibility = 'hidden';
	document.all.menu5.style.visibility = 'hidden';	
	menu1Content = null;
	menu2Content = null;
	menu3Content = null;
	menu4Content = null;
	menu5Content = null;	
}

function writeNs4Menu(m1,m2,m3,m4,m5)
{
	document.layers.menu1.document.write(m1);
	document.layers.menu1.document.close();
	document.layers.menu2.document.write(m2);
	document.layers.menu2.document.close();
	document.layers.menu3.document.write(m3);
	document.layers.menu3.document.close();
	document.layers.menu4.document.write(m4);
	document.layers.menu4.document.close();
	document.layers.menu5.document.write(m5);
	document.layers.menu5.document.close();	
	document.layers.menu1.visibility = 'hide';
	document.layers.menu2.visibility = 'hide';
	document.layers.menu3.visibility = 'hide';
	document.layers.menu4.visibility = 'hide';
	document.layers.menu5.visibility = 'hide';	
	menu1Content = null;
	menu2Content = null;
	menu3Content = null;
	menu4Content = null;
	menu5Content = null;	
}

function writeNs6Menu(m1,m2,m3,m4,m5)
{
	document.getElementById("menu1").innerHTML = m1;
	document.getElementById("menu2").innerHTML = m2;
	document.getElementById("menu3").innerHTML = m3;
	document.getElementById("menu4").innerHTML = m4;
	document.getElementById("menu5").innerHTML = m5;	
	document.getElementById("menu1").style.visibility = 'hidden';
	document.getElementById("menu2").style.visibility = 'hidden';
	document.getElementById("menu3").style.visibility = 'hidden';
	document.getElementById("menu4").style.visibility = 'hidden';
	document.getElementById("menu5").style.visibility = 'hidden';	
	menu1Content = null;
	menu2Content = null;
	menu3Content = null;
	menu4Content = null;
	menu5Content = null;	
}

function ProductSelector(popupURL , dimensions)
{
   var strPopupOptions ="location=no";
   strPopupOptions += ",toolbar=no";
   strPopupOptions += ",menubar=no";
   strPopupOptions += ",status=no";
   strPopupOptions += ",scrollbars=yes";
   strPopupOptions += ",resizable=no";
   strPopupOptions += ",top=50";
   strPopupOptions += ",left=50,";
   strPopupOptions += dimensions;
   //popupURL = 'product_selector/' + popupURL;
   popupwin = window.open(popupURL, "popup1", strPopupOptions);
}


function resizeFix(){
	if(document.layers)location.reload();
}
