/*** 
This is the menu creation code - place it right after you body tag
Feel free to add this to a stand-alone js file and link it to your page.
**/

var oM=new makeCM("oM")
oM.pxBetween=0
oM.fromLeft=0
oM.fromTop=130
oM.rows=0
oM.menuPlacement="center"

oM.onlineRoot=""
oM.offlineRoot=""
oM.resizeCheck=1
oM.wait=300
oM.fillImg="http://www.sunway.com.my/hotel/html/js/cm_fill.gif"
oM.zIndex=400  

//Background bar properties
oM.useBar=0
oM.barWidth="menu" 
oM.barHeight="menu"
oM.barX="menu"
oM.barY="menu"
oM.barClass="clBar" 
oM.barBorderX=0
oM.barBorderY=0
oM.barBorderClass=""


//Level properties
//Syntax for fast creation (advanced users only)
//oM.level[1]=new cm_makeLevel(width,height,regClass,overClass,borderX,borderY,borderClass,rows,align,offsetX,offsetY,arrow,arrowWidth,arrowHeight)

oM.level[0]=new cm_makeLevel()
oM.level[0].width=0
oM.level[0].height=16
oM.level[0].regClass="jsSubMenu" 
oM.level[0].overClass="jsSubMenuOver"  
oM.level[0].borderX=0
oM.level[0].borderY=0
oM.level[0].borderClass="" 
oM.level[0].offsetX=-270
oM.level[0].offsetY=0
oM.level[0].rows=0
oM.level[0].arrow=0
oM.level[0].arrowWidth=0
oM.level[0].arrowHeight=0
oM.level[0].align="right"

oM.level[1]=new cm_makeLevel()
oM.level[1].width=0
oM.level[1].height=0
oM.level[1].regClass="jsSubMenu" 
oM.level[1].overClass="jsSubMenuOver"
oM.level[1].borderX=1
oM.level[1].borderY=1
oM.level[1].align="right"
oM.level[1].offsetX=-15
oM.level[1].offsetY=3
oM.level[1].arrow="http://www.sunway.com.my/pyramid/js/menu_arrow.gif"
oM.level[1].arrowWidth=10
oM.level[1].arrowHeight=10
oM.level[1].borderClass="clB1" 




/******************************************
Menu item creation:
myCoolMenu.makeMenu(name, parent_name, text, link, target, width, height, regImage, overImage, regClass, overClass , align, rows, nolink, onclick, onmouseover, onmouseout) 
*************************************/
oM.makeMenu('corpInfo','','','','')
	oM.makeMenu('Background','corpInfo','Background','http://www.sunwaypyramid.com/corpInfo/background.asp','',140,20)
	oM.makeMenu('HowToGetHere','corpInfo','How to Get Here','http://www.sunwaypyramid.com/corpInfo/howGetHere.asp','',140,20)
	oM.makeMenu('MallServices','corpInfo','Mall Services','http://www.sunwaypyramid.com/corpInfo/mallServ.asp','',140,20)
	oM.makeMenu('PressRelease','corpInfo','Press Release','javascript:press(\"http://www.sunway.com.my/spyramid/press.asp\")','',140,20)
	oM.makeMenu('Tourist','corpInfo','Tourist Info','http://www.sunwaypyramid.com/corpInfo/tourInfo.asp','',140,20)

oM.makeMenu('emptySpace','','','','','',15,'','','','')

oM.makeMenu('contact','','','','','','','','','','')
	oM.makeMenu('ContactDetails','contact','Contact Details','http://www.sunwaypyramid.com/contact/contact.asp','',140,20)
	oM.makeMenu('Feedback','contact','Feedback','http://www.sunwaypyramid.com/contact/feedback.asp','',140,20)
	oM.makeMenu('spaceEnq','contact','Space Enquiries','http://www.sunwaypyramid.com/contact/spcEnquir.asp','',140,20)
		oM.makeMenu('retailSpc','spaceEnq','Retail Space Enquiries','http://www.sunwaypyramid.com/contact/retail_enquire.asp','',140,20)
		oM.makeMenu('promoSpc','spaceEnq','Promotion Space Enquiries','http://www.sunwaypyramid.com/contact/promoSpc.asp','',140,20)


oM.makeMenu('emptySpace2','','','','','',85,'','','','')

oM.makeMenu('highlights')	
	oM.makeMenu('whtNewOutlets','highlights','What\'s New @ Outlets','http://www.sunwaypyramid.com/highlights/whtNewOutlet/whtNewOutlet.asp','',140,20)
	oM.makeMenu('relocate','highlights','Relocation Of Outlets','http://www.sunwaypyramid.com/tenants/relocate.asp','',140,20)
	oM.makeMenu('MallEvents','highlights','Mall Events','http://www.sunwaypyramid.com/highlights/mallEvnt/mallEvnt.asp','',140,20)
	oM.makeMenu('NewOutlets','highlights','New Outlets','http://www.sunwaypyramid.com/highlights/newOutlets.asp','',140,20)
	oM.makeMenu('eTalkshop','highlights','eTalkshop','http://www.sunwaypyramid.com/eTalkshop/eTalk_JunJul08/eT_JunJul08.asp','',140,20)
	oM.makeMenu('eFashion','highlights','eFashion Booklet','http://www.sunwaypyramid.com/eFashion/eF_May08.asp','',140,20)
	

oM.makeMenu('emptySpace3','','','','','',15,'','','','')

oM.makeMenu('interactive','','','','','','','','','','')
	oM.makeMenu('eag','interactive','Email-A-Gift','http://www.sunway.com.my/emailagift','_blank',140,20)
	oM.makeMenu('eGreet','interactive','e-Greetings','http://www.sunway.com.my/portal/?ecards/index.asp','_blank',140,20)
	oM.makeMenu('games','interactive','Online Games','http://www.sunway.com.my/portal/?eadv/eadv.asp','_blank',140,20)
	oM.makeMenu('postAds','interactive','Post Ads','http://www.sunway.com.my/classified','_blank',140,20)



oM.construct()
