var theight=22;	
var transtime=2000;	
borderw=0;	
var pad_top=4;	
var pad_top2=4;	
var pad_left=8;	
var pad_left2=0;	
borderd='border-style:solid; border-width:0px; border-color:#000000;';	
var text_alignt='left';	
var text_alignh='left';	
var text_decort='none';	
var text_decorh='none';	
var fstylet='normal';	
var fstyleh='normal';	
var fweightt='bold';	
var fweighth='bold';	
var fontn='Verdana';	
bgcol = '#004FA3';	
bgcolh = '#FFFFFF';	
txtcol = '#FFFFFF';	
txthicol = '#6EBA5B';	
txtcolh = '#254262';	
border_color_str='#000000';	
var nstheight=0,nst2width=0;

var text = new Array();
text[0] = "Le septuagénaire de Windsor est retrouvé sans vie";
text[1] = "La conquête mondiale de BIXI commence par Londres";
text[2] = "La Cour Suprême a refusé d'accorder un nouveau procès à Robert Pickton";
text[3] = "Commission Bastarache Bellemare demande l'annulation de la commission";
text[4] = "Une page Wikipedia modifiée par la Défense nationale?";
text[5] = "Les pompiers de Drummondville sonnent l'alarme";
text[6] = "Alex Hilton retourne en prison";
text[7] = "Une fillette de six ans dans un état critique";
text[8] = "Une adolescente de Québec se noie au Guatemala";
text[9] = "Collision à Ste-Brigitte: les deux blessés n'étaient pas attachés";
text[10] = "L'Académie lavalloise sauvée… pour l'instant";
text[11] = "Suspect de meurtre recherché";
text[12] = "Les voleurs au bâton de baseball épinglés";
text[13] = "La Chine désapprouve les sanctions de l'UE contre l'Iran";
text[14] = "Secteur industriel Duberger Happée mortellement par un train";
text[15] = "Google évoque un possible incident technique en Chine";
text[16] = "Un litige impliquant Mexicana affecte des touristes québécois";
text[17] = "Le ministre Blackburn rassurant";
text[18] = "Frénésie à Montréal pour le lancement de l'iPhone 4";
text[19] = "Marée noire au Michigan: Enbridge sur la sellette";

var header = new Array();
header[0] = "&nbsp;&nbsp;Cyberpresse";
header[1] = "&nbsp;&nbsp;Canoë";
header[2] = "&nbsp;&nbsp;Cyberpresse";
header[3] = "&nbsp;&nbsp;Radio-Canada";
header[4] = "&nbsp;&nbsp;Cyberpresse";
header[5] = "&nbsp;&nbsp;Cyberpresse";
header[6] = "&nbsp;&nbsp;Canoë";
header[7] = "&nbsp;&nbsp;Radio-Canada";
header[8] = "&nbsp;&nbsp;Québec Hebdo";
header[9] = "&nbsp;&nbsp;leSoleil";
header[10] = "&nbsp;&nbsp;Canoë";
header[11] = "&nbsp;&nbsp;Rue Frontenac";
header[12] = "&nbsp;&nbsp;Voix de l'Est";
header[13] = "&nbsp;&nbsp;Radio Chine Internationale";
header[14] = "&nbsp;&nbsp;Radio-Canada";
header[15] = "&nbsp;&nbsp;nouvelobs.com";
header[16] = "&nbsp;&nbsp;Rock Détente";
header[17] = "&nbsp;&nbsp;Radio-Canada";
header[18] = "&nbsp;&nbsp;BRANCHEZ-VOUS.com";
header[19] = "&nbsp;&nbsp;Cyberpresse";

