var menu=function(){
	var t=15,z=50,s=6,a;
	function dd(n){this.n=n; this.h=[]; this.c=[]}
	dd.prototype.init=function(p,c){
		a=c; var w=document.getElementById(p), s=w.getElementsByTagName('ul'), l=s.length, i=0;
		for(i;i<l;i++){
			var h=s[i].parentNode; this.h[i]=h; this.c[i]=s[i];
			h.onmouseover=new Function(this.n+'.st('+i+',true)');
			h.onmouseout=new Function(this.n+'.st('+i+')');
		}
	}
	dd.prototype.st=function(x,f){
		var c=this.c[x], h=this.h[x], p=h.getElementsByTagName('a')[0];
		clearInterval(c.t); c.style.overflow='hidden';
		if(f){
			p.className+=' '+a;
			if(!c.mh){c.style.display='block'; c.style.height=''; c.mh=c.offsetHeight; c.style.height=0}
			if(c.mh==c.offsetHeight){c.style.overflow='visible'}
			else{c.style.zIndex=z; z++; c.t=setInterval(function(){sl(c,1)},t)}
		}else{p.className=p.className.replace(a,''); c.t=setInterval(function(){sl(c,-1)},t)}
	}
	function sl(c,f){
		var h=c.offsetHeight;
		if((h<=0&&f!=1)||(h>=c.mh&&f==1)){
			if(f==1){c.style.filter=''; c.style.opacity=1; c.style.overflow='visible'}
			clearInterval(c.t); return
		}
		var d=(f==1)?Math.ceil((c.mh-h)/s):Math.ceil(h/s), o=h/c.mh;
		c.style.opacity=o; c.style.filter='alpha(opacity='+(o*100)+')';
		c.style.height=h+(d*f)+'px'
	}
	return{dd:dd}
}();

function mopen2(id) {
	var i = 1;
	for (i =1; i <= 5; i++) {
		d= "s"+i;
		document.getElementById(d).style.background = "#FFFFFF";
		document.getElementById(d).style.color = "#3291C1";
	}
	
	page = id+".html";
	document.getElementById("p1").src = page;
	document.getElementById(id).style.background = "#3291C1";
	document.getElementById(id).style.color = "#FFFFFF";
}


function mopen3(id) {
	var i = 6;
	for (i =6; i <= 10; i++) {
		d= "s"+i;
		document.getElementById(d).style.background = "#FFFFFF";
		document.getElementById(d).style.color = "#3291C1";
	}
	
	page = id+".html";
	document.getElementById("p1").src = page;
	document.getElementById(id).style.background = "#3291C1";
	document.getElementById(id).style.color = "#FFFFFF";
}

function mopen4(id) {
	var i = 11;
	for (i =11; i <= 15; i++) {
		d= "s"+i;
		document.getElementById(d).style.background = "#FFFFFF";
		document.getElementById(d).style.color = "#3291C1";
	}
	
	page = id+".html";
	document.getElementById("p1").src = page;
	document.getElementById(id).style.background = "#3291C1";
	document.getElementById(id).style.color = "#FFFFFF";
}

function mopen5(id) {
	var i = 16;
	for (i =16; i <= 20; i++) {
		d= "s"+i;
		document.getElementById(d).style.background = "#FFFFFF";
		document.getElementById(d).style.color = "#3291C1";
	}
	
	page = id+".html";
	document.getElementById("p1").src = page;
	document.getElementById(id).style.background = "#3291C1";
	document.getElementById(id).style.color = "#FFFFFF";
}

function mopen6(id) {
	var i = 21;
	for (i =21; i <= 25; i++) {
		d= "s"+i;
		document.getElementById(d).style.background = "#FFFFFF";
		document.getElementById(d).style.color = "#3291C1";
	}
	
	page = id+".html";
	document.getElementById("p1").src = page;
	document.getElementById(id).style.background = "#3291C1";
	document.getElementById(id).style.color = "#FFFFFF";
}

function mopen7(id) {
	var i = 26;
	for (i =26; i <= 30; i++) {
		d= "s"+i;
		document.getElementById(d).style.background = "#FFFFFF";
		document.getElementById(d).style.color = "#3291C1";
	}
	
	page = id+".html";
	document.getElementById("p1").src = page;
	document.getElementById(id).style.background = "#3291C1";
	document.getElementById(id).style.color = "#FFFFFF";
}

function mopen8(id) {
	var i = 31;
	for (i =31; i <= 35; i++) {
		d= "s"+i;
		document.getElementById(d).style.background = "#FFFFFF";
		document.getElementById(d).style.color = "#3291C1";
	}
	
	page = id+".html";
	document.getElementById("p1").src = page;
	document.getElementById(id).style.background = "#3291C1";
	document.getElementById(id).style.color = "#FFFFFF";
}

function mopen9(id) {
	var i = 36;
	for (i =36; i <= 40; i++) {
		d= "s"+i;
		document.getElementById(d).style.background = "#FFFFFF";
		document.getElementById(d).style.color = "#3291C1";
	}
	
	page = id+".html";
	document.getElementById("p1").src = page;
	document.getElementById(id).style.background = "#3291C1";
	document.getElementById(id).style.color = "#FFFFFF";
}

