<!--
document.write(
'<style type="text/css">',
'body, html { overflow: hidden; }',
'</style>'
);


function showBox(boxID,contentID){
	setElement(boxID,1,'display','block');
	setElement(boxID,0,'innerHTML',document.getElementById(contentID).innerHTML);
}

xOld = 0;
speed = 10;
function scrollPage(x){
	scrollFinish = x;
	x1 = xOld;
	
	if(xOld>scrollFinish){
		if(eval(xOld-scrollFinish)==1260){
			speed = 30;
		}
		if(eval(xOld-scrollFinish)==2520){
			speed = 20;
		}
		if(eval(xOld-scrollFinish)>2520){
			speed = 10;
		}
		movePageLeft(x1);
	}
	else {
		if(eval(xOld-scrollFinish)==-1260){
			speed = 30;
		}
		if(eval(xOld-scrollFinish)==-2520){
			speed = 20;
		}
		if(eval(xOld-scrollFinish)<-2520){
			speed = 10;
		}
		movePageRight(x1);

	}
	
}

function movePageLeft(x){
	x1 = xOld-252;
	if (x1>=scrollFinish){
		setElement("content_table",1,"left",x1+"px");
	}
	else {
		return false;
	}

	xOld = x1;
	setTimeout("movePageLeft(x1)",speed);
}

function movePageRight(x){
	x1 = xOld+252;
	if (x1<=scrollFinish){
		setElement("content_table",1,"left",x1+"px");
	}
	else {
		return false;
	}

	xOld = x1;
	setTimeout("movePageRight(x1)",speed);
}

function setElement(eID,ifStyle,funct,wert){
	if (document.getElementById){
		if (ifStyle == 1){
			var newElement = document.getElementById(eID).style;
		}
		else {
			var newElement = document.getElementById(eID);
		}
		newElement[funct] = wert;
	}
}

//check for flash
var flashversionMin = 9;
var plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;

if (plugin) {
	for (f = 0; f < 20; f++) {
		var plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;
		if (plugin.description.indexOf(f+".")>=0){
			flashversion = f;
			
			if (flashversion >= flashversionMin){
				plugin = true;
				break;
			}
		}
	}
}
else if (navigator.userAgent && navigator.userAgent.indexOf("MSIE")>=0 && (navigator.userAgent.indexOf("Windows 95")>=0 || navigator.userAgent.indexOf("Windows 98")>=0 || navigator.userAgent.indexOf("Windows NT")>=0)) {
	document.write('<SCRIPT LANGUAGE=VBScript\> \n');
	document.write('on error resume next \n');
	document.write('plugin = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.'+flashversionMin+'")))\n');
	document.write('</SCRIPT\> \n');
}

function playSWF(file,id,vars,width,height,wmode,bgcolor,baseurl,wLName,pscale,psalign) {
	fsource='<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"';
	fsource+=' codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" ';
	fsource+=' ID='+id+' WIDTH="'+width+'"; HEIGHT="'+height+'">';
	fsource+=' <PARAM NAME="allowScriptAccess" VALUE="sameDomain" /><param name="scale" value="'+pscale+'" /><param name="salign" value="'+psalign+'" /><PARAM NAME=movie VALUE="'+file+'"> <PARAM NAME=FlashVars VALUE="page_vars='+vars+'"><PARAM NAME=menu VALUE=false><PARAM NAME="BASE" VALUE='+baseurl+'><PARAM NAME=quality VALUE=high><PARAM NAME=wmode value='+wmode+'><PARAM NAME=bgcolor VALUE='+bgcolor+'>';
		if(navigator.userAgent.indexOf("Opera")==-1) {
			fsource+=' <EMBED src="'+file+'" FlashVars="'+vars+'" wmode='+wmode+' menu=false quality=high bgcolor='+bgcolor+'';
			fsource+=' swLiveConnect=FALSE allowScriptAccess="sameDomain" NAME='+id+' WIDTH="'+width+'" HEIGHT="'+height+'" scale="'+pscale+'" slaign="'+psalign+'"';
			fsource+=' TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer" BASE='+baseurl+'>';
			fsource+=' </EMBED>';
		}
		else	{
			fsource+=' <EMBED src="'+file+'" FlashVars="'+vars+'" wmode='+wmode+' menu=false quality=high bgcolor='+bgcolor+'';
			fsource+=' swLiveConnect=FALSE allowScriptAccess="sameDomain" ID='+id+' WIDTH="'+width+'" HEIGHT="'+height+'" scale="'+pscale+'" slaign="'+psalign+'"';
			fsource+=' TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer" BASE='+baseurl+'>';
			fsource+=' </EMBED>';
		}
	fsource+=' </OBJECT>';

	if (document.getElementById){
		document.getElementById(wLName).innerHTML=fsource;
	}

}


var m_visible = false;
var move_px = 50;
var start = -1050;
var end = 50;
var move;

function menu(){
	if (m_visible){
		move_px = -50;
		start = 50;
		end = -1000;
	}
	else {
		move_px = 50;
		start = -1050;
		end = 50;
	}
	
	m_visible = !m_visible;
	move = setInterval("moveMenu()",10);
}

function moveMenu(){
	if (start == end){
		clearInterval(move);
	}
	start = start + move_px;
	document.getElementById("menu_co").style.left = start + "px";
}
//-->