var linka = new Array();
linka[0] = "http://www.cyberpresse.ca/la-tribune/faits-divers/201007/30/01-4302665-le-septuagenaire-de-windsor-est-retrouve-sans-vie.php";
linka[1] = "http://argent.canoe.ca/lca/affaires/international/archives/2010/07/20100730-160017.html";
linka[2] = "http://www.cyberpresse.ca/le-droit/actualites/justice-et-faits-divers/201007/30/01-4302642-la-cour-supreme-a-refuse-daccorder-un-nouveau-proces-a-robert-pickton.php";
linka[3] = "http://www.radio-canada.ca/nouvelles/Politique/2010/07/30/002-bellemare-bastarache.shtml";
linka[4] = "http://www.cyberpresse.ca/actualites/quebec-canada/201007/30/01-4302475-une-page-wikipedia-modifiee-par-la-defense-nationale.php";
linka[5] = "http://www.cyberpresse.ca/la-tribune/centre-du-quebec/201007/30/01-4302648-les-pompiers-de-drummondville-sonnent-lalarme.php";
linka[6] = "http://fr.canoe.ca/infos/societe/archives/2010/07/20100730-145418.html";
linka[7] = "http://www.radio-canada.ca/regions/Quebec/2010/07/30/003-fillette_heurtee_Qc.shtml";
linka[8] = "http://www.quebechebdo.com/Actualites/2010-07-30/article-1638282/Une-adolescente-de-Quebec-se-noie-au-Guatemala/1";
linka[9] = "http://www.cyberpresse.ca/le-soleil/actualites/justice-et-faits-divers/201007/30/01-4302427-collision-a-ste-brigitte-les-deux-blesses-netaient-pas-attaches.php";
linka[10] = "http://fr.canoe.ca/infos/quebeccanada/archives/2010/07/20100730-163625.html";
linka[11] = "http://www.ruefrontenac.com/nouvelles-generales/faitsdivers/25941-suspect-de-meurtre-recherche";
linka[12] = "http://www.cyberpresse.ca/la-voix-de-lest/actualites/201007/30/01-4302451-les-voleurs-au-baton-de-baseball-epingles.php";
linka[13] = "http://french.cri.cn/781/2010/07/30/402s224576.htm";
linka[14] = "http://www.radio-canada.ca/regions/Quebec/2010/07/30/002-accident_train_duberger.shtml";
linka[15] = "http://hightech.nouvelobs.com/actualites/depeche/20100730.REU5519/google-evoque-un-possible-incident-technique-en-chine.html";
linka[16] = "http://www.rockdetente.com/montreal/actualites/nouvelles-locales/144749-un-litige-impliquant-mexicana-affecte-des-touristes-quebecois/";
linka[17] = "http://www.radio-canada.ca/regions/saguenay-lac/2010/07/30/004-reaction_escadre_expeditionnai.shtml";
linka[18] = "http://techno.branchez-vous.com/actualite/2010/07/frenesie_a_montreal_pour_le_la.html";
linka[19] = "http://www.cyberpresse.ca/international/etats-unis/201007/30/01-4302462-maree-noire-au-michigan-enbridge-sur-la-sellette.php";

var targa = new Array();
targa[0] = "_blank";
targa[1] = "_blank";
targa[2] = "_blank";
targa[3] = "_blank";
targa[4] = "_blank";
targa[5] = "_blank";
targa[6] = "_blank";
targa[7] = "_blank";
targa[8] = "_blank";
targa[9] = "_blank";
targa[10] = "_blank";
targa[11] = "_blank";
targa[12] = "_blank";
targa[13] = "_blank";
targa[14] = "_blank";
targa[15] = "_blank";
targa[16] = "_blank";
targa[17] = "_blank";
targa[18] = "_blank";
targa[19] = "_blank";

var divtext = new Array();	
var divh = new Array();	
var objst = new Array();	
var objs = new Array();	
var objsh = new Array();

var IE4B=false;
var NS4B=false;
var NS6B=false;
var OP5B=false;	
NS4B=((document.layers)?true:false);	
IE4B=((document.all)?true:false);	
NS6B=((document.getElementById)&&(!IE4B))?true:false;	
uagent = window.navigator.userAgent.toLowerCase();
IE5=false;
IE4=false;
IEold=false;
IE5=(uagent.indexOf('msie 5.0') != -1)?true:false;
IE4=(uagent.indexOf('msie 4') != -1)?true:false;
if(IE5||IE4){IEold=true;}	
OP5B=(uagent.indexOf('opera') != -1)?true:false;	
if(OP5B==true){IE4B=false;NS6B=true;}	
if(NS6B==true){IE4B=false;}

