var platform="";
if (navigator.appVersion.indexOf("Mac")!=-1) platform = "mac";

if (platform == "mac") {
<!-- vars offset left (no. of entries equals number of dropdown menus i.e. 3 menus equals 3 values here//--> 
var menu_OffSetHoriz = [-380,-317,-234,-137,-41,29,129,228,298];
} 

else if (platform != "mac") { 
var menu_OffSetHoriz = [-380,-317,-234,-137,-41,29,129,228,298];
} 

var menus = [
<!-- vars offset down and depth of menu -  ??, height from top, width, depth//--> 
new ypSlideOutMenu("menu1", "down", 0, 240, 120, 170),
new ypSlideOutMenu("menu2", "down", 70, 240, 170, 170),
new ypSlideOutMenu("menu3", "down", 140, 240, 120, 170),
new ypSlideOutMenu("menu4", "down", 210, 240, 120, 170),
new ypSlideOutMenu("menu5", "down", 280, 240, 120, 170),
new ypSlideOutMenu("menu6", "down", 350, 240, 120, 170),
new ypSlideOutMenu("menu7", "down", 420, 240, 120, 170),
new ypSlideOutMenu("menu8", "down", 490, 240, 170, 170),
new ypSlideOutMenu("menu9", "down", 560, 240, 120, 170)
]

// set horizontal pos of menu based from centre
for (var i = 0; i < menus.length; i++) {
menus[i].onactivate = new Function("var newLeft = getWindowWidth() / 2 + menu_OffSetHoriz[" + i + "]; menus[" + i + "].container.style ? menus[" + i + "].container.style.left = newLeft : menus[" + i + "].container.left = newLeft;")
}

var detect = navigator.userAgent.toLowerCase();
function getWindowWidth(){
//var OS,browser,total,thestring;
//var version = 0;
if (checkIt('konqueror'))
{
return window.innerWidth;
} else if (checkIt('safari')) {
return window.innerWidth;
} else if (checkIt('omniweb')) {
return window.innerWidth;
} else if (checkIt('opera')) {
return window.innerWidth;
} else if (checkIt('webtv')) {
return window.innerWidth;
} else if (checkIt('icab')) {
return window.innerWidth;
} else if (checkIt('msie')) {
return window.innerWidth ? window.innerWIDTH: document.body.offsetWidth;
} else if (!checkIt('compatible')) {
//	browser = "Netscape Navigator"
return window.innerWidth;
} else {
return window.innerWidth;
}
}

function checkIt(string)
{
	place = detect.indexOf(string) + 1;
	thestring = string;
	return place;
}


/*
function getWindowWidth(){
return window.innerWidth ? window.innerWIDTH: document.body.offsetWidth;
return window.innerWidth;
}
*/

/*function getWindowWidth() {
var detect = navigator.userAgent.toLowerCase();
//var OS,browser,version,total,thestring;
if (checkIt('msie')) {
//browser = "Internet Explorer"
return window.innerWidth ? window.innerWIDTH: document.body.offsetWidth;
} else {
  var myWidth = 0, myHeight = 0;
  if( typeof( window.innerWidth ) == 'number' ) {
    //Non-IE
    myWidth = window.innerWidth;
    myHeight = window.innerHeight;
  } else if( document.documentElement &&
      ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
    //IE 6+ in 'standards compliant mode'
    myWidth = document.documentElement.clientWidth;
    myHeight = document.documentElement.clientHeight;
  } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
    //IE 4 compatible
    myWidth = document.body.clientWidth;
    myHeight = document.body.clientHeight;
  }
return myWidth;
//  window.alert( 'Width = ' + myWidth );
//  window.alert( 'Height = ' + myHeight );
}
}
*/

