//Legal var
 var content='';

// JavaScript Document
	var fWidth;
	var fHeight;
	
	function get_center(){
	//For old IE browsers
	if(document.all)
	{
		fWidth = document.body.clientWidth;
		fHeight = document.body.clientHeight;
	}
	//For DOM1 browsers
	else if(document.getElementById &&!document.all)
	{
		fWidth = innerWidth;
		fHeight = innerHeight;
	}
	else if(document.getElementById)
	{
		fWidth = innerWidth;
		fHeight = innerHeight;
	}
	//For Opera
	else if (is.op)
	{
		fWidth = innerWidth;
		fHeight = innerHeight;
	}
	//For old Netscape
	else if (document.layers)
	{
		fWidth = window.innerWidth;
		fHeight = window.innerHeight;
	}
	}


function POPLegal(content,titel){
get_center();
Stamp = new Date();	
var Hours;
var Mins;
var Time;
Hours = Stamp.getHours();
Mins = Stamp.getMinutes();
sec = Stamp.getSeconds();

  var  dH = 147;/*145*/
  var  dW= 370;
  
  //nbr aleatoir
  nombre= Math.floor(Math.random() * 100)+20;
	new popUp(((fWidth/2)-(dW/2))+nombre,((fHeight/2)-(dH/2))+nombre, (dW+26), (dH+50), Hours+Mins+sec, content, "black", "black", "bold 10pt sans-serif", titel, "#6D6B63", "white", "#dddddd", "gray", "", true, true, false, true, false);	
}


function CloseAllpopUps(){
var reg=new RegExp("[|]", "g");
var tableau=$('toclose').value.split(reg);



for (var i=0; i<tableau.length; i++) {
hidebox(tableau[i]);
}

}

/***********************************************
* Flashing Link Script- © Dynamic Drive (www.dynamicdrive.com)
* This notice must stay intact for use
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/

var flashlinks=new Array()

function changelinkcolor(){
for (i=0; i< flashlinks.length; i++){
var flashtype=document.getElementById? flashlinks[i].getAttribute("flashtype")*1 : flashlinks[i].flashtype*1
var flashcolor=document.getElementById? flashlinks[i].getAttribute("flashcolor") : flashlinks[i].flashcolor
if (flashtype==0){
if (flashlinks[i].style.color!=flashcolor)
flashlinks[i].style.color=flashcolor
else
flashlinks[i].style.color=''
}
else if (flashtype==1){
if (flashlinks[i].style.backgroundColor!=flashcolor)
flashlinks[i].style.backgroundColor=flashcolor
else
flashlinks[i].style.backgroundColor=''
}
}
}

function init(){
var i=0
if (document.all){
while (eval("document.all.flashlink"+i)!=null){
flashlinks[i]= eval("document.all.flashlink"+i)
i++
} 
}
else if (document.getElementById){
while (document.getElementById("flashlink"+i)!=null){
flashlinks[i]= document.getElementById("flashlink"+i)
i++
}
}
setInterval("changelinkcolor()", 1000)
}

if (window.addEventListener)
window.addEventListener("load", init, false)
else if (window.attachEvent)
window.attachEvent("onload", init)
else if (document.all)
window.onload=init
