flashWritten=false;
timeoutArray = new Array();
function BrowserCheck() {
	var b=navigator.appName;
	if (b=="Netscape") this.b="ns";
	else if ((b=="Opera") || (navigator.userAgent.indexOf("Opera")>0)) this.b = "opera";
	else if (b=="Microsoft Internet Explorer") this.b="ie";
	if (!b) alert('Unidentified browser./nThis browser is not supported,');
	this.version=navigator.appVersion;
	this.v=parseInt(this.version);
	this.ns=(this.b=="ns" && this.v>=4);
	this.ns4=(this.b=="ns" && this.v==4);
	this.ns6=(this.b=="ns" && this.v==5);
	this.ie=(this.b=="ie" && this.v>=4);
	this.ie4=(this.version.indexOf('MSIE 4')>0);
	this.ie5=(this.version.indexOf('MSIE 5')>0);
	this.ie55=(this.version.indexOf('MSIE 5.5')>0);
	this.opera=(this.b=="opera");
	this.dom=(document.createElement && document.appendChild && document.getElementsByTagName)?true:false;
	this.def=(this.ie||this.dom); // most used browsers, for faster if loops
	var ua=navigator.userAgent.toLowerCase();
	if (ua.indexOf("win")>-1) this.platform="win32";
	else if (ua.indexOf("mac")>-1) this.platform="mac";
	else this.platform="other";
}
is = new BrowserCheck()
//writeCSS
function css(ID){
	if(is.ns4){writeCSS = document.layers[ID];}
	if(is.ie){writeCSS = document.all[ID].style;}
	if(is.ns6){writeCSS = document.getElementById(ID).style;}
	return writeCSS
}
//todo functions
function sX(ID,X){
	a = css(ID);
	a.left = X;
}	
function sY(ID,Y){
	a = css(ID);
	a.top = Y;
}
function showIt(ID){
	for (i=0; i < showIt.arguments.length ; i++){
		a = css(showIt.arguments[i]);
		a.visibility = 'inherit';
	}
}
function hideIt(ID){
	for (i=0; i < hideIt.arguments.length ; i++){
		a = css(hideIt.arguments[i])
		a.visibility = 'hidden'
	}
}
function gD(){
	if(is.ie){win=document.body.clientWidth;}
	if(is.ns4){win=window.innerWidth-17;}
	if(is.ns6){win=window.innerWidth-1;}
	return win
}
function resize(){
	if(document.layers)location.reload();
	else init();
	if(flashWritten)hideIt('flashHider');
}
function fadeUp(ID){
	if(is.ie && !is.ie4){
		clearTimeout(timeoutArray[ID]);
		showIt(ID);
		document.all[ID].filters[0].opacity += 28
		if(document.all[ID].filters[0].opacity < 100){
			timeoutArray[ID]=setTimeout("fadeUp('"+ID+"')",1)
		}else{
			document.all[ID].filters[0].opacity = 100
		}
	}else{
		showIt(ID);
	}
}
function fadeDown(ID){
	if(is.ie && !is.ie4){
		clearTimeout(timeoutArray[ID]);
		document.all[ID].filters[0].opacity -= 28
		if(document.all[ID].filters[0].opacity > 0){
			timeoutArray[ID]=setTimeout("fadeDown('"+ID+"')",1)
		}else{
			document.all[ID].filters[0].opacity = 0
			hideIt(ID);
		}
	}else{
		hideIt(ID);
	}
}


function on(obj){
	if(document.getElementById && document.all){
		obj.parentElement.parentElement.style.backgroundColor='#F1F3EB';
	}
}
function off(obj){
	if(document.getElementById && document.all){
		obj.parentElement.parentElement.style.backgroundColor='';
	}
}

//CSS
if(document.layers)string='<link rel="stylesheet" href="/include/nn.css" type="text/css">';
else string='<link rel="stylesheet" href="/include/default.css" type="text/css">';
document.write(string);