<!--

// PREVIOUSLY SMFLash1.js  ---- start
var gsflash=new ccGs();
gsflash.init();

function ccGs()
{	this.util=new clsUtil();
	this.page=new clsPage();
	this.cookie=new clsCookie();
	this.init=startRun;
	// no closing bracket
	function startRun(){this.util.init();this.page.init();}

	function clsUtil()
	{	this.init=startRun;
		
		// no closing bracket
		function startRun(){
		String.prototype.trim=fxTrim;
		}
		
		function fxTrim(strInput)
		{	var strResult=null;if(strInput==null)strInput=this;if(strInput)
			{
			strResult=new String(strInput);strResult=strResult.replace(/^\s+/,"");
			strResult=strResult.replace(/\s+$/,"");
			}
			return(strResult);
		}
	} // closing bracket of clsUtil()

		function clsPage()
		{	this.init=startRun;
			
			function startRun(){
			}
			
		} //end closing bracket of ccGs()
		
			function clsCookie()
			{	this.set=ccSet; //rnm may6-ccSet
				this.get=ccGet; //rnm may6-ccGet
				this.remove=ccRemove;  //rnm may6-ccRemove
				this.buildMatrix=ccBuildMatrix; //rnm may6-ccBuildMatrix
	
				function ccSet(strKey,strValue,dtExpires,strPath,strDomain,blnSecure)
				{	var strCookie=strKey+"="+escape(strValue)+";";
						if(dtExpires){strCookie+="expires="+dtExpires.toUTCString()+";";}
							if((strPath)&&(strPath!="")){strCookie+="path="+strPath+";";}
								if((strDomain)&&(strDomain!="")){strCookie+="domain="+strDomain+";";}
									if(blnSecure){strCookie+="secure";}document.cookie=strCookie;
				}
	
				function ccGet(strKey)
				{	var strValue=null;
					var arrCookies=this.buildMatrix(new String(document.cookie));
					for(var intIndex=0;intIndex<arrCookies.length;intIndex++)
						{	if(arrCookies[intIndex][0]==strKey){strValue=arrCookies[intIndex][1];
							break;
						}
					}
					return strValue;
				}
		
				function ccBuildMatrix(strCookies)
				{	var arrCookie;
					var arrCookies=strCookies.split(";");
					for(var intIndex=0;intIndex<arrCookies.length;intIndex++)
					{	arrCookie=arrCookies[intIndex].trim().split("=");
						arrCookie[1]=unescape(arrCookie[1]);
						arrCookies[intIndex]=arrCookie;
					}
					return arrCookies;
				}
	
				function ccRemove(strKey,strPath,strDomain)
				{	var strCookie,dtYesterday;
					var strValue=this.get(strKey);
					if(strValue)
					{	strCookie=strKey+"=;";
						if((strPath)&&(strPath!=""))
						{	strCookie+="path="+strPath+";";
						}	if((strDomain)&&(strDomain!=""))
							{	strCookie+="domain="+strDomain+";";
							}	dtYesterday=new Date();
								dtYesterday.setDate(dtYesterday.getDate()-1);
								strCookie+="expires="+dtYesterday.toGMTString()+";";
								document.cookie=strCookie;
					}
					return strValue;
				} // end function ccRemove
		}
	}
// PREVIOUSLY SMFLash1.js  ---- end
	
// PREVIOUSLY SMFlash2.js ---- start
whatNavigator();

