
function ssub(fn){
	var qf = $(fn?'SBit1_qti':'sfqs');
	if(qf.value == "") alert("Bitte geben Sie den Suchbegriff!");
	else document.location='http://ssl.hurra.de/TrackIt?tid=337543C337S337542CL30PPC&url=<<http://www.louis.de/?partner=hurra&topic=search&searchterm='+qf.value.replace(/\s/g,'+')+'>>&pd='+dac+'&mc=&ref=[[' + document.referrer + ']]&src=[[' + document.location + ']]';
	return false;
}

function itm(){
	var src='337541C337S337542CL30PPV';
	artc=dac;
	var matchval=new RegExp(/\/promotion\/$/i);
	var loc=window.location.href;
	if(loc.search(matchval)>0) artc='000';
	var ssl = "687474703A2F2F73736C2E68757272612E64652F547261636B4974";
	var adr = '';
	for(var i=0; i<ssl.length; i=i+2) adr+=String.fromCharCode(parseInt(ssl.substring(i,i+2),16));
	document.write('<img src="'+adr+'?tid='+src+'&pd='+artc+'&mc=&ref=[[' + document.referrer + ']]&src=[[' + document.location + ']]" alt="" border="0" width="1" height="1" style="position: absolute; top:-20; left: -20;">');
}

