/********************************
Copyright (c) 2001 Thomas Brattli (www.dhtmlcentral.com)
eXperience DHTML coolMenus Version 3.01
*******************************/
/*******************************
Default browsercheck
*******************************/
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.ie=this.ie5||this.ie6
	this.mac=this.agent.indexOf("Mac")>-1
	this.opera=this.agent.indexOf("Opera")>-1
	this.ff=this.agent.indexOf("Gecko")>-1?1:0; 
	this.bw=(this.ie6 || this.ie5 || this.ff || this.opera || this.dom)
	return this
}
var bw=new lib_bwcheck()

/*******************************
Pageobject
********************************/
function makePageCoords(win,fr){
	if(!win) win=window
	this.x=0;
	this.x2=win.document.body.offsetWidth;
	this.y=0;
	this.y2=win.document.body.offsetHeight;
	this.y2orig=this.y2; this.x50=this.x2/2; this.y50=this.y2/2;
	this.x10=(this.x2*10)/100-5;this.y10=(this.y2*10)/100-5
	this.x15=(this.x2*15)/100-5;this.y15=(this.y2*15)/100-5; 
	return this;
}
/*******************************
Debugging function
********************************/
function debug(txt,ev){if(mDebugging==2) self.status=txt; else alert(txt); if(ev) eval(ev); return false}

/***********************
Checking if the values are % or not.
********************************/
function cl_checkp(num,w,check,istop,ds){
	if(num){
		var p=istop?toppage:page
		if(num.toString().indexOf("%")!=-1){
			if(w || (check && this.rows)) num=(p.x2*parseFloat(num)/100)
			else num=(p.y2*parseFloat(num)/100)
		}else num=eval(num)
	}else num=0; return num
}
/******************************
Making DIV objects + DIV objects code
******************************/
function cl_makeObj(obj,name,level,win,nest,o){
	if(o) this.evnt=o
	else this.evnt=win.document.getElementById(obj)
	if(!this.evnt) return debug('There seems to be an error with this layer:\nFrame: '+win+'\nLayer: '+nest + "." + obj)
	this.css=this.evnt.style
	this.ref=win.document
	this.hideIt=cl_hideIt; this.showIt=cl_showIt; this.writeIt=cl_writeIt; this.setactive=cl_setactive;
	this.moveIt=cl_moveIt; this.clipTo=cl_clipTo; if(name) this.parent=name; this.moveY=cl_moveY;
	this.l=level; this.addEvents=cl_addEvents; return this
}
function cl_writeIt(text){this.evnt.innerHTML=text}
function cl_moveY(y){this.y=y; this.css.top=y}
function cl_moveIt(x,y){this.x=x; this.y=y; this.css.left=this.x;this.css.top=this.y}
function cl_showIt(){this.css.visibility="visible"; this.vis=1}
function cl_hideIt(){this.css.visibility="hidden"; this.vis=0}

