<!--
NS4 = document.layers;
if (NS4) {
 origWidth = innerWidth;
 origHeight = innerHeight;
}
function reDo() {
 if (innerWidth != origWidth || innerHeight != origHeight) 
 location.reload();
}
if (NS4) onresize = reDo;
function do_submit(str)
{
 document.forms[0].dummy.name = str;
 document.forms[0].submit();
}
function MM_preloadImages() { //v3.0
 var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
 var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
 if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
function MM_swapImgRestore() { //v3.0
 var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_findObj(n, d) { //v3.0
 var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
 if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
 for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document); return x;
}
function MM_swapImage() { //v3.0
 var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
 if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
function MM_jumpMenu(targ,selObj,restore){ //v3.0
 eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
 if (restore) selObj.selectedIndex=0;
}
//-- This function opens the new, empty window named floater.
function openWindow(URL) {
 winStats='toolbar=no,location=no,directories=no,menubar=no,'
 winStats+='scrollbars=yes,width=500,height=500'
 if (navigator.appName.indexOf("Microsoft")>=0) {winStats+=',left=10,top=25'
 }else{winStats+=',screenX=10,screenY=25'}
 floater=window.open(URL,"",winStats) 
}
function openBrWindow(theURL,winName,features) { //v2.0
 newWin = window.open(theURL,winName,features);
 newWin.focus()
}
var isIE4OrUp = document.all;
var isN6      = document.getElementById;
//alert("agent: "+agent+"  major: "+major);
function f1()
{
	if (isIE4OrUp)
	{	
		window.open('empfehlung.html','rabattWin');
	}
	else if (isN6)
	{
		window.open('empfehlung.html','rabattWin');		
	}
	else
	{
		window.open('empfehlung1.html','rabattWin');		
	}			
}
function changeOpenerParent( parentDocument ) { 
 opener.parent.location = parentDocument; 
 window.close( self ); 
} 

//201004
var ns4=document.layers
var ie4=document.all
var ns6=document.getElementById&&!document.all
//drag drop function for NS 4////
var dragswitch=0
var nsx
var nsy
var nstemp
function drag_dropns(name){
if (!ns4)
return
temp=eval(name)
temp.captureEvents(Event.MOUSEDOWN | Event.MOUSEUP)
temp.onmousedown=gons
temp.onmousemove=dragns
temp.onmouseup=stopns
}
function gons(e){
temp.captureEvents(Event.MOUSEMOVE)
nsx=e.x
nsy=e.y
}
function dragns(e){
if (dragswitch==1){
temp.moveBy(e.x-nsx,e.y-nsy)
return false
}
}
function stopns(){
temp.releaseEvents(Event.MOUSEMOVE)
}
//drag drop function for ie4+ and NS6////
function drag_drop(e){
if (ie4&&dragapproved){
crossobj.style.left=tempx+event.clientX-offsetx
crossobj.style.top=tempy+event.clientY-offsety
return false
}
else if (ns6&&dragapproved){
crossobj.style.left=tempx+e.clientX-offsetx
crossobj.style.top=tempy+e.clientY-offsety
return false
}
}
function initializedrag(e){
crossobj=ns6? document.getElementById("vorschau") : document.all.vorschau
var firedobj=ns6? e.target : event.srcElement
var topelement=ns6? "HTML" : "BODY"
while (firedobj.tagName!=topelement&&firedobj.id!="dragbar"){
firedobj=ns6? firedobj.parentNode : firedobj.parentElement
}
if (firedobj.id=="dragbar"){
offsetx=ie4? event.clientX : e.clientX
offsety=ie4? event.clientY : e.clientY
tempx=parseInt(crossobj.style.left)
tempy=parseInt(crossobj.style.top)
dragapproved=true
document.onmousemove=drag_drop
}
}
document.onmousedown=initializedrag
document.onmouseup=new Function("dragapproved=false")
////drag drop functions end here//////

function hidebox(){
if (ie4||ns6)
crossobj.style.visibility="hidden"
else if (ns4)
document.vorschau.visibility="hide"
}
function versteck() {
crossobj=ns6?document.getElementById("vorschau"):document.all.showimage;
hidebox();
}

///201010
function tracking(url,t,id){
if (document.referrer) {
var img="<"+"img src=\"http://www.raba.tt/includes/tracker.asp?u=" + escape(url) + "&amp;r=" + escape(document.referrer) + "&amp;t=" + t + "&amp;id="+ id + "\" style=\"float:left;\" width=1 height=1>"
document.write(img);
}
}
//-->
