var ad_view 		= new Array("http://www.zanox-affiliate.de/ppv/?14676592C397380500", "http://ad.zanox.com/ppv/?14684708C136198168", "http://ad.zanox.com/ppv/?14721370C118934287", "http://ad.zanox.com/ppv/?14676522C1503506954", "http://ad.zanox.com/ppv/?14684381C843151398", "http://ad.zanox.com/ppv/?14684409C409192352");
var ad_click 		= new Array("http://www.zanox-affiliate.de/ppc/?14676592C397380500T", "http://ad.zanox.com/ppc/?14684708C136198168T", "http://ad.zanox.com/ppc/?14721370C118934287T", "http://ad.zanox.com/ppc/?14676522C1503506954T", "http://ad.zanox.com/ppc/?14684381C843151398T", "http://ad.zanox.com/ppc/?14684409C409192352T");
var ad_navi			= new Array("Sky", "Neckermann", "Adidas", "o2", "T-Home", "Congstar");
var ad_text 		= new Array("Sky Bundesliga", "Neckermann - Sonderaktionen", "Adidas - groesste Kollektion im Internet!", "o2 - &uuml;berall erreichbar", "T-Home Entertain Comfort", "Congstar - 9 Cent Tarif");
var ad_alttext	= new Array("Sky Bundesliga - hier bestellen!", "Neckermann - Sonderaktionen", "Adidas - groesste Kollektion im Internet!", "o2 - &uuml;berall erreichbar", "T-Home Entertain Comfort", "Congstar - 9 Cent Tarif");
var ad_CountPos = 0;

document.write('<link href="layer_reun.css" rel="stylesheet" type="text/css" />');
document.write('<div id="div_1" name="div_1">');
document.write('	<div style="float:left;">Mehr Informationen zu:&nbsp;&nbsp;<marquee width="460px">');
for (var iCount = 0 ; iCount < ad_view.length; iCount++)
	document.write('	  << <a href="' + ad_click[iCount] + '">' + ad_text[iCount] + '</a> >>&nbsp;&nbsp;&nbsp;');
document.write('	</marquee></div>');
document.write('	<div style="float:right; width:25px"><a OnClick="ad_close()"><img src="/img/schliessen.gif" /></a></div>');
document.write('</div>');
document.write('<div id="div_2" name="div_2">');
document.write('		<div id="ad_nav" name="ad_nav">');
document.write('			<ul id="navlist">');
for (var iCount = 0 ; iCount < ad_view.length; iCount++)
	if(iCount == 0)
		document.write('			 <li><a id="ad_Navigation' + iCount + '" name="ad_Navigation' + iCount + '" style="color:#000; border-top: 2px solid #000000;" href="#" OnMouseOver="ad_NavView(' + iCount + ')">' + ad_navi[iCount] + '</a></li>');
	else
		document.write('			 <li><a id="ad_Navigation' + iCount + '" name="ad_Navigation' + iCount + '" href="#" OnMouseOver="ad_NavView(' + iCount + ')">' + ad_navi[iCount] + '</a></li>');
document.write('			</ul>');
document.write('		</div>');
document.write('		<div id="ad_style" name="ad_style">');
document.write('			<a OnClick="min_ad()" id="spaeter_load" name="spaeter_load" href="javascript:spaeter(\'http://www.zanox-affiliate.de/ppc/?14676592C397380500T\');">sp&auml;ter + schlie&szlig;en</a>');
document.write('		</div>');
document.write('	<div id="pf_links" name="pf_links" style="clear:both;"><a href="javascript:switch_ad(\'-\');" OnMouseOver="switch_ad(\'-\')"><img src="/img/pfeil_links.gif"></a></div>');
document.write('	<div id="ad" name="ad">');
document.write('		<a id="ad_click" name="ad_click" href="http://www.zanox-affiliate.de/ppc/?14676592C397380500T" target="_blank"><img id="ad_view" name="ad_view" src="http://www.zanox-affiliate.de/ppv/?14676592C397380500" align="bottom" width="300" height="250" border="0" hspace="1" alt="Sky Bundesliga - hier bestellen!"></a>');
document.write('	</div>');
document.write('	<div id="pf_rechts" name="pf_rechts"><a href="javascript:switch_ad(\'+\');" OnMouseOver="switch_ad(\'+\')"><img src="/img/pfeil_rechts.gif"></a></div>');
document.write('</div>');
document.write('<div id="div_3" name="div_3" align="right">');
document.write('	<a OnClick="max_ad()" >[ aufklappen ]</a>');
document.write('</div>');

timedDiv()
function timedDiv() { timer = setInterval("switch_ad(\'+\', '1')",5000); }

(function(element,el_left,D)
{
	D=document
	el_left_2	= 5
	el_top_2	= 0
	el_left_1	= 0
	el_top_1	= 0
	el_left_3	= 5
	el_top_3	= 0

	with(D.getElementById('div_2').style)	{
		bottom= el_top_2+'px'
		
		if(select == 0)
			left	= el_left_2+'px'
		else
			right	= el_left_2+'px'
	}
	with(D.getElementById('div_1').style) {
		bottom= el_top_1+'px'
		left	= el_left_1+'px'
	}
	with(D.getElementById('div_3').style)	{
		bottom= el_top_3+'px'
		left	= el_left_3+'px'
	}
	el_left_start=el_top_start=0
})()