var ns6obj=null;	
var str2='';	
var msgw,msgh;	
var mc=0;	
var say=0,onceki=0;	msgw=772-167;	
mc=text.length;	onceki=mc-1;	
strpos='';strvis='';strpadding='',strpadding2='';nsdiv='';	
nstheight=theight-borderw-borderw;	
nst2width=772-borderw-borderw;		
pad_top=pad_top-borderw;	
if(pad_top<0){pad_top=0;}	
pad_top2=pad_top2-borderw;	
if(pad_top2<0){pad_top2=0;}

if(IE4B){	
strpos='position:absolute;';	
strvis='';	
strpadding='padding-top:'+pad_top+'px;padding-left:'+pad_left+'px;';	
strpadding2='padding-top:'+pad_top2+'px;padding-left:'+pad_left2+'px;';
}

else if(NS6B)
{	
strpos='position:absolute;';	
strvis='visibility:hidden;';	
strpadding='padding-top:'+pad_top+'px;padding-left:'+pad_left+'px;';	
strpadding2='padding-top:'+pad_top2+'px;padding-left:'+pad_left2+'px;';
}

divtev1=' onmouseover="mdivmo(';	divtev2=')" onmouseout ="restime(';	divtev3=')" onclick="butclick(';	divtev4=')"';

for(i=0;i<mc;i++)	
{		
if(IE4B)		
{			
divtext[i]='<div id=d'+i+' onmouseover="mdivmo('+i+')" onmouseout ="restime('+i+')" onclick="butclick('+i+')"'+' style="'+strpos+''+strvis+'background:'+bgcol+'; COLOR: '+txtcol+'; '+strpadding+' left:'+167+'; top:0; width:1600 ;height:'+theight+'; FONT-FAMILY: '+fontn+'; FONT-SIZE: '+8+'pt; font-style: '+fstylet+'; font-weight: '+fweightt+'; margin:0px; TEXT-DECORATION: '+text_decort+'; overflow-y:hidden;text-align:'+text_alignt+';cursor: default;">';			divh[i]='<div id=dh'+i+' style="'+strpos+''+strvis+'background:'+bgcolh+'; COLOR: '+txtcolh+'; '+strpadding2+' left:0; top:0; width:'+167+'; height:'+theight+'; FONT-FAMILY: '+fontn+'; FONT-SIZE: '+9+'pt; font-style: '+fstyleh+'; font-weight: '+fweighth+'; TEXT-DECORATION: '+text_decorh+';margin:0px; overflow:hidden;;text-align:'+text_alignh+';cursor: default;">';		
} 
else if(NS6B)		
{			
divtext[i]='<div id=d'+i+' onmouseover="mdivmo('+i+')" onmouseout ="restime('+i+')" onclick="butclick('+i+')"'+' style="'+strpos+''+strvis+'background:'+bgcol+'; COLOR: '+txtcol+'; '+strpadding+' left:'+167+'; top:0; width:1600 ;height:'+nstheight+'; FONT-FAMILY: '+fontn+'; FONT-SIZE: '+8+'pt; font-style: '+fstylet+'; font-weight: '+fweightt+'; TEXT-DECORATION: '+text_decort+';margin:0px; overflow-y:hidden;text-align:'+text_alignt+';cursor: default;">';			divh[i]='<div id=dh'+i+' style="'+strpos+''+strvis+'background:'+bgcolh+'; COLOR: '+txtcolh+'; '+strpadding2+' left:0; top:0; width:'+167+'; height:'+nstheight+'; FONT-FAMILY: '+fontn+'; FONT-SIZE: '+9+'pt; font-style: '+fstyleh+'; font-weight: '+fweighth+'; TEXT-DECORATION: '+text_decorh+';margin:0px;overflow:hidden;text-align:'+text_alignh+';cursor: default;">';		
}	
}