function cl_setactive(on,name,frmmouse){
	if(!name) name=this.name
	var tobj=this.parent.m[name]
	//Switch text and backgroundcolor
		if(on){var color=tobj.c2; var fcolor=tobj.c4; var re=tobj.c3}else{var color=tobj.c1; var fcolor=tobj.c3; var re=tobj.c4}
		if(color){
			this.css.backgroundColor=color
			this.css.bgColor=color
		}
		if(fcolor){
			if(this.evnt.childNodes[0]) this.evnt.style.color=fcolor
		}else if(fcolor&&frmmouse){
			t=this.parent.m[name].text
			t=t.replace(re,fcolor)
			this.writeIt(t)
		}
}
function cl_clipTo(t,r,b,l,w){
	this.css.clip="rect("+t+","+r+","+b+","+l+")";
	if(w){this.css.width=r; this.css.height=b}
	this.width=r; this.height=b
}
function cl_addEvents(n,name){
	this.evnt.onmouseover=new Function(name+".mover('"+n+"')"); this.evnt.onmouseout=new Function(name+".mmout('"+n+"')")
	this.evnt.onclick=new Function(name+".go('"+n+"')")
}
/******************************
Making menu object
******************************/
function cl_makeMenu(name,parent,text,link,target,width,height,img1,img2,bgcoloroff,bgcoloron,textcolor,hovercolor,onclick,onmouseover,onmouseout){
	this.m[name]=new Object();
	var obj=this.m[name];
	obj.name=name;
	obj.subs=new Array();
	obj.parent=parent;
	obj.lnk=(link==0||link=='')?"":link;
	obj.target=target
	if(parent!="" && parent){
		this.m[parent].subs[this.m[parent].subs.length]=name; l=this.m[parent].l+1
	} else l=0
	obj.l=l; prop1=l<this.level.length?this.level[l]:this.level[this.level.length-1]; prop2=this.level[0]
	if(this.l.length<=l){
		this.l[l]=new Object(); this.l[l].num=0; if(l==0) this.l[l].names=new Array()
		this.l[l].border=prop1["border"]||prop2["border"]; this.l[l].maxnum=0
		this.l[l].bordercolor=prop1["bordercolor"]||prop2["bordercolor"];
		s=prop1["align"]||prop2["align"]; if(s=="left") s=1; else if(s=="right") s=0; 
		else if(s=="top") s=3; else if(s=="bottom") s=2; this.l[l].align=s
		this.l[l].height=prop1["height"]||prop2["height"]; this.l[l].width=prop1["width"]||prop2["width"];
		this.l[l].style=prop1["style"]||prop2["style"];
		this.l[l].offsetX=String(prop1["offsetX"])!="undefined"?prop1["offsetX"]:prop2["offsetX"]
		this.l[l].offsetY=String(prop1["offsetY"])!="undefined"?prop1["offsetY"]:prop2["offsetY"]
		this.l[l].tc=textcolor||prop1.textcolor||prop2.textcolor;
		this.l[l].background=String(prop1["background"])!="undefined"?"background: URL("+prop1["background"]+");":"";
	}
	if(l==0) this.l[l].names[this.l[l].names.length]=name
	if(parent!="" && parent){obj.num=this.m[parent].subs.length-1}else obj.num=this.l[l].num
	this.l[l].num++; this.aobj[l]=-1; prop=l<this.level.length?this.level[l]:this.level[this.level.length-1]
	obj.width=this.checkp(width?width:prop1.width?prop1.width:prop2.width,1,0,1);
	obj.height=this.checkp(height?height:prop1.height?prop1.height:prop2.height,0,0,1);
	if(parent!="" && parent){
	 if(this.m[parent].subs.length>this.l[l].maxnum) this.l[l].maxnum=this.m[parent].subs.length 
		if(this.m[parent].totheight==0) this.m[parent].totheight=this.l[l].border
		this.m[parent].totheight+=obj.height+ this.l[l].border
		if(this.m[parent].maxwidth<obj.width) this.m[parent].maxwidth=obj.width+this.l[l].border*2
	}else{
		this.l[l].maxnum=this.l[l].names.length; this.totwidth+=obj.width; this.totheight+=obj.height
		this.maxwidth=this.maxwidth>obj.width?this.maxwidth:obj.width; this.maxheight=this.maxheight>obj.height?this.maxwidth:obj.height
	}
	obj.text=text;
	obj.c1=bgcoloroff||prop1.bgcoloroff||prop2.bgcoloroff; obj.c2=bgcoloron||prop1.bgcoloron||prop2.bgcoloron;
	obj.c3=textcolor||this.l[l].tc; obj.c4=hovercolor||prop1.hovercolor||prop2.hovercolor;
	obj.mclick=onclick||""; obj.mover=onmouseover||""; obj.mout=onmouseout||"";
	obj.totheight=0; obj.maxwidth=0; obj.subx=-1; obj.suby=-1;
	obj.img1=img1||""
}
/******************************
Onmouseout
******************************/
function cl_mout(name){
	clearTimeout(this.tim);
	this.isover=0; if(this.m[name].mout!="") eval(this.m[name].mout); 
	this.tim=setTimeout(this.name+".hideSubs(1,0,0,0,1)",this.wait)
}
/******************************
Onmouseover
******************************/
function cl_mover(name){
	var l=this.m[name].l;
//	if (l==0&&!this.show) return;
	clearTimeout(this.tim);
	this.isover=1;
	if(this.m[name].mover!="") eval(this.m[name].mover)
	var num=this.m[name].num; var obj=this.l[l].o[num]
	if(this.aobj[l]!=-1&&this.aobj[l]!=obj){if(this.aobj[l].l>=l) this.aobj[l].setactive(0,0,1)}
	if(this.lastl==name&&l!=0) return; 
	if(l==0&&this.loaded){
		if(this.aobj[0].name==name){
			this.hideSubs(2,1); if(this.aobj[1]!=-1) this.aobj[1].setactive(0,0,1); this.aobj[1]=-1; this.lastl=-1; return
		}
	}
	this.aobj[l]=obj; this.aobj[l].name=name; this.aobj[l].setactive(1,0,1); this.lastl=name; 
	if(!this.loaded) return
	this.showSubs(name,l,num)
}
/******************************
Hiding subelements
******************************/
function cl_hideSubs(l,system,cl,sys2,hc){
	if(this.isover && !system) return
	if(l==1 && this.aobj[0]!=-1&&!sys2){this.aobj[0].setactive(0,0,1);this.aobj[0]=-1}
	if(!this.loaded) return; if(cl==1) return
//	if (l==1) this.show=0;
	for(i=l;i<this.l.length;i++){
		if(this.l[i].oBorder.vis==0) break;
		this.l[i].oBorder.hideIt(); this.aobj[i]=-1
	}
	if(hc&&this.hcode){ eval(this.hcode); this.hcode=""}
}
/******************************
Get x/y coords. Only the first time :)
******************************/
function cl_getCoords(name,l,num,topalign,align,ln,border,cn,lev1b){
	if(cn==5){ this.m[name].subx=0; this.m[name].suby=0; return }//Just in case infinitive loops
	if(l==1) var pobj=this.l[l-1].o[num].oBorder
	else var pobj=this.l[l-1].oBorder
	var x=pobj.x; var y=pobj.y;
	if(l!=1){y+=this.l[l-1].o[num].y}
	pborder=this.l[l-1].border; 
	lx=x+pobj.width; rx=x-this.m[name].maxwidth- (this.l[l-1].offsetX*2)
	if(align==0){if(l==1){y+=border} if(l==1&&this.useframes) x=0; else x=lx
	}else if(align==1){x=rx; if(l==1){if(this.useframes) x=page.x2 - this.m[name].maxwidth; y+=border}}
	if((align==2||topalign==2)&&lev1b!=3){
		if(l!=1 && (align!=1&&align!=0)){if(topalign==1) x=rx; else x=lx}
		if(l==1) y+=this.m[name].height+border+pborder;
	}
	if((align==3||topalign==3)&&lev1b!=2){
		if(l!=1&&align!=1&&align!=0){if(topalign==1) x=rx; else x=lx}
		y-=this.m[name].totheight - this.l[l].offsetY*2; 		
		if(l!=1||lev1b==3) y+=this.m[name].height
	}
	this.m[name].scrollY=this.lastScrolled;
	this.m[name].subx=x+this.l[l-1].offsetX; this.m[name].suby=y+this.l[l-1].offsetY
	if(this.pagecheck) this.checkPage(name,l,num,topalign,align,ln,border,cn)
}
/******************************
Checking page coords
******************************/
function cl_checkPage(name,l,num,topalign,align,ln,border,cn){
	cn++; 
	if(this.m[name].subx+this.m[name].maxwidth>page.x2){
		if(align!=1){
			if(align==3&&topalign!=0) topalign=3;
			align=1; this.getCoords(name,l,num,topalign,align,ln,border,cn)
		}
	}else if(this.m[name].subx<page.x){
		if(align!=0){if(align==3) topalign=3; align=0; this.getCoords(name,l,num,topalign,align,ln,border,cn)}
	}else if((this.m[name].suby+this.m[name].totheight)>page.y2){
		if(l==1){topalign=3; this.getCoords(name,l,num,topalign,align,ln,border,cn,3)}
		else if(align!=3){ align=3; this.getCoords(name,l,num,topalign,align,ln,border,cn)}
	}else if(this.m[name].suby<page.y){
		if(l==1){topalign=2; this.getCoords(name,l,num,topalign,align,ln,border,cn,2)}
		else if(align!=2){align=2; this.getCoords(name,l,num,topalign,align,ln,border,cn)}
	}
}
/******************************
Showing subelements
******************************/
function cl_showSubs(name,l,num){
	l+=1; if(l>=this.l.length) return; ln=this.m[name].subs.length
	if(ln==0){this.hideSubs(l,1,0,1); return}
	else this.hideSubs(l+1,1); var border=this.l[l].border; this.aobj[l]=-1
	if((this.m[name].subx==-1 || this.m[name].suby==-1) || this.m[name].scrollY!=this.lastScrolled || this.isresized){
		var topalign=this.l[0].align; var align=this.l[l-1].align; 
		this.getCoords(name,l,num,topalign,align,ln,border,0)
	}var x=this.m[name].subx; var y=this.m[name].suby;
	var bobj=this.l[l].oBorder; bobj.hideIt();
	bobj.clipTo(0,this.m[name].maxwidth,this.m[name].totheight,0,1)
	bobj.moveIt(x,y); var yy=border
	for(i=0;i<this.l[l].maxnum;i++){
		var obj=this.l[l].o[i]
		if(i<ln){
			var n=this.m[name].subs[i]; obj.aname=n; obj.writeIt(this.m[n].text)
			obj.addEvents(n,this.name); var w=this.m[n].width; var h=this.m[n].height
			if(obj.y!=yy) obj.moveY(yy); yy+=h+border; if(!obj.img) obj.setactive(0,n,1); 
			if(obj.width!=w||obj.height!=h) obj.clipTo(0,w,h,0,1); obj.css.visibility="inherit"
		}else obj.hideIt()
	}bobj.showIt()
	if(this.checkselect){ //CHECKING FOR SELECT BOXES
		for(i=0;i<this.sel.length;i++){
			selx=0; sely=0
			if(this.sel[i].offsetParent){
				selx+=this.sel[i].offsetParent.offsetLeft; sely+=this.sel[i].offsetParent.offsetTop
				if(this.sel[i].offsetParent.offsetParent){
					selx+=this.sel[i].offsetParent.offsetParent.offsetLeft; sely+=this.sel[i].offsetParent.offsetParent.offsetTop
					if(this.sel[i].offsetParent.offsetParent.offsetParent){
						selx+=this.sel[i].offsetParent.offsetParent.offsetParent.offsetLeft; sely+=this.sel[i].offsetParent.offsetParent.offsetParent.offsetTop
					}	
				}
			}
			selx+=this.sel[i].offsetLeft; sely+=this.sel[i].offsetTop
			selw=this.sel[i].offsetWidth; selh=this.sel[i].offsetHeight
			if(((selx+selw)>this.m[name].subx && selx<(this.m[name].subx+this.m[name].maxwidth))
			&&((sely+selh)>this.m[name].suby && sely<(this.m[name].suby+this.m[name].totheight))){
				if(this.sel[i].style.visibility!="hidden"){
					this.sel[i].level=l
					this.sel[i].style.visibility="hidden"; 
					this.hcode+=this.name+".sel["+i+"].style.visibility='visible';"
				}
			}else if(l<=this.sel[i].level) this.sel[i].style.visibility="visible"
		}
	}
}
/******************************
Making all top elements
******************************/
function cl_makeTop(rr){
	var m,rows,border,x,y,mpa
	m=this.menuplacement; rows=this.rows; this.pxbetween=this.checkp(this.pxbetween,0,1,1)
	border=this.l[0].border;y=this.checkp(this.fromtop,0,0,1)+border-7;x=this.checkp(this.fromleft,0,0,1)+border
	if(m=="bottomcenter"||m=="bottom"){
		if(m=="bottomcenter") x=toppage.x2/2-(this.totwidth+border*this.l[0].num+this.pxbetween*(this.l[0].num-1))/2
		y=toppage.y2-this.maxheight-border
	}else if(m=="right") x=toppage.x2-this.maxwidth-border*2
	else if(m=="bottom") y=toppage.y2-this.maxheight-border*2
	else if(m=="center"){if(rows==0) x=toppage.x2/2 -  (this.maxwidth+border*2)/2; else x=toppage.x2/2 - (this.totwidth + border*this.l[0].num +this.pxbetween*(this.l[0].num-1))/2}
	else if(m.toString().indexOf(",")>-1) mpa=1
	this.l[0].o=new Array()
	for(j=0;j<this.l[0].maxnum;j++){
		this.l[0].o[j]=new cl_makeObj('div'+this.name+'0_'+j,this,0,window,'div'+this.name+'0_'+j+'b'); oNS=this.oNS[j]
		this.l[0].o[j].oBorder=new cl_makeObj('div'+this.name+'0_'+j+'b',0,0,window,0,oNS)
		obj=this.l[0].o[j]; w=this.m[this.l[0].names[j]].width; h=this.m[this.l[0].names[j]].height
		obj.addEvents(this.l[0].names[j],this.name); obj.clipTo(0,w,h,0,1)
		if(mpa){if(rows==1) x=this.checkp(m[j],0,1,1); else y=this.checkp(m[j],0,0,1)}
		obj.moveIt(border,border); 
		obj.setactive(0,this.l[0].names[j])
		obj.oBorder.moveIt(x-border,y-border); obj.oBorder.clipTo(0,w+border*2,h+border*2,0,1); obj.oBorder.showIt()
		if(rows==0) y+=h+border+this.pxbetween
		else x+=w+border+this.pxbetween; 
		//obj.showIt()
	}
	if(!rr){
		this.refresh()
		if(this.resizecheck) setTimeout('window.onresize=new Function("'+this.name+'.resized()")',500)
	}
	if(this.checkselect) this.win.document.getElementsByTagName("SELECT")
}
/******************************
Refreshing/making all sub elements
******************************/
function cl_refresh(ev){
	var border,obj,oNS,oNS2
	page=toppage
	for(i=1;i<this.l.length;i++){
		this.l[i].o=new Array();
		border=this.l[i].border; defheight=this.checkp(this.l[i].height)
		this.l[i].oBorder=new cl_makeObj('div'+this.name+i+"b",0,0,this.win,0)
		for(j=0;j<this.l[i].maxnum;j++)
		{
			this.l[i].o[j]=new cl_makeObj('div'+this.name+i+'_'+j,this,i,this.win,0)
			obj=this.l[i].o[j];
			if(!obj.addEvents) return;
			obj.moveIt(border,(border+defheight)*j + border)
		}	
	}this.loaded=1;
}