function print_hdr1(){
document.write(
	'<table width="1000">'+
	'<tbody>'+
	'<tr>'+
	'	<td valign="top" colspan="5"><img alt="" border="0" src="x0ojmQ/header.gif" width="1000" height="90" usemap="#header"></td>'+
	'</tr>'+
	'<tr>'+
	'	<td valign="top" width="190" bgcolor="#7D8391">'+

'<table bgcolor="#D8DADE" width="185" style="margin:5px 0 0 5px;">'+
'<tbody>'+
'<form action="#" onSubmit="return ssub();" method="get" name="mediaform" style="display:inline;">'+
'<tr>'+
'	<td colspan="2" height="35" valign="middle" style="padding-left:5px;"><b>Produktsuche</b><br><span style="font-size:10px;">nach Stichwort/Artikelnr.</span></td>'+
'</tr>'+
'<tr>'+
'	<td width="150" style="padding-left:5px;"><input size="12" maxlength="30" style="width:145px;" value="" name="query" id="sfqs" type="text"></td>'+
'	<td width="35" align="center"><input src="x0ojmQ/submit.gif" type="image"></td>'+
'</tr>'+
'<tr>'+
'	<td colspan="2" height="28" valign="middle" style="padding-left:5px;"><b>&raquo;&nbsp;</b><a href="javascript:cle(\'Kb\')"><b>Produkte von A-Z</b></a></td>'+
'</tr>'+
'</form>'+
'</tbody>'+
'</table>'+

'<table bgcolor="#F4F4F4" width="186" style="margin:0 0 0 5px;">'+
'<tbody>'+
'<tr>'+
'	<td height="20" width="30" style="border-bottom:1px solid #7D8391;"><img alt="" border="0" src="x0ojmQ/icon_rubrik_1.gif" width="30" height="20" style="border-top:1px solid #F4F4F4;"></td>'+
'	<td height="20" width="155" valign="middle" style="border-bottom:1px solid #7D8391;"><a href="javascript:cle(\'Vo\')" style="text-decoration:none;"><b>&nbsp;Bekleidung &amp; Helme</b></a></td><td align="right" style="border-bottom:1px solid #7D8391;border-right:1px solid #7D8391;">&raquo;</td>'+
'</tr>'+
'<tr>'+
'	<td height="20" style="border-bottom:1px solid #7D8391;"><img alt="" border="0" src="x0ojmQ/icon_rubrik_2.gif" width="30" height="20" style="border-top:1px solid #F4F4F4;"></td>'+
'	<td height="20" valign="middle" style="border-bottom:1px solid #7D8391;"><a href="javascript:cle(\'Vs\')" style="text-decoration:none;"><b>&nbsp;Verschleißteile</b></a></td><td align="right" style="border-bottom:1px solid #7D8391;border-right:1px solid #7D8391;">&raquo;</td>'+
'</tr>'+
'<tr>'+
'	<td height="20" style="border-bottom:1px solid #7D8391;"><img alt="" border="0" src="x0ojmQ/icon_rubrik_3.gif" width="30" height="20" style="border-top:1px solid #F4F4F4;"></td>'+
'	<td height="20" valign="middle" style="border-bottom:1px solid #7D8391;"><a href="javascript:cle(\'Vr\')" style="text-decoration:none;"><b>&nbsp;Pflege &amp; Wartung</b></a></td><td align="right" style="border-bottom:1px solid #7D8391;border-right:1px solid #7D8391;">&raquo;</td>'+
'</tr>'+
'<tr>'+
'	<td height="20" style="border-bottom:1px solid #7D8391;"><img alt="" border="0" src="x0ojmQ/icon_rubrik_4.gif" width="30" height="20" style="border-top:1px solid #F4F4F4;"></td>'+
'	<td height="20" valign="middle" style="border-bottom:1px solid #7D8391;"><a href="javascript:cle(\'Vq\')" style="text-decoration:none;"><b>&nbsp;Anbauteile</b></a></td><td align="right" style="border-bottom:1px solid #7D8391;border-right:1px solid #7D8391;">&raquo;</td>'+
'</tr>'+
'<tr>'+
'	<td height="20" style="border-bottom:1px solid #7D8391;"><img alt="" border="0" src="x0ojmQ/icon_rubrik_5.gif" width="30" height="20" style="border-top:1px solid #F4F4F4;"></td>'+
'	<td height="20" valign="middle" style="border-bottom:1px solid #7D8391;"><a href="javascript:cle(\'Vp\')" style="text-decoration:none;"><b>&nbsp;Zubehör &amp; Gepäck</b></a></td><td align="right" style="border-bottom:1px solid #7D8391;border-right:1px solid #7D8391;">&raquo;</td>'+
'</tr>'+
'<tr>'+
'	<td height="20" style="border-bottom:1px solid #7D8391;"><img alt="" border="0" src="x0ojmQ/icon_rubrik_6.gif" width="30" height="20" style="border-top:1px solid #F4F4F4;"></td>'+
'	<td height="20" valign="middle" style="border-bottom:1px solid #7D8391;"><a href="javascript:cle(\'Vt\')" style="text-decoration:none;"><b>&nbsp;Camping &amp; Reisen</b></a></td><td align="right" style="border-bottom:1px solid #7D8391;border-right:1px solid #7D8391;">&raquo;</td>'+
'</tr>'+
'<tr>'+
'	<td height="20" style="border-bottom:1px solid #7D8391;"><img alt="" border="0" src="x0ojmQ/icon_rubrik_7.gif" width="30" height="20" style="border-top:1px solid #F4F4F4;"></td>'+
'	<td height="20" valign="middle" style="border-bottom:1px solid #7D8391;"><a href="javascript:cle(\'Vu\')" style="text-decoration:none;"><b>&nbsp;Geschenke &amp; Co.</b></a></td><td align="right" style="border-bottom:1px solid #7D8391;border-right:1px solid #7D8391;">&raquo;</td>'+
'</tr>'+
'</tbody>'+
'</table>'+

'<table bgcolor="#D8DADE" width="186" align="center" style="margin:15px 0 0 5px;">'+
'<tbody>'+
'<tr>'+
'	<td align="center"><b style="padding:3px;">Aktuelle Werbung</b></td>'+
'</tr>'+
'<tr>'+
'	<td background="x0ojmQ/dashed_line.gif"><img alt="" border="0" src="x0ojmQ/1x1.gif" height="1" width="1"></td>'+
'</tr>'+
'<tr>'+
'	<td style="padding:3px 3px 10px 10px;" class="underl">'+
'		<center><a href="javascript:cle(\'Ka\')"><img alt="" border="0" src="x0ojmQ/catalog.gif" height="81" width="64" vspace="5"></a></center>'+
'		<a href="javascript:cle(\'Ka\')">Jetzt ansehen</a>'+
'	</td>'+
'</tr>'+
'</tbody>'+
'</table>'+
'<br>'+'<table width="186" cellspacing="0" cellpadding="0" border="0">'+
'<tr>'+
'<td class="contentwhite" align="left">'+
		'<font class="contentboldyellow">Einkaufen ohne Risiko</font>'+
		'<p style="margin-top: 5px; margin-bottom: 0px;">'+
		'<p style="margin-top: 5px; margin-bottom: 0px;">'+
		'<img src="x0ojmQ/dot_white.gif" width="3" height="5" border="0"> <a rel = "nofollow" href="#" onclick="window.open(\'http://www.louis.de/shop/auf_rechnung.php?partner=hurra\', \'aufrechnung\', \'width=430,height=280,resizable=yes,scrollbars=no,menubar=no,toolbar=no,directories=no,location=no,status=no\')">Kauf auf Rechnung</a>'+
								
		'<p style="margin-top: 5px; margin-bottom: 0px;"><img src="x0ojmQ/dot_white.gif" width="3" height="5" border="0"> <a rel = "nofollow" href="#" onclick="window.open(\'http://www.louis.de/shop/gzg.php?partner=hurra\', \'gzg\', \'width=430,height=440,resizable=yes,scrollbars=no,menubar=no,toolbar=no,directories=no,location=no,status=no\')">Geld-zur&uuml;ck-Garantie</a>'+
		
		'<p style="margin-top: 5px; margin-bottom: 0px;"><img src="x0ojmQ/dot_white.gif" width="3" height="5" border="0"> <a rel = "nofollow" href="#" onclick="window.open(\'http://www.louis.de/shop/retour.php?partner=hurra\', \'retour\', \'width=430,height=440,resizable=yes,scrollbars=no,menubar=no,toolbar=no,directories=no,location=no,status=no\')">R&uuml;cksendung gratis</a>'+
		
		'<p style="margin-top: 5px; margin-bottom: 0px;"><img src="x0ojmQ/dot_white.gif" width="3" height="5" border="0"> <a rel = "nofollow" href="#" onclick="window.open(\'http://www.louis.de/shop/ssl_info.php?partner=hurra\', \'sslinfo\', \'width=430,height=440,resizable=yes,scrollbars=no,menubar=no,toolbar=no,directories=no,location=no,status=no\')">Verschl&uuml;sselte<br><img src="x0ojmQ/space.gif" width="7" height="1" border="0">Daten&uuml;bertragung</a>'+
'</td>'+
'</tr>'+
'</table>');
}


