var Kleany_Ecke = new Array();
var Kleany_Ad = new Array();

Kleany_Ecke['width'] = 537;					
Kleany_Ecke['height'] =513;

Kleany_Ecke['swingspeed'] = 4;				

Kleany_Ecke['minimized_percent'] = 20;		
Kleany_Ecke['minimized_amplitude'] = 1;		

Kleany_Ad['width'] =450;
Kleany_Ad['height'] = 450;

Kleany_Ad['img'] 	= "ecke/ecke.gif";
Kleany_Ad['grund'] 	= "ecke/big.png";
Kleany_Ad['blank'] 	= "ecke/trans.gif";
Kleany_Ad['dest'] 	= "http://www.d-i-e-t-z.de/jd/kataloge/neuheiten2010.zip";
Kleany_Ad['target'] = '_self';

var killkleanyecke = 990000;

function $(a)
{return document.getElementById(a);}

function rf_o(){
document.write("<div id=\"Kleany_BG_Div\" style=\"visibility:hidden;position:absolute;top:0px;right:0px;text-align:right;\"><img galleryimg=\"no\" id=\"Kleany_BG_Img\" src=\"" + Kleany_Ad.blank + "\" border=\"0\"></div>");
document.write("<div id=\"Kleany_Ad_Div\" style=\"visibility:hidden;position:absolute;overflow:hidden;top:0px;right:0px;text-align:right;\"><img id=\"Kleany_Ad_Iframe\" style=\"overflow:hidden;position:absolute;top:0px;right:0px;border:0px;\" src=\"" + Kleany_Ad.img + "\"></div>");
document.write("<div id=\"Kleany_Ecke_Div\" style=\"visibility:hidden;position:absolute;top:0px;right:0px;text-align:right;\"><a href=\"" + Kleany_Ad.dest + "\" target=\"_self\" ALT=\"reinigungsforum\" TITLE=\"reinigungsforum\"><img onMouseOver=\"rf_q()\" onMouseOut=\"rf_z()\" galleryimg=\"no\" id=\"Kleany_Ecke_Img\" src=\"" + Kleany_Ad.grund + "\" border=\"0\" ALT=\"klick mich\" TITLE=\"klick mich\"></a></div>");
rf_r_Kleany_BG_Div = $("Kleany_BG_Div");
rf_r_Kleany_BG_Img = $("Kleany_BG_Img");
rf_r_Kleany_Ecke_Div = $("Kleany_Ecke_Div");
rf_r_Kleany_Ecke_Img = $("Kleany_Ecke_Img");
rf_r_Kleany_Ad_Div = $("Kleany_Ad_Div");
rf_r_Kleany_Ad_Iframe = $("Kleany_Ad_Iframe");
rf_r_Kleany_Ecke_Img.style.width = "1px";
rf_r_Kleany_Ecke_Img.style.height = "1px";
rf_r_Kleany_BG_Img.style.width = "1px";
rf_r_Kleany_BG_Img.style.height = "1px";
rf_r_Kleany_Ad_Div.style.width = Kleany_Ad.width + "px";
rf_r_Kleany_Ad_Div.style.height = Kleany_Ad.height + "px";
rf_r_Kleany_Ad_Iframe.style.width = Kleany_Ad.width + "px";
rf_r_Kleany_Ad_Iframe.style.height = Kleany_Ad.height + "px";

var NS4 = (document.layers) ? true : false; 
var IE4 = (document.all && !document.getElementById) ? true : false; 
var IE5 = (document.all && document.getElementById) ? true : false; 
var NS6 = (!document.all && document.getElementById) ? true : false; 
if (NS6||NS4) 
   { 
   layerRef="document.getElementById"; 
rf_r_Kleany_Ecke_Img.src="" + Kleany_Ad.grund + ""; 
    } 
else if (IE4||IE5)
    { 
   layerRef="document.all"; 
rf_r_Kleany_Ecke_Img.style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + Kleany_Ad.grund + "', sizingMethod='scale')";
rf_r_Kleany_Ecke_Img.src ="" + Kleany_Ad.blank + "";
    } 
else {rf_g = 0;
}
window.setInterval("rf_p()", 30);
}

function rf_n(a){
set_width_ecke = Math.ceil(a / 100 * Kleany_Ecke.width);
set_height_ecke = Math.ceil(a / 100 * Kleany_Ecke.height);
rf_r_Kleany_Ecke_Img.style.width = set_width_ecke + "px";
rf_r_Kleany_Ecke_Img.style.height = set_height_ecke + "px";
set_width_rf = Math.ceil(a / 100 * Kleany_Ecke.width * rf_e.width / rf_b.width);
set_height_rf = Math.ceil(a / 100 * Kleany_Ecke.height * rf_e.height / rf_b.height);

if (set_width_rf > Kleany_Ad.width) {
set_width_rf = Kleany_Ad.width;
}
if (set_height_rf > Kleany_Ad.height) {
set_height_rf = Kleany_Ad.height;
}
rf_r_Kleany_Ad_Div.style.clip = "rect(0px, " + Kleany_Ad.width + "px, " + set_height_rf + "px, " + (Kleany_Ad.width - set_width_rf) + "px)";
rf_r_Kleany_BG_Img.style.width = set_width_ecke + "px";
rf_r_Kleany_BG_Img.style.height = set_height_ecke + "px";

if (!rf_h) {
rf_r_Kleany_BG_Div.style.visibility = "";
rf_r_Kleany_Ad_Div.style.visibility = "";
rf_r_Kleany_Ecke_Div.style.visibility = "";
rf_h = true;
}
}

function rf_p() {
var b = new Date();
var a = (rf_j.getTime() - b.getTime()) / 1000;
rf_f.ist = (rf_f.ist * rf_g + rf_f.soll) / (rf_g + 1);
rf_c.ist = (rf_c.ist * rf_g + rf_c.soll) / (rf_g + 1);
rf_n(rf_f.ist + rf_c.ist * Math.sin(a * Kleany_Ecke.swingspeed));
}

function rf_q(){
rf_f.soll = 100;
rf_c.soll = 0;
}

function rf_z(){
rf_f.soll = Kleany_Ecke.minimized_percent;
rf_c.soll = Kleany_Ecke.minimized_amplitude;
}

var rf_h = false;
var rf_k = new Array();
var rf_e = new Array();
rf_e.width = 450;
rf_e.height = 450;
var rf_b = new Array();
rf_b.width = 537;
rf_b.height = 513;
var rf_g = 5;
var rf_f = new Array();
var rf_c = new Array();
rf_f.ist = 0;
rf_c.ist = 0;
rf_z();
var rf_j = new Date();
rf_o();

window.setTimeout("killit()", killkleanyecke);
function killit()
 {
 document.getElementById("Kleany_BG_Div").style.visibility = "hidden";
 document.getElementById("Kleany_Ad_Div").style.visibility = "hidden";
 document.getElementById("Kleany_Ecke_Div").style.visibility = "hidden";
}
