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_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_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

window.onload=montre;
function montre(id) {
var d = document.getElementById(id);
	for (var i = 1; i<=10; i++) {
		if (document.getElementById('smenu'+i)) {document.getElementById('smenu'+i).style.display='none';}
	}
if (d) {d.style.display='block';}
}

function loadPage(fInfo){
  location.href = fInfo.options[fInfo.selectedIndex].value
}

// Gmenu

var menuArrayItem = [
		['Safety Razors', 'http://www.royalshave.com/c/safety_razors/', null],
		['Straight Razors', 'http://www.royalshave.com/c/straight_razors/', null],
		['Shaving Sets', 'http://www.royalshave.com/c/shaving_sets/', null],
		['Blades / Strops', 'http://www.royalshave.com/c/blades-strops/', null],
		['Shaving Brushes', 'http://www.royalshave.com/c/shaving_brushes/', null],
		['Stands and Dishes', 'http://www.royalshave.com/c/stands_dishes/', null],
		['Soaps and Creams', 'http://www.royalshave.com/c/soaps_creams/', null],
		['Preshave Skin Care', 'http://www.royalshave.com/c/preshave_skin_care/', null],
		['Postshave Skin Care', 'http://www.royalshave.com/c/postshave_skin_care/', null],
		['Mirrors & Towels', 'http://www.royalshave.com/c/mirrors_towel_steamers/', null],		
		['Grooming', 'http://www.royalshave.com/c/grooming/', null],
		['Travel', 'http://www.royalshave.com/c/travel/', null],
		['Accessories', 'http://www.royalshave.com/c/accessories/', null],
		['Specials', 'http://www.royalshave.com/c/specials/', null],
		['Ladys Shaving', 'http://www.royalshave.com/c/ladys-shaving/', null]
	];

var menuArrayBrand = [
		['Castle Forbes', 'http://www.royalshave.com/c/castle_forbes/', null],	
		['Dovo', 'http://www.royalshave.com/c/dovo/', null],
		['Edwin Jagger', 'http://www.royalshave.com/c/edwin_jagger/', null],
	    ['Feather', 'http://www.royalshave.com/c/feather/', null],
		['Merkur', 'http://www.royalshave.com/c/merkur/', null],
		['Omega', 'http://www.royalshave.com/c/omega/', null],
	    ['Pils', 'http://www.royalshave.com/c/pils/', null],
	    ['Plisson', 'http://www.royalshave.com/c/plisson/', null],
		['Proraso', 'http://www.royalshave.com/c/proraso/', null],
		['RoyalShave', 'http://www.royalshave.com/c/royalshave/', null],
		['Taylor of Old Bond Street', 'http://www.royalshave.com/c/taylor_of_old_bond_street/', null],
		['Truefitt and Hill', 'http://www.royalshave.com/c/truefitt/', null],
		['Trumper', 'http://www.royalshave.com/c/trumper/', null],
		['Wacker', 'http://www.royalshave.com/c/Wacker/', null],
		['more...', 'http://www.royalshave.com/c/brands/', null]
	];

var menuArrayInformation = [
		['The Basics: Straight Razors', 'http://www.royalshave.com/straight-razor-basics.html', null],
		['The Basics: Shaving Brushes', 'http://www.royalshave.com/shaving-brush-basics.html', null],
		['The Basics: Double Edge Razors', 'http://www.royalshave.com/double-edge-basics.html', null],
		['Dictionary', 'http://www.royalshave.com/dictionary.html', null],
		['Shaving Tutorial', 'http://www.royalshave.com/shaving_tutorial.html', null],
		['Types of Shaving Brushes', 'http://www.royalshave.com/shaving_brushes.html', null],
		['Post Shave Products', 'http://www.royalshave.com/post_shave_products.html', null],
		['Shaving Soaps & Creams', 'http://www.royalshave.com/shaving_soaps_creams.html', null],
		['Strops and Honing', 'http://www.royalshave.com/stropping_honing.html', null],
		['Dovo Warranty', 'http://www.royalshave.com/dovo_warranty.html', null],
		['Straight Razor Parts', 'http://www.royalshave.com/razor_parts.html', null],
		['Books on Shaving', 'http://www.royalshave.com/booksonshaving.html', null],
		['Get a Straight Razor Shave', 'http://www.royalshave.com/get-a-straight-razor-shave.html', null]
	];

var menuArrayCS = [
		['About RoyalShave', 'http://www.royalshave.com/aboutus.html', null],
		['Policies', 'http://www.royalshave.com/customerservice.html', null],
		['Contact Us', 'http://www.royalshave.com/contactus.html', null],
		['Order Tracking', 'http://www.royalshave.com/shipping.html#track', null],
		['Shipping', 'http://www.royalshave.com/shipping.html', null],
		['Ordering', 'http://www.royalshave.com/ordering.html', null],
		['Returns', 'http://www.royalshave.com/returns.html', null],
		['Account Information', 'http://www.royalshave.com/youraccount.html', null]
	];
	
	
	TOP_MENU_LEFT_OFFSET = 0;