var jaaspeel = new Object();

jaaspeel.ad_url = escape('http://www.guam.it/flipbook/index.html');
jaaspeel.small_path = 'http://www.guam.it/peel/small.swf';
jaaspeel.small_image = escape('http://www.guam.it/peel/small.jpg');
jaaspeel.small_width = '100';
jaaspeel.small_height = '100';
jaaspeel.small_params = 'ico=' + jaaspeel.small_image;

jaaspeel.big_path = 'http://www.guam.it/peel/large.swf';
jaaspeel.big_image = escape('http://www.guam.it/peel/large.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 ()
{
	// <jcornerSmall>
	var html = ('<div id="jcornerSmall" style="position:absolute;width:'+ jaaspeel.small_width +'px;height:'+ jaaspeel.small_height +'px;z-index:9999;right:0px;top:0px;">');
	// object
	html += ('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"');
	html += (' codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0"');
	html += (' id="jcornerSmallObject" width="'+jaaspeel.small_width+'" height="'+jaaspeel.small_height+'">');
	// object params
	html += (' <param name="allowScriptAccess" value="always"/> ');
	html += (' <param name="movie" value="'+ jaaspeel.small_path +'?'+ jaaspeel.small_params +'"/>');
	html += (' <param name="wmode" value="transparent" />');
	html += (' <param name="quality" value="high" /> ');
	html += (' <param name="FlashVars" value="'+jaaspeel.small_params+'"/>');
	// embed
	html += ('<embed src="'+ jaaspeel.small_path + '?' + jaaspeel.small_params +'" name="jcornerSmallObject" wmode="transparent" quality="high" width="'+ jaaspeel.small_width +'" height="'+ jaaspeel.small_height +'" flashvars="'+ jaaspeel.small_params +'" allowscriptaccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>');
	html += ('</object></div>');
	html += ('</script>');
	// </jcornerSmall>
	// <jcornerBig>
	html += ('<div id="jcornerBig" style="position:absolute;width:'+ jaaspeel.big_width +'px;height:'+ jaaspeel.big_height +'px;z-index:9999;right:0px;top:0px;">');
	// object
	html += ('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"');
	html += (' codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0"');
	html += (' id="jcornerBigObject" width="'+ jaaspeel.big_width +'" height="'+ jaaspeel.big_height +'">');
	// object params
	html += (' <param name="allowScriptAccess" value="always"/> ');
	html += (' <param name="movie" value="'+ jaaspeel.big_path +'?'+ jaaspeel.big_params +'"/>');
	html += (' <param name="wmode" value="transparent"/>');
	html += (' <param name="quality" value="high" /> ');
	html += (' <param name="FlashVars" value="'+ jaaspeel.big_params +'"/>');
	// embed
	html += ('<embed src="'+ jaaspeel.big_path + '?' + jaaspeel.big_params +'" id="jcornerBigEmbed" name="jcornerBigObject" wmode="transparent" quality="high" width="'+ jaaspeel.big_width +'" height="'+ jaaspeel.big_height +'" flashvars="'+ jaaspeel.big_params +'" swliveconnect="true" allowscriptaccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>');
	html += ('</object></div>');

	$(".header .content").prepend(html);

	// </jcornerBig>
	setTimeout('document.getElementById("jcornerBig").style.top = "-1000px";',1000);
}
