/*****************************************************************************
Default browsercheck - Leave this one
******************************************************************************/
function lib_bwcheck(){ //Browsercheck (needed)
	this.ver=navigator.appVersion; this.agent=navigator.userAgent
	this.dom=document.getElementById?1:0
	this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom)?1:0;
	this.ie6=(this.ver.indexOf("MSIE 6")>-1 && this.dom)?1:0;
	this.ie7=(this.ver.indexOf("MSIE 7")>-1 && this.dom)?1:0;
	this.ie4=(document.all && !this.dom)?1:0;
	this.ie=this.ie4||this.ie5||this.ie6||this.ie7
	this.mac=this.agent.indexOf("Mac")>-1
	this.opera5=this.agent.indexOf("Opera 5")>-1
	this.ns6=(this.dom && parseInt(this.ver) >= 5) ?1:0; 
	this.ns4=(document.layers && !this.dom)?1:0;
	this.bw=(this.ie7 || this.ie6 || this.ie5 || this.ie4 || this.ns4 || this.ns6 || this.opera5 || this.dom)
	return this
}
var bw=new lib_bwcheck() //Making browsercheck object

var mDebugging=2 

oCMenu=new makeCoolMenu("oCMenu") 
oCMenu.useframes=0 
oCMenu.frame="frmMain"
oCMenu.useNS4links=1 
oCMenu.checkselect=0
oCMenu.offlineUrl="file:///C|/FrontPage Webs/edwanew/"
oCMenu.onlineUrl="http://edwa.iinet.net.au/"


oCMenu.pagecheck=1
oCMenu.checkscroll=2
oCMenu.resizecheck=1 
oCMenu.wait=1000 

oCMenu.usebar=1 
oCMenu.barcolor="#FFFFFF" 
oCMenu.barwidth="100%"
oCMenu.barheight=65 
oCMenu.barx=0 
oCMenu.bary=0
oCMenu.barinheritborder=0 

oCMenu.rows=1
oCMenu.fromright=0
oCMenu.fromtop=0
oCMenu.pxbetween=0

avail="150+((toppage.x2-100)/8)" 
oCMenu.menuplacement=new Array(150,avail,avail+"*2",avail+"*3",avail+"*4",avail+"*5",avail+"*6",avail+"*7")

oCMenu.level[0]=new Array() 
oCMenu.level[0].width=60
oCMenu.level[0].height=60
oCMenu.level[0].bgcoloroff="#FFFFFF"
oCMenu.level[0].bgcoloron="FFFFFF" 
oCMenu.level[0].textcolor="0000FF"
oCMenu.level[0].hovercolor="#FFFFFF" 
oCMenu.level[0].style="font-family:arial,helvetica; font-size:12px; font-weight:bold"
oCMenu.level[0].border=0 
oCMenu.level[0].bordercolor="0000FF" 
oCMenu.level[0].offsetX=0 
oCMenu.level[0].offsetY=-1 
oCMenu.level[0].NS4font="arial,helvetica"
oCMenu.level[0].NS4fontSize="2"
oCMenu.level[0].NS4fontColor="white"
oCMenu.level[0].align="bottom" 

oCMenu.level[1]=new Array() 
oCMenu.level[1].width=110
oCMenu.level[1].height=22
oCMenu.level[1].bgcoloroff="#FFFFFF"
oCMenu.level[1].bgcoloron="#DF0707"
oCMenu.level[1].textcolor="#0000FF"
oCMenu.level[1].hovercolor="#FFFFFF"
oCMenu.level[1].style="padding:2px; font-family:arial,verdana; font-size:11px; font-weight:bold"
oCMenu.level[1].align="bottom" 
oCMenu.level[1].offsetX=0
oCMenu.level[1].offsetY=0
oCMenu.level[1].border=1 
oCMenu.level[1].bordercolor="#0000FF"
oCMenu.level[1].NS4font="arial,verdana"
oCMenu.level[1].NS4fontSize="2"
oCMenu.level[1].NS4fontColor="blue"