function mopen10(id) {
	var i = 41;
	for (i =41; i <= 45; i++) {
		d= "s"+i;
		document.getElementById(d).style.background = "#FFFFFF";
		document.getElementById(d).style.color = "#3291C1";
	}
	
	page = id+".html";
	document.getElementById("p1").src = page;
	document.getElementById(id).style.background = "#3291C1";
	document.getElementById(id).style.color = "#FFFFFF";
}

function mopen11(id) {
	var i = 46;
	for (i =46; i <= 50; i++) {
		d= "s"+i;
		document.getElementById(d).style.background = "#FFFFFF";
		document.getElementById(d).style.color = "#3291C1";
	}
	
	page = id+".html";
	document.getElementById("p1").src = page;
	document.getElementById(id).style.background = "#3291C1";
	document.getElementById(id).style.color = "#FFFFFF";
}

function mopen12(id) {
	var i = 51;
	for (i =51; i <= 55; i++) {
		d= "s"+i;
		document.getElementById(d).style.background = "#FFFFFF";
		document.getElementById(d).style.color = "#3291C1";
	}
	
	page = id+".html";
	document.getElementById("p1").src = page;
	document.getElementById(id).style.background = "#3291C1";
	document.getElementById(id).style.color = "#FFFFFF";
}

function mopen13(id) {
	var i = 56;
	for (i =56; i <= 60; i++) {
		d= "s"+i;
		document.getElementById(d).style.background = "#FFFFFF";
		document.getElementById(d).style.color = "#3291C1";
	}
	
	page = id+".html";
	document.getElementById("p1").src = page;
	document.getElementById(id).style.background = "#3291C1";
	document.getElementById(id).style.color = "#FFFFFF";
}

function mopen14(id) {
	var i = 61;
	for (i =61; i <= 65; i++) {
		d= "s"+i;
		document.getElementById(d).style.background = "#FFFFFF";
		document.getElementById(d).style.color = "#3291C1";
	}
	
	page = id+".html";
	document.getElementById("p1").src = page;
	document.getElementById(id).style.background = "#3291C1";
	document.getElementById(id).style.color = "#FFFFFF";
}

function mopen15(id) {
	var i = 66;
	for (i =66; i <= 70; i++) {
		d= "s"+i;
		document.getElementById(d).style.background = "#FFFFFF";
		document.getElementById(d).style.color = "#3291C1";
	}
	
	page = id+".html";
	document.getElementById("p1").src = page;
	document.getElementById(id).style.background = "#3291C1";
	document.getElementById(id).style.color = "#FFFFFF";
}

function mopen16(id) {
	var i = 71;
	for (i =71; i <= 75; i++) {
		d= "s"+i;
		document.getElementById(d).style.background = "#FFFFFF";
		document.getElementById(d).style.color = "#3291C1";
	}
	
	page = id+".html";
	document.getElementById("p1").src = page;
	document.getElementById(id).style.background = "#3291C1";
	document.getElementById(id).style.color = "#FFFFFF";
}

function mopen17(id) {
	var i = 76;
	for (i =76; i <= 80; i++) {
		d= "s"+i;
		document.getElementById(d).style.background = "#FFFFFF";
		document.getElementById(d).style.color = "#3291C1";
	}
	
	page = id+".html";
	document.getElementById("p1").src = page;
	document.getElementById(id).style.background = "#3291C1";
	document.getElementById(id).style.color = "#FFFFFF";
}

function mopen18(id) {
	var i = 81;
	for (i =81; i <= 85; i++) {
		d= "s"+i;
		document.getElementById(d).style.background = "#FFFFFF";
		document.getElementById(d).style.color = "#3291C1";
	}
	
	page = id+".html";
	document.getElementById("p1").src = page;
	document.getElementById(id).style.background = "#3291C1";
	document.getElementById(id).style.color = "#FFFFFF";
}

function mopen19(id) {
	var i = 86;
	for (i =86; i <= 90; i++) {
		d= "s"+i;
		document.getElementById(d).style.background = "#FFFFFF";
		document.getElementById(d).style.color = "#3291C1";
	}
	
	page = id+".html";
	document.getElementById("p1").src = page;
	document.getElementById(id).style.background = "#3291C1";
	document.getElementById(id).style.color = "#FFFFFF";
}

function mopen20(id) {
	var i = 91;
	for (i =91; i <= 95; i++) {
		d= "s"+i;
		document.getElementById(d).style.background = "#FFFFFF";
		document.getElementById(d).style.color = "#3291C1";
	}
	
	page = id+".html";
	document.getElementById("p1").src = page;
	document.getElementById(id).style.background = "#3291C1";
	document.getElementById(id).style.color = "#FFFFFF";
}
function mopen21(id) {
	var i = 96;
	for (i =96; i <= 100; i++) {
		d= "s"+i;
		document.getElementById(d).style.background = "#FFFFFF";
		document.getElementById(d).style.color = "#3291C1";
	}
	
	page = id+".html";
	document.getElementById("p1").src = page;
	document.getElementById(id).style.background = "#3291C1";
	document.getElementById(id).style.color = "#FFFFFF";
}