function cl_NS6_createElement(st,inn){
	el=document.createElement("DIV")
	if(st) el.setAttribute("style",st)
	if(inn) el.innerHTML=inn
	document.body.appendChild(el)
	return el
}
/******************************
Making code
******************************/
function cl_construct(){
	this.level=null; var str=""; var str2=""; var frstr=""; var tempstr,
	num=this.l.length;
	for(i=0;i<num;i++){
		if(i!=0) frstr+='<div id="div'+this.name+i+'b" style="'+this.ns6styleb[i]+'" class="cl'+this.name+i+'b">\n'
		for(j=0;j<this.l[i].maxnum;j++){
			tempstr='<div id="div'+this.name+i+'_'+j+'" '; if(i!=0) tempstr+='style="'+this.ns6style[i]+'"'
			if(i==0){
				n=this.l[0].names[j]; txt=this.m[n].text
				if(!bw.ff){
					str+='<div id="div'+this.name+'0_'+j+'b" class="cl'+this.name+'b'+i+'">'
					str+=tempstr+' class="cl'+this.name+i+'">'+txt+'</div>'; str+='</div>\n'
				}else this.oNS[j]=cl_NS6_createElement(this.ns6styleb[i],tempstr+' class="cl'+this.name+i+'">'+txt+'</div>')
			}else frstr+=tempstr+'"></div>\n'
		}if(i!=0){frstr+='</div>\n'}
	}
	str+=frstr; document.write(str)
	this.makeTop();
}