function print_hdr2(num){
document.write(
	(num=num?'<center><img alt="" border="0" src="x0ojmQ/ehi_left.gif" width="140" height="59" style="margin:10px 0 0 0;"></center>':'')+
	'<center><a rel = "nofollow" href="#" onclick="window.open(\'http://www.louis.de/shop/ehi_bild_geprueft.php?partner=hurra\', \'sslinfo\', \'width=430,height=190,resizable=yes,scrollbars=no,menubar=no,toolbar=no,directories=no,location=no,status=no\')"><img alt="" border="0" src="x0ojmQ/computerbild_ehi.gif" style="margin:10px 0 0 0;"></a></center>'+
	'	</td>'+
	'	<td valign="top" width="20"><img alt="" border="0" src="x0ojmQ/1x1.gif" width="20" height="1"></td>'+
	'	<td valign="top" width="615">'+
	'	<br><br>');
}

function print_ftr(){
	lnpi();
	document._MKlk = new MKlk();
	TCIH();
document.write(
	'</td>'+
	'<td valign="top" width="20"><img alt="" border="0" src="x0ojmQ/1x1.gif" width="20" height="1"></td>'+
	'<td valign="top" width="155">'+
	
	'<br><br>'+
	'<table width="100%" id="rmenu">'+
	'<tr>'+
	'	<td colspan="2" align="center" bgcolor="#F5F5F4" style="border-bottom: 1px dotted #333333;padding:5px;"><b>Louis Markenshops</b></td>'+
	'</tr>'+
	'<tr>'+
	'	<td colspan="2" height="0"><img alt="" border="0" src="/promotion/x0ojmQ/1x1.gif" width="1" height="10"></td>'+
	'</tr>'+
	'<tr>'+
	'	<td align="center"><a id="li01" href="javascript:cle(\'Vv\')"></a></td>'+
	'	<td align="center"><a id="li02" href="javascript:cle(\'Vy\')"></a></td>'+
	'</tr>'+
	'<tr>'+
	'	<td colspan="2" height="0"><img alt="" border="0" src="/promotion/x0ojmQ/1x1.gif" width="1" height="10"></td>'+
	'</tr>'+
	'<tr>'+
	'	<td align="center"><a id="li03" href="javascript:cle(\'VM\')"></a></td>'+
	'	<td align="center"><a id="li04" href="javascript:cle(\'Vz\')"></a></td>'+
	'</tr>'+
	'<tr>'+
	'	<td colspan="2" height="0"><img alt="" border="0" src="/promotion/x0ojmQ/1x1.gif" width="1" height="10"></td>'+
	'</tr>'+
	'<tr>'+
	
	
	'	<td align="center"><a id="li17" href="javascript:cle(\'1w8\')"></a></td>'+
	'	<td align="center"><a id="li18" href="javascript:cle(\'1w7\')"></a></td>'+
	'</tr>'+
	'<tr>'+
	'	<td colspan="2" height="0"><img alt="" border="0" src="/promotion/x0ojmQ/1x1.gif" width="1" height="10"></td>'+
	'</tr>'+
	'<tr>'+
	'	<td align="center"><a id="li07" href="javascript:cle(\'VC\')"></a></td>'+
	'	<td align="center"><a id="li08" href="javascript:cle(\'VD\')"></a></td>'+
	'</tr>'+
	'<tr>'+
	'	<td colspan="2" height="0"><img alt="" border="0" src="/promotion/x0ojmQ/1x1.gif" width="1" height="10"></td>'+
	'</tr>'+
	'<tr>'+
	'	<td align="center"><a id="li09" href="javascript:cle(\'VE\')"></a></td>'+
	'	<td align="center"><a id="li10" href="javascript:cle(\'Vw\')"></a></td>'+
	'</tr>'+
	'<tr>'+
	'	<td colspan="2" height="0"><img alt="" border="0" src="/promotion/x0ojmQ/1x1.gif" width="1" height="10"></td>'+
	'</tr>'+
	'<tr>'+
	'	<td align="center"><a id="li11" href="javascript:cle(\'VG\')"></a></td>'+
	'	<td align="center"><a id="li12" href="javascript:cle(\'Vx\')"></a></td>'+
	'</tr>'+
	'<tr>'+
	'	<td colspan="2" height="0"><img alt="" border="0" src="/promotion/x0ojmQ/1x1.gif" width="1" height="10"></td>'+
	'</tr>'+
	'<tr>'+
	'	<td align="center"><a id="li13" href="javascript:cle(\'VH\')"></a></td>'+
	'	<td align="center"><a id="li14" href="javascript:cle(\'13w\')"></a></td>'+
	'</tr>'+
	'	<td colspan="2" height="0"><img alt="" border="0" src="/promotion/x0ojmQ/1x1.gif" width="1" height="10"></td>'+
	'<tr>'+
	'	<td align="center"><a id="li15" href="javascript:cle(\'13v\')"></a></td>'+
	'	<td align="center"><a id="li16" href="javascript:cle(\'12L\')"></a></td>'+
	'</tr>'+
	'</tbody>'+
	'</table>'+
	'<br><br>'+

	
	'	</td>'+
'</tr>'+
'<tr>'+
' <td valign="top" width="150" bgcolor="#7D8391"></td>'+
' <td valign="top" width="20"></td>'+
' <td valign="top" width="555">'+
'<p align="center">'+
'<a href="/promotion/">Home</a>'+
'&nbsp;|&nbsp;'+
'<a href="javascript:cle(\'K9\')">Kontakt</a>'+
'&nbsp;|&nbsp;'+
'<a href="javascript:cle(\'K5\')">AGB</a>'+
'&nbsp;|&nbsp;'+
'<a href="javascript:cle(\'K3\')">Versandkosten</a>'+
'&nbsp;|&nbsp;'+
'<a href="javascript:cle(\'1wF\')">Zahlungsarten</a>'+
'&nbsp;|&nbsp;'+
'<a href="javascript:cle(\'K5\')">Datenschutz</a>'+
'&nbsp;|&nbsp;'+
'<a href="javascript:cle(\'Ke\')">Jobs & Ausbildung</a>'+
'&nbsp;|&nbsp;'+
'<a href="javascript:cle(\'Kf\')">Impressum</a>'+
'</p>'+

'<br><br>'+

'</td>'+
' <td valign="top" width="20"></td>'+
' <td valign="top" width="155"></td>'+
'</tr>'+
'</tbody>'+
'</table>'+

'<MAP NAME="header">'+
'<AREA SHAPE=RECT COORDS="23,0,169,89" HREF="javascript:cle(\'JY\')">'+
'<AREA SHAPE=RECT COORDS="198,65,258,87" HREF="javascript:cle(\'JY\')">'+
'<AREA SHAPE=RECT COORDS="259,65,351,87" HREF="javascript:cle(\'JZ\')">'+
'</MAP>');

		rdl();
}
function print_ftr2(){
	document._shrt = new Shrt();
	document._sclr = new SClr();
	document._MKlk = new MKlk();
	document._SBox = new SBox();
	var o = document.getElementById('r_i');
	var rig = o.innerHTML;
	o.parentNode.removeChild(o);
	
	document.write(
	'</td>'+
	'<td valign="top" width="20"><img alt="" border="0" src="x0ojmQ/1x1.gif" width="20" height="1"></td>'+
	'<td valign="top" width="155">'+
	
	'<br><br>'+
		'<table width="100%" id="rmenu">'+
	'<tr>'+
	'	<td colspan="2" align="center" bgcolor="#F5F5F4" style="border-bottom: 1px dotted #333333;padding:5px;"><b>Louis Markenshops</b></td>'+
	'</tr>'+
	'<tr>'+
	'	<td colspan="2" height="0"><img alt="" border="0" src="/promotion/x0ojmQ/1x1.gif" width="1" height="10"></td>'+
	'</tr>'+
	'<tr>'+
	'	<td align="center"><a id="li01" href="javascript:cle(\'Vv\')"></a></td>'+
	'	<td align="center"><a id="li02" href="javascript:cle(\'Vy\')"></a></td>'+
	'</tr>'+
	'<tr>'+
	'	<td colspan="2" height="0"><img alt="" border="0" src="/promotion/x0ojmQ/1x1.gif" width="1" height="10"></td>'+
	'</tr>'+
	'<tr>'+
	'	<td align="center"><a id="li03" href="javascript:cle(\'VM\')"></a></td>'+
	'	<td align="center"><a id="li04" href="javascript:cle(\'Vz\')"></a></td>'+
	'</tr>'+
	'<tr>'+
	'	<td colspan="2" height="0"><img alt="" border="0" src="/promotion/x0ojmQ/1x1.gif" width="1" height="10"></td>'+
	'</tr>'+
	'<tr>'+
	'	<td align="center"><a id="li05" href="javascript:cle(\'VA\')"></a></td>'+
	'	<td align="center"><a id="li06" href="javascript:cle(\'VB\')"></a></td>'+
	'</tr>'+
	'<tr>'+
	'	<td colspan="2" height="0"><img alt="" border="0" src="/promotion/x0ojmQ/1x1.gif" width="1" height="10"></td>'+
	'</tr>'+
	'<tr>'+
	'	<td align="center"><a id="li07" href="javascript:cle(\'VC\')"></a></td>'+
	'	<td align="center"><a id="li08" href="javascript:cle(\'VD\')"></a></td>'+
	'</tr>'+
	'<tr>'+
	'	<td colspan="2" height="0"><img alt="" border="0" src="/promotion/x0ojmQ/1x1.gif" width="1" height="10"></td>'+
	'</tr>'+
	'<tr>'+
	'	<td align="center"><a id="li09" href="javascript:cle(\'VE\')"></a></td>'+
	'	<td align="center"><a id="li10" href="javascript:cle(\'Vw\')"></a></td>'+
	'</tr>'+
	'<tr>'+
	'	<td colspan="2" height="0"><img alt="" border="0" src="/promotion/x0ojmQ/1x1.gif" width="1" height="10"></td>'+
	'</tr>'+
	'<tr>'+
	'	<td align="center"><a id="li11" href="javascript:cle(\'VG\')"></a></td>'+
	'	<td align="center"><a id="li12" href="javascript:cle(\'Vx\')"></a></td>'+
	'</tr>'+
	'<tr>'+
	'	<td colspan="2" height="0"><img alt="" border="0" src="/promotion/x0ojmQ/1x1.gif" width="1" height="10"></td>'+
	'</tr>'+
	'<tr>'+
	'	<td align="center"><a id="li13" href="javascript:cle(\'VH\')"></a></td>'+
	'	<td align="center"><a id="li14" href="javascript:cle(\'13w\')"></a></td>'+
	'</tr>'+
	'	<td colspan="2" height="0"><img alt="" border="0" src="/promotion/x0ojmQ/1x1.gif" width="1" height="10"></td>'+
	'<tr>'+
	'	<td align="center"><a id="li15" href="javascript:cle(\'13v\')"></a></td>'+
	'	<td align="center"><a id="li16" href="javascript:cle(\'12L\')"></a></td>'+
	'</tr>'+
	'</tbody>'+
	'</table>'+
	'<br><br>'+

	rig+
	
	'	</td>'+
'</tr>'+
'<tr>'+
' <td valign="top" width="150" bgcolor="#7D8391"></td>'+
' <td valign="top" width="20"></td>'+
' <td valign="top" width="555">'+

'<br clear="all">'+

'<p align="center">Alle genannten Preise sind unverbindlich empfohlene Verkaufspreise inkl. Umsatzsteuer, <br>zzgl. '+
'<a href="javascript:cle(\'VJ\')">Liefer- und Versandkostenpauschale</a> (z.Zt. 3.95 &euro; in Deutschland).</p>'+
'<br><br>'+

'<p align="center">'+
'<a href="/promotion/">Home</a>'+
'|'+
'<a href="javascript:cle(\'Ke\')">Jobs & Ausbildungsplätze</a>'+
'|'+
'<a href="javascript:cle(\'K9\')">Kontakt</a>'+
'|'+
'<a href="javascript:cle(\'K5\')">AGB</a>'+
'|'+
'<a href="javascript:cle(\'K3\')">Versandkosten</a>'+
'|'+
'<a href="javascript:cle(\'K5\')">Datenschutz</a>'+
'|'+
'<a href="javascript:cle(\'Kf\')">Impressum</a>'+
'</p>'+

'<br><br>'+

'</td>'+
' <td valign="top" width="20"></td>'+
' <td valign="top" width="155"></td>'+
'</tr>'+
'</tbody>'+
'</table>'+

'<MAP NAME="header">'+
'<AREA SHAPE=RECT COORDS="23,0,169,89" HREF="javascript:cle(\'JY\')">'+
'<AREA SHAPE=RECT COORDS="198,65,258,87" HREF="javascript:cle(\'JY\')">'+
'<AREA SHAPE=RECT COORDS="259,65,351,87" HREF="javascript:cle(\'JZ\')">'+
'</MAP>');

}