function whatNavigator()
{	navigator.unknown=1;
	navigator.ie=2;
	navigator.netscape=4;
	navigator.opera=8;
	navigator.type=null;
	navigator.version=null;
	navigator.os=null;
	navigator.jsVersion=1.0;
	navigator.vbScriptEnabled=false;
	navigator.hasPlugin=havPlugin;
	navigator.selectPluginDetectType=whatPluginDetectType;
	navigator.setCookie=setThisCookie; //may6 rnm setThisCookie
	navigator.hasFlash=havFlash;
	startRun();
	
function startRun()
{	var strBrowserCookie=gsflash.cookie.get("whatBrowser");
	if(strBrowserCookie)
	{eval(strBrowserCookie);navigator.selectPluginDetectType();
	}else{analyzeUsrAgnt();
	document.write("<scr"+"ipt language=\"JavaScript1.1\">navigator.jsVersion = 1.1;</s"+"cript>");
	document.write("<scr"+"ipt language=\"JavaScript1.2\">navigator.jsVersion = 1.2;</s"+"cript>");
	document.write("<scr"+"ipt language=\"JavaScript1.3\">navigator.jsVersion = 1.3;</s"+"cript>");
	document.write("<scr"+"ipt language=\"JavaScript1.4\">navigator.jsVersion = 1.4;</s"+"cript>");
	document.write("<scr"+"ipt language=\"JavaScript1.5\">navigator.jsVersion = 1.5;</s"+"cript>");
	document.write("<scr"+"ipt language=\"JavaScript1.6\">navigator.jsVersion = 1.6;</s"+"cript>");
	document.write("<scr"+"ipt language=\"JavaScript2.0\">navigator.jsVersion = 2.0;</s"+"cript>");
	document.write("<scr"+"ipt language=\"VBScript\">navigator.vbScriptEnabled = true</s"+"cript>");
	document.write("<scr"+"ipt language=\"JavaScript\">navigator.selectPluginDetectType();navigator.setCookie();</s"+"cript>");
	}
}

function analyzeUsrAgnt()
	{	var version;switch(navigator.appName)
		{	case "Microsoft Internet Explorer":navigator.type=navigator.ie;
			navigator.version=getVersionIE();
			navigator.os=getOsIE();
			break;case "Netscape":navigator.type=navigator.netscape;
			navigator.version=getVersionNets();
			navigator.os=getOsNetscape();
			break;case "Opera":navigator.type=navigator.opera;
			navigator.version=getVersionOpera();
			navigator.os=getOsOpera();
			break;
			default:navigator.type=navigator.unknown;
			navigator.version=parseFloat(navigator.appVersion);navigator.os="Unknown";
			}
		}
		function getVersionIE()
		{	var strUserAgent=new String(navigator.userAgent);
			var arrUA=strUserAgent.split("MSIE ");
			return parseFloat(arrUA[1]);
		}
		function getVersionNets()
		{	var strUserAgent=new String(navigator.userAgent);
			var version,arrUA;
			if(strUserAgent.indexOf("Gecko")<0)
				{
				version=parseFloat(navigator.appVersion);
				}
					else if(strUserAgent.indexOf("Firefox")>-1)
					{
					arrUA=strUserAgent.split("Firefox");arrUA=arrUA[1].split("/");
					version=parseFloat(arrUA[1]);
					}
					else if(strUserAgent.indexOf("Safari")>-1)
					{
					arrUA=strUserAgent.split("Safari");
					arrUA=arrUA[1].split("/");
					version=parseFloat(arrUA[1]);
					}
					else
					{
					arrUA=strUserAgent.split("Netscape");
					arrUA=arrUA[1].split("/");
					version=parseFloat(arrUA[1]);
					}
			return version;
		}
		function getVersionOpera()
		{	var strUserAgent=new String(navigator.userAgent);
			var arrUA=strUserAgent.split("Opera/");
			return parseFloat(arrUA[1]);
		}
		function getOsIE()
		{	var strUserAgent=new String(navigator.userAgent);
			var arrUA=strUserAgent.split(";");
			return arrUA[2].substr(0,arrUA[2].length);
		}
		function getOsNetscape()
		{	var strOS;
			var strUserAgent=new String(navigator.userAgent);
			var arrUA=strUserAgent.split("(");arrUA=arrUA[1].split(";");
			if(this.version<6){strOS=arrUA[0];
			}
			else
			{
				strOS=arrUA[2];
			}
			return strOS;
		}
		function getOsOpera()
		{	var strUserAgent=new String(navigator.userAgent);
			var arrUA=strUserAgent.split("(");
			arrUA=(new String(arrUA[1])).split(";");
			return arrUA[0];
		}
		function havPlugin(strPluginName,strPluginObject)
		{	var blnHasPlugin=false;
			switch(navigator.pluginDetectType)
			{	case "plugins array":for(var i=0;i<navigator.plugins.length;i++)
				{	if(navigator.plugins[i].name.indexOf(strPluginName)>=0)
					{
					blnHasPlugin=true;
					break;
					}
				}
				break;
				case "detectPlugin function":blnHasPlugin=fxDetectPlugin(strPluginObject);
				break;
			}
			return blnHasPlugin;
		}
		function whatPluginDetectType()
		{	
		if((navigator.plugins)&&(navigator.plugins.length>0))
			{	
			navigator.pluginDetectType="plugins array";
			}
			else if(navigator.type=navigator.ie)
				{	
				if(navigator.jsVersion>=1.3)
					{	
						navigator.pluginDetectType="detectPlugin function";
			
						document.write("<scr"+"ipt language=\"JavaScript1.3\">\n");
						document.write("	function fxDetectPlugin(strPluginName){\n");
						document.write("		var blnHasPlugin = false;\n");
						document.write("		try{\n");
						document.write("			var obj = new ActiveXObject(strPluginName);\n");
						document.write("			blnHasPlugin = true;\n");
						document.write("		}   // try\n");
						document.write("		catch(Exception){");
						document.write("		}\n");
						document.write("		return blnHasPlugin;\n");
						document.write("	}   // fxCheckPlugin\n");
						document.write("</s"+"cript>\n");
					}
					else if(navigator.vbScriptEnabled){navigator.pluginDetectType="detectPlugin function";
						document.write("<scr"+"ipt language=\"VBScript\">\n");
						document.write("	function fxDetectPlugin(strPluginName)\n");
						document.write("		on error resume next\n");
						document.write("		if (IsObject(CreateObject(strPluginName))) then\n");
						document.write("			fxDetectPlugin = true\n");
						document.write("		else\n");
						document.write("			fxDetectPlugin = false\n");
						document.write("		end If\n");
						document.write("	end function\n");
						document.write("</s"+"cript>\n");
				}
				else{navigator.pluginDetectType="none";
				}
			}
		}

	function setThisCookie()
	{	var strCookieValue="navigator.type="+navigator.type+";\n"+"navigator.version="+navigator.version+";\n"+"navigator.os=\""+navigator.os+"\";\n"+"navigator.jsVersion="+navigator.jsVersion+";\n"+"navigator.vbScriptEnabled="+navigator.vbScriptEnabled+";\n";
		gsflash.cookie.set("whatBrowser",strCookieValue,null,"/");
	}
	
	function havFlash(fltVersion)
	{	var blnHasFlash=false;
		var strVersion;
		if(fltVersion)
		{	switch(navigator.pluginDetectType)
			{	case "plugins array":for(var i=0;i<navigator.plugins.length;i++)
				{	if(navigator.plugins[i].name.indexOf("Shockwave Flash")>=0)
					{	strVersion=navigator.plugins[i].description.substr(16,navigator.plugins[i].description.length);
						if(parseFloat(strVersion)>=fltVersion)
						{	
							blnHasFlash=true;
							break;
						}
					}
				}	
				break;
				case "detectPlugin function":blnHasFlash=fxDetectPlugin("ShockwaveFlash.ShockwaveFlash."+parseInt(fltVersion));
				break;
			}
		}
		else{
		blnHasFlash=navigator.hasPlugin("Shockwave Flash","ShockwaveFlash.ShockwaveFlash");
		}
		return blnHasFlash;
	}
}
// PREVIOUSLY SMFlash2.js ---- end

