// Bsti menu psd

function newImage(arg) {
	if (document.images) {
		rslt = new Image();
		rslt.src = arg;
		return rslt;
	}
}

function changeImages() {
	if (document.images && (preloadFlag == true)) {
		for (var i=0; i<changeImages.arguments.length; i+=2) {
			document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
		}
	}
}

var preloadFlag = false;
function preloadImages() {
	if (document.images) {
		bsti_menu_10_over = newImage("../images/bsti_menu_10-over.png");
		bsti_menu_11_over = newImage("../images/bsti_menu_11-over.png");
		bsti_menu_12_bsti_menu_11_over = newImage("../images/bsti_menu_12-bsti_menu_11_o.png");
		bsti_menu_14_over = newImage("../images/bsti_menu_14-over.png");
		bsti_menu_16_over = newImage("../images/bsti_menu_16-over.png");
		bsti_menu_18_over = newImage("../images/bsti_menu_18-over.png");
		bsti_menu_19_bsti_menu_18_over = newImage("../images/bsti_menu_19-bsti_menu_18_o.png");
		bsti_menu_20_over = newImage("../images/bsti_menu_20-over.png");
		bsti_menu_22_over = newImage("../images/bsti_menu_22-over.png");
		bsti_menu_24_over = newImage("../images/bsti_menu_24-over.png");
		bsti_menu_26_over = newImage("../images/bsti_menu_26-over.png");
		bsti_menu_28_over = newImage("../images/bsti_menu_28-over.png");
		preloadFlag = true;
	}
}


//head menu list


//new Menu("root",90,25,"",12,"#000000","#0066CC","#74A5E1","#0066CC","Left","middle",3,0,1000,-5,7,true,true,true,0,true,false); /
//new Menu("root",td¼e,td°ª,"",¦r¤j¤p,"¦rcolor","link  font color","td color,"link font color","Left","middle",3,0,1000,-5,7,true,true,true,0,true,false); /


