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"});
var _13=7;
if(_e.length>7){
_13=10;
}
var num=Math.floor(Math.random()*_13)+1;
$("#rd"+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 _15="<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(_15);
$("input[name='inputss']").val("Please enter a product keyword");
$("input[name='inputss']").mousedown(function(){
$("input[name='inputss']").val("");
});
_b.each(function(i){
x=i+1;
$(_b[i]).css({display:"block",background:"url(http://akamai.globalsources.com.edgesuite.net/f/593/3445/5d/staticeh.globalsources.com/ST/i/GSHPB"+x+"Z.GIF)"});
$(_b[i]).mouseover(function(){
_f=window.setInterval(function(){
$(_c[i]).fadeIn(500);
$(_c[i]).fadeOut(500);
},200);
});
$(_b[i]).mouseout(function(){
window.clearInterval(_f);
$(_c[i]).css({display:"none"});
});
$(_b[i]).mousedown(function(){
s=i+1;
for(y=1;y<6;y++){
$(_b[y-1]).css({background:"url(http://akamai.globalsources.com.edgesuite.net/f/593/3445/5d/staticeh.globalsources.com/ST/i/GSHPB"+y+"Z.GIF)"});
}
$(_b[i]).css({background:"url(http://akamai.globalsources.com.edgesuite.net/f/593/3445/5d/staticeh.globalsources.com/ST/i/GSHPB"+s+"SSZ.GIF)"});
});
});
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(_17,_18,_19){
var _19=(typeof _19=="undefined")?"div":_19;
this.pieces=virtualpaginate.collectElementbyClass(_17,_19);
this.chunksize=(typeof _18=="undefined")?1:(_18>0&&_18<this.pieces.length)?_18: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(_1a,_1b){
var _1c=new RegExp("(^|\\s+)"+_1a+"($|\\s+)","i");
var _1d=[];
var _1e=document.getElementsByTagName(_1b);
for(var i=0;i<_1e.length;i++){
if(typeof _1e[i].className=="string"&&_1e[i].className.search(_1c)!=-1){
_1d[_1d.length]=_1e[i];
}
}
return _1d;
};
virtualpaginate.prototype.showpage=function(_20){
var _21=this.pieces.length;
var _22=_20*this.chunksize;
var _23=_22+this.chunksize-1;
for(var i=0;i<_21;i++){
if(i>=_22&&i<=_23){
this.pieces[i].style.display="block";
}else{
this.pieces[i].style.display="none";
}
}
this.currentpage=parseInt(_20);
if(this.cpspan){
this.cpspan.innerHTML="Page "+(this.currentpage+1)+"/"+this.pagecount;
}
};
virtualpaginate.prototype.paginate_build_selectmenu=function(_25,_26){
var _27=this;
var _26=_26||new Array();
this.selectmenupresent=1;
for(var i=0;i<this.pagecount;i++){
if(typeof _26[i]!="undefined"){
_25.options[i]=new Option(_26[i],i);
}else{
_25.options[i]=new Option("Page "+(i+1)+" of "+this.pagecount,i);
}
}
_25.selectedIndex=this.currentpage;
_25.onchange=function(){
_27.showpage(this.selectedIndex);
};
};
virtualpaginate.prototype.paginate_build_regularlinks=function(_29){
var _2a=this;
for(var i=0;i<_29.length;i++){
var _2c=_29[i].getAttribute("rel");
if(_2c=="previous"||_2c=="next"||_2c=="first"||_2c=="last"){
_29[i].onclick=function(){
_2a.navigate(this.getAttribute("rel"));
return false;
};
}
}
};
virtualpaginate.prototype.paginate_build_flatview=function(_2d,_2e){
var _2f=this;
var _30="";
var _2e=_2e||new Array();
for(var i=0;i<this.pagecount;i++){
if(typeof _2e[i]!="undefined"){
_30+="<a href=\"#flatview\" rel=\""+i+"\">"+_2e[i]+"</a> ";
}else{
_30+="<a href=\"#flatview\" rel=\""+i+"\">"+(i+1)+"</a> ";
}
}
_2d.innerHTML=_30;
this.flatviewlinks=_2d.getElementsByTagName("a");
for(var i=0;i<this.flatviewlinks.length;i++){
this.flatviewlinks[i].onclick=function(){
_2f.flatviewlinks[_2f.currentpage].className="";
this.className="selected";
_2f.showpage(this.getAttribute("rel"));
return false;
};
}
this.flatviewlinks[this.currentpage].className="selected";
this.flatviewpresent=true;
};
virtualpaginate.prototype.paginate_build_cpinfo=function(_32){
this.cpspan=_32;
_32.innerHTML="Page "+(this.currentpage+1)+"/"+this.pagecount;
};
virtualpaginate.prototype.buildpagination=function(_33,_34){
var _35=this;
var _36=document.getElementById(_33);
if(this.chunksize==this.pieces.length){
_36.style.display="none";
return;
}
var _37=_36.innerHTML;
if(_36.getElementsByTagName("select").length>0){
this.paginate_build_selectmenu(_36.getElementsByTagName("select")[0],_34);
}
if(_36.getElementsByTagName("a").length>0){
this.paginate_build_regularlinks(_36.getElementsByTagName("a"));
}
var _38=_36.getElementsByTagName("span");
for(var i=0;i<_38.length;i++){
if(_38[i].className=="flatview"){
this.paginate_build_flatview(_38[i],_34);
}else{
if(_38[i].className=="paginateinfo"){
this.paginate_build_cpinfo(_38[i]);
}
}
}
this.paginatediv=_36;
};
virtualpaginate.prototype.navigate=function(_3a){
if(this.flatviewpresent){
this.flatviewlinks[this.currentpage].className="";
}
if(_3a=="previous"){
this.currentpage=(this.currentpage>0)?this.currentpage-1:(this.currentpage==0)?this.pagecount-1:0;
}else{
if(_3a=="next"){
this.currentpage=(this.currentpage<this.pagecount-1)?this.currentpage+1:0;
}else{
if(_3a=="first"){
this.currentpage=0;
}else{
if(_3a=="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(_3b){
if(_3b=="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(_3c,_3d,_3e,_3f){
aNode=document.createElement("Input");
aNode.setAttribute("type",_3d);
aNode.setAttribute("name",_3e);
aNode.setAttribute("value",_3f);
_3c.appendChild(aNode);
}
function categorySelected(_40,_41,_42){
if(_42=="ADV"){
for(var i=0;i<_41.select_category.options.length;i++){
if(_41.select_category.options[i].selected){
if(currentCatalogIndex==i){
_41.from.value="";
}else{
_41.from.value="searchboxdropdown";
}
selected_point_id=point_ids[i];
selected_catalog_id=_41.select_category.options[i].value;
_41.action=domain_names[i];
break;
}
}
if(_41.prod_id!=null){
var _44=((currentCatalogId!=selected_catalog_id)&&(selected_catalog_id!=""));
if(_44&&_41.prod_id.checked){
checkSearchWithinCategory(_40,_41,_42);
}
}
}
}
function setSearchValues(_45,_46){
if(_45=="PRODUCT"){
if((_46.AGG!=null)&&_46.AGG.value=="Y"){
_46.point_search.value="off";
}else{
_46.point_search.value="on";
}
_46.page.value="search/ProductSearchResults";
_46.product_search.value="on";
_46.supplier_search.value="off";
}else{
if(_45=="SUPPLIER"){
if((_46.AGG!=null)&&_46.AGG.value=="Y"){
_46.point_search.value="off";
}else{
_46.point_search.value="on";
}
_46.page.value="search/SupplierSearchResults";
_46.supplier_search.value="on";
_46.product_search.value="off";
}
}
}
function checkSearchWithinCategory(_47,_48,_49){
if(typeof document.advsearchbox!="undefined"){
document.advsearchbox.searchWithin.checked=false;
}
var _4a=((currentCatalogId!=selected_catalog_id)&&(selected_catalog_id!="")&&(_49=="ADV"));
var _4b="To search within a different category, please do a new search.";
if(_4a&&_48.prod_id.checked){
alert(_4b);
_48.prod_id.checked=false;
if((typeof document.advsearchbox!="undefined")&&_49=="ADVANCED"){
document.advsearchbox.searchWithin.checked=true;
}
}else{
_48.point_id.value=_47;
if((typeof document.advsearchbox!="undefined")&&_49=="ADVANCED"){
document.advsearchbox.searchWithin.checked=false;
}
}
}
function checkSearchWithinResults(_4c,_4d,_4e,_4f,_50){
var _51=((currentCatalogId!=selected_catalog_id)&&(selected_catalog_id!=""));
var _52="To search for suppliers, do a new search.";
var _53="To search for product, do a new search.";
if((_50=="ADV")&&(typeof document.advsearchbox!="undefined")){
if(_51&&_4c.searchWithin[1].checked){
alert(searchWithinMsg4);
_4c.searchWithin[0].checked=true;
}else{
if(_4f=="PRODUCT"){
if((_4c.search_what.value=="2")&&_4c.searchWithin[1]!=null&&_4c.searchWithin[1].checked==true){
alert(_52);
_4c.searchWithin[0].checked=true;
}
}
if(_4f=="SUPPLIER"){
if((_4c.search_what.value=="1")&&_4c.searchWithin[1]!=null&&_4c.searchWithin[1].checked==true){
alert(_53);
_4c.searchWithin[0].checked=true;
}
}
}
if(_4c.searchWithin[1].checked){
_4c.type.value="step";
selected_prod_id=_4e;
_4c.point_id.value=_4d;
}
}else{
if(_4f=="PRODUCT"){
if((_4c.search_what.value=="2")&&_4c.searchWithin!=null&&_4c.searchWithin.checked==true){
alert(_52);
_4c.searchWithin.checked=false;
}
}
if(_4f=="SUPPLIER"){
if((_4c.search_what.value=="1")&&_4c.searchWithin!=null&&_4c.searchWithin.checked==true){
alert(_53);
_4c.searchWithin.checked=false;
}
}
if(_4c.searchWithin.checked){
_4c.type.value="step";
selected_prod_id=_4e;
_4c.point_id.value=_4d;
}
}
}
function Text(_54){
if(_54=="remove"){
document.getElementById("bottomquery").value="";
}else{
if(_54=="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 _56=document.getElementById("redNewButton");
if(_56!=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 _58=findPos(_56,"x")+60;
obj.style.left=_58+"px";
obj.style.top=(findPos(_56,"y")-112)+st+"px";
}
var _59=new Date();
_59.setTime(_59.getTime()+(999*24*60*60*1000));
document.cookie="gs_srchtab_callout_displayed=yes; expires="+_59.toGMTString()+"; domain=.globalsources.com; path=/";
}
}
function hideToolTip(){
document.getElementById("calloutBubble").style.display="none";
}
function findPos(obj,pos){
var _5c=curtop=0;
if(obj.offsetParent){
_5c=obj.offsetLeft;
curtop=obj.offsetTop;
while(obj=obj.offsetParent){
_5c+=obj.offsetLeft;
curtop+=obj.offsetTop;
}
}
if(pos=="x"){
return _5c;
}
if(pos=="y"){
return curtop;
}
}
function sf(){
document.searchbox.query.focus();
}
function openbig2(_5d){
msg=window.open(_5d,"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(_5e){
msg1=window.open(_5e,"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(_5f,_60,_61){
params="height="+_60+",width="+_61+",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(_5f,"PopupWindow",params);
mypopup.focus();
}
function searchMag(_62){
var _63=document.magForm.magName.selectedIndex;
if(document.magForm.magName.selectedIndex>0){
self.location=document.magForm.magName.options[_63].value;
}
}
function search(_64){
var _65=document.tradeshow.event_topic.selectedIndex;
if(document.tradeshow.event_topic.selectedIndex>0){
self.location=document.tradeshow.event_topic.options[_65].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(_68){
if((bVer>2)&&!isMSIE3){
var arg=_68+"=";
var _6a=arg.length;
var _6b=document.cookie.length;
var i=0;
while(i<_6b){
var _6d=i+_6a;
if(document.cookie.substring(i,_6d)==arg){
var _6e=document.cookie.indexOf(";",_6d);
if(_6e==-1){
_6e=document.cookie.length;
}
return unescape(document.cookie.substring(_6d,_6e));
}
i=document.cookie.indexOf(" ",i)+1;
if(i==0){
break;
}
}
return null;
}
}
function SetCookie(_6f,_70,_71,_72){
if((bVer>2)&&!isMSIE3){
document.cookie=_6f+"="+escape(_70)+((_71==null)?"":("; expires="+_71.toGMTString()))+";domain=.globalsources.com"+((_72==null)?"":("; path="+_72));
}else{
eval(_6f+" = '"+_70+"'");
}
}
function setUniqCookie(){
if((bVer>2)&&!isMSIE3){
snooky=GetCookie(name);
if(snooky==null){
SetCookie(name,value,exp,path);
}
}
}
function setPA(){
var _73="ul_cookie";
var _74=_73;
if((bVer>2)&&!isMSIE3){
snooky=GetCookie(_74);
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 _75=document.title.toString();
if(_75==""){
_75="Global Sources: The Largest Base of Suppliers";
}
var _76=document.location.toString();
var _77=/\?/;
var _78=/\//;
var _79=/GeneralManager/;
_76=_76.replace(/http:\/\//,"");
if(_78.test(_76)){
if((_76.substring(_76.length-4,_76.length)==".jsp")||(_76.substring(_76.length-4,_76.length)==".com")||(_76.substring(_76.length-1,_76.length)=="/")){
window.external.AddFavorite(document.location+"?ref=bmk",_75);
}else{
window.external.AddFavorite(document.location+"&ref=bmk",_75);
}
}else{
if(_77.test(document.location)||_79.test(document.location)){
window.external.AddFavorite(document.location+"&ref=bmk",_75);
}else{
window.external.AddFavorite(document.location+"?ref=bmk",_75);
}
}
}
}
}
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(_7a){
mesg=window.open(_7a,"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(_7b){
mesg2=window.open(_7b,"videoWin","HEIGHT=550,WIDTH=750,status=1,toolbar=1,directories=1,menubar=1,location=1,scrollbars=1,resizable=1,top=50,left=50");
}



