//** Dynamic Drive Equal Columns Height script v1.01 (Nov 2nd, 06)
//** http://www.dynamicdrive.com/style/blog/entry/css-equal-columns-height-script/

var ddequalcolumns=new Object()
//Input IDs (id attr) of columns to equalize. Script will check if each corresponding column actually exists:
ddequalcolumns.columnswatch=["leftcolumn", "rightcolumn", "contentwrapper", "rightcolumn1","leftcolumn2", "rightcolumn2"]

ddequalcolumns.setHeights=function(reset){
var tallest=0
var resetit=(typeof reset=="string")? true : false
for (var i=0; i<this.columnswatch.length; i++){
if (document.getElementById(this.columnswatch[i])!=null){
if (resetit)
document.getElementById(this.columnswatch[i]).style.height="auto"
if (document.getElementById(this.columnswatch[i]).offsetHeight>tallest)
tallest=document.getElementById(this.columnswatch[i]).offsetHeight
}
}
if (tallest>0){
for (var i=0; i<this.columnswatch.length; i++){
if (document.getElementById(this.columnswatch[i])!=null)
document.getElementById(this.columnswatch[i]).style.height=tallest+"px"
}
}
}

ddequalcolumns.resetHeights=function(){
this.setHeights("reset")
}

ddequalcolumns.dotask=function(target, functionref, tasktype){ //assign a function to execute to an event handler (ie: onunload)
var tasktype=(window.addEventListener)? tasktype : "on"+tasktype
if (target.addEventListener)
target.addEventListener(tasktype, functionref, false)
else if (target.attachEvent)
target.attachEvent(tasktype, functionref)
}

ddequalcolumns.dotask(window, function(){ddequalcolumns.setHeights()}, "load")
ddequalcolumns.dotask(window, function(){if (typeof ddequalcolumns.timer!="undefined") clearTimeout(ddequalcolumns.timer); ddequalcolumns.timer=setTimeout("ddequalcolumns.resetHeights()", 200)}, "resize")



/***********************************************
* Cross browser Marquee II- © Dynamic Drive (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit http://www.dynamicdrive.com/ for this script and 100s more.
***********************************************/

var delayb4scroll=2000 //Specify initial delay before marquee starts to scroll on page (2000=2 seconds)
var marqueespeed=1 //Specify marquee scroll speed (larger is faster 1-10)
var pauseit=1 //Pause marquee onMousever (0=no. 1=yes)?

////NO NEED TO EDIT BELOW THIS LINE////////////
//marquee
var copyspeed=marqueespeed;
var pausespeed=(pauseit==0)? copyspeed: 0;
var actualheight='';

//marquee2
var copyspeed1=marqueespeed;
var pausespeed1=(pauseit==0)? copyspeed1: 0;
var actualheight1='';

//marquee
function scrollmarquee(){
if (parseInt(cross_marquee.style.top)>(actualheight*(-1)+8))
cross_marquee.style.top=parseInt(cross_marquee.style.top)-copyspeed+"px";
else
cross_marquee.style.top=parseInt(marqueeheight)+8+"px";
}

function initializemarquee(){
cross_marquee=document.getElementById("vmarquee");
cross_marquee.style.top=0;
marqueeheight=document.getElementById("marqueecontainer").offsetHeight;
actualheight=cross_marquee.offsetHeight;
if (window.opera || navigator.userAgent.indexOf("Netscape/7")!=-1){ //if Opera or Netscape 7x, add scrollbars to scroll and exit
cross_marquee.style.height=marqueeheight+"px";
cross_marquee.style.overflow="scroll";
return
}
setTimeout('lefttime=setInterval("scrollmarquee()",30)', delayb4scroll);
}

if (window.addEventListener)
window.addEventListener("load", initializemarquee, false);
else if (window.attachEvent)
window.attachEvent("onload", initializemarquee);
else if (document.getElementById)
window.onload=initializemarquee;
/*071015
// Marquee 2
function scrollmarquee1(){
if (parseInt(cross_marquee1.style.top)>(actualheight1*(-1)+8))
cross_marquee1.style.top=parseInt(cross_marquee1.style.top)-copyspeed1+"px";
else
cross_marquee1.style.top=parseInt(marqueeheight)+8+"px";
}

function initializemarquee1(){
cross_marquee1=document.getElementById("vmarquee1");
cross_marquee1.style.top=0;
marqueeheight=document.getElementById("marqueecontainer1").offsetHeight;
actualheight1=cross_marquee1.offsetHeight;
if (window.opera || navigator.userAgent.indexOf("Netscape/7")!=-1){ //if Opera or Netscape 7x, add scrollbars to scroll and exit
cross_marquee1.style.height=marqueeheight+"px";
cross_marquee1.style.overflow="scroll";
return
}
setTimeout('lefttime=setInterval("scrollmarquee1()",30)', delayb4scroll);
}

if (window.addEventListener)
window.addEventListener("load", initializemarquee1, false);
else if (window.attachEvent)
window.attachEvent("onload", initializemarquee1);
else if (document.getElementById)
window.onload=initializemarquee1;
071015*/
//070831
//fonction d'ouverture de fenêtre
function openthiswindow(url) {
	LPos = (screen.width) ? (((screen.width) <= 800)? 5 :(screen.width - 775) / 2) : 20;
	TPos = (screen.height) ? (((screen.height) <= 600)? 5 :(screen.height - 530) / 2) : 20;
	documentWindow = window.open(url,"documentWindow","width=768,height=490,location=no,scrollbars=yes,menubar=yes,resizable=yes,toolbar=yes");
	documentWindow.name = "ah ah";
	documentWindow.focus();
}
function openchildwindow(url,w,h) {
	LPos = (screen.width) ? (((screen.width) < 800)? 0 :((screen.width - w) / 3)*2) : 0;
	TPos = (screen.height) ? (((screen.height) <= 600)? 0 :((screen.height - h) / 3)*2) : 0;
	h = h+20;
	childWindow = window.open(url,"childWindow","width="+w+",height="+h+",resizable=yes,scrollbars=yes,status=no");
	childWindow.moveTo(LPos, TPos);
	childWindow.focus();
} 