function mmLoadMenus() {
  if (window.mm_menu_1123085714_0) return;
window.mm_menu_1123085714_0 = new Menu("root",100,25,"",12,"#ffffff","#FFFFFF","#74A5E1","#34AACD","Left","middle",3,0,1000,-10,7,true,true,true,0,true,false);
  mm_menu_1123085714_0.addMenuItem("IP Camera","window.open('../ip-surveillance/ip-surveillance-ipcameras-en_index.html', '_top');");
  mm_menu_1123085714_0.addMenuItem("Video Server","window.open('../ip-surveillance/ip-surveillance-videoservers-en_index.html', '_top');");
  mm_menu_1123085714_0.addMenuItem("Software","window.open('../ip-surveillance/ip-surveillance-software-en_index.html', '_top');");
  mm_menu_1123085714_0.addMenuItem("Accessory","window.open('../ip-surveillance/ip-surveillance-accessories-en_index.html', '_top');");
   mm_menu_1123085714_0.hideOnMouseOut=true;
   mm_menu_1123085714_0.bgColor='#FFFFFF';
   mm_menu_1123085714_0.menuBorder=1;
   mm_menu_1123085714_0.menuLiteBgColor='#FFFFFF';
   mm_menu_1123085714_0.menuBorderBgColor='';
   
 window.mm_menu_1123095152_0 = new Menu("root",100,25,"",12,"#ffffff","#FFFFFF","#74A5E1","#34AACD","Left","middle",3,0,1000,-5,7,true,true,true,0,true,false);
  mm_menu_1123095152_0.addMenuItem("Camera","location='../cctv-surveillance/cctv-surveillance-cameras-en_index.html', '_top'");
  mm_menu_1123095152_0.addMenuItem("DVR","location='../cctv-surveillance/cctv-surveillance-dvrs-en_index.html', '_top'");
  mm_menu_1123095152_0.addMenuItem("Accessory","location='../cctv-surveillance/cctv-surveillance-accessories-en_index.html', '_top'");
   mm_menu_1123095152_0.hideOnMouseOut=true;
   mm_menu_1123095152_0.bgColor='#FFFFFF';
   mm_menu_1123095152_0.menuBorder=1;
   mm_menu_1123095152_0.menuLiteBgColor='#FFFFFF';
   mm_menu_1123095152_0.menuBorderBgColor='';
 
 window.mm_menu_1214141801_0 = new Menu("root",100,25,"",12,"#ffffff","#FFFFFF","#74A5E1","#34AACD","Left","middle",3,0,1000,-5,7,true,true,true,0,true,false);
  mm_menu_1214141801_0.addMenuItem("America","location='../market/ebay-index.html', '_top'");
  mm_menu_1214141801_0.addMenuItem("UK","window.open('../market/ebay-index.html', '_top');");
  mm_menu_1214141801_0.addMenuItem("Europe","window.open('../market/ebay-index.html', '_top');");
  mm_menu_1214141801_0.addMenuItem("Australia","window.open('../market/ebay-index.html', '_top');");
  mm_menu_1214141801_0.addMenuItem("Asia","window.open('../market/ebay-index.html', '_top');");  
   mm_menu_1214141801_0.hideOnMouseOut=true;
   mm_menu_1214141801_0.bgColor='#FFFFFF';
   mm_menu_1214141801_0.menuBorder=1;
   mm_menu_1214141801_0.menuLiteBgColor='#FFFFFF';
   mm_menu_1214141801_0.menuBorderBgColor='';
  
window.mm_menu_1123095559_0 = new Menu("root",100,25,"",12,"#ffffff","#FFFFFF","#74A5E1","#34AACD","Left","middle",3,0,1000,-5,7,true,true,true,0,true,false);
  mm_menu_1123095559_0.addMenuItem("Taiwan","window.open('../market/yahoo-en-index.html', '_top');");
   mm_menu_1123095559_0.hideOnMouseOut=true;
   mm_menu_1123095559_0.bgColor='#FFFFFF';
   mm_menu_1123095559_0.menuBorder=1;
   mm_menu_1123095559_0.menuLiteBgColor='#FFFFFF';
   mm_menu_1123095559_0.menuBorderBgColor='';

        window.mm_menu_1214141800_0 = new Menu("root",100,25,"",12,"#ffffff","#FFFFFF","#74A5E1","#34AACD","Left","middle",3,0,1000,-5,7,true,true,true,0,true,false);
  mm_menu_1214141800_0.addMenuItem("Shopping Cart","location='../market/shopping-cart-en-index.html', '_top'");  
  mm_menu_1214141800_0.addMenuItem("Mail Order","location='../market/mail-order-en-index.html', '_top'");
  mm_menu_1214141800_0.addMenuItem("Shipping Info.","location='../market/shipping-info-en-index.html', '_top'"); 
  mm_menu_1214141800_0.hideOnMouseOut=true;
   mm_menu_1214141800_0.bgColor='#FFFFFF';
   mm_menu_1214141800_0.menuBorder=1;
   mm_menu_1214141800_0.menuLiteBgColor='#FFFFFF';
   mm_menu_1214141800_0.menuBorderBgColor='';

window.mm_menu_1214141802_0 = new Menu("root",220,25,"",12,"#ffffff","#FFFFFF","#74A5E1","#34AACD","Left","middle",3,0,1000,-5,7,true,true,true,0,true,false);
  mm_menu_1214141802_0.addMenuItem("Discount on multiple orders","location='../market/prices-discount-en-index.html', '_top'");
  mm_menu_1214141802_0.addMenuItem("Dealer / Installer  MOQ10","location='../market/prices-all-en-index.html', '_top'");
  mm_menu_1214141802_0.addMenuItem("Distributor / Wholesaler MOQ50","location='../market/prices-all-en-index.html', '_top'");
  mm_menu_1214141802_0.addMenuItem("OEM / ODM MOQ500","location='../market/prices-all-en-index.html', '_top'");        
//  mm_menu_1214141802_0.addMenuItem("Dealer / Installer  MOQ10","window.open('http://www.bsti.com.tw', '_blank','menubar=no,status=no,scrollbars=auto,toolbar=no,top=1,left=1,width=1000,height=700');");
   mm_menu_1214141802_0.hideOnMouseOut=true;
   mm_menu_1214141802_0.bgColor='#FFFFFF';
   mm_menu_1214141802_0.menuBorder=1;
   mm_menu_1214141802_0.menuLiteBgColor='#FFFFFF';
   mm_menu_1214141802_0.menuBorderBgColor='';
   
        window.mm_menu_1214141803_0 = new Menu("root",150,25,"",12,"#ffffff","#FFFFFF","#74A5E1","#34AACD","Left","middle",3,0,1000,-5,7,true,true,true,0,true,false);
  mm_menu_1214141803_0.addMenuItem("IP Tool","location='../download-contact/download-index.html', '_top'");
  mm_menu_1214141803_0.addMenuItem("Quick Guide","location='../download-contact/download-index.html', '_top'");
  mm_menu_1214141803_0.addMenuItem("User Manual","location='../download-contact/download-index.html', '_top'");
  mm_menu_1214141803_0.addMenuItem("Firmware ","location='../download-contact/download-index.html', '_top'");
  mm_menu_1214141803_0.addMenuItem("SDK ","location='../download-contact/download-index.html', '_top'");
  mm_menu_1214141803_0.addMenuItem("Software ","location='../download-contact/download-index.html', '_top'");
//  mm_menu_1214141803_0.addMenuItem("Technical Support ","location='download-contact/contact-en.html', '_top'");  
   mm_menu_1214141803_0.hideOnMouseOut=true;
   mm_menu_1214141803_0.bgColor='#FFFFFF';
   mm_menu_1214141803_0.menuBorder=1;
   mm_menu_1214141803_0.menuLiteBgColor='#FFFFFF';
   mm_menu_1214141803_0.menuBorderBgColor='';

mm_menu_1214141803_0.writeMenus();
} // mmLoadMenus()

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_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_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_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];}
}


