/**
@author: lihaicheng
@date: 2007-3-27
*/

function hackeralert()
{
	alert('Copying Prohibited by Law - HACKER SAFE is a Trademark of ScanAlert'); 
	return false;
}
function showfooter(){
	writeUseMap();
	document.write("&nbsp;&nbsp;&nbsp;&nbsp;&copy; 2002-2008 GenScript Corp.");
	setUseMap();
}

function showFooterWithContact(){
     writeUseMap();
     document.write("&nbsp;&nbsp;&nbsp;&nbsp;&copy; 2002-2008 GenScript Corp.<br> ");
     document.write("<a target='_blank' href='https://www.scanalert.com/RatingVerify?ref=www.genscript.com'><img width='94' height='54' border='0'  align='right' style='margin-right:60px;' src='http://images.scanalert.com/meter/www.genscript.com/23.gif' alt='HACKER SAFE certified sites prevent over 99.9% of hacker crime.' oncontextmenu=hackeralert()></a><a href='http://www.genscript.com/partner_logos.html'><img src='/images/partner-logo.jpg' align='right' border=0></a>");
     document.write("&nbsp;&nbsp;&nbsp;&nbsp;Tel: 1-877-436-7274 (Toll-Free), 1-732-885-9188 <br>");
     document.write("&nbsp;&nbsp;&nbsp;&nbsp;Fax: 1-732-210-0262, 1-732-885-5878 <br>");
     document.write("&nbsp;&nbsp;&nbsp;&nbsp;Email: <a href='mailto:info@genscript.com'>info@genscript.com</a><br>");
     document.write("&nbsp;&nbsp;&nbsp;&nbsp;Online: Contact us via GenScript's <a href='https://www.genscript.com/ssl-bin/secure_data'>Secure Web Server</a><br>");
     document.write("&nbsp;&nbsp;&nbsp;&nbsp;Call back service: <a href='http://www.genscript.com/contact.html'>Leave your call back message</a>");
     setUseMap();
}
function showFooterWithContactForOtherLanguage(){
     writeUseMap();
     document.write("&nbsp;&nbsp;&nbsp;&nbsp;&copy; 2002-2008 GenScript Corp.<br> ");
     document.write("<a target='_blank' href='https://www.scanalert.com/RatingVerify?ref=www.genscript.com'><img width='94' height='54' border='0'  align='right' style='margin-right:60px;' src='http://images.scanalert.com/meter/www.genscript.com/23.gif' alt='HACKER SAFE certified sites prevent over 99.9% of hacker crime.' oncontextmenu=hackeralert()></a><a href='http://www.genscript.com/partner_logos.html'><img src='/images/partner-logo.jpg' align='right' border=0></a>");
     document.write("&nbsp;&nbsp;&nbsp;&nbsp;Tel: 1-732-885-9188 <br>");
     document.write("&nbsp;&nbsp;&nbsp;&nbsp;Fax: 1-732-210-0262, 1-732-885-5878 <br>");
     document.write("&nbsp;&nbsp;&nbsp;&nbsp;Email: <a href='mailto:info@genscript.com'>info@genscript.com</a><br>");
     document.write("&nbsp;&nbsp;&nbsp;&nbsp;Online: Contact us via GenScript's <a href='https://www.genscript.com/ssl-bin/secure_data'>Secure Web Server</a><br>");
     setUseMap();
}

function showFooterForOrder(){
	 writeUseMap();
	 document.write("&nbsp;&nbsp;&nbsp;&nbsp;&copy; 2002-2008 GenScript Corp.");
	document.write("<a target='_blank' href='https://www.scanalert.com/RatingVerify?ref=www.genscript.com'><img width='94' height='54' border='0'  align='right' style='margin-right:60px;' src='http://images.scanalert.com/meter/www.genscript.com/23.gif' alt='HACKER SAFE certified sites prevent over 99.9% of hacker crime.' oncontextmenu=hackeralert()></a><a href='http://www.genscript.com/partner_logos.html'><img src='http://www.genscript.com/images/partner-logo.jpg' align='right' border=0></a><br>");
     document.write("&nbsp;&nbsp;&nbsp;&nbsp;Tel: 1-877-436-7274 (Toll-Free), 1-732-885-9188<br> ");
      
     document.write("&nbsp;&nbsp;&nbsp;&nbsp;Fax: 1-732-210-0262, 1-732-885-5878<br>");
     document.write("&nbsp;&nbsp;&nbsp;&nbsp;Email: <a href='mailto:order@genscript.com'>order@genscript.com</a><br>");
     document.write("&nbsp;&nbsp;&nbsp;&nbsp;Online: Contact us via GenScript's <a href='https://www.genscript.com/ssl-bin/secure_data'>Secure Web Server</a><br>");
     document.write("&nbsp;&nbsp;&nbsp;&nbsp;Call back service: <a href='http://www.genscript.com/contact.html'>Leave your call back message</a>");
     setUseMap();
}

function showFooterForOrderForOtherLanguage(){
	 writeUseMap();
	 document.write("&nbsp;&nbsp;&nbsp;&nbsp;&copy; 2002-2008 GenScript Corp.");
	document.write("<a target='_blank' href='https://www.scanalert.com/RatingVerify?ref=www.genscript.com'><img width='94' height='54' border='0'  align='right' style='margin-right:60px;' src='http://images.scanalert.com/meter/www.genscript.com/23.gif' alt='HACKER SAFE certified sites prevent over 99.9% of hacker crime.' oncontextmenu=hackeralert()></a><a href='http://www.genscript.com/partner_logos.html'><img src='http://www.genscript.com/images/partner-logo.jpg' align='right' border=0></a><br>");
     document.write("&nbsp;&nbsp;&nbsp;&nbsp;Tel: 1-732-885-9188<br> ");
      
     document.write("&nbsp;&nbsp;&nbsp;&nbsp;Fax: 1-732-210-0262, 1-732-885-5878<br>");
     document.write("&nbsp;&nbsp;&nbsp;&nbsp;Email: <a href='mailto:order@genscript.com'>order@genscript.com</a><br>");
     document.write("&nbsp;&nbsp;&nbsp;&nbsp;Online: Contact us via GenScript's <a href='https://www.genscript.com/ssl-bin/secure_data'>Secure Web Server</a><br>");
     setUseMap();
}

function writeUseMap()
{
	document.write("<map name='contactMap'>");
	document.write("<area shape='rect' coords='611,4,737,28' href='/contact.html'>");
	document.write("</map>");
}

function setUseMap()
{
   var Maps = document.getElementsByTagName('img');
   //alert(Maps.length);
   for(var i=0; i<Maps.length; i++)
   {
   		//document.write(Maps[i].src);
   		//document.write("<br>");
   		var imagePatt = /\/genscript_0924_001.gif/;
  		//if(Maps[i].src == 'http://www.genscriptcorp.com/images/homepage/genscript_0924_001.gif')
  		if(imagePatt.test(Maps[i].src))
  		{
  			Maps[i].useMap = "#contactMap";
  			break;
  		}
   }
}

function toggleShowMore(divID){
			
			var oId = document.getElementById(divID);
			var oLink = document.getElementById(divID + 'Item');
			
			divDisplay = oId.style.display;
			if (divDisplay == "none") {
				oId.style.display = "";
				oLink.innerHTML = "Hide More...";
				oLink.href = 'javascript:void(0)';
			} else {
				oId.style.display = "none";
				oLink.innerHTML = "See More...";
				oLink.href = '#' + divID.substring(8, divID.length);
			}
	}