oCMenu.level[2]=new Array()
oCMenu.level[2].width=150
oCMenu.level[2].height=20
oCMenu.level[2].style="padding:2px; font-family: arial,verdana; font-size:10px; font-weight:bold"
oCMenu.level[2].align="bottom" 
oCMenu.level[2].offsetX=0
oCMenu.level[2].offsetY=0
oCMenu.level[2].border=1 
oCMenu.level[2].bordercolor="#0000FF"
oCMenu.level[2].NS4fontSize="1"
oCMenu.level[2].NS4fontColor="blue"
oCMenu.level[2].bgcoloroff="#FFFFFF"
oCMenu.level[2].bgcoloron="#DF0707"
oCMenu.level[2].textcolor="#0000FF"
oCMenu.level[2].hovercolor="#FFFFFF"

	
oCMenu.makeMenu('top0','','News','index.htm','',0,0,'images/homelogosmall.jpg')
	oCMenu.makeMenu('sub00','top0','About Us','index.htm')
	
	oCMenu.makeMenu('top5','','Locations','','',0,0,'images/brancheswebdingsmall.jpg')
	oCMenu.makeMenu('sub50','top5','Belmont','locations.htm')
		oCMenu.makeMenu('sub500','sub50','9 Hargreaves Street <BR> Tel 08 9479 1922 <br> Fax 08 9479 1574','','',0,50)
	oCMenu.makeMenu('sub51','top5','Balcatta','locations.htm#Balcatta')
		oCMenu.makeMenu('sub510','sub51','8 Abrams Street <br> Tel 08 9240 1699 <br> Fax 08 9240 1537','','',0,50)
	oCMenu.makeMenu('sub52','top5','Bentley','locations.htm#Bentley')
		oCMenu.makeMenu('sub520','sub52','Unit 1/55 John Street <br> Tel 08 9358 1922 <br> Fax 08 9358 1933','','',0,50)
	oCMenu.makeMenu('sub53','top5','Busselton','locations.htm#Busselton')
		oCMenu.makeMenu('sub530','sub53','Unit 2-3/56 Strelley Street <br> Tel 9754 1911 <br> Fax 9754 1189','','',0,50)
oCMenu.makeMenu('sub54','top5','Kenwick','locations.htm#Maddington')
		oCMenu.makeMenu('sub540','sub54','Unit 8/1780 Albany Highway <br>Kenwick <br> Tel 9459 1922 <br> Fax 9452 3361','','',0,50)
oCMenu.makeMenu('sub55','top5','Mandurah','locations.htm#Mandurah')
		oCMenu.makeMenu('sub550','sub55','Unit 1/63 Gordon Road  <br> Tel 9581 6258 <br> Fax 9581 6020','','',0,50)
oCMenu.makeMenu('sub56','top5','Margaret River','locations.htm#MargaretRiver')
		oCMenu.makeMenu('sub560','sub56','Unit 2 / 40 Station Road <br> Tel 9758 8011 <br> Fax 9758 7532','','',0,50)
oCMenu.makeMenu('sub57','top5','Midland','locations.htm#Midland')
		oCMenu.makeMenu('sub570','sub57','Unit 1/17 Farrall Road <br> Tel 9274 7555 <br> Fax 9274 7605','','',0,50)
oCMenu.makeMenu('sub58','top5','Naval Base','locations.htm#Naval Base')
		oCMenu.makeMenu('sub580','sub58','Unit 1/22 Burlington Street <br> Tel 9410 1922 <br> Fax 9410 1925','','',0,50)
oCMenu.makeMenu('sub59','top5','Booragoon','locations.htm#Booragoon')
		oCMenu.makeMenu('sub590','sub59','23 Shields Cresent <br> Tel 9317 8922 <br> Fax 9317 8933','','',0,50)
oCMenu.makeMenu('sub60','top5','Bunbury','locations.htm#Bunbury')
		oCMenu.makeMenu('sub600','sub60','Unit 2/3 111 Forest Ave <br> Tel 9791 6122 <br> Fax 9791 3122','','',0,50)

			
oCMenu.makeMenu('top1','','Products','','',0,0,'images/productssmall.jpg')
	oCMenu.makeMenu('sub10','top1','By Company','products.htm')
			
oCMenu.makeMenu('top2','','Specials','','',0,0,'images/dollarsignsmall.jpg')
	oCMenu.makeMenu('sub21','top2','The Gems','http://www.gemcell.com.au/section/prices/')
		oCMenu.makeMenu('sub22','top2','ED Specials','EDSpecials.htm')
		