function rdl(){
	var o = document.getElementById('e404go');
	if(o) {o.innerHTML = '<a href="javascript:cle(\'Vh\')">'+o.innerHTML+'</a>';}
}

// ---
function sla(o){
	var r='';
	for(var i=0; i<o.length; i=i+2)	r+=String.fromCharCode(parseInt(o.substring(i,i+2),16));
	return r;
}
function sbgt(){top.frames[0].document.forms[0].submit();}

function cle(p2,mc){
	mc=mc?mc:'';
	var f = top.frames[0].document.forms[0];
	top.frames[0].document.getElementById('trg').value = p2;
	f.mc.value = mc;
	f.submit();
}

function cl(tr,ac,mc){
	mc=mc?mc:'';
	var f = top.frames[0].document.forms[0];
	top.frames[0].document.getElementById('trg').value = tr;
	f.pd.value = ac;
	f.mc.value = mc;
	f.submit();
}

function TCIH(){$$('img.lst-index-image').each(function(i){i.addEvent('error',function(e){this.dispose();});});}

function lnpi(){
	if(pil && $('bimg')) new Element('a',{
		href:'#',
		events:{
			click:function(e){
				e.stop();
				cl(pil,dac);
			}
		}
	}).wraps($('bimg'));
}

var MKlk= new Class({
	initialize: function(){
		this.elems = $$('img.epasp4','img.epasl1','img.epaslr','img#mpsb');
		this.proc_all();
	},
	proc_all:function(){
		this.mx = this.elems.length;
		this.ci = 0;
		for(this.ci;this.ci<this.mx;this.ci++) this.proc_item();
	},
	proc_item:function(){
		if(this.elems[this.ci].id=='mpsb'){
			this.elems[this.ci].addEvent('click',function(e){
				e.stop();
				var el = $$('div.mp-img-cnt iframe');
				var p = el[0].src.replace(/.*\?par=/,'').split('|');
				cl(p[1],p[2]);
			});
		}else{
			this.elems[this.ci].addEvent('click',function(e){
				e.stop();
				var p = this.src.replace(/.*\?ps=/,'').split('|');
				p[2] ? cl(p[0],p[1],p[2]) : cl(p[0],p[1]);
			});
			var cde = $(this.elems[this.ci].id.replace(this.elems[this.ci].className+'p_',this.elems[this.ci].className+'_'));
			cde.addEvent('error',function(){this.src = '/promotion/x0ojmQ/null.gif';});
			var nat = new Element('a');
			nat.addEvent('click',function(e){
				e.stop();
				var lc = this.getParent().getLast();
				var cn = lc.className.replace(/d$/,'');
				var p = $(lc.id.replace(cn+'_',cn+'p_')).src.replace(/.*\?ps=/,'').split('|');
				p[2] ? cl(p[0],p[1],p[2]) : cl(p[0],p[1]);
			});
			nat.inject(cde.parentNode,'top');
		}
	}
});

