var limgURL = "http://www.etab.ac-caen.fr/erea-doisneau/pub/portesouvertes.jpg";
var simgURL = "http://www.etab.ac-caen.fr/erea-doisneau/pub/portesouvertesmini.jpg";
var deeplinkURL = "http://www.etab.ac-caen.fr/erea-doisneau/a5/news/breve.php?val=789";
// Diese URL _NICHT_ verändern!
var ppURL = "http://www.etab.ac-caen.fr/erea-doisneau/pub/";
// mm fireworks generated code
function MM_findObj(n, d) {
	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);
	if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_showHideLayers() { 
	args=MM_showHideLayers.arguments;
	var testval = args[0].split(",")
	if(testval[0] == 'small') 
		toggledivs(args);
	else 
		window.setTimeout("toggledivs(args)",800);
}
//toggle divs 4 the peel
function toggledivs(args){
	var p,v,obj;
	var a1 = args[0].split(",");
	var a2 = args[1].split(",");
	var l = a1.length;
	for (var i=0; i<l; i++)
	{
		obj=MM_findObj(a1[i]);
		if (obj!=null)
		{
			v=a2[i];
			if (obj.style)
				obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v;
		}
		if(obj)
			obj.visibility=v;
	}
}

function showpeel(targetURL)
{
  targetURL = escape(targetURL);
	var html='';	
	html+='<style type="text/css">';
	html+='#small{position:absolute;right:0px;top:0px;width:150px;height:150px;z-index:1000;visibility: visible;}';
	html+='#large{position:absolute;right:0px;top:0px;width:550px;height:550px;z-index:2000;visibility: Hidden;}';
	html+='</style>';
	html+='<div id="small">';
	html+='<object id="swfSmall" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="150" height="150">';
	html+='<param name="movie" value="'+ppURL+'pagepeelsmall.swf?imagesmall='+simgURL+'&incomingURL='+targetURL+'" />';
	html+='<param name="quality" value="high" />';
	html+='<param name="wmode" value="transparent" />';
	html+='<embed src="'+ppURL+'pagepeelsmall.swf?imagesmall='+simgURL+'&incomingURL='+targetURL+'" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="150" height="150" wmode="transparent"></embed>';
	html+='</object>';
	html+='</div>';
	html+='<div id="large">';
	html+='<object id="swfBig" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="550" height="550">';
	html+='<param name="movie" value="'+ppURL+'pagepeellarge.swf?imagelarge='+limgURL+'&incomingURL='+targetURL+'" />';
	html+='<param name="quality" value="high" />';
	html+='<param name="wmode" value="transparent"  />'; 
	html+='<embed src="'+ppURL+'pagepeellarge.swf?imagelarge='+limgURL+'&incomingURL='+targetURL+'" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="550" height="550" wmode="transparent"></embed>';
	html+='</object>';
	html+='</div>';
	html+='<scr'+'ipt type="text/javascript">';
	html+='document.getElementById("swfSmall").onmouseover = function(){MM_showHideLayers("small,large","hide,show")};';
	html+='document.getElementById("swfBig").onmouseout = function(){MM_showHideLayers("large,small","hide,show")};';
	html+='</scr'+'ipt>';
	document.write(html);

}

showpeel(deeplinkURL);