oCMenu.makeMenu('top3','','Promotions','','',0,0,'images/promotionschillismall.jpg')
	oCMenu.makeMenu('sub30','top3','','promotions.htm')
	
oCMenu.makeMenu('top7','','Contact','','',0,0,'images/contactussmall.jpg')
		oCMenu.makeMenu('sub70','top7','Email Us')
	oCMenu.makeMenu('sub700','sub70','StateOffice','mailto:belmontaccounts@electricaldistributors.com.au')
			oCMenu.makeMenu('sub701','sub70','Balcatta','mailto:balcatta@electricaldistributors.com.au')
			oCMenu.makeMenu('sub702','sub70','Belmont','mailto:belmont@electricaldistributors.com.au')
			oCMenu.makeMenu('sub703','sub70','Bentley','mailto:bentley@electricaldistributors.com.au')
			oCMenu.makeMenu('sub704','sub70','Busselton','mailto:busselton@electricaldistributors.com.au')
			oCMenu.makeMenu('sub705','sub70','Maddington','mailto:maddington@electricaldistributors.com.au')
			oCMenu.makeMenu('sub706','sub70','Mandurah','mailto:mandurah@electricaldistributors.com.au')
			oCMenu.makeMenu('sub707','sub70','Margaret River','mailto:margaretriver@electricaldistributors.com.au')	
			oCMenu.makeMenu('sub708','sub70','Midland','mailto:midland@electricaldistributors.com.au')
			oCMenu.makeMenu('sub709','sub70','Naval Base','mailto:navalbase@electricaldistributors.com.au')
			oCMenu.makeMenu('sub710','sub70','Booragoon','mailto:booragoon@electricaldistributors.com.au')
			oCMenu.makeMenu('sub711','sub70','Bunbury','mailto:bunbury@electricaldistributors.com.au')
			oCMenu.makeMenu('sub712','sub70','Kelmscott','mailto:kelmscott@electricaldistributors.com.au')
				
oCMenu.makeMenu('sub71','top7','Feedback Form','feedback.htm')
oCMenu.makeMenu('sub72','top7','Join our mail list','maillist.htm')

oCMenu.makeMenu('top6','','Links','','',0,0,'images/linkssmall.jpg')
		oCMenu.makeMenu('sub61','top6','Suppliers','links.htm')
		oCMenu.makeMenu('sub62','top6','Partners','links.htm#Partners')
		oCMenu.makeMenu('sub63','top6','Resources','links.htm#Resources')
		oCMenu.makeMenu('sub64','top6','Virus Information','links.htm#Virus Information')
		
oCMenu.makeMenu('top8','','Staff','','',0,0,'images/Staffsmall.jpg')
	oCMenu.makeMenu('sub80','top8','Logon','staff/staff.htm')


oCMenu.makeStyle(); oCMenu.construct()		

function cm_checkScrolled(obj){
	if(bw.ns4 || bw.ns6) obj.scrolledY=obj.win.pageYOffset
	else obj.scrolledY=obj.win.document.body.scrollTop
	if(obj.scrolledY!=obj.lastScrolled){
		if(!obj.useframes){
			self.status=obj.scrolledY
			if(obj.scrolledY>119){
				for(i=0;i<obj.l[0].num;i++){var sobj=obj.l[0].o[i].oBorder; sobj.moveY(obj.scrolledY)}
				if(obj.usebar) obj.oBar.moveY(obj.scrolledY)
			}else{
				for(i=0;i<obj.l[0].num;i++){var sobj=obj.l[0].o[i].oBorder; sobj.moveY(obj.fromtop)}
				if(obj.usebar) obj.oBar.moveY(obj.fromtop)
			}

		}
		obj.lastScrolled=obj.scrolledY; page.y=obj.scrolledY; page.y2=page.y2orig+obj.scrolledY
		if(!obj.useframes || bw.ie){ clearTimeout(obj.tim); obj.isover=0; obj.hideSubs(1,0)}
	}
	if((bw.ns4 || bw.ns6) && !obj.useframes) setTimeout("cm_checkScrolled("+obj.name+")",200)
}