/***This is the menu creation code - place it right after your body tagFeel free to add this to a stand-alone js file and link it to your page.**///Extra code to find position:function findPos(){  if(bw.ns4){   //Netscape 4    x = document.layers.layerMenu.pageX    y = document.layers.layerMenu.pageY  }else{ //other browsers    x=0; y=0; var el,temp    el = bw.ie4?document.all["divMenu"]:document.getElementById("divMenu");    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]}pos = findPos()//Menu object creationoCMenu=new makeCM("oCMenu") //Making the menu object. Argument: menuname//Menu propertiesoCMenu.pxBetween=0//Using the cm_page object to place the menu ----oCMenu.fromLeft=(pos[0] - 1)oCMenu.fromTop=100//We also need to "re place" the menu on resize. So:oCMenu.onresize="pos = findPos(); oCMenu.fromLeft=pos[0]; oCMenu.fromTop=pos[1]"oCMenu.rows=1oCMenu.menuPlacement=0oCMenu.offlineRoot=""oCMenu.onlineRoot=""oCMenu.resizeCheck=0oCMenu.wait=500oCMenu.fillImg="http://www.wiu.edu/starnet/images/white.gif"oCMenu.zIndex=0//Background bar propertiesoCMenu.useBar=0oCMenu.barWidth="menu"oCMenu.barHeight="menu"oCMenu.barClass="clBar"oCMenu.barX="menu"oCMenu.barY="menu"oCMenu.barBorderX=0oCMenu.barBorderY=0oCMenu.barBorderClass=""//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=135oCMenu.level[0].height=25oCMenu.level[0].regClass="clLevel0"oCMenu.level[0].overClass="clLevel0over"oCMenu.level[0].borderX=1oCMenu.level[0].borderY=1oCMenu.level[0].borderClass="clLevel0border"oCMenu.level[0].offsetX=-1oCMenu.level[0].offsetY=0oCMenu.level[0].rows=0oCMenu.level[0].arrow=0oCMenu.level[0].arrowWidth=0oCMenu.level[0].arrowHeight=0oCMenu.level[0].align="bottom"//EXAMPLE SUB LEVEL[1] PROPERTIES - You have to specify the properties you want different from LEVEL[0] - If you want all items to look the same just remove thisoCMenu.level[1]=new cm_makeLevel() //Add this for each new level (adding one to the number)oCMenu.level[1].width=160oCMenu.level[1].height=23oCMenu.level[1].regClass="clLevel1"oCMenu.level[1].overClass="clLevel1over"oCMenu.level[1].borderX=1oCMenu.level[1].borderY=1oCMenu.level[1].align="right"oCMenu.level[1].offsetX=0oCMenu.level[1].offsetY=0oCMenu.level[1].borderClass="clLevel1border"//EXAMPLE SUB LEVEL[2] PROPERTIES - You have to spesify the properties you want different from LEVEL[1] OR LEVEL[0] - If you want all items to look the same just remove thisoCMenu.level[2]=new cm_makeLevel() //Add this for each new level (adding one to the number)oCMenu.level[2].width=150oCMenu.level[2].height=20oCMenu.level[2].offsetX=0oCMenu.level[2].offsetY=0oCMenu.level[2].regClass="clLevel2"oCMenu.level[2].overClass="clLevel2over"oCMenu.level[2].borderClass="clLevel2border"/******************************************Menu item creation:myCoolMenu.makeMenu(name, parent_name, text, link, target, width, height, regImage, overImage, regClass, overClass , align, rows, nolink, onclick, onmouseover, onmouseout)*************************************///Training (Education)oCMenu.makeMenu('top1','','','','','71','25','http://www.starnet.org/images/trainingoff.gif','http://www.starnet.org/images/trainingon.gif','','','','','','','window.status=\'Training\'','window.status=\'\'')	oCMenu.makeMenu('sub11','top1','&nbsp;&nbsp;Overview','http://www.starnet.org/training/index.php','','155','','','','','teover','','','','','','window.status=\'Training: Overview\'','window.status=\'\'')	oCMenu.makeMenu('sub12','top1','&nbsp;&nbsp;Workshops','http://www.starnet.org/training/workshops/index.php','','155','','','','','teover','','','','','window.status=\'Training: Workshops\'','window.status=\'\'')	oCMenu.makeMenu('sub13','top1','&nbsp;&nbsp;Other Organizations','http://www.starnet.org/training/others.php','','155','','','','','teover','','','','','window.status=\'Training: Other Organizations\'','window.status=\'\'')	oCMenu.makeMenu('sub14','top1','&nbsp;&nbsp;Apples Video Magazine','http://www.starnet.org/training/apples/index.php','','155','','','','','teover','','','','','window.status=\'Training: APPLES Video Magazine\'','window.status=\'\'')//ResourcesoCMenu.makeMenu('top2','','','','','85','25','http://www.starnet.org/images/resourcesoff.gif','http://www.starnet.org/images/resourceson.gif','','','','','','','window.status=\'Resources\'','window.status=\'\'')	oCMenu.makeMenu('sub21','top2','&nbsp;&nbsp;Overview','http://www.starnet.org/resources/index.php','','185','','','','','rlover','','','','','window.status=\'Resources: Overview\'','window.status=\'\'')	oCMenu.makeMenu('sub22','top2','&nbsp;&nbsp;Free Online Library Loan','http://www.starnet.org/resources/cataloguecontent.php','','185','','','','','rlover','','','','','window.status=\'Resources: Free Online Loan Catalogue\'','window.status=\'\'')	oCMenu.makeMenu('sub23','top2','&nbsp;&nbsp;Loan Policy','http://www.starnet.org/resources/policy.php','','185','','','','','rlover','','','','','window.status=\'Resources: Loan Policy\'','window.status=\'\'')	oCMenu.makeMenu('sub24','top2','&nbsp;&nbsp;Apples Video Magazine Loan','http://www.starnet.org/resources/apples.php','','185','','','','','rlover','','','','','window.status=\'Resources: APPLES Video Magazine Loan\'','window.status=\'\'')	oCMenu.makeMenu('sub25','top2','&nbsp;&nbsp;Apples Video Magazine Purchase','http://www.starnet.org/resources/purchase.php','','185','','','','','rlover','','','','','window.status=\'Resources: APPLES Video Magazine Purchase\'','window.status=\'\'')	oCMenu.makeMenu('sub26','top2','&nbsp;&nbsp;Center for Best Practices','http://www.starnet.org/resources/center.php','','185','','','','','rlover','','','','','window.status=\'Resources: Center for Best Practices\'','window.status=\'\'')		oCMenu.makeMenu('sub27','top2','&nbsp;&nbsp;Other Resources and Links','http://www.starnet.org/resources/otherrl.php','','185','','','','','rlover','','','','','window.status=\'Resources: Other Resources and Links\'','window.status=\'\'')	//Family Focus	oCMenu.makeMenu('top3','','','','','100','25','http://www.starnet.org/images/familyoff.gif','http://www.starnet.org/images/familyon.gif','','','','','','','window.status=\'Family Focus\'','window.status=\'\'')	oCMenu.makeMenu('sub30','top3','&nbsp;&nbsp;Family Support','http://www.starnet.org/family/index.php','','180','','','','','familyover','','','','','window.status=\'Family Focus: Family Support\'','window.status=\'\'')	oCMenu.makeMenu('sub31','top3','&nbsp;&nbsp;Family News','http://www.starnet.org/family/familynews.php','','180','','','','','familyover','','','','','window.status=\'Family Focus: Family News\'','window.status=\'\'')	oCMenu.makeMenu('sub32','top3','&nbsp;&nbsp;Family Fellowships','http://www.starnet.org/family/fellowships.php','','180','','','','','familyover','','','','','window.status=\'Family Focus: Family Fellowships\'','window.status=\'\'')	oCMenu.makeMenu('sub33','top3','&nbsp;&nbsp;Support Groups','http://www.starnet.org/family/support.php','','180','','','','','familyover','','','','','window.status=\'Family Focus: Support Groups\'','window.status=\'\'')	oCMenu.makeMenu('sub34','top3','&nbsp;&nbsp;Other Family Resources','http://www.starnet.org/family/others.php','','180','','','','','familyover','','','','','window.status=\'Family Focus: Other Family Resources\'','window.status=\'\'')	oCMenu.makeMenu('sub35','top3','&nbsp;&nbsp;Family Resources Specialists','http://www.starnet.org/family/resources.php','','180','','','','','familyover','','','','','window.status=\'Family Focus: Family Resource Specialists\'','window.status=\'\'')	oCMenu.makeMenu('sub36','top3','&nbsp;&nbsp;Resource Library','http://www.starnet.org/resources/cataloguecontent.php','','180','','','','','familyover','','','','','window.status=\'Family Focus: Resource Library\'','window.status=\'\'')//FinancialoCMenu.makeMenu('top4','','','','','77','25','http://www.starnet.org/images/financialoff.gif','http://www.starnet.org/images/financialon.gif','','','','','','','window.status=\'Financial\'','window.status=\'\'')	oCMenu.makeMenu('sub41','top4','&nbsp;&nbsp;Overview','http://www.starnet.org/financial/index.php','','200','','','','','moneyover','','','','','window.status=\'Financial: Overview\'','window.status=\'\'')	oCMenu.makeMenu('sub42','top4','&nbsp;&nbsp;Fellowships','http://www.starnet.org/financial/fellowships.php','','200','','','','','moneyover','','','','','window.status=\'Financial: Fellowships\'','window.status=\'\'')//	oCMenu.makeMenu('sub45','top4','&nbsp;&nbsp;Special Classroom Makeover Project','http://www.starnet.org/financial/special.php','','200','','','','','moneyover','','','','','window.status=\'Financial: Special Classroom Makeover Project\'','window.status=\'\'')//News	oCMenu.makeMenu('top5','','','','','56','25','http://www.starnet.org/images/newsoff.gif','http://www.starnet.org/images/newson.gif','','','','','','','window.status=\'News\'','window.status=\'\'')	oCMenu.makeMenu('sub51','top5','&nbsp;&nbsp;What\'s New','http://www.starnet.org/news/index.php','','150','','','','','newsover','','','','','window.status=\'News: Whats New?\'','window.status=\'\'')	oCMenu.makeMenu('sub52','top5','&nbsp;&nbsp;Photo Gallery','http://www.starnet.org/news/photos.php','','150','','','','','newsover','','','','','window.status=\'News: Photo Gallery\'','window.status=\'\'')	oCMenu.makeMenu('sub53','top5','&nbsp;&nbsp;Community Focus Group','http://www.starnet.org/news/groups.php','','150','','','','','newsover','','','','','window.status=\'News: Focus Group\'','window.status=\'\'') 	oCMenu.makeMenu('sub54','top5','&nbsp;&nbsp;Book Reviews','http://www.starnet.org/news/bookreviews.php','','150','','','','','newsover','','','','','window.status=\'News: Book Reviews\'','window.status=\'\'')	//AboutoCMenu.makeMenu('top6','','','','','77','25','http://www.starnet.org/images/aboutoff.gif','http://www.starnet.org/images/abouton.gif','','','','','','','window.status=\'About Us\'','window.status=\'\'')	oCMenu.makeMenu('sub61','top6','&nbsp;&nbsp;What is STARnet?','http://www.starnet.org/about/index.php','','120','','','','','aboutover','','','','','window.status=\'About Us: What is STARnet?\'','window.status=\'\'')	oCMenu.makeMenu('sub62','top6','&nbsp;&nbsp;STARnet Services','http://www.starnet.org/about/services.php','','120','','','','','aboutover','','','','','window.status=\'About Us: STARnet Services\'','window.status=\'\'')	oCMenu.makeMenu('sub63','top6','&nbsp;&nbsp;Statewide STARnet','http://www.starnet.org/about/statewide.php','','120','','','','','aboutover','','','','','window.status=\'About Us: Statewide STARnet\'','window.status=\'\'')	oCMenu.makeMenu('sub64','top6','&nbsp;&nbsp;STARnet Staff','http://www.starnet.org/about/staff.php','','120','','','','','aboutover','','','','','window.status=\'About Us: STARnet Staff\'','window.status=\'\'')	oCMenu.makeMenu('sub65','top6','&nbsp;&nbsp;Contact Us','http://www.starnet.org/about/contact.php','','120','','','','','aboutover','','','','','window.status=\'About Us: Contact Us\'','window.status=\'\'')	oCMenu.makeMenu('sub66','top6','&nbsp;&nbsp;Mailing List','http://www.starnet.org/about/mailinglist.php','','120','','','','','aboutover','','','','','window.status=\'About Us: Mailing List\'','window.status=\'\'')	//ProductsoCMenu.makeMenu('top7','','','','','71','25','http://www.starnet.org/images/productsoff.gif','http://www.starnet.org/images/productson.gif','','','','','','','window.status=\'Products\'','window.status=\'\'')	oCMenu.makeMenu('sub71','top7','&nbsp;&nbsp;Purchase Instructions','http://www.starnet.org/products/index.php','','150','','','','','productsover','','','','','window.status=\'Products: Purchase Descriptions\'','window.status=\'\'')	oCMenu.makeMenu('sub72','top7','&nbsp;&nbsp;Product Descriptions','http://www.starnet.org/products/product.php','','150','','','','','productsover','','','','','window.status=\'Products: Product Descriptions\'','window.status=\'\'')	oCMenu.makeMenu('sub73','top7','&nbsp;&nbsp;Order Form','http://www.starnet.org/products/order.php','','150','','','','','productsover','','','','','window.status=\'Products: Order Form\'','window.status=\'\'')	//Apples VideosoCMenu.makeMenu('top8','','','','','100','25','http://www.starnet.org/images/applesoff.gif','http://www.starnet.org/images/appleson.gif','','','','','','','window.status=\'Apples\'','window.status=\'\'')	oCMenu.makeMenu('sub81','top8','&nbsp;&nbsp;Apples Video Magazine Loan','http://www.starnet.org/resources/apples.php','','200','','','','','applesover','','','','','window.status=\'Apples: Loan\'','window.status=\'\'')	oCMenu.makeMenu('sub82','top8','&nbsp;&nbsp;Apples Video Magazine Purchase','http://www.starnet.org/products/product.php','','200','','','','','applesover','','','','','window.status=\'Apples: Purchase\'','window.status=\'\'')	oCMenu.makeMenu('sub83','top8','&nbsp;&nbsp;Apples Video Magazine Training','http://www.starnet.org/training/apples/index.php','','200','','','','','applesover','','','','','window.status=\'Apples: Training\'','window.status=\'\'')		//Leave this line - it constructs the menuoCMenu.construct()