/*** 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. **/ //Menu object creation oCMenu=new makeCM("oCMenu") //Making the menu object. Argument: menuname oCMenu.frames = 0 //Menu properties oCMenu.pxBetween=0 oCMenu.fromLeft=0 oCMenu.fromTop=194 oCMenu.rows=0 oCMenu.menuPlacement=0 oCMenu.offlineRoot="" oCMenu.onlineRoot="http://www.resortbrokers.com/" oCMenu.resizeCheck=1 oCMenu.wait=1000 oCMenu.fillImg="cm_fill.gif" oCMenu.zIndex=100 //Background bar properties oCMenu.useBar=0 oCMenu.barWidth="100%" oCMenu.barHeight="menu" oCMenu.barClass="clBar" oCMenu.barX=0 oCMenu.barY=0 oCMenu.barBorderX=0 oCMenu.barBorderY=0 oCMenu.barBorderClass="" //Background bar properties oCMenu.useBar=0 //Level properties - ALL properties have to be spesified in level 0 oCMenu.level[0]=new cm_makeLevel() //Add this for each new level oCMenu.level[0].width=133 oCMenu.level[0].height=23 oCMenu.level[0].regClass="clLevel0" oCMenu.level[0].overClass="clLevel0over" oCMenu.level[0].borderX=0 oCMenu.level[0].borderY=0 oCMenu.level[0].borderClass="clLevel0border" oCMenu.level[0].offsetX=1 oCMenu.level[0].offsetY=0 oCMenu.level[0].rows=0 oCMenu.level[0].align="bottom" oCMenu.level[1]=new cm_makeLevel() //Add this for each new level (adding one to the number) oCMenu.level[1].width=180 oCMenu.level[1].height=23 oCMenu.level[1].regClass="clLevel1" oCMenu.level[1].overClass="clLevel1over" oCMenu.level[1].borderX=0 oCMenu.level[1].borderY=1 oCMenu.level[1].align="right" oCMenu.level[1].offsetX=0 oCMenu.level[1].offsetY=0 oCMenu.level[1].arrow="images/controls/menu_arrow.gif" oCMenu.level[1].arrowWidth=7 oCMenu.level[1].arrowHeight=7 oCMenu.level[1].borderClass="clLevel1border" /****************************************** Menu item creation: myCoolMenu.makeMenu(name, parent_name, text, link, target, width, height, regImage, overImage, regClass, overClass , align, rows, nolink, onclick, onmouseover, onmouseout) *************************************/ oCMenu.makeMenu('top0','','  Home  ','Home','','','','','','','','') oCMenu.makeMenu('top1','','  Search','','','','','','','','') oCMenu.makeMenu('sub14','top1','  Best Buys','') oCMenu.makeMenu('sub140','sub14',' Residential','properties/?searchType=residential&limit=10&featured=1') oCMenu.makeMenu('sub141','sub14',' Land','properties/?searchType=land&limit=10&featured=1') oCMenu.makeMenu('sub142','sub14',' Commercial','properties/?searchType=commercial&limit=10&featured=1') oCMenu.makeMenu('sub143','sub14',' Partial','properties/?searchType=partial&limit=10&featured=1') oCMenu.makeMenu('sub12','top1','  Entire MLS','') oCMenu.makeMenu('sub121','sub12','  Residential','Search_the_MLS') oCMenu.makeMenu('sub122','sub12','  Land','Search_the_MLS_Land') oCMenu.makeMenu('sub123','sub12','  Commercial','Search_the_MLS_Commercial') oCMenu.makeMenu('sub124','sub12','  Partial Ownership','Search_the_MLS_Part') oCMenu.makeMenu('sub19','top1','  Special Offerings','properties/specials') oCMenu.makeMenu('sub1810','top1','  Special Offerings','Special_Offerings','','','','','','','','','','','') oCMenu.makeMenu('sub172','top1','  Map','Map','','','','','','','','','','','') oCMenu.makeMenu('top2','','  Community','','','','','','','','') oCMenu.makeMenu('sub2144','top2','  Breckenridge','Breckenridge','','','','','','','','','','','') oCMenu.makeMenu('sub2128','top2','  Frisco','Frisco','','','','','','','','','','','') oCMenu.makeMenu('sub2127','top2','  Keystone','Keystone','','','','','','','','','','','') oCMenu.makeMenu('sub2131','top2','  Copper Mountain','Copper_Mountain','','','','','','','','','','','') oCMenu.makeMenu('sub2129','top2','  Dillon','Dillon','','','','','','','','','','','') oCMenu.makeMenu('sub2130','top2','  Silverthorne','Silverthonre','','','','','','','','','','','') oCMenu.makeMenu('sub2801','top2','  Park County','Park_County','','','','','','','','','','','') oCMenu.makeMenu('top3','','  Market','','','','','','','','') oCMenu.makeMenu('sub3811','top3','  Sold Data','Sold_Data','','','','','','','','','','','') oCMenu.makeMenu('sub3797','top3','  Marketing','Marketing','','','','','','','','','','','') oCMenu.makeMenu('sub3796','top3','  1031 Tax Deferred Exchanges','1031_Tax_Deferred_Exchanges','','','','','','','','','','','') oCMenu.makeMenu('sub3798','top3','  Sellers','Sellers','','','','','','','','','','','') oCMenu.makeMenu('sub3800','top3','  Buyers','Buyers','','','','','','','','','','','') oCMenu.makeMenu('sub3803','top3','  Foreclosures','Foreclosures','','','','','','','','','','','') oCMenu.makeMenu('top4','','  Tools','','','','','','','','') oCMenu.makeMenu('sub421','top4','  Demographics','http://quickfacts.census.gov/qfd/states/08/08117.html') oCMenu.makeMenu('sub422','top4','  Schools','http://www.schoolmatters.com/schools.aspx/q/page=dp/did=7275') oCMenu.makeMenu('top5','','  About','','','','','','','','') oCMenu.makeMenu('sub5802','top5','  Our Brokers','Our_Brokers','','','','','','','','','','','') oCMenu.makeMenu('sub5322','top5','  Site Map','Site_Map','','','','','','','','','','','') oCMenu.makeMenu('sub5804','top5','  Contact Us','Contact_Us','','','','','','','','','','','') oCMenu.makeMenu('sub5809','top5','  Working Here','Working_Here','','','','','','','','','','','') oCMenu.makeMenu('sub5799','top5','  Vacation Rentals','Vacation_Rentals','','','','','','','','','','','') oCMenu.makeMenu('sub562','top5','  Local News','News','','','','','','','','','','','') // JavaScript Document oCMenu.makeMenu('top7','','My Home  ','','','112','','','','','','') oCMenu.makeMenu('sub71','top7',' About My Home','About_My_Home','','','','','','','','') oCMenu.makeMenu('sub72','top7',' Join','Join','','','','','','','','') oCMenu.makeMenu('sub73','top7',' Login','login','','','','','','','','') // JavaScript Document //Leave this line - it constructs the menu oCMenu.construct() //Extra code to find position: function findPos(num){ if(bw.ie3){ }else{ //alert(num) if(bw.ns4){ //Netscape 4 x = document.layers["layerMenu"+num].pageX y = document.layers["layerMenu"+num].pageY }else{ //other browsers x=0; y=0; var el,temp el = bw.ie4?document.all["Menu"+num]:document.getElementById("Menu"+num); el = bw.ie5?document.all["Menu"+num]:document.getElementById("Menu"+num); el = bw.ie6?document.all["Menu"+num]:document.getElementById("Menu"+num); el = bw.ie7?document.all["Menu"+num]:document.getElementById("Menu"+num); if(!bw.ie){ if(el.offsetParent){ temp = el while(temp.offsetParent){ //Looping parent elements to get the offset of them as well temp=temp.offsetParent; x+=temp.offsetLeft y+=temp.offsetTop; } } } x+=el.offsetLeft y+=el.offsetTop } } //Returning the x and y as an array return [x,y] } function placeElements(){ //Changing the position of ALL top items: pos = findPos(0) oCMenu.m['top0'].b.moveIt(pos[0],pos[1]) pos = findPos(1) oCMenu.m["top1"].b.moveIt(pos[0],pos[1]) pos = findPos(2) oCMenu.m["top2"].b.moveIt(pos[0],pos[1]) pos = findPos(3) oCMenu.m["top3"].b.moveIt(pos[0],pos[1]) pos = findPos(4) oCMenu.m["top4"].b.moveIt(pos[0],pos[1]) pos = findPos(5) oCMenu.m["top5"].b.moveIt(pos[0],pos[1]) // JavaScript Document pos = findPos(7) oCMenu.m["top7"].b.moveIt(pos[0],pos[1]) // JavaScript Document //Setting the fromtop value oCMenu.fromTop = pos[1] } placeElements() //Setting it to re place the elements after resize - the resize is not perfect though.. oCMenu.onafterresize="placeElements()"