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];}

}

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 mmLoadMenus() {

/*
	// live absolute paths
	var pathA = "/";
	var pathB = "http://www.artsound.it/";
	var pathC = "https://artsound.it/";
*/
	// relative paths (testing only)
	var pathA = "";
	var pathB = "";
	var pathC = "";

  if (window.mm_menu_0524152600_0) return;
   window.mm_menu_0524152600_0 = new Menu("root",125,20,"Verdana, Arial, Helvetica, sans-serif",10,"#666666","#4b2f93","#ffffff","#ffffff","left","middle",4,0,1000,-5,7,true,true,true,0,true,true);
   mm_menu_0524152600_0.addMenuItem("Architectural&nbsp;Lighting","location='" + pathA + "production_architectural.php'");
   mm_menu_0524152600_0.addMenuItem("LED&nbsp;Technology","location='" + pathA + "led_lighting.php'");
   mm_menu_0524152600_0.addMenuItem("Portfolio","location='" + pathB + "portfolio.php?image=5&category=C000000002'");
   mm_menu_0524152600_0.addMenuItem("Log in","location='" + pathA + "client_login.php'");
   mm_menu_0524152600_0.addMenuItem("Sales Project List","location='" + pathB + "sample_projects_wider.php'");
   mm_menu_0524152600_0.hideOnMouseOut=true;
   mm_menu_0524152600_0.menuBorder=1;
   mm_menu_0524152600_0.menuLiteBgColor='#ffffff';
   mm_menu_0524152600_0.menuBorderBgColor='#cccccc';
   mm_menu_0524152600_0.bgColor='#cccccc';

   // mm_menu_0524152600_0.writeMenus();


   // if (window.mm_menu_0623174428_0) return;

   window.mm_menu_0623174428_0 = new Menu("root",133,18,"Verdana, Arial, Helvetica, sans-serif",10,"#666666","#4B2F93","#ffffff","#ffffff","left","middle",4,0,1000,-5,7,true,true,true,2,true,true);
   mm_menu_0623174428_0.addMenuItem("Projection Advertising","location='" + pathA + "p_projection_advertising.php'");
   mm_menu_0623174428_0.addMenuItem("Projection","location='" + pathA + "p_event_projection.php'");
   mm_menu_0623174428_0.addMenuItem("Finelite&reg;&nbsp;Projector","location='" + pathA + "p_finelite_projector.php'");
   mm_menu_0623174428_0.addMenuItem("Portfolio","location='" + pathB + "portfolio.php?image=5&category=C000000004'");
   mm_menu_0623174428_0.hideOnMouseOut=true;

   mm_menu_0623174428_0.menuBorder=1;

   mm_menu_0623174428_0.menuLiteBgColor='#ffffff';

   mm_menu_0623174428_0.menuBorderBgColor='#f3f3f3';

   mm_menu_0623174428_0.bgColor='#cccccc';

   window.mm_menu_0623174736_1 = new Menu("root",100,18,"Verdana, Arial, Helvetica, sans-serif",10,"#666666","#4B2F93","#ffffff","#ffffff","left","middle",4,0,1000,-5,7,true,true,true,2,true,true);
   mm_menu_0623174736_1.addMenuItem("Event Lighting","location='" + pathA + "production_lighting.php'");
   mm_menu_0623174736_1.addMenuItem("Projection","location='" + pathA + "p_event_projection.php'");
   mm_menu_0623174736_1.addMenuItem("Log in","location='" + pathA + "client_login.php'");
   mm_menu_0623174736_1.addMenuItem("Portfolio","location='" + pathB + "portfolio.php?image=5&category=C000000003'");

   mm_menu_0623174736_1.hideOnMouseOut=true;

   mm_menu_0623174736_1.menuBorder=1;

   mm_menu_0623174736_1.menuLiteBgColor='#ffffff';

   mm_menu_0623174736_1.menuBorderBgColor='#f3f3f3';

   mm_menu_0623174736_1.bgColor='#cccccc';

   window.mm_menu_0623174827_2 = new Menu("root",120,18,"Verdana, Arial, Helvetica, sans-serif",10,"#666666","#4B2F93","#ffffff","#ffffff","left","middle",4,0,1000,-5,7,true,true,true,2,true,true);
   mm_menu_0623174827_2.addMenuItem("Equipment","location='" + pathA + "rental_equip.php?seenew=1'");
   mm_menu_0623174827_2.addMenuItem("Policies","location='" + pathA + "rental_policy.php'");
   mm_menu_0623174827_2.addMenuItem("Request for Quote","location='" + pathA + "rental_equip.php'");   

   mm_menu_0623174827_2.hideOnMouseOut=true;

   mm_menu_0623174827_2.menuBorder=1;

   mm_menu_0623174827_2.menuLiteBgColor='#ffffff';

   mm_menu_0623174827_2.menuBorderBgColor='#f3f3f3';

   mm_menu_0623174827_2.bgColor='#cccccc';

   window.mm_menu_0623174915_3 = new Menu("root",120,18,"Verdana, Arial, Helvetica, sans-serif",10,"#666666","#4B2F93","#ffffff","#ffffff","left","middle",4,0,1000,-5,7,true,true,true,2,true,true);
   mm_menu_0623174915_3.addMenuItem("Store","location='" + pathB + "store/'");
   mm_menu_0623174915_3.addMenuItem("Customer Service","location='" + pathB + "store/information.php?info_id=Customer%20Service'");
   mm_menu_0623174915_3.addMenuItem("Line Card","location='" + pathB + "store/information.php?info_id=LineCard'");
   mm_menu_0623174915_3.addMenuItem("Account Login","location='" + pathC + "store/login.php?my_account_f='");
   mm_menu_0623174915_3.addMenuItem("Sales Project List","location='" + pathC + "sample_projects_wider.php'");

   mm_menu_0623174915_3.hideOnMouseOut=true;

   mm_menu_0623174915_3.menuBorder=1;

   mm_menu_0623174915_3.menuLiteBgColor='#ffffff';

   mm_menu_0623174915_3.menuBorderBgColor='#f3f3f3';

   mm_menu_0623174915_3.bgColor='#cccccc';

   window.mm_menu_0623175021_4 = new Menu("root",96,18,"Verdana, Arial, Helvetica, sans-serif",10,"#666666","#4B2F93","#ffffff","#ffffff","left","middle",4,0,1000,-5,7,true,true,true,2,true,true);
   mm_menu_0623175021_4.addMenuItem("Gallery","location='" + pathA + "portfolio.php'");

   mm_menu_0623175021_4.hideOnMouseOut=true;

   mm_menu_0623175021_4.menuBorder=1;

   mm_menu_0623175021_4.menuLiteBgColor='#ffffff';

   mm_menu_0623175021_4.menuBorderBgColor='#f3f3f3';

   mm_menu_0623175021_4.bgColor='#cccccc';

   window.mm_menu_0623175102_5 = new Menu("root",115,18,"Verdana, Arial, Helvetica, sans-serif",10,"#666666","#4B2F93","#ffffff","#ffffff","left","middle",4,0,1000,-5,7,true,true,true,2,true,true);
   mm_menu_0623175102_5.addMenuItem("About US","location='" + pathA + "about_us.php'");
   mm_menu_0623175102_5.addMenuItem("Our Story","location='" + pathA + "a_story.php'");
   mm_menu_0623175102_5.addMenuItem("Contact Us","location='" + pathA + "contact.php'");
mm_menu_0623175102_5.addMenuItem("Employment","location='" + pathA + "employment.php'");
mm_menu_0623175102_5.addMenuItem("Portfolio","location='" + pathA + "portfolio.php'");
   mm_menu_0623175102_5.addMenuItem("Press","location='" + pathA + "a_press.php'");
   mm_menu_0623175102_5.addMenuItem("Sales Project List","location='" + pathA + "sample_projects_wider.php'");
   mm_menu_0623175102_5.hideOnMouseOut=true;

   mm_menu_0623175102_5.menuBorder=1;

   mm_menu_0623175102_5.menuLiteBgColor='#ffffff';

   mm_menu_0623175102_5.menuBorderBgColor='#f3f3f3';

   mm_menu_0623175102_5.bgColor='#cccccc';



   mm_menu_0623175102_5.writeMenus();

} // mmLoadMenus()





/*-----
function ShowHideRental(id)
	show or hide a div list of item in the equipment rental quote page
	updates picto image : arrow left (hidden) arrow down (shown)
	updates text in link : Show item or Hiden item
	input : id => id of div to show/hide
	output : Screen
------ */

function ShowHideRental(id) {
	if(document.getElementById(id).style.display == 'none'){;
		document.getElementById(id).style.display = 'block';
		document.getElementById("show_" + id).innerHTML = "Hide Items";
		document.getElementById("picto_1" + id).src = 'images/item_shown.gif';
	} else {
		document.getElementById(id).style.display = 'none';
		document.getElementById("show_" + id).innerHTML = "Show Items";
		document.getElementById("picto_1" + id).src = 'images/item_hidden.gif';
	}
	
}

function ShowRental(id,obj_id) {
			document.getElementById('search_txt').focus();
		document.getElementById(id).style.display = 'block';
//		self.location.href="rental_new3.php#"+obj_id;
		self.location.href="#"+obj_id;
		document.getElementById("show_" + id).innerHTML = "Hide Items";
		document.getElementById("picto_1" + id).src = 'images/item_shown.gif';
		document.getElementById(obj_id).focus();
		
		//document.getElementById(obj_id).select();
}