//PREVIOUSLY searchbox.js ---- start
	var inWebSearch = false;
	var selected_point_id = "";
	var selected_prod_id = "";
	var selected_catalog_id = "";
	var action_added = 0;
	var currentCatalogId = "2000000003844";
	var currentCatalogIndex = 0;
	var point_ids = new Array(15);
	var domain_names = new Array(15);
	point_ids[0] = "3000000149681";
	domain_names[0] = 'http://www.globalsources.com/gsol/GeneralManager';point_ids[1] = "3000000180620";
	domain_names[1] = 'http://www.autoparts.globalsources.com/gsol/GeneralManager';point_ids[2] = "3000000181680";
	domain_names[2] = 'http://www.babyandchildren.globalsources.com/gsol/GeneralManager';point_ids[3] = "3000000163943";
	domain_names[3] = 'http://www.computerproducts.globalsources.com/gsol/GeneralManager';point_ids[4] = "3000000149682";
	domain_names[4] = 'http://www.electroniccomponents.globalsources.com/gsol/GeneralManager';point_ids[5] = "3000000163946";
	domain_names[5] = 'http://www.electronics.globalsources.com/gsol/GeneralManager';point_ids[6] = "3000000178880";
	domain_names[6] = 'http://www.fashion.globalsources.com/gsol/GeneralManager';point_ids[7] = "3000000178881";
	domain_names[7] = 'http://www.garments.globalsources.com/gsol/GeneralManager';point_ids[8] = "3000000163939";
	domain_names[8] = 'http://www.gifts.globalsources.com/gsol/GeneralManager';point_ids[9] = "3000000163942";
	domain_names[9] = 'http://www.hardware.globalsources.com/gsol/GeneralManager';point_ids[10] = "3000000183950";
	domain_names[10] = 'http://www.homeproducts.globalsources.com/gsol/GeneralManager';point_ids[11] = "3000000183000";
	domain_names[11] = 'http://www.machinery.globalsources.com/gsol/GeneralManager';point_ids[12] = "3000000180104";
	domain_names[12] = 'http://www.security.globalsources.com/gsol/GeneralManager';point_ids[13] = "3000000185510";
	domain_names[13] = 'http://www.sportsandleisure.globalsources.com/gsol/GeneralManager';point_ids[14] = "3000000163949";
	domain_names[14] = 'http://www.telecom.globalsources.com/gsol/GeneralManager';
	
