var regim = 0;
var whattodo = false;
comp=navigator.appName;
ns=window.navigator.appName == "Netscape";
ie=window.navigator.appName == "Microsoft Internet Explorer";
var idw2;

function Empty(s){
var str=new String(s);
var res=true;
	if (str.length != 0) 
		for( i=0;i<=str.length;i++){
			if (str.substring(i,1) !== ' ' ){
				res=false;
				break;
			}
		}
return res;
}

function PadR(s,n){
var str=new String(s);i;
	if (str.length < n ) 
		for( i=1;i<=n-str.length;i++ )
			str += ' ';
	else
		str = str.substring(0,n);
return str;
}

function Val(strHere) {		// convert string in number
var ret=0;
	if (!Empty(strHere))
		ret = parseInt(strHere);
return ret;
}

function MoveWind(nPoint) {
	if (ie) {
		//document.all.item("wind1",gPoint).style.pixelLeft += 5;
		document.all.item("wind1",gPoint).style.pixelTop += 5;
		if (document.all.item("wind1",gPoint).style.pixelTop >= 150) {
			document.all.item("wind1",gPoint).style.pixelTop = 150;
			window.clearInterval(idWind); 
		}
	}
	else {
		document.wind1.top += 10;
		if (document.wind1.top >= 150) {
			document.wind1.top = 150;	}
	}
}

function ButOver(nPoint,mess) {
	if (ie) {
		if (currWind>=0) {
			document.all.item("wind1",currWind).style.visibility="hidden";
			document.all.item("wind1",currWind).style.pixelTop = 0;
			document.all.item("name1",currWind).style.color="white";
			window.clearInterval(idWind);
		}
		currWind = nPoint;
		document.all.item("wind1",nPoint).style.visibility="visible";
		document.all.item("name1",nPoint).style.color="black";	
		gPoint = nPoint;
		idWind=window.setInterval( "MoveWind();",1 );
	}
	else {
return;
		if (currWind>=0) {
			document.wind1.visibility="hide";
			document.name1.color="white";
			document.wind1.top = 0;
			window.clearInterval(idWind);
		}
		currWind = nPoint;
		document.wind1.visibility="show";
		document.name1.color = 'black';	
	}
	window.status=mess;
}
function ButOut(nPoint) {
	if (whattodo) {
		if (currWind>=0) {
			document.all.item("wind1",currWind).style.visibility="hidden";
			document.all.item("name1",currWind).style.color="white";
			document.all.item("wind1",currWind).style.pixelTop = 0;
			window.clearInterval(idWind);
		}
	currWind = -1;
	} 
	window.status='';
}


function makeleft(mode,slipaway) {

return true;
}


function makedivs(mode) {

return true;
}

function MoveT2() {
	document.all.T2.style.pixelTop += 4;
	if (document.all.T2.style.pixelTop >= 8) {
		document.all.T2.style.pixelTop = 8;
		window.clearInterval(idw2); 
	}
}

function ChanColor(mode,ob) {
	if (mode==1) ob.color = "white";
	if (mode==0) ob.color = "black";
}

function DrawStart(arg) {
var title=DrawStart.arguments[0];
var thref0='';
var ttit0='';
var pCursor="hand";
if (DrawStart.arguments.length>1) {
	thref0=DrawStart.arguments[1];
	ttit0=DrawStart.arguments[2];
}
if (DrawStart.arguments.length>3) {
	pCursor=DrawStart.arguments[3];
}
document.write('<A NAME="again">')
document.write('<TR><TD colspan="2" width="500" BGCOLOR="#FFFFDD">')
document.write('	<FONT FACE="ARIAL" SIZE="3"><B><CENTER>' + title )
document.write('	</CENTER></B></FONT></A>')
document.write('</TD></TR>')
document.write('<TR><TD colspan="2" width="500" bgcolor="#DDDDDD">')
document.write('	<TABLE BORDER="0">')
document.write('	<TR><TD width="140" class="left2" style="text-align: left;">')
document.write('		<A HREF="#again" style="color:black"');
if (DrawStart.arguments.length>3) 
	document.write('style="cursor:' + pCursor+'"');
document.write('			onMouseOver="ChanColor(1,this.style);"');
document.write('			onMouseOut="ChanColor(0,this.style);"');
document.write('			onClick="FuncHere();">');
if (DrawStart.arguments.length>1) 
	document.write( "&nbsp;&nbsp;&nbsp;&nbsp;"+ttit0 + '</A>')
else
	document.write('&nbsp</A>');
document.write('		</TD>')
document.write('		<TD width="360" class="left2">')
document.write('			<FONT FACE="ARIAL" SIZE="2"><B>'+thref0 );
document.write('	        </B></FONT>')
document.write('        </TD></TR></TABLE>')
document.write('</TD></TR>')
}

function getParam(name) {
var pname=name+"=";
var ps=input0;   //window.location.search;
	if (ps.length>0) {
		var start=ps.indexOf(pname);
		if (start!=-1) {
			start += pname.length;
			var end=ps.indexOf('&',start);
			if (end==-1)
				end=ps.length;
			return unescape(ps.substring(start,end));
		}
	}
return null;
}

function StartGlide() {
	if (nonGlide) return;
	if (ie) {
		document.all.Banner.style.pixelTop = -60; 
		document.all.Banner.style.visibility="visible";  
	}
	else {
		document.Banner.top = -10; 
		document.Banner.visibility="visible";
	}

	id=window.setInterval( "Glide()",50 );
}
function Glide() {
	if (nonGlide) return;
	if (ie) {
		document.all.Banner.style.pixelTop += 10;
		if (document.all.Banner.style.pixelTop >= 10) {
			document.all.Banner.style.pixelTop = 10;
			window.clearInterval(id); 
			document.all.Banner2.style.visibility="visible";
		}
	}
	else {
		document.Banner.top += 10;
		if (document.Banner.top >= 10) {
			document.Banner.top = 10;	}
		document.Banner2.visibility="visible";
	}
}