function mdivmo(gnum)	
{	if(IE4B)	
{		
if(linka[gnum]!='')		
{			
objd=eval('d'+gnum);			
objd.style.color=txthicol;			
objd.style.cursor='hand';			
window.status=''+linka[gnum];		
}	
}	
else if(NS6B)	
{		
if(linka[gnum]!='')		
{			
objs[onceki].style.color=txthicol;			
objs[onceki].style.cursor='pointer';			
window.status=''+linka[gnum];		
}	
}}

function restime(gnum2){	
if(IE4B)	
{		
objd=eval('d'+gnum2);		
objd.style.color=txtcol;		
window.status='';	
}	
else if(NS6B)	
{		
objs[onceki].style.color=txtcol;		
window.status='';	
}
}

function butclick(gnum3){	
if(targa[gnum3]==''){targa[gnum3]='_self';}	
if(IE4B){window.open(''+linka[gnum3],''+targa[gnum3]);	
}	
else if(NS6B)
{		
window.open(''+linka[gnum3],''+targa[gnum3]);	
}
}

if(IE4B){} 
else if(NS6B){	str2='';	for(i=0;i<mc;i++)	
{		str2=str2+'<div id=op'+i+' style="position:absolute;overflow:hidden;'+strvis+' left:0;top:0;width:'+nst2width+'; height:'+nstheight+';'+strvis+borderd+'">';		str2=str2+''+divh[i]+header[i]+'</div>'+divtext[i]+''+text[i]+'</div>';		str2=str2+'</div>';	
}
} 
else if(NS4B){}


function dotrans(){	
if(IE4B)	
{			spage.innerHTML =''+divh[say]+'</div>'+divtext[say]+'</div>';			
if(IEold!=true){spage.filters[0].apply();}			
spage.innerHTML =''+divh[say]+header[say]+'</div>'+divtext[say]+text[say]+'</div>';			
if(IEold!=true){spage.filters[0].play();}		
setTimeout('dotrans()',3000+transtime);	} 

else if(NS6B)	{		
objsh[say].style.visibility='visible';		
objsh[onceki].style.visibility='hidden';		
objs[say].style.color=txtcol;		
objs[say].style.visibility='visible';		
objs[onceki].style.visibility='hidden';		
objst[say].style.visibility='visible';		
objst[onceki].style.visibility='hidden';		
onceki=say;		
setTimeout('dotrans()',3000);	
}	
say++;	if(say>=mc){say=0;}
}

function dofirst()	{		
var i=0;		
var str="";		
for(i=0;i<mc;i++)		
{			
str="d"+i;				
objs[i]=document.getElementById(str);			
objs[i].style.left=""+167+"px";			
objs[i].style.top="0px";			
objs[i].style.visibility="hidden";			
str="dh"+i;				
objsh[i]=document.getElementById(str);			
objsh[i].style.left="0px";			
objsh[i].style.top="0px";			
objsh[i].style.visibility="hidden";			
str="op"+i;				
objst[i]=document.getElementById(str);			
objst[i].style.left="0px";			
objst[i].style.top="0px";			
objst[i].style.visibility="hidden";		
}		

objs[0].style.visibility="visible";		
objsh[0].style.visibility="visible";		
objst[0].style.visibility="visible";		
dotrans();	
}
	
function initte()	
{							
if(IE4B)			
{					
spage.style.borderStyle="solid";			
spage.style.borderWidth=""+borderw+"px";			
spage.style.borderColor=border_color_str;			
spage.innerHTML=""+divh[say]+header[say]+"</div>"+divtext[0]+text[0]+"</div>";			
say=1;			
setTimeout('dotrans()',3000);		
} 
else if(NS6B)		
{			
say=0;			
ns6obj=document.getElementById('spage');			
ns6obj.innerHTML=str2;			
setTimeout('dofirst()',500);		
}	
}
window.onload=initte;
