<!--

function PrintPage() { 
	var sOption="toolbar=no,location=no,directories=no,menubar=no,scrollbars=yes,width=660,height=580,left=100,top=25"; 

	var sWinHTML = document.getElementById('content').innerHTML;
	var strBereich = document.title;
	var strBodyClass = document.body.className;
	var strBodyId = document.body.id;
      
	var winprint=window.open("","",sOption); 
       winprint.document.open(); 
       winprint.document.write('<html><title>' + document.title + '</title><link rel="stylesheet" href="style/typo3cache.css" type="text/css"><link rel="stylesheet" href="style/rewe_kunibertsviertel.css" type="text/css"><link rel="stylesheet" href="style/rewe_kunibertsviertel_print.css" type="text/css"><body id="'+strBodyId+'" class="'+strBodyClass+'" onload="window.print();">'); 
       winprint.document.write('<div style="position: relative; z-index: 10;"><img src="image/print_head.jpg" width="636" height="106" border="0"><br>');
       //winprint.document.write('<div id="infoDiv" style="position: absolute; left: 10px; top: 90px; width: 360px; height: 16px; z-index: 2;"><span style="font-size: 15px; color: #fff; font-family: arial; text-decoration: none;"><strong>' + strBereich + '</strong></span></div></div>');
       winprint.document.write('<div id="content" style="position: relative;">'+sWinHTML+'</div>');
       winprint.document.write('</body></html>');
       winprint.document.close(); 
       winprint.focus(); 
}

function MoveImg(x) {
	if (document.getElementById){
		document.getElementById("co_top_inner2").style.backgroundPosition = x+"px 0";
		
		y=x-1;
		if (y!=-1988){
			setTimeout("MoveImg(y)",30);
		}
		else {
			setTimeout("MoveImg(0)",30);
		}
	}
}


//check for flash
var flashversion = 7;
var plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;
if ( plugin ) {
	plugin = parseInt(plugin.description.substring(plugin.description.indexOf(".")-1)) >= flashversion;
}
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.'+flashversion+'")))\n');
	document.write('</SCRIPT\> \n');
}

function playSWF(file,id,vars,width,height,wmode,bgcolor,baseurl,wLName) {
	fsource='<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"';
	fsource+=' codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" ';
	fsource+=' ID='+id+' WIDTH="'+width+'"; HEIGHT="'+height+'">';
	fsource+=' <PARAM NAME="allowScriptAccess" VALUE="sameDomain" /> <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="page_vars='+vars+'" wmode='+wmode+' menu=false quality=high bgcolor='+bgcolor+'';
			fsource+=' swLiveConnect=FALSE allowScriptAccess="sameDomain" NAME='+id+' WIDTH="'+width+'" HEIGHT="'+height+'"';
			fsource+=' TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer" BASE='+baseurl+'>';
			fsource+=' </EMBED>';
		}
		else	{
			fsource+=' <EMBED src="'+file+'" FlashVars="page_vars='+vars+'" wmode='+wmode+' menu=false quality=high bgcolor='+bgcolor+'';
			fsource+=' swLiveConnect=FALSE allowScriptAccess="sameDomain" ID='+id+' WIDTH="'+width+'" HEIGHT="'+height+'"';
			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;
	}

}

function WriteLayer(lName,lConten){
	if (document.getElementById){
		document.getElementById(lName).innerHTML=lConten;
	}
}

function nx_send(){
        nx_win = window.open("/fileadmin/template/main/nx_mail_news.php?url="+escape(document.location)+"&title="+escape(document.title),"_danke", 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width=360,height=450');
        nx_win.focus();
        return false;
}

//-->
