var jaaspeel = new Object();

jaaspeel.ad_url = escape('http://www.winterhalter-scout.de');

jaaspeel.small_path = 'fileadmin/multimedia/small.swf';
jaaspeel.small_image = escape('fileadmin/multimedia/small.jpg');
jaaspeel.small_width = '100';
jaaspeel.small_height = '100';
jaaspeel.small_params = 'ico=' + jaaspeel.small_image;

jaaspeel.big_path = 'fileadmin/multimedia/large.swf';
jaaspeel.big_image = escape('fileadmin/multimedia/pagepeel-it.jpg');
jaaspeel.big_width = '650';
jaaspeel.big_height = '650';
jaaspeel.big_params = 'big=' + jaaspeel.big_image + '&ad_url=' + jaaspeel.ad_url;

function sizeup987(){
	document.getElementById('jcornerBig').style.top = '0px';
	document.getElementById('jcornerSmall').style.top = '-1000px';

}

function sizedown987(){
	document.getElementById('jcornerSmall').style.top = '0px';
	document.getElementById('jcornerBig').style.top = '-1000px';
}


jaaspeel.putObjects = function () {
	if(document.getElementById("meta")==null){
		window.setTimeout("jaaspeel.putObjects()", 1000);
	}else{
		var myDIV = document.createElement("div");
		myDIV.setAttribute("id", "jcornerSmall");
		var stylecfg = 'position:absolute; width:'+ jaaspeel.small_width +'px; height:'+ jaaspeel.small_height +'px; z-index:9999; left:'+(document.getElementById("meta").parentNode.offsetWidth-jaaspeel.small_width+20)+'; top:0;';
		myDIV.setAttribute("style", stylecfg);
		
		var myOBJ = document.createElement("object");
		myOBJ.setAttribute("classid", "clsid:D27CDB6E-AE6D-11cf-96B8-444553540000");
		myOBJ.setAttribute("codebase", "http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0");
		myOBJ.setAttribute("id", "jcornerSmallObject");
		myOBJ.setAttribute("width", jaaspeel.small_width);
		myOBJ.setAttribute("height", jaaspeel.small_height);
		myOBJ.setAttribute("wmode", "transparent");
		var myPARAM1 = document.createElement("param");
		myPARAM1.setAttribute("name", "allowScriptAccess");
		myPARAM1.setAttribute("value", "always");
		myOBJ.appendChild(myPARAM1);
		var myPARAM2 = document.createElement("param");
		myPARAM2.setAttribute("name", "movie");
		myPARAM2.setAttribute("value", jaaspeel.small_path+"?"+jaaspeel.small_params);
		myOBJ.appendChild(myPARAM2);
		var myPARAM3 = document.createElement("param");
		myPARAM3.setAttribute("name", "wmode");
		myPARAM3.setAttribute("value", "transparent");
		myOBJ.appendChild(myPARAM3);
		var myPARAM4 = document.createElement("param");
		myPARAM4.setAttribute("name", "quality");
		myPARAM4.setAttribute("value", "high");
		myOBJ.appendChild(myPARAM4);
		var myPARAM5 = document.createElement("param");
		myPARAM5.setAttribute("name", "FlashVars");
		myPARAM5.setAttribute("value", jaaspeel.small_params);
		myOBJ.appendChild(myPARAM5);
		var myEMBED = document.createElement("embed");
		myEMBED.setAttribute("src", jaaspeel.small_path+"?"+jaaspeel.small_params);
		myEMBED.setAttribute("name", "jcornerSmallObject");
		myEMBED.setAttribute("wmode", "transparent");
		myEMBED.setAttribute("width", jaaspeel.small_width);
		myEMBED.setAttribute("height", jaaspeel.small_height);
		myEMBED.setAttribute("flashvars", jaaspeel.small_params);
		myEMBED.setAttribute("allowscriptaccess", "always");
		myEMBED.setAttribute("type", "application/x-shockwave-flash");
		myEMBED.setAttribute("pluginspage", "http://www.macromedia.com/go/getflashplayer");
		myOBJ.appendChild(myEMBED);
		
		myDIV.appendChild(myOBJ);
		
		var pos = document.getElementById("meta").parentNode;
		
		pos.appendChild(myDIV);
		// </jcornerSmall>
		// <jcornerBig>
		myDIVbig = document.createElement("div");
		myDIVbig.setAttribute("id", "jcornerBig");
		var stylecfgbig = 'position:absolute; width:'+ jaaspeel.big_width +'px; height:'+ jaaspeel.big_height +'px; z-index:9999; left:'+(document.getElementById("meta").parentNode.offsetWidth-jaaspeel.big_width+20)+'; top:0;';
		myDIVbig.setAttribute("style", stylecfgbig);
		
		var myOBJbig = document.createElement("object");
		myOBJbig.setAttribute("classid", "clsid:D27CDB6E-AE6D-11cf-96B8-444553540000");
		myOBJbig.setAttribute("codebase", "http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0");
		myOBJbig.setAttribute("id", "jcornerBigObject");
		myOBJbig.setAttribute("width", jaaspeel.big_width);
		myOBJbig.setAttribute("height", jaaspeel.big_height);
		myOBJbig.setAttribute("wmode", "transparent");
		
		var myPARAM1big = document.createElement("param");
		myPARAM1big.setAttribute("name", "allowScriptAccess");
		myPARAM1big.setAttribute("value", "always");
		myOBJbig.appendChild(myPARAM1big);
		var myPARAM2big = document.createElement("param");
		myPARAM2big.setAttribute("name", "movie");
		myPARAM2big.setAttribute("value", jaaspeel.big_path+"?"+jaaspeel.big_params);
		myOBJbig.appendChild(myPARAM2big);
		var myPARAM3big = document.createElement("param");
		myPARAM3big.setAttribute("name", "wmode");
		myPARAM3big.setAttribute("value", "transparent");
		myOBJbig.appendChild(myPARAM3big);
		var myPARAM4big = document.createElement("param");
		myPARAM4big.setAttribute("name", "quality");
		myPARAM4big.setAttribute("value", "high");
		myOBJbig.appendChild(myPARAM4big);
		var myPARAM5big = document.createElement("param");
		myPARAM5big.setAttribute("name", "FlashVars");
		myPARAM5big.setAttribute("value", jaaspeel.big_params);
		myOBJbig.appendChild(myPARAM5big);
		var myEMBEDbig = document.createElement("embed");
		myEMBEDbig.setAttribute("src", jaaspeel.big_path+"?"+jaaspeel.big_params);
		myEMBEDbig.setAttribute("name", "jcornerSmallObject");
		myEMBEDbig.setAttribute("wmode", "transparent");
		myEMBEDbig.setAttribute("width", jaaspeel.big_width);
		myEMBEDbig.setAttribute("height", jaaspeel.big_height);
		myEMBEDbig.setAttribute("id", "jcornerBigEmbed");
		myEMBEDbig.setAttribute("name", "jcornerBigObject");
		myEMBEDbig.setAttribute("flashvars", jaaspeel.big_params);
		myEMBEDbig.setAttribute("allowscriptaccess", "always");
		myEMBEDbig.setAttribute("swliveconnect", "true");
		myEMBEDbig.setAttribute("type", "application/x-shockwave-flash");
		myEMBEDbig.setAttribute("pluginspage", "http://www.macromedia.com/go/getflashplayer");
		myOBJbig.appendChild(myEMBEDbig);
			
		myDIVbig.appendChild(myOBJbig);
		
		//myText = document.createTextNode(pptext);
		//myDIV.appendChild(myText);
		posbig = document.getElementById("meta").parentNode;
		
		posbig.appendChild(myDIVbig);
		
		setTimeout('document.getElementById("jcornerBig").style.top = "-1000px";',1000);
	}
}
jaaspeel.putObjects();