function submitHeaderSearch() {
	if (document.searchbox.query.value == "") {
		alert("Please enter a keyword first\nto start your search.");
	} else {
		if(action_added == 1) {
			makeInputElement(document.searchbox,'hidden','action','GetPoint');
			makeInputElement(document.searchbox,'hidden','action','DoFreeTextSearch');
		}
		if (document.searchbox.search_what.value == "1") {
			setSearchValues("PRODUCT",document.searchbox); 
		} else if (document.searchbox.search_what.value == "2") {
			setSearchValues("SUPPLIER",document.searchbox); 
		} else if (document.searchbox.search_what.value == "3") {
			setSearchValues("ARTICLE",document.searchbox); 
		} 
			if(document.searchbox.searchWithin != null && document.searchbox.searchWithin.checked == true && document.searchbox.searchWithin.value == "withinResults") {
				makeInputElement(document.searchbox,'hidden','prev_query',unescape('null'));
			} 
		if(selected_point_id != "" ) {
			document.searchbox.point_id.value = selected_point_id;
			document.searchbox.catalog_id.value = selected_catalog_id;
		}
		if((selected_prod_id != "") && (selected_prod_id != "-1")) {
			makeInputElement(document.searchbox,'hidden','prod_id',selected_prod_id);
		}
		document.searchbox.submit();
	}
}

action_added = 1;

//PREVIOUSLY searchbox.js ---- end

// start of original homepages.js	
function sf(){document.searchbox.query.focus();}
function openbig2(link) 
{msg=window.open(link,"DisplayWindow2","HEIGHT=550,WIDTH=750,status=1,toolbar=1,directories=1,menubar=1,location=1,scrollbars=1,resizable=1,top=50,left=50");
if (window.focus) {msg.focus()}}
function guided(tour) {msg=open(tour,"DisplayWindow3","HEIGHT=432,WIDTH=780,status=no,toolbar=no,directories=no,menubar=no,location=no,scrollbars=no,top=0,left=0");}
function openfixed(fix) {window.open(fix,"DisplayWindow1",'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,width=550,height=400,resizable=0,screenX=100,screenY=100');}
function ow(link) {msg=window.open(link,"DisplayWindow","HEIGHT=640,WIDTH=700,status=no,toolbar=no,directories=no,menubar=no,location=no,scrollbars=yes,resizable=yes");
if (window.focus) {msg.focus()}}
function ow1(link) {msg=window.open(link,"DisplayWindow","HEIGHT=640,WIDTH=470,status=no,toolbar=no,directories=no,menubar=no,location=no,scrollbars=yes,resizable=yes");
if (window.focus) {msg.focus()}}

function openNew(link) {
msg=window.open(link,"DisplayWindow2","HEIGHT=550,WIDTH=800,status=1,toolbar=0,directories=0,menubar=0,location=0,scrollbars=1,resizable=1,top=50,left=50");
if (window.focus) {msg.focus()}
}

function popup(page,height,width)
{
	params = "height=" + height + ",width=" + width + ",status=1,toolbar=0,directories=0,menubar=0,location=0,scrollbars=1,resizable=1,top=250,left=50,screenX=250,screenY=50";
	mypopup = window.open(page,"PopupWindow",params);
	mypopup.focus();
}

