//thisDomain
var thisDomain_noW = window.location.hostname.replace("www.", "");
var thisDomain = thisDomain_noW.substring(0, thisDomain_noW.indexOf('.'));

//http_host
var HTTP_HOST = 'http://' + window.location.hostname + '/';


image_small = new Array();
image_small[0]= '/images/small.jpg';  // put the small image of banner 1 here
image_small[1]= '/images/small.jpg';  // put the small image of banner 1 here
          // If you want more banners in your rotate just simply paste the line above and change the number to the next one ie image_small[2]

image_big = new Array();
image_big[0]= '/images/big.jpg';  //put the large image of banner 1 here
image_big[1]= '/images/big.jpg';  //put the large image of banner 1 here
              // If you want more banners in your rotate just simply paste the line above and change the number to the next one ie image_big[2]

GoTo = new Array();
GoTo[0]= 'http://www.floriboard.cz/clanky/ukazky-floriboardu'; //URL for banner 1
GoTo[1]= 'http://www.floriboard.cz/clanky/ukazky-floriboardu'; 	//URL for banner 1
				// again more banners add more links to the next lne ie GoTo[2]=  u.s.w.

var anzahl = 1   //Hier die Anzahl der eingetragenen Links angeben

//var nr = Math.round((anzahl -1) * Math.random());
var nr = Math.round(1);

var Link = GoTo[nr];
var Image1 = image_small[nr];
var Image2 = image_big[nr];

var esel = new Object();

esel.ad_url = escape(Link);

esel.small_path = HTTP_HOST + 'wepp/templates/js/corner.swf'; // where the page peel script is on your server
esel.small_image = escape(Image1);
esel.small_width = '100';
esel.small_height = '100';
esel.small_params = 'ico=' + esel.small_image;

esel.big_path = HTTP_HOST + 'wepp/templates/js/corner_b.swf'; //where the page peel script is on your server
esel.big_image = escape(Image2);
esel.big_width = '650';
esel.big_height = '650';
esel.big_params = 'big=' + esel.big_image + '&ad_url=' + esel.ad_url;

function sizeup987(){
	document.getElementById('eselcornerBig').style.top = '0px';
	document.getElementById('eselcornerSmall').style.top = '-1000px';
}

function sizedown987(){
	document.getElementById("eselcornerSmall").style.top = "0px";
	document.getElementById("eselcornerBig").style.top = "-1000px";
}

esel.putObjects = function () {
// <eselSmall>
document.write('<div id="eselcornerSmall" style="position:fixed;width:'+ esel.small_width +'px;height:'+ esel.small_height +'px;z-index:9999;right:0px;top:0px;^position:absolute;">');
// object
document.write('<!-- sdsdf -->');
document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"');
document.write(' codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0"');
document.write(' id="eselSmallcornerObject" width="'+esel.small_width+'" height="'+esel.small_height+'">');
// object params
document.write(' <param name="allowScriptAccess" value="always"/> ');
document.write(' <param name="movie" value="'+ esel.small_path +'?'+ esel.small_params +'"/>');
document.write(' <param name="wmode" value="transparent" />');
document.write(' <param name="quality" value="high" /> ');
document.write(' <param name="FlashVars" value="'+esel.small_params+'"/>');
// embed
document.write('<embed src="'+ esel.small_path + '?' + esel.small_params +'" name="eselcornerSmallObject" wmode="transparent" quality="high" width="'+ esel.small_width +'" height="'+ esel.small_height +'" flashvars="'+ esel.small_params +'" allowscriptaccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>');
document.write('</object></div>');
document.write('</script>');
// </eselSmall>
// <eselBig>
document.write('<div id="eselcornerBig" style="position:fixed;width:'+ esel.big_width +'px;height:'+ esel.big_height +'px;z-index:9999;right:0px;top:0px;^position:absolute">');
// object
document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"');
document.write(' codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0"');
document.write(' id="eselcornerBigObject" width="'+ esel.big_width +'" height="'+ esel.big_height +'">');
// object params
document.write(' <param name="allowScriptAccess" value="always"/> ');
document.write(' <param name="movie" value="'+ esel.big_path +'?'+ esel.big_params +'"/>');
document.write(' <param name="wmode" value="transparent"/>');
document.write(' <param name="quality" value="high" /> ');
document.write(' <param name="FlashVars" value="'+ esel.big_params +'"/>');
// embed
document.write('<embed src="'+ esel.big_path + '?' + esel.big_params +'" id="eselcornerBigEmbed" name="eselcornerBigObject" wmode="transparent" quality="high" width="'+ esel.big_width +'" height="'+ esel.big_height +'" flashvars="'+ esel.big_params +'" swliveconnect="true" allowscriptaccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>');
document.write('</object></div>');
// </eselBig>
setTimeout('document.getElementById("eselcornerBig").style.top = "-1000px";',1000);
}
esel.putObjects();