//Trapping external pages in frame error!
coolFrameError=0
function cl_check_error(e){
	e=e.toLowerCase()
	if(e.indexOf("access")>-1||e.indexOf("permission")>-1){
		coolFrameError=1; return true
	}else return false
}
/******************************
Make styles
******************************/
function cl_makeStyle(){
	var str="<style>\n"; var zindex=150;  var w
	this.ns6style=new Array(); this.ns6styleb=new Array()
	for(i=0;i<this.l.length;i++){
		if(i==0)
		{
			c=this.l[i].tc;	w="";
			str+='.cl'+this.name+i+'{position:absolute; '+w+' '+this.l[i].background+' background-color:transparent; color:'+c+';'+this.l[i].style+'; cursor:pointer; cursor:hand; visibility:hidden; z-index:-1}\n'
			//inerit '+zindex+'
		}else{
			st='position:absolute; '+this.l[i].style+'; '+this.l[i].background+' cursor:pointer; cursor:hand; visibility:inherit; z-index:'+zindex;
			this.ns6style[i]=st
		}
		bc=this.l[i].border?'layer-background-color:'+this.l[i].bordercolor+'; visibility:hidden; background-color:'+this.l[i].bordercolor+';':'';
		w="overflow:hidden;"
		tempstr='position:absolute; '+w+' clip:rect(0,0,0,0); '+bc+' z-index:'+(zindex-50)
		if(i==0&&!bw.ff) str+='.cl'+this.name+'b'+i+'{'+tempstr+'}\n';
		else this.ns6styleb[i]=tempstr
//		if (i==0) alert(str)
		zindex+=100
	}	
	document.write(str+"\n</style>\n")
}
/******************************
Refreshing page if it's resized
******************************/
function cl_resized(){
	page2=new makePageCoords(window,this.useframes); 
	if(page2.x2!=toppage.x2 || page2.y2!=toppage.y2){
		toppage=new makePageCoords(window,this.useframes); this.makeTop(1)
		if(!this.useframes) page=toppage; this.isresized=1
		eval(this.resizecode)
	}
}
/******************************
Going to another page
******************************/
function cl_go(name){
/*
	obj=this.m[name]; fc=obj.mclick
	if (this.m[name].l==0) this.selUp(name) 
	else{
		obj=this.win.document.getElementById('div'+this.name+'0_0')
		obj.innerHTML=this.m[name].text
		this.selUp(name)
	}
*/
	obj=this.m[name]; url=obj.lnk; target=obj.target; fc=obj.mclick
	if(url){
		if(this.useframes&&!coolFrameError) loc=this.win.location.href; else loc=location.href
		if(fc) eval(fc); url=this.checkFolder(loc.toString(),url); this.isover=0;
		if(String(target)=="undefined" || target=="" || target==0 || target=="_self"){
			this.hideSubs(1,0,1); this.win.location.href=url
		}else if(target=="_blank") window.open(url)
		else if(target=="_top" || target=="window") top.location.href=url  
		else if(top[target]) top[target].location.href=url
		else{fr=findFrame(target); if(fr) fr.location.href=url}
	}else if(fc) eval(fc)
}
/******************************
Getting folders - THANKS TO DCAGE FOR THIS FIX
******************************/
function cl_checkFolder(tmp,url){
	if(url.indexOf("mailto:")>-1 || url.indexOf("/")==0 || url.indexOf("http://")==0) return url
	var addr=''; var lvl=''; var off_cnt=0; var cnt=0;
	if(tmp.indexOf('file:')>-1 || tmp.charAt(1)==':') addr=this.offlineUrl;
	else if(tmp.indexOf('http:')>-1) addr=this.onlineUrl;
	for(var i=0;i<addr.length;i++){if(addr.charAt(i)=='\/') off_cnt+=1}
	for(var i=0;i<tmp.length;i++){if(tmp.charAt(i)=='\/'){cnt+=1; if(cnt>off_cnt) lvl+='../'}}
	return lvl + url
}
function cl_selectUp(name){
	if (this.show==1) this.hideSubs(1,1,0,0,1)
	else {this.show=1; this.mover(name,1)}
}