function searchMag(form) {var myMagindex=document.magForm.magName.selectedIndex;
  if (document.magForm.magName.selectedIndex>0) {self.location=document.magForm.magName.options[myMagindex].value;}}

function search(form) {var myindex=document.tradeshow.event_topic.selectedIndex;
  if (document.tradeshow.event_topic.selectedIndex>0) {self.location=document.tradeshow.event_topic.options[myindex].value;}}

// PREVIOUSLY footer_hp.js ---- start
// Get 13 digit time stamp plus 6 digit random number
today=new Date();
timetoday=today.getTime();
randm = getRandom(100000,999999);
timenow = timetoday + "" + randm;
function getRandom(min,max)
{return (Math.round(Math.random()*(max-min)))+min;}

// Get browser information
nets = (navigator.appName.indexOf("Netscape") != -1);
nseven = (navigator.userAgent.indexOf("Netscape/7") != -1);
bVer=parseInt(navigator.appVersion);
var isMSIE3 = false;

var name = "new_visited_us";
var path = "/";
var expDays = 365*20; // number of days the cookie should last
var exp = new Date();
exp.setTime(exp.getTime() + (expDays*24*60*60*1000)); 
var value = timenow;

if(navigator.appName == "Microsoft Internet Explorer" && bVer == 2 )  isMSIE3 = true;
function GetCookie(name) {
   if ((bVer > 2) && !isMSIE3) {
      var arg  = name + "=";
      var alen = arg.length;
      var clen = document.cookie.length;
      var i    = 0;
      while(i < clen) {
         var offset = i + alen;
         if(document.cookie.substring(i, offset) == arg) {
            var iEnd  = document.cookie.indexOf(";", offset);
            if(iEnd == -1) {
               iEnd = document.cookie.length;
            }
            return unescape(document.cookie.substring(offset, iEnd));
         }
         i = document.cookie.indexOf(" ", i) + 1;
         if(i == 0) {
            break;
         }
      }
      return null;
   }
}
function SetCookie(name, value, expires, path)
{
   if((bVer > 2) && !isMSIE3) {
      document.cookie = name + "=" + escape(value)
      + ((expires == null) ? "" : ("; expires=" + expires.toGMTString())) + ";domain=.globalsources.com"
      + ((path == null) ? "" : ("; path=" + path));
   } else {
      eval(name + " = '" + value + "'");
   }
}
function setUniqCookie() {
   if ((bVer > 2) && !isMSIE3) {
      snooky = GetCookie(name);
     // alert ("snooky : " + snooky);
	 if (snooky == null) {
	  SetCookie(name, value, exp, path);
	  }
   }
}

function setPA() {
	var PAname = "ul_cookie";
	var PAcookieName = PAname;
    if ((bVer > 2) && !isMSIE3) {
     snooky = GetCookie(PAcookieName);
	 if (snooky == null) {
     	 document.write('&nbsp;&nbsp;<a href="https://login.globalsources.com/sso/GeneralManager?action=RegisterPA&userTemplate=NEWUSER&application=GSOL&fromWhere=PA&appURL=http%3A%2F%2Fwww.globalsources.com%2Fgsol%2FGeneralManager%3F%26point_id%3D3000000149681%26action%3DGetPoint%26page%3Dprodalert%252FProductAlert%26catalog_id%3D2000000003844%26hostname%3Dwww.globalsources.com%26design%3Dclean%26language%3Den" class="leftnav_mouseoverlink">Product Alert</a><br>');
	 } else {
	 document.write('&nbsp;&nbsp;<a href="http://www.globalsources.com/gsol/GeneralManager?&design=clean&language=en&page=prodalert/ProductAlert&action=GetPoint&point_id=3000000149681&catalog_id=2000000003844" class="leftnav_mouseoverlink">Product Alert</a><br>');
	 }
   }
}

setUniqCookie();

// PREVIOUSLY footer_hp.js ---- end

function opencsfvideoBySize(linkhere,hgt,wdt) {
 msg=open(linkhere,"DisplayWindow","HEIGHT="+ hgt +",WIDTH="+ wdt +",status=no,toolbar=no,directories=no,menubar=no,location=no,scrollbars=no,top=100,left=50,resizable=no");
}

