var selectedtablink="";
var tcischecked=false;
function handlelink(_1,_2){
iii=_2;
selectedtablink=_1.href;
tcischecked=(document.tabcontrol&&document.tabcontrol.tabcheck.checked)?true:false;
if(document.getElementById&&!tcischecked){
var _3=document.getElementById("loading");
var _4=document.getElementById("tablist");
var _5=_4.getElementsByTagName("A");
for(i=0;i<_5.length;i++){
_5[i].className="";
}
_1.className="current";
document.getElementById("tabiframe").style.display="block";
document.getElementById("drill").style.display="none";
document.getElementById("floatload").style.display="block";
document.getElementById("tabiframe").src=selectedtablink;
return false;
}else{
return true;
}
}
function timelapse(){
document.getElementById("floatload").style.display="none";
}
function getQry(_6){
var _7=location.search.slice(1);
var _8=_7.split("&");
for(var i=0;i<_8.length;i++){
var ar=_8[i].split("=");
if(ar[0]==_6){
return ar[1];
}
}
}
$(document).ready(function(){
var _b=$("#tablist div");
var _c=$("#tablist img");
var _d=$("#rciteams div");
var _e=$("#rditeams div");
var _f;
var _10=3;
var _11=Number(getQry("slider"));
if(_d.length>3){
_10=7;
}
var num=Math.floor(Math.random()*_10)+1;
$("#rc"+num).css({display:"block"});
$("#menuon").mouseover(function(){
$("#menulist").css({display:"block"});
document.searchbox.search_what.style.display="none";
});
$("#menuon").mouseout(function(){
$("#menulist").css({display:"none"});
document.searchbox.search_what.style.display="inline";
});
$("#menulist").mouseover(function(){
$("#menulist").css({display:"block"});
document.searchbox.search_what.style.display="none";
});
$("#menulist").mouseout(function(){
$("#menulist").css({display:"none"});
document.searchbox.search_what.style.display="inline";
});
var pp=$("#menuon").width()+1;
window.setInterval(function(){
pp=$("#menuon").width()+1;
},0);
$("#menuon").mouseover(function(){
$("#menulist2").css({display:"block",width:pp});
document.searchbox.search_what.style.display="none";
});
$("#menuon").mouseout(function(){
$("#menulist2").css({display:"none",width:pp});
document.searchbox.search_what.style.display="inline";
});
$("#menulist2").mouseover(function(){
$("#menulist2").css({display:"block",width:pp});
document.searchbox.search_what.style.display="none";
});
$("#menulist2").mouseout(function(){
$("#menulist2").css({display:"none",width:pp});
document.searchbox.search_what.style.display="inline";
});
var _14="<li> &#149; <a href=\"http://www.autoparts.globalsources.com/\">Auto Parts</a></li><li> &#149; <a href=\"http://www.babyandchildren.globalsources.com/\">Baby & Children's</a></li><li> &#149; <a href=\"http://www.computerproducts.globalsources.com/\">Computer Products</a></li><li> &#149; <a href=\"http://www.electroniccomponents.globalsources.com/\">Electronic Components</a></li><li> &#149; <a href=\"http://www.electronics.globalsources.com/\">Electronics</a></li><li> &#149; <a href=\"http://www.fashion.globalsources.com/\">Fashion Accessories</a></li><li> &#149; <a href=\"http://www.garments.globalsources.com/\">Garments & Textiles</a></li><li> &#149; <a href=\"http://www.gifts.globalsources.com/\">Gifts & Premiums</a></li><li> &#149; <a href=\"http://www.hardware.globalsources.com/\">Hardware & DIY</a></li><li> &#149; <a href=\"http://www.homeproducts.globalsources.com/\">Home Products</a></li><li> &#149; <a href=\"http://www.machinery.globalsources.com/\">Machinery</a></li><li> &#149; <a href=\"http://www.security.globalsources.com\">Security</a></li><li> &#149; <a href=\"http://www.sportsandleisure.globalsources.com/\">Sports & Leisure</a></li><li> &#149; <a href=\"http://www.telecom.globalsources.com/\">Telecom</a></li>";
$("#menutable").html(_14);
$("input[name='inputss']").val("Please enter a product keyword");
$("input[name='inputss']").mousedown(function(){
$("input[name='inputss']").val("");
});
switch(_11){
case 1:
$("#drill").css({display:"none"});
$("#tabiframe").css({display:"block"});
$("#tabiframe").attr("src","/contextual/GeneralManager?page=cpp/CPPHome");
$("#btn1").css({background:"url(http://akamai.globalsources.com.edgesuite.net/f/593/3445/5d/staticeh.globalsources.com/ST/i/GSHPB1SSZ.GIF)"});
break;
case 2:
$("#drill").css({display:"none"});
$("#tabiframe").css({display:"block"});
$("#tabiframe").attr("src","/HOMEPAGES/P/SOURCING-FAIRS.HTM?source=GSOLHP");
$("#btn2").css({background:"url(http://akamai.globalsources.com.edgesuite.net/f/593/3445/5d/staticeh.globalsources.com/ST/i/GSHPB2SSZ.GIF)"});
break;
case 3:
$("#drill").css({display:"none"});
$("#tabiframe").css({display:"block"});
$("#tabiframe").attr("src","/HOMEPAGES/P/SOURCING-REPORTS.HTM?source=GSOLHP");
$("#btn3").css({background:"url(http://akamai.globalsources.com.edgesuite.net/f/593/3445/5d/staticeh.globalsources.com/ST/i/GSHPB3SSZ.GIF)"});
break;
case 4:
$("#drill").css({display:"none"});
$("#tabiframe").css({display:"block"});
$("#tabiframe").attr("src","/HOMEPAGES/P/PRIVATE-SOURCING-EVENTS.HTM?source=GSOLHP");
$("#btn4").css({background:"url(http://akamai.globalsources.com.edgesuite.net/f/593/3445/5d/staticeh.globalsources.com/ST/i/GSHPB4SSZ.GIF)"});
break;
case 5:
$("#drill").css({display:"none"});
$("#tabiframe").css({display:"block"});
$("#tabiframe").attr("src","/HOMEPAGES/P/SOURCING-MAGAZINES.HTM?source=GSOLHP");
$("#btn5").css({background:"url(http://akamai.globalsources.com.edgesuite.net/f/593/3445/5d/staticeh.globalsources.com/ST/i/GSHPB5SSZ.GIF)"});
break;
}
searchbtnleft=$("#searchshowbtn").position().left;
$("#searchshowbox").css({left:searchbtnleft+"px"});
$("#searchshowbtn").mouseover(function(){
$("#searchshowbox").css({display:"block"});
});
$("#searchshowbtn").mouseout(function(){
$("#searchshowbox").css({display:"none"});
});
$("#searchshowbox").mouseover(function(){
$("#searchshowbox").css({display:"block"});
});
$("#searchshowbox").mouseout(function(){
$("#searchshowbox").css({display:"none"});
});
});
function virtualpaginate(_15,_16,_17){
var _17=(typeof _17=="undefined")?"div":_17;
this.pieces=virtualpaginate.collectElementbyClass(_15,_17);
this.chunksize=(typeof _16=="undefined")?1:(_16>0&&_16<this.pieces.length)?_16:this.pieces.length;
this.pagecount=Math.ceil(this.pieces.length/this.chunksize);
this.showpage(-1);
this.currentpage=0;
this.showpage(this.currentpage);
}
virtualpaginate.collectElementbyClass=function(_18,_19){
var _1a=new RegExp("(^|\\s+)"+_18+"($|\\s+)","i");
var _1b=[];
var _1c=document.getElementsByTagName(_19);
for(var i=0;i<_1c.length;i++){
if(typeof _1c[i].className=="string"&&_1c[i].className.search(_1a)!=-1){
_1b[_1b.length]=_1c[i];
}
}
return _1b;
};
virtualpaginate.prototype.showpage=function(_1e){
var _1f=this.pieces.length;
var _20=_1e*this.chunksize;
var _21=_20+this.chunksize-1;
for(var i=0;i<_1f;i++){
if(i>=_20&&i<=_21){
this.pieces[i].style.display="block";
}else{
this.pieces[i].style.display="none";
}
}
this.currentpage=parseInt(_1e);
if(this.cpspan){
this.cpspan.innerHTML="Page "+(this.currentpage+1)+"/"+this.pagecount;
}
};
virtualpaginate.prototype.paginate_build_selectmenu=function(_23,_24){
var _25=this;
var _24=_24||new Array();
this.selectmenupresent=1;
for(var i=0;i<this.pagecount;i++){
if(typeof _24[i]!="undefined"){
_23.options[i]=new Option(_24[i],i);
}else{
_23.options[i]=new Option("Page "+(i+1)+" of "+this.pagecount,i);
}
}
_23.selectedIndex=this.currentpage;
_23.onchange=function(){
_25.showpage(this.selectedIndex);
};
};
virtualpaginate.prototype.paginate_build_regularlinks=function(_27){
var _28=this;
for(var i=0;i<_27.length;i++){
var _2a=_27[i].getAttribute("rel");
if(_2a=="previous"||_2a=="next"||_2a=="first"||_2a=="last"){
_27[i].onclick=function(){
_28.navigate(this.getAttribute("rel"));
return false;
};
}
}
};
virtualpaginate.prototype.paginate_build_flatview=function(_2b,_2c){
var _2d=this;
var _2e="";
var _2c=_2c||new Array();
for(var i=0;i<this.pagecount;i++){
if(typeof _2c[i]!="undefined"){
_2e+="<a href=\"#flatview\" rel=\""+i+"\">"+_2c[i]+"</a> ";
}else{
_2e+="<a href=\"#flatview\" rel=\""+i+"\">"+(i+1)+"</a> ";
}
}
_2b.innerHTML=_2e;
this.flatviewlinks=_2b.getElementsByTagName("a");
for(var i=0;i<this.flatviewlinks.length;i++){
this.flatviewlinks[i].onclick=function(){
_2d.flatviewlinks[_2d.currentpage].className="";
this.className="selected";
_2d.showpage(this.getAttribute("rel"));
return false;
};
}
this.flatviewlinks[this.currentpage].className="selected";
this.flatviewpresent=true;
};
virtualpaginate.prototype.paginate_build_cpinfo=function(_30){
this.cpspan=_30;
_30.innerHTML="Page "+(this.currentpage+1)+"/"+this.pagecount;
};
virtualpaginate.prototype.buildpagination=function(_31,_32){
var _33=this;
var _34=document.getElementById(_31);
if(this.chunksize==this.pieces.length){
_34.style.display="none";
return;
}
var _35=_34.innerHTML;
if(_34.getElementsByTagName("select").length>0){
this.paginate_build_selectmenu(_34.getElementsByTagName("select")[0],_32);
}
if(_34.getElementsByTagName("a").length>0){
this.paginate_build_regularlinks(_34.getElementsByTagName("a"));
}
var _36=_34.getElementsByTagName("span");
for(var i=0;i<_36.length;i++){
if(_36[i].className=="flatview"){
this.paginate_build_flatview(_36[i],_32);
}else{
if(_36[i].className=="paginateinfo"){
this.paginate_build_cpinfo(_36[i]);
}
}
}
this.paginatediv=_34;
};
virtualpaginate.prototype.navigate=function(_38){
if(this.flatviewpresent){
this.flatviewlinks[this.currentpage].className="";
}
if(_38=="previous"){
this.currentpage=(this.currentpage>0)?this.currentpage-1:(this.currentpage==0)?this.pagecount-1:0;
}else{
if(_38=="next"){
this.currentpage=(this.currentpage<this.pagecount-1)?this.currentpage+1:0;
}else{
if(_38=="first"){
this.currentpage=0;
}else{
if(_38=="last"){
this.currentpage=this.pieces.length-1;
}
}
}
}
this.showpage(this.currentpage);
if(this.selectmenupresent){
this.paginatediv.getElementsByTagName("select")[0].selectedIndex=this.currentpage;
}
if(this.flatviewpresent){
this.flatviewlinks[this.currentpage].className="selected";
}
};
var inWebSearch=false;
var selected_prod_id="";
var selected_catalog_id="2000000003844";
var currentCatalogId="2000000003844";
var action_added=0;
function submitHeaderSearch(_39){
if(_39=="Bottom"){
if(document.searchbox.bottomquery.value=="Please enter a product keyword"||document.searchbox.bottomquery.value==""){
alert("Please enter a keyword first\nto start your search.");
}else{
document.getElementById("query").name="bottomquery";
document.getElementById("bottomquery").name="query";
if(action_added==1){
makeInputElement(document.searchbox,"hidden","action","GetPoint");
makeInputElement(document.searchbox,"hidden","action","DoFreeTextSearch");
}
setSearchValues("PRODUCT",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_prod_id!="")&&(selected_prod_id!="-1")){
makeInputElement(document.searchbox,"hidden","prod_id",selected_prod_id);
}
document.getElementById("query").disabled=true;
document.getElementById("loc").value="b";
document.searchbox.submit();
}
}else{
if(document.searchbox.query.value==""||document.searchbox.query.value=="Enter product keyword to search"||document.searchbox.query.value=="Enter supplier name to search"){
alert("Please enter a keyword first\nto start your search.");
}else{
document.getElementById("query").name="query";
document.getElementById("bottomquery").name="bottomquery";
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);
}
}
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_prod_id!="")&&(selected_prod_id!="-1")){
makeInputElement(document.searchbox,"hidden","prod_id",selected_prod_id);
}
document.getElementById("bottomquery").disabled=true;
document.getElementById("loc").value="t";
document.searchbox.submit();
}
}
}
action_added=1;
function makeInputElement(_3a,_3b,_3c,_3d){
aNode=document.createElement("Input");
aNode.setAttribute("type",_3b);
aNode.setAttribute("name",_3c);
aNode.setAttribute("value",_3d);
_3a.appendChild(aNode);
}
function categorySelected(_3e,_3f,_40){
if(_40=="ADV"){
for(var i=0;i<_3f.select_category.options.length;i++){
if(_3f.select_category.options[i].selected){
if(currentCatalogIndex==i){
_3f.from.value="";
}else{
_3f.from.value="searchboxdropdown";
}
selected_point_id=point_ids[i];
selected_catalog_id=_3f.select_category.options[i].value;
_3f.action=domain_names[i];
break;
}
}
if(_3f.prod_id!=null){
var _42=((currentCatalogId!=selected_catalog_id)&&(selected_catalog_id!=""));
if(_42&&_3f.prod_id.checked){
checkSearchWithinCategory(_3e,_3f,_40);
}
}
}
}
function setSearchValues(_43,_44){
if(_43=="PRODUCT"){
if((_44.AGG!=null)&&_44.AGG.value=="Y"){
_44.point_search.value="off";
}else{
_44.point_search.value="on";
}
_44.page.value="search/ProductSearchResults";
_44.product_search.value="on";
_44.supplier_search.value="off";
}else{
if(_43=="SUPPLIER"){
if((_44.AGG!=null)&&_44.AGG.value=="Y"){
_44.point_search.value="off";
}else{
_44.point_search.value="on";
}
_44.page.value="search/SupplierSearchResults";
_44.supplier_search.value="on";
_44.product_search.value="off";
}
}
}
function checkSearchWithinCategory(_45,_46,_47){
if(typeof document.advsearchbox!="undefined"){
document.advsearchbox.searchWithin.checked=false;
}
var _48=((currentCatalogId!=selected_catalog_id)&&(selected_catalog_id!="")&&(_47=="ADV"));
var _49="To search within a different category, please do a new search.";
if(_48&&_46.prod_id.checked){
alert(_49);
_46.prod_id.checked=false;
if((typeof document.advsearchbox!="undefined")&&_47=="ADVANCED"){
document.advsearchbox.searchWithin.checked=true;
}
}else{
_46.point_id.value=_45;
if((typeof document.advsearchbox!="undefined")&&_47=="ADVANCED"){
document.advsearchbox.searchWithin.checked=false;
}
}
}
function checkSearchWithinResults(_4a,_4b,_4c,_4d,_4e){
var _4f=((currentCatalogId!=selected_catalog_id)&&(selected_catalog_id!=""));
var _50="To search for suppliers, do a new search.";
var _51="To search for product, do a new search.";
if((_4e=="ADV")&&(typeof document.advsearchbox!="undefined")){
if(_4f&&_4a.searchWithin[1].checked){
alert(searchWithinMsg4);
_4a.searchWithin[0].checked=true;
}else{
if(_4d=="PRODUCT"){
if((_4a.search_what.value=="2")&&_4a.searchWithin[1]!=null&&_4a.searchWithin[1].checked==true){
alert(_50);
_4a.searchWithin[0].checked=true;
}
}
if(_4d=="SUPPLIER"){
if((_4a.search_what.value=="1")&&_4a.searchWithin[1]!=null&&_4a.searchWithin[1].checked==true){
alert(_51);
_4a.searchWithin[0].checked=true;
}
}
}
if(_4a.searchWithin[1].checked){
_4a.type.value="step";
selected_prod_id=_4c;
_4a.point_id.value=_4b;
}
}else{
if(_4d=="PRODUCT"){
if((_4a.search_what.value=="2")&&_4a.searchWithin!=null&&_4a.searchWithin.checked==true){
alert(_50);
_4a.searchWithin.checked=false;
}
}
if(_4d=="SUPPLIER"){
if((_4a.search_what.value=="1")&&_4a.searchWithin!=null&&_4a.searchWithin.checked==true){
alert(_51);
_4a.searchWithin.checked=false;
}
}
if(_4a.searchWithin.checked){
_4a.type.value="step";
selected_prod_id=_4c;
_4a.point_id.value=_4b;
}
}
}
function Text(_52){
if(_52=="remove"){
document.getElementById("bottomquery").value="";
}else{
if(_52=="return"){
if(document.getElementById("bottomquery").value==""){
document.getElementById("bottomquery").value="Please enter a product keyword";
}
}
}
}
function uncheckWithin(){
if(typeof document.searchbox.prod_id!="undefined"){
document.searchbox.prod_id.checked=false;
}else{
if(typeof document.searchbox.searchWithin!="undefined"){
document.searchbox.searchWithin.checked=false;
}
}
}
function showToolTip(){
if(document.cookie.indexOf("gs_srchtab_callout_displayed=yes")<0){
var obj=document.getElementById("calloutBubble");
var _54=document.getElementById("redNewButton");
if(_54!=null){
obj.style.display="block";
var st=Math.max(document.body.scrollTop,document.documentElement.scrollTop);
if(navigator.userAgent.toLowerCase().indexOf("safari")>=0){
st=0;
}
var _56=findPos(_54,"x")+60;
obj.style.left=_56+"px";
obj.style.top=(findPos(_54,"y")-112)+st+"px";
}
var _57=new Date();
_57.setTime(_57.getTime()+(999*24*60*60*1000));
document.cookie="gs_srchtab_callout_displayed=yes; expires="+_57.toGMTString()+"; domain=.globalsources.com; path=/";
}
}
function hideToolTip(){
document.getElementById("calloutBubble").style.display="none";
}
function findPos(obj,pos){
var _5a=curtop=0;
if(obj.offsetParent){
_5a=obj.offsetLeft;
curtop=obj.offsetTop;
while(obj=obj.offsetParent){
_5a+=obj.offsetLeft;
curtop+=obj.offsetTop;
}
}
if(pos=="x"){
return _5a;
}
if(pos=="y"){
return curtop;
}
}
function sf(){
document.searchbox.query.focus();
}
function openbig2(_5b){
msg=window.open(_5b,"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 open2(_5c){
msg1=window.open(_5c,"PopupWindow","HEIGHT=120,WIDTH=640,status=1,toolbar=0,directories=0,menubar=0,location=0,scrollbars=1,resizable=1,top=250,left=50");
if(window.focus){
msg1.focus();
}
}
function popup(_5d,_5e,_5f){
params="height="+_5e+",width="+_5f+",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(_5d,"PopupWindow",params);
mypopup.focus();
}
function searchMag(_60){
var _61=document.magForm.magName.selectedIndex;
if(document.magForm.magName.selectedIndex>0){
self.location=document.magForm.magName.options[_61].value;
}
}
function search(_62){
var _63=document.tradeshow.event_topic.selectedIndex;
if(document.tradeshow.event_topic.selectedIndex>0){
self.location=document.tradeshow.event_topic.options[_63].value;
}
}
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;
}
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;
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(_66){
if((bVer>2)&&!isMSIE3){
var arg=_66+"=";
var _68=arg.length;
var _69=document.cookie.length;
var i=0;
while(i<_69){
var _6b=i+_68;
if(document.cookie.substring(i,_6b)==arg){
var _6c=document.cookie.indexOf(";",_6b);
if(_6c==-1){
_6c=document.cookie.length;
}
return unescape(document.cookie.substring(_6b,_6c));
}
i=document.cookie.indexOf(" ",i)+1;
if(i==0){
break;
}
}
return null;
}
}
function SetCookie(_6d,_6e,_6f,_70){
if((bVer>2)&&!isMSIE3){
document.cookie=_6d+"="+escape(_6e)+((_6f==null)?"":("; expires="+_6f.toGMTString()))+";domain=.globalsources.com"+((_70==null)?"":("; path="+_70));
}else{
eval(_6d+" = '"+_6e+"'");
}
}
function setUniqCookie(){
if((bVer>2)&&!isMSIE3){
snooky=GetCookie(name);
if(snooky==null){
SetCookie(name,value,exp,path);
}
}
}
function setPA(){
var _71="ul_cookie";
var _72=_71;
if((bVer>2)&&!isMSIE3){
snooky=GetCookie(_72);
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>");
}
}
}
function addToFavorite(){
if(navigator.appName=="Netscape"){
alert("Please press ^D (CTRL-D) to bookmark this page");
}else{
if(parseInt(navigator.appVersion)>3){
var _73=document.title.toString();
if(_73==""){
_73="Global Sources: The Largest Base of Suppliers";
}
var _74=document.location.toString();
var _75=/\?/;
var _76=/\//;
var _77=/GeneralManager/;
_74=_74.replace(/http:\/\//,"");
if(_76.test(_74)){
if((_74.substring(_74.length-4,_74.length)==".jsp")||(_74.substring(_74.length-4,_74.length)==".com")||(_74.substring(_74.length-1,_74.length)=="/")){
window.external.AddFavorite(document.location+"?ref=bmk",_73);
}else{
window.external.AddFavorite(document.location+"&ref=bmk",_73);
}
}else{
if(_75.test(document.location)||_77.test(document.location)){
window.external.AddFavorite(document.location+"&ref=bmk",_73);
}else{
window.external.AddFavorite(document.location+"?ref=bmk",_73);
}
}
}
}
}
function HomepageNS(){
alert("Please Drag the link onto your Home button to make this your Home Page.");
}
var copyright=new Date();
var update=copyright.getFullYear();
function writeCopy(){
document.write("Copyright &copy; "+update+" Trade Media Holdings Ltd. Copyright &copy; "+update+" Trade Media Ltd. <a href=\"javascript:pop('http://www.globalsources.com/CUSTOMER/ALLRIGHTS.HTM','130','640');\"  style=\"color:#050081\">All rights reserved</a>.");
}
setUniqCookie();
function openYT1(_78){
mesg=window.open(_78,"videoWin","HEIGHT=550,WIDTH=750,status=1,toolbar=1,directories=1,menubar=1,location=1,scrollbars=1,resizable=1,top=50,left=50");
}
function openYT2(_79){
mesg2=window.open(_79,"videoWin","HEIGHT=550,WIDTH=750,status=1,toolbar=1,directories=1,menubar=1,location=1,scrollbars=1,resizable=1,top=50,left=50");
}


