
function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_changeProp(objName,x,theProp,theValue) { //v3.0
  var obj = MM_findObj(objName);
  if (obj && (theProp.indexOf("style.")==-1 || obj.style)) eval("obj."+theProp+"='"+theValue+"'");
}

function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function fwLoadMenus() {
  if (window.fw_menu_0) return;
  window.fw_menu_0 = new Menu("root",145,19,"Arial, Helvetica, sans-serif",12,"#000000","#ffffff","#ffffff","#3333cc");

  fw_menu_0.addMenuItem("New Collection","location='http://www.hksilk.com/Merchant2/merchant.mv?Screen=CTGY&Store_Code=HKSC&Category_Code=NC'");
  fw_menu_0.addMenuItem("Silk Bedding","location='http://hksilk.com/Merchant2/merchant.mv?Screen=CTGY&Store_Code=HKSC&Category_Code=Bed'");
  fw_menu_0.addMenuItem("Silk Pajamas","location='http://www.hksilk.com/Merchant2/merchant.mv?Screen=CTGY&Store_Code=HKSC&Category_Code=WP'");
  fw_menu_0.addMenuItem("Women's Robes","location='http://www.hksilk.com/Merchant2/merchant.mv?Screen=CTGY&Store_Code=HKSC&Category_Code=WR'");
  fw_menu_0.addMenuItem("Slips & Camisoles","location='http://www.hksilk.com/Merchant2/merchant.mv?Screen=CTGY&Store_Code=HKSC&Category_Code=WSC'");
  fw_menu_0.addMenuItem("Panties & Thongs","location='http://www.hksilk.com/Merchant2/merchant.mv?Screen=CTGY&Store_Code=HKSC&Category_Code=WP1'");
  fw_menu_0.addMenuItem("Bracli Collection","location='http://www.hksilk.com/Merchant2/merchant.mv?Screen=CTGY&Store_Code=HKSC&Category_Code=Bracli'");
 fw_menu_0.addMenuItem("Night Gowns","location='http://www.hksilk.com/Merchant2/merchant.mv?Screen=CTGY&Store_Code=HKSC&Category_Code=NG'");
  fw_menu_0.addMenuItem("Silk Scarves","location='http://www.hksilk.com/Merchant2/merchant.mv?Screen=CTGY&Store_Code=HKSC&Category_Code=S'");
  fw_menu_0.addMenuItem("Silk Care Products","location='http://www.hksilk.com/Merchant2/merchant.mv?Screen=CTGY&Store_Code=HKSC&Category_Code=SCare'");
  fw_menu_0.addMenuItem("All Women's Products","location='http://www.hksilk.com/Merchant2/merchant.mv?Screen=CTGY&Store_Code=HKSC&Category_Code=AllW'");   
   fw_menu_0.fontWeight="bold";
   fw_menu_0.hideOnMouseOut=true;
  window.fw_menu_1 = new Menu("root",130,19,"Arial, Helvetica, sans-serif",12,"#000000","#ffffff","#ffffff","#3333cc");
  fw_menu_1.addMenuItem("Silk Bedding","location='http://hksilk.com/Merchant2/merchant.mv?Screen=CTGY&Store_Code=HKSC&Category_Code=Bed'");
  fw_menu_1.addMenuItem("Silk Pajamas","location='http://www.hksilk.com/Merchant2/merchant.mv?Screen=CTGY&Store_Code=HKSC&Category_Code=MP'");
  fw_menu_1.addMenuItem("Silk Robes","location='http://www.hksilk.com/Merchant2/merchant.mv?Screen=CTGY&Store_Code=HKSC&Category_Code=MR'");
  fw_menu_1.addMenuItem("Briefs & Boxers","location='http://www.hksilk.com/Merchant2/merchant.mv?Screen=CTGY&Store_Code=HKSC&Category_Code=MU'");
  fw_menu_1.addMenuItem("Men's Scarves","location='http://www.hksilk.com/Merchant2/merchant.mv?Screen=CTGY&Store_Code=HKSC&Category_Code=MSCF'");
  fw_menu_1.addMenuItem("Silk Care Products","location='http://www.hksilk.com/Merchant2/merchant.mv?Screen=CTGY&Store_Code=HKSC&Category_Code=SCare'");
  fw_menu_1.addMenuItem("All Men's Products","location='http://www.hksilk.com/Merchant2/merchant.mv?Screen=CTGY&Store_Code=HKSC&Category_Code=AllM'");
   fw_menu_1.fontWeight="bold";
   fw_menu_1.hideOnMouseOut=true;
  window.fw_menu_2 = new Menu("root",138,19,"Arial, Helvetica, sans-serif",12,"#000000","#ffffff","#ffffff","#3333cc");
  fw_menu_2.addMenuItem("Size Information","location='http://hksilk.com/Merchant2/size.htm'");
  fw_menu_2.addMenuItem("Return Policy","location='http://hksilk.com/Merchant2/help.htm#ret'");
  fw_menu_2.addMenuItem("Gift Services","location='http://hksilk.com/Merchant2/help.htm#gift'");
  fw_menu_2.addMenuItem("Privacy Policy","location='http://hksilk.com/Merchant2/help.htm#prive'");
  fw_menu_2.addMenuItem("Shipping Information","location='http://hksilk.com/Merchant2/help.htm#ship'");
  fw_menu_2.addMenuItem("Payment Information","location='http://hksilk.com/Merchant2/help.htm#pay'");
  fw_menu_2.addMenuItem("Silk Care","location='http://hksilk.com/Merchant2/care.htm'");
  fw_menu_2.addMenuItem("About Silk","location='http://hksilk.com/Merchant2/silk.htm'");
  fw_menu_2.addMenuItem("Contact","location='http://hksilk.com/Merchant2/contact.htm'");
  fw_menu_2.addMenuItem("About Us","location='http://hksilk.com/Merchant2/hk.htm'");
  fw_menu_2.addMenuItem("Secure Order Form","location='https://hs7.order-vault.net/hksilk/Merchant2/submit.htm'");
   fw_menu_2.fontWeight="bold";
   fw_menu_2.hideOnMouseOut=true;

  fw_menu_2.writeMenus();
} // fwLoadMenus()

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=800,height=660,left = 112,top = 30');");

}
function SmallWindow1(wintype) {
SmallWin=window.open(wintype,"SmallWin","toolbar=no,directories=no,status=no,scrollbars=no,menubar=no,width=480,height=425"); SmallWin.window.focus() }

function SmallWindow2(wintype) {
SmallWin=window.open(wintype,"SmallWin","toolbar=no,directories=no,status=no,scrollbars=no,menubar=no,width=410,height=270"); SmallWin.window.focus() }

function SmallWindow3(wintype) {
SmallWin=window.open(wintype,"SmallWin","toolbar=no,directories=no,status=no,scrollbars=no,menubar=no,width=180,height=336"); SmallWin.window.focus() }

function SmallWindow4(wintype) {
SmallWin=window.open(wintype,"SmallWin","toolbar=no,directories=no,status=no,scrollbars=no,menubar=no,width=442,height=285"); SmallWin.window.focus() }

function SmallWindow5(wintype) {
SmallWin=window.open(wintype,"SmallWin","toolbar=no,directories=no,status=yes,scrollbars=no,menubar=no,width=635,height=500"); SmallWin.window.focus() }


function bookmark(url, description) {
  netscape="First click OK and then enter CTRL+D to add a bookmark to this site."
  if (navigator.appName=='Microsoft Internet Explorer') {
    window.external.AddFavorite(url, description);
  } else if (navigator.appName=='Netscape') {
    alert(netscape);
  }
}