function opencsfvideoECpop() {
/* begin configuration */
var url = "http://tradeshow.globalsources.com/TRADESHOW/HONGKONG-ELECTRONICS/VIDEO-VISITOR.HTM"; 
var w = "450"; 
var h = "630"; 
var menu = "no"; 
var scroll = "no"; 
var tool = "no"; 
var location = "no"; 
var resize = "no";
/* end configuration */

var winl = (screen.width - w) / 2;
var wint = (screen.height - h) / 2;
winprops = 'width='+w+', height='+h+', top='+wint+', left='+winl+', menubar='+menu+', scrollbars='+scroll+', toolbar='+tool+', location='+location+', resizable='+resize+''
window.open(url, 'popup', winprops);
}

function opencsfvideoGHpop() {
/* begin configuration */
var url = "http://tradeshow.globalsources.com/TRADESHOW/HONGKONG-GIFTS/VIDEO-VISITOR.HTM"; 
var w = "450"; 
var h = "630"; 
var menu = "no"; 
var scroll = "no"; 
var tool = "no"; 
var location = "no"; 
var resize = "no";
/* end configuration */

var winl = (screen.width - w) / 2;
var wint = (screen.height - h) / 2;
winprops = 'width='+w+', height='+h+', top='+wint+', left='+winl+', menubar='+menu+', scrollbars='+scroll+', toolbar='+tool+', location='+location+', resizable='+resize+''
window.open(url, 'popup', winprops);
}

function opencsfvideoFApop() {
/* begin configuration */
var url = "http://tradeshow.globalsources.com/TRADESHOW/HONGKONG-FASHION/VIDEO-VISITOR.HTM"; 
var w = "450"; 
var h = "630"; 
var menu = "no"; 
var scroll = "no"; 
var tool = "no"; 
var location = "no"; 
var resize = "no";
/* end configuration */

var winl = (screen.width - w) / 2;
var wint = (screen.height - h) / 2;
winprops = 'width='+w+', height='+h+', top='+wint+', left='+winl+', menubar='+menu+', scrollbars='+scroll+', toolbar='+tool+', location='+location+', resizable='+resize+''
window.open(url, 'popup', winprops);
}

var MacBrws = (navigator.appVersion.indexOf("Mac") != -1);
var brwSafari = (navigator.appVersion.indexOf("Safari") != -1);	
var MacNets = (navigator.appName.indexOf("Netscape") != -1);
var brwFirefox = (navigator.userAgent.indexOf("Firefox") != -1);
var brwIE = (navigator.appName.indexOf("Explorer") != -1);	

//get visitors' screen resolution, append to a image url, 
//then write to current document
function writeScreenResolution(blankGIF){
	var r;
	do {
		r=Math.ceil(Math.random()*10000000000);
	} while(r<1000000000);
	var w=screen.width;
	var h=screen.height;
	var resolURL=blankGIF+"?resol="+w+"by"+h+"&rand="+r;
	document.write("<img src=\""+resolURL+"\" width=0 height=0 border=0>");
}

// added for the new corporate UI

function addToFavorite(){
    if(navigator.appName=="Netscape"){
		alert("Please press ^D (CTRL-D) to bookmark this page");
    }else if(parseInt(navigator.appVersion)>3){
	    var pagetitle = document.title.toString();
        if (pagetitle=="") {
           pagetitle = "Global Sources: The Largest Base of Suppliers";
        }
        var urlstr = document.location.toString();
        var patternQnMark = /\?/;
        var patternSlash = /\//;
        var patternGM = /GeneralManager/;
        urlstr = urlstr.replace(/http:\/\//,"");
        if (patternSlash.test(urlstr)) {
            if ((urlstr.substring(urlstr.length-4,urlstr.length)==".jsp") ||
                (urlstr.substring(urlstr.length-4,urlstr.length)==".com") ||
                (urlstr.substring(urlstr.length-1,urlstr.length)=="/"))
            {
                window.external.AddFavorite(document.location+"?ref=bmk",pagetitle)
            } else {
                window.external.AddFavorite(document.location+"&ref=bmk",pagetitle)
            }
        }  else if (patternQnMark.test(document.location) || patternGM.test(document.location)) {
            window.external.AddFavorite(document.location+"&ref=bmk",pagetitle)
        } else {
            window.external.AddFavorite(document.location+"?ref=bmk",pagetitle)
        }
    }
}

function HomepageNS() {
alert("Please Drag the link onto your Home button to make this your Home Page.");
}

// -->