var SClr = new Class({
	initialize:function(){
		this.cnt = $('lst-rl-cnt');
		if(!this.cnt) return;
		this.di = 1;
		this.cit = 0;
		this.csm = 0;
		this.elw = 615;
		if((this.cnt.getChildren().length-1)<=this.di) return;
		this.buildUI();
	},
	buildUI:function(){
		this.wrapItems();
		this.btns ={
			left: new Element('a',{id:'sclr-btn-left','class':'sclr-btn sclr-btn-disabled'}),
			right: new Element('a',{id:'sclr-btn-right','class':'sclr-btn sclr-btn-enabled'})
		}
		this.btns.left.addEvent('click',function(e){e.stop(); document._sclr.scrollL();});
		this.btns.right.addEvent('click',function(e){e.stop(); document._sclr.scrollR();});
		this.btns.left.inject(this.wrpprCnt,'top');
		this.btns.right.inject(this.wrpprCnt,'top');
	},
	wrapItems:function(){
		this.itemsBU = this.cnt.clone(true,true);
		this.wrpprCnt = new Element('div',{id:'sclr-cnt-wrp',html:'<div class="cl"></div>'});
		this.itemsBU.inject(this.wrpprCnt);
		this.wrpprCnt.replaces(this.cnt);
		this.msr = (this.itemsBU.getChildren().length-1)-this.di;
		this.itemsBU.setStyles({
			width:this.elw*(this.itemsBU.getChildren().length-1),
			'margin-left':0
		});
		this.itemsBU.set('morph',{duration:'long',transition:'bounce:out'});
	},
	scrollR:function(){
		if(this.cit==this.msr) return;
		this.itemsBU.morph({'margin-left':this.csm-this.elw});
		this.csm=this.csm-this.elw; this.cit++;
		if(this.cit>0) this.btns.left.set('class','sclr-btn sclr-btn-enabled');
		if(this.cit==this.msr) this.btns.right.set('class','sclr-btn sclr-btn-disabled');
	},
	scrollL:function(){
		if(this.cit==0) return;
		this.itemsBU.morph({'margin-left':this.csm+this.elw});
		this.csm=this.csm+this.elw; this.cit--;
		if(this.cit<this.msr) this.btns.right.set('class','sclr-btn sclr-btn-enabled');
		if(this.cit==0) this.btns.left.set('class','sclr-btn sclr-btn-disabled');
	}
});

