slideMenu = new createSlideMenu("slideMenu")


//Variables to set:
var menuy = 80;
slideMenu.menuy=menuy //The top placement of the menu.
slideMenu.menux=0 //The left placement of the menu
slideMenu.useImages = 0 //Are you using images or not?



if (sm_hl) {
//if (getNamedValue("sm_hl")) {
	slideMenu.pxspeed=1000 //The pixel speed of the animation
	slideMenu.timspeed=1 //The timer speed of the animation
}
else {
	slideMenu.pxspeed=16 //The pixel speed of the animation
	slideMenu.timspeed=25 //The timer speed of the animation
}
slideMenu.inset =0 //How much the selected elements should pop to the left
slideMenu.arrow=""
//slideMenu.arrow="clArrow"

//Needed dummy classes
slideMenu.bgClass =	"slideMenuBG"
slideMenu.txtClass = "slideMenuText"

//Level properties - ALL properties have to be spesified in level 0
//This works the same way as the CM4 script (if you have seen it)
slideMenu.level[0] = new slideMenu_makeLevel(
	left = 0,
	width = 164,
	height = 29,
	between = 0,
	className = "clSlideMenu0",
	classNameA = "clA0",
	regImage = "",
	roundImg = "",
	roundImg2 = "",
	subImg = "",
	subRound= "",
	betweenChild = 0
)
	
slideMenu.level[1] = new slideMenu_makeLevel(0,151,20,2,"clSlideMenu1","clA1","level1_regular.gif","level1_round2.gif","level1_round.gif","level1_sub.gif", "level1_sub_round.gif")


//Image preload --- leave this
for(var i=0;i<slideMenu.level;i++){
	var l = slideMenu.level[i]
	new preLoadBackgrounds(l.regImage,l.roundImg,l.roundImg2,l.subImg,l.subRound)
}


//------------------------------------------------------------------------
// MENU DEFINITIONS (begin)
//------------------------------------------------------------------------

	// 0
	slideMenu.makeMenu('top','Home','/index.html')

	// 1
	slideMenu.makeMenu('top','FORTUNE Lists')

	// 2
	slideMenu.makeMenu('sub','Overview','/ds/index.html')

	// 3
	slideMenu.makeMenu('sub','Fortune 500','/ds/f500.html')

	// 4
	slideMenu.makeMenu('sub','Fortune 1000','/ds/f1000.html')

	// 5
	slideMenu.makeMenu('sub','Fortune Global 500','/ds/global.html')

	// 6
	slideMenu.makeMenu('sub','100 Best Companies<br>to Work for','/ds/fbc.html')
	
	// 7
	slideMenu.makeMenu('sub','Datastore Collection','/ds/dc.html')
	
	// 8
//	slideMenu.makeMenu('sub','America\'s Most Admired<br>Companies','/reputation/index.html')

	// 9
//	slideMenu.makeMenu('top','Corporate Reputation')

	// 10
//	slideMenu.makeMenu('sub','Overview','/reputation/index.html')
	
	// 11
//	slideMenu.makeMenu('sub','Industry Reports','/reputation/cr_report.html')

	// 12
//	slideMenu.makeMenu('sub','Database','/reputation/cr_db.html')

	// 13
//	slideMenu.makeMenu('top','')

	// 14
//	slideMenu.makeMenu('sub','','#')

//------------------------------------------------------------------------
// MENU DEFINITIONS (end)
//------------------------------------------------------------------------

slideMenu.init()		

doHilite();

function positionLeftContent() {
	document.getElementById("leftContent").style.position = "absolute";
	document.getElementById("leftContent").style.top = menuHeight + menuy;
	slideMenu.pxspeed=16 //The pixel speed of the animation
	slideMenu.timspeed=25 //The timer speed of the animation
}