function el_move(ydiff)
{
	with(document)
	{
		ydiff=el_top_start+getScrollY()
		if(ydiff)el_top_start-=~~(ydiff/1)
		{
			getElementById('div_3').style.bottom=el_top_start+el_top_3+'px'
			getElementById('div_2').style.bottom=el_top_start+el_top_2+'px'
			getElementById('div_1').style.bottom=el_top_start+el_top_1+'px'
		}
	}
}
elmove=setInterval("el_move()",1)

function switch_ad(vzeichen, auto)
{
	if(auto != '1')	{
		window.clearInterval(timer);
		timer = setInterval("switch_ad(\'+\', '1')",20000);
	}	else {
		window.clearInterval(timer);
		timer = setInterval("switch_ad(\'+\', '1')",6500);
	}
	
	if(vzeichen == "+")
	{
		if (ad_view.length > (ad_CountPos+1))
		{
			document.getElementById('ad_view').src = ad_view[ad_CountPos+1]
			document.getElementById('ad_click').href = ad_click[ad_CountPos+1]
			document.getElementById('spaeter_load').href = 'javascript:spaeter(\'' + ad_click[ad_CountPos+1] + '\');'
			document.getElementById('ad_view').alt = ad_alttext[ad_CountPos+1]
			ad_CountPos = (ad_CountPos+1);
		}
		else
		{
			document.getElementById('ad_view').src = ad_view[0]
			document.getElementById('ad_click').href = ad_click[0]
			document.getElementById('spaeter_load').href 	= 'javascript:spaeter(\'' + ad_click[0] + '\');'
			document.getElementById('ad_view').alt = ad_alttext[0]
			ad_CountPos = 0;
		}
	}
	else if(vzeichen == "-")
	{
		if ((ad_CountPos-1) >= 0)
		{
			document.getElementById('ad_view').src = ad_view[ad_CountPos-1]
			document.getElementById('ad_click').href = ad_click[ad_CountPos-1]
			document.getElementById('spaeter_load').href 	= 'javascript:spaeter(\'' + ad_click[ad_CountPos-1] + '\');'
			document.getElementById('ad_view').alt = ad_alttext[ad_CountPos-1]
			ad_CountPos = (ad_CountPos-1);
		}
		else
		{
			document.getElementById('ad_view').src = ad_view[(ad_view.length-1)]
			document.getElementById('ad_click').href = ad_click[(ad_view.length-1)]
			document.getElementById('spaeter_load').href 	= 'javascript:spaeter(\'' + ad_click[(ad_view.length-1)] + '\');'
			document.getElementById('ad_view').alt = ad_alttext[(ad_view.length-1)]
			ad_CountPos = (ad_view.length-1);
		}
	}
	
	for (var iCount = 0 ; iCount < ad_view.length; iCount++)
	{
		document.getElementById('ad_Navigation' + iCount).style.color = '#767676';
		document.getElementById('ad_Navigation' + iCount).style.borderTop = '';
	}
	
	document.getElementById('ad_Navigation' + ad_CountPos).style.color = '#000000';
	document.getElementById('ad_Navigation' + ad_CountPos).style.borderTop = '2px solid #000000';
}

function min_ad()
{
	document.getElementById('ad').style.visibility ='hidden';
	document.getElementById('div_2').style.visibility ='hidden';
	document.getElementById('div_3').style.visibility ='visible';
}

function max_ad()
{
	document.getElementById('ad').style.visibility ='visible';
	document.getElementById('div_3').style.visibility ='hidden';
	document.getElementById('div_2').style.visibility ='visible';
}

function ad_close()
{
	document.getElementById('ad').style.visibility ='hidden';
	document.getElementById('div_1').style.visibility ='hidden';
	document.getElementById('div_2').style.visibility ='hidden';
	document.getElementById('div_3').style.visibility ='hidden';
}

function getScrollY() {
  scrOfY = 0;
  if( typeof( window.pageYOffset ) == 'number' ) {
    //Netscape compliant
    scrOfY = window.pageYOffset;
  } else if( document.documentElement && document.documentElement.scrollTop) {
    //IE6 standards compliant mode
    scrOfY = document.documentElement.scrollTop;
  } else if( document.body && document.body.scrollTop ) {
    //DOM compliant
    scrOfY = document.body.scrollTop;
  }
  return scrOfY;
}

function spaeter(url)
{
	newWindow = window.open(url,"","")
	newWindow.blur()
	self.focus()
}

function ad_NavView(iNummer)
{
	window.clearInterval(timer);
	timer = setInterval("switch_ad(\'+\', '1')",20000);
		
	document.getElementById('ad_view').src = ad_view[iNummer]
	document.getElementById('ad_click').href = ad_click[iNummer]
	document.getElementById('spaeter_load').href 	= 'javascript:spaeter(\'' + ad_click[iNummer] + '\');'
	document.getElementById('ad_view').alt = ad_alttext[iNummer]
	
	for (var iCount = 0 ; iCount < ad_view.length; iCount++)
	{
		document.getElementById('ad_Navigation' + iCount).style.color = '#767676';
		document.getElementById('ad_Navigation' + iCount).style.borderTop = '';
	}
	
	document.getElementById('ad_Navigation' + iNummer).style.color = '#000000';
	document.getElementById('ad_Navigation' + iNummer).style.borderTop = '2px solid #000000';
	
	ad_CountPos = iNummer;
}