function cl_SetDefault(){
	this.frame="frmMain"
	this.offlineUrl="file:///C|/work/shini/js/"
	this.onlineUrl="http://www.extra-shina.ru/new/js/"
	this.pagecheck=0
	this.resizecheck=1
	this.wait=300
	this.rows=0
	this.pxbetween=0
	this.menuplacement=0
	
	this.level[0]=new Array()
	this.level[0].width=0
	this.level[0].height=0
	this.level[0].bgcoloroff="#c5c3c3"
	this.level[0].bgcoloron="#d1232c"
	this.level[0].textcolor="#505050"
	this.level[0].hovercolor="#ffffff"
//	this.level[0].style="padding:2px; font-family:tahoma,arial,helvetica; font-size:11px; font-weight:bold"
	this.level[0].style="padding:2px; font-family:tahoma,arial;font-size:11px;font-weight:bold;vertical-align:bottom;"
	this.level[0].border=0
	this.level[0].bordercolor="#006699"
	this.level[0].offsetX=0
	this.level[0].offsetY=-1
	this.level[0].align="bottom"
	//this.level[0].background="pics/cool-selector2.jpg"
	
	this.level[1]=new Array()
	this.level[1].width=138
	this.level[1].height=20
//	this.level[1].style="margin: 0; padding:0; font-family:tahoma, arial,helvetica; font-size:14px; font-weight:bold; vertical-align: middle"
	this.level[1].align="bottom"
	//this.level[1].offsetX=+(this.level[0].width-2)/2+20
	this.level[1].offsetX=-2
	this.level[1].offsetY=5
	this.level[1].border=1
	this.level[1].bordercolor="#aa161f"

	this.level[2]=new Array()
	this.level[2].width=230
	this.level[2].height=20
//	this.level[2].style="margin: 0; padding:0; font-family:tahoma, arial,helvetica; font-size:14px; font-weight:bold; vertical-align: middle"
	this.level[2].align="bottom"
//	this.level[2].offsetX=(this.level[1].width-2)/2+20
	this.level[2].offsetX=-2
	this.level[2].offsetY=+2
	this.level[2].border=1
	this.level[2].bordercolor="#606060"

	this.level[3]=new Array()
	this.level[3].width=250
	this.level[3].height=20
//	this.level[3].style="margin: 0; padding:0; font-family:tahoma, arial,helvetica; font-size:14px; font-weight:bold; vertical-align: middle"
	this.level[3].align="bottom"
	this.level[3].offsetX=-2
	this.level[3].offsetY=+2
	this.level[3].border=1
	this.level[3].bordercolor="#606060"

	this.level[4]=new Array()
	this.level[4].width=238
	this.level[4].height=20
//	this.level[4].style="margin: 0; padding:0; font-family:tahoma, arial,helvetica; font-size:14px; font-weight:bold; vertical-align: middle"
	this.level[4].align="bottom"
	this.level[4].offsetX=-2
	this.level[4].offsetY=+2
	this.level[4].border=1
	this.level[4].bordercolor="#606060"
}
/******************************
Make menu object
******************************/
var coolFName=""; var onload
function makeCoolList(name){
	coolFName=name
	this.name=name; this.lastScrolled=0;
	this.win=window; toppage=new makePageCoords(window,parent.frames.length);
	this.aobj=new Array(); this.m=new Array()
	this.o=new Array(); this.l=new Array()
	this.level=new Array(); this.lastl=-1; this.resized=cl_resized;
	this.makeMenu=cl_makeMenu; this.showSubs=cl_showSubs; this.makeTop=cl_makeTop;
	this.getCoords=cl_getCoords; this.checkPage=cl_checkPage;
	this.mmout=cl_mout; this.mover=cl_mover; this.checkp=cl_checkp;
	this.hideSubs=cl_hideSubs; this.construct=cl_construct;
	this.makeStyle=cl_makeStyle; this.refresh=cl_refresh;
	this.go=cl_go; this.frstr=""; this.loadcnt=0
	this.selUp=cl_selectUp;
	this.totwidth=0; this.totheight=0; this.maxwidth=0; this.maxheight=0
	this.tim=10; this.loaded=0; this.isover=false;
	this.checkFolder=cl_checkFolder;  this.hcode=""
	this.oNS=new Array(); this.oNS2=new Array()
	this.SetDefault=cl_SetDefault
	this.SetDefault()
}