var Shrt = new Class({
	initialize:function(){
		this.items = $$('p#mp-rnk-dsc','div#mp-dsc-cnt');
		this.proc_all();
	},
	proc_all:function(){
		if(!this.items) return;
		this.ioht = [];
		this.ca = this.items.length;
		this.ci = 0;
		for(this.ci;this.ci<this.ca;this.ci++) if(this.checkCL()) this.mk_short();
	},
	checkCL:function(){
		this.iss = this.items[this.ci].getScrollSize().y + (this.items[this.ci].getElementsByTagName('br').length * parseInt(this.items[this.ci].getStyles('line-height')['line-height']));
		this.ias = this.items[this.ci].getSize().y;
		if(this.iss>this.ias){
			this.ioht[this.items[this.ci].id] = {mx:this.iss,mn:this.ias};
			return true;
		}
		else return false;
	},
	mk_short:function(){
		this.items[this.ci].className = 'shrt_hidden';
		this.btn = new Element('a',{href:'#','class':'shrt_btn'});
		this.btn.addEvent('click',function(e){
			e.stop();
			document._shrt.slide(this);
		});
		this.btn.inject(this.items[this.ci],'top');
	},
	slide:function(i){
		i.getParent().morph({height:i.getParent().className=='shrt_hidden' ? this.ioht[i.parentNode.id].mx : this.ioht[i.parentNode.id].mn});
		i.getParent().className=i.getParent().className=='shrt_hidden' ? 'shrt_visible':'shrt_hidden';
	}
});


