/* © InitiativeWeb */
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-707794-5']); // Set correct UA
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script');
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
ga.setAttribute('async', 'true');
document.documentElement.firstChild.appendChild(ga);
})();

function context()  {alert('© Initiativeweb'); return(false); }
document.oncontextmenu = context;
 
function loading() {
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=loading.arguments; for(i=0; i<a.length; i++)
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}} }

function swfobject(theSWF, features, divId, bgColor) {
	if (theSWF ==  null)  theSWF = "swflash.swf"; 
	if (features ==  null)  features = "width='100%' height='100%' align='middle' "; 
	if (divId ==  null)  divId = "swflash"; 
	if (bgColor == null) bgColor = "#fbfbfb";
	swfContent = "";
	swfContent = swfContent +'<object type="application/x-shockwave-flash" data='+theSWF+' '+features+'>';
	swfContent = swfContent +'<param name="movie" value='+theSWF+' /><param name="bgcolor" value='+bgColor+' />';
	swfContent = swfContent +'<param name="wmode" value="transparent" /><param name="quality" value="high" />';
	swfContent = swfContent +'<a href="http://www.adobe.com/go/getflash/"><img src="img/noflash.jpg" alt="Get Flashplayer" /></a>';
	swfContent = swfContent +'</object>';
	if (navigator.userAgent.indexOf("Firefox") != -1) {var swfContent = '<embed src='+theSWF+' '+features+' wmode="transparent" allowfullscreen="true" quality="high" pluginspage="http://www.adobe.com/go/getflash/" type="application/x-shockwave-flash"></embed>'; }  // adapt to Firefox !
	if(!divId || document.getElementById(divId) == null) document.writeln(swfContent);
	if (divId) { var container = document.getElementById(divId); container.innerHTML = swfContent; }
}

function pop_img(Width,Height,img) { winpop=open("",'popup','width='+Width+',height='+Height+',top=0,left=100,toolbar=no,scrollbars=no,resizable=yes,title=no');
	winpop.document.write("<html>\n<head>\n<title>pop-up image</title>\n</head>\n<body>\n<center>\n<img src="+img);
	winpop.document.write("\n<br><br>\n<font size='2'><a href='javascript:window.close();'>Fermer la fenêtre</a></font>\n</center>\n</body>\n</html>"); }

function NewWindow(mypage,myname,w,h,scroll,pos){
if(pos=="random"){LeftPosition=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;}
if(pos=="center"){LeftPosition=(screen.width)?(screen.width-w)/2:100;TopPosition=(screen.height)?(screen.height-h)/2:100;}
else if((pos!="center" && pos!="random") || pos==null){LeftPosition=0;TopPosition=20}
settings='width='+w+',height='+h+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',location=no,directories=no,status=0,menubar=no,toolbar=no,resizable=no';
win=window.open(mypage,myname,settings);}
// -->
	
function pop_up(theURL,winName,features) {window.open(theURL,winName,features);}

function IWpopup(zaref,w,h){     var left = (screen.availWidth-w)/2;	var top = 20; settings += "scrollbars=no,"; settings += "toolbar=no,"; settings += "location=no,"; settings += "menubar=no,";	settings += "status=no,"; settings += "resizable=yes";	var settings = "width="+w+",height="+h+",top="+top+",left="+left+","; window.open(zaref.href,'zWin',settings);return false;}

function libstat(){ 
document.write('<script type="text/javascript">compte="833472ecoleo";couleur_lib="vert";logo_lib="1";path_lib="005098";</script>');
document.write('<script type="text/javascript" src="http://lib6.libstat.com/private/stat.js"></script>');
}

function printIt(){ 
	var ifMac=(navigator.platform.indexOf("ac") != -1);
	if (document.all && ifMac) {alert("We are sorry but this function is not available for MSIE Mac users.\nYou have to Select \"Print\" from the file menu or use [apple] + \"P\"") }
	else {if(window.print) window.print(); }
}

