function regenerate(){
    window.location.reload()
}

function regenerate2(){
    if (document.layers){
        setTimeout("window.onresize=regenerate",450)
        nn_intializemarquee()
    }
    else if (!document.all && document.getElementById){
        setTimeout("window.onresize=regenerate",450)
        n6_intializemarquee()
    }
}

function nn_intializemarquee(){
    document.tkp.document.tkc.document.write('<nobr>'+marqueecontents+'</nobr>')
    document.tkp.document.tkc.document.close()
    thelength=document.tkp.document.tkc.document.width
    nn_scrollit()
}

function n6_intializemarquee(){
    document.getElementById('tkc').innerHTML = '<nobr>'+marqueecontents+'</nobr>'
    thelength=document.getElementById('tkc').offsetWidth
    n6_scrollit()
}

function nn_scrollit(){
    if (document.tkp.document.tkc.left>=thelength*(-1)){
        document.tkp.document.tkc.left-=speed
        setTimeout("nn_scrollit()",100)
    }
    else{
    document.tkp.document.tkc.left=marqueewidth
    nn_scrollit()
    }
}

function n6_scrollit(){
    pl = parseInt(document.getElementById('tkc').style.left);
    if (pl>=thelength*(-1)){
        document.getElementById('tkc').style.left = (pl-speed) + "px";
        setTimeout("n6_scrollit()",100)
    }
    else{
    document.getElementById('tkc').style.left=marqueewidth + "px";
    n6_scrollit()
    }
}

function openpopup(){
    var a=window.open('../maquette/pg-popfil-v1.html','popfil','width=332,height=360,scrollbars=yes');
}




//Specify the marquee's width (in pixels)
var marqueewidth=180
//Specify the marquee's height (in pixels, pertains only to NS)
var marqueeheight=15
//Specify the marquee's scroll speed (larger is faster)
var speed=5
//Specify the marquee contents
var marqueecontents="<font face='arial' size=1 color=#000000 style='text-decoration:none;'><b>A86, Stade de France : bouchon sur Km</b></font>"

/*
if (document.all)
document.write('<marquee class="marq" scrollAmount='+speed+' style="width:'+marqueewidth+';height:'+marqueeheight+'">'+marqueecontents+'</marquee>')

if (document.layers)
document.write('<ilayer width='+marqueewidth+' height='+marqueeheight+' name="tkp" bgcolor="#FFFFFF"><layer name="tkc"><font face="arial" size=1 color=#FF9900>&nbsp;</font></layer></ilayer>')

if (!document.all && document.getElementById)
document.write('<div style="position:relative;overflow:hidden;width:'+marqueewidth+'px;height:'+marqueeheight+'px" id="tkp"><div id="tkc" style="position:absolute;width:0;left:0"><font face="arial" size=1 color=#FF9900>&nbsp;</font></div></div>')

*/

//window.onload=regenerate2