var SBox = new Class({
	Implements: Options,
	options:{
		SBtype:0 
	},
	initialize: function(options){
		this.setOptions(options);
		this.prnd;
		this.createSB();
	},
	createSB: function(){
	switch(this.options.SBtype){
		case 0:
			this.prnd = new Element('div',{
				id:'SBit2',
				html:'<div id="SBit2_hdr" class="mp-title"><b>Nicht das Richtige dabei?</b></div>'
			});
			this.tmp = new Element('form',{name:'SBi_form'});
			this.tmpinput = new Element('input',{
				id:'SBit1_qti',
				type:'text',
				name:'Query_Text',
				value:this.getKwFR()
			});
			this.tmpinput.inject(this.tmp);
			this.tmpbtn = new Element('input',{id:'SBit1_sbb',type:'image',src:'/promotion/x0ojmQ/search_btn.gif'});
			this.tmpbtn.addEvent('submit',function(e){e.stop(); ssub(1);});
			this.tmpbtn.inject(this.tmp);
			this.tmp.addEvent('submit',function(e){e.stop(); ssub(1);});
			this.tmpfc = new Element('div',{id:'SBit2_form_cnt'});
			this.tmpfc2 = new Element('div');
			this.tmpfc2.inject(this.tmpfc);
			this.tmp.inject(this.tmpfc2);
			this.tmpfc.inject(this.prnd);
			this.prnd.inject($('inclsrch'));
		break;
		}
	},
	getKwFR:function(){
		this.docref = document.referrer;
		if(this.docref.search(/^https?:\/\/(.*?)?google(syndication)?\./)>-1){
			this.refkw = this.docref.replace(/^.*(\?|\&)(q|as_q|as_epq|es_eq|as_oq|query|suchstr|ref)=/i,'').replace(/\&.*$/,'');
			this.convertKw();
			return this.refkw;
		}
		if(this.docref.search(/^https?:\/\/(.*?)?yahoo\./)>-1){
			this.refkw = this.docref.replace(/^.*(\?|\&)p=/,'').replace(/\&.*$/,'');
			this.convertKw();
			return this.refkw;
		}
		if(this.docref.search(/^https?:\/\/(.*?)?bing\./)>-1){
			this.refkw = this.docref.replace(/^.*(\?|\&)(q|mt)=/i,'').replace(/\&.*$/,'');
			this.convertKw();
			return this.refkw;
		}
		if(this.docref.search(/^https?:\/\/(.*?)?web\.de/)>-1){
			this.refkw = this.docref.replace(/^.*(\?|\&)(su)=/i,'').replace(/\&.*$/,'');
			this.convertKw();
			return this.refkw;
		}
		if(this.docref.search(/^https?:\/\/(.*?)?alltheweb\.com/)>-1){
			this.refkw = this.docref.replace(/^.*(\?|\&)(q|query)=/i,'').replace(/\&.*$/,'');
			this.convertKw();
			return this.refkw;
		}
		//try default ptterns
		this.refkw = this.docref.replace(/^.*(\?|\&)(q|query|keyword|keywords|qt|fq)=/i,'').replace(/\&.*$/,'');
		if(this.refkw.search(/^https?:\/\//i)===-1){
			this.convertKw();
			return this.refkw;
		}
		return '';
	},
	convertKw:function(){
		this.refkw = this.refkw.replace(/\+/g,' ');
		this.refkw = decodeURIComponent(this.refkw);
		this.refkw = unescape(this.refkw);
	}
});