/* Include channels.js */

if(!window.Msn){window.Msn={};}

Msn.Flash=new function(){var me=this;var flv=null;var d=document;var w=window;function E(id){return d.getElementById(id);}
function flVer(){if(flv===null){flv=0;var i,f=null,p=w.navigator.plugins;if(p&&p.length){f=(p["Shockwave Flash"]||p["Shockwave Flash 2.0"]);if(f&&(i=f.description)){flv=parseInt(i.substring(i.indexOf('.')-2));}}
else if(w.ActiveXObject){for(i=15;i>2&&!f;--i){eval("try{f=new ActiveXObject('ShockwaveFlash.ShockwaveFlash.'+i);}catch(e){}");if(f){flv=i;}}}}
return flv;}
this.Version=function(){return flVer();};this.Build=function(f,v,wf,hf,id,pf){var m=5;if(v){var p=v.lastIndexOf(' ');if(p>0){p=parseInt(v.substring(p));}
else{p=parseInt(v);}
m=(isNaN(p)?m:p);}
if(m<=flVer()){var defs={movie:f,quality:'high'};var el='<object id="'+id+'obj" type="application/x-shockwave-flash" width="'+
wf+'" height="'+hf+'" data="'+f+'">';if(pf)
{for(var r in defs)
{if(!pf[r])
{pf[r]=defs[r];}}}
else
{pf=defs;}
for(var p in pf)
{if(pf[p])
{el+='<param name="'+p+'" value="'+pf[p]+'"/>';}}
el+='</object>';var dv=(id?d.getElementById(id):null);if(dv){dv.innerHTML=el;}
else{d.write(el);}}};return this;};

Msn.Video=new function(){var me=this;this.OnVideoTitle=function(text,id)
{var id=id+"_t";if(checkString(text)&&checkString(id))
{var el=document.getElementById(id);if(el)
{el.innerHTML=text;}}}
this.OnLinkback=function(text,url,id)
{var id=id+"_m";var c;var el=document.getElementById(id);var css;if(el)
{el.innerHTML="";for(c=0;c<=text.length-1;c++)
{if(checkString(text[c])&&checkString(url[c]))
{css=(c==text.length-1)?"linkback last":"linkback";el.innerHTML=el.innerHTML+'<a class="'+css+'" href="'+url[c]+'">'+text[c]+'</a>';}}}}
this.OnAdLoaded=function(adData,id)
{var id=id+"_a";if(checkObject(adData)&&checkString(adData.imageUrl)&&checkArray(adData.clickUrls,2)&&checkString(id))
{var el=document.getElementById(id);if(el)
{el.innerHTML='<a class="ad" href="'+adData.clickUrls[1]+'"><img src="'+adData.imageUrl+'" width="300" height="60"></a>';}}}
this.Build=function(id,dl,fv,w,h)
{var el=document.getElementById(id);if(el){var v='<div class="video1"><h3 id="' + id + '_t"></h3><div id="' + id + '_p"><div>' + (dl?dl:'') + '</div><a href="http://www.adobe.com/go/getflashplayer">This video requires the Adobe?Flash?Player. Download a free version of the player.</a></div><div id="' + id + '_m"></div><div id="' + id + '_a"></div></div>';el.innerHTML=v;Msn.Video.BuildPlayer(id,fv,w,h);}}
this.BuildPlayer=function(id,fv,w,h)
{var fvv={ifs:"true",playlistmin:"2"};for(var i in fv)fvv[i]=fv[i].replace(/\&/g,"%26");var fvs="";for(var i in fvv)fvs+=i+"="+fvv[i]+"&amp;";fvs+="ch=true&amp;cbprefix=Msn.Video.&amp;cbdata="+id;Msn.Flash.Build('http://images.video.msn.com/flash/soapbox1_1.swf','9',w?w:300,h?h:269,id+'_p',{allowScriptAccess:'always',allowFullScreen:'true',base:'http://images.video.msn.com/flash/soapbox1_1.swf',flashvars:fvs});}
function checkString(s)
{return((typeof(s)=="string")&&(s.length>0));}
function checkObject(o)
{return(typeof(o)=="object"&&(null!=o));}
function checkArray(array,minLength)
{var arrayCheck=(array instanceof Array);if(minLength!='')
{arrayCheck=arrayCheck&&(array.length>=minLength);}
return arrayCheck;}
return this;};

/*  end of Include channels.js */


var hcb=document.createElement("div");
hcb.setAttribute('id','help_close_button');
document.getElementById('abstract_parent').appendChild(hcb);


var idPlayer = "inline_video";

Msn.Video.Build(idPlayer,"Installez la derniere version d\'Adobe Flash Player (gratuite).Pour obtenir de l\'aide sur Flash, consultez la page de support d\'Adobe Flash Player.",{skin:"0",mkt:"fr-fr",mk:"fr-fr",fr:"inline-divertissements-specials",fg:"SpecialGaëtaneAbrial",ad:"false",ap:"true",partnerlogo:"false",timePlaying:"180",c:"v",v:"5177e609-3319-44f1-9f58-a010b437df21",p:"IV2_fr-fr_GaetaneAbrial",rv:"false",t:"c1788"},366,255);

document.getElementById(idPlayer+"_t").style.display="none";
document.getElementById(idPlayer+"_m").style.display="none";
document.getElementById(idPlayer+"_a").style.display="none";


/*var div = document.getElementById('logo').firstChild;
div.firstChild.alt='Accueil MSN';
div.firstChild.setAttribute('title', div.firstChild.alt);
div.href='http://fr.msn.com';

if (navigator.appName != 'Microsoft Internet Explorer')
{
	document.getElementById('wrapper').style.width='785px';
}
*/

if (navigator.appName != 'Microsoft Internet Explorer')
{ 
	document.getElementById('starmenu1').setAttribute("onclick", "gotomenu1()");
	document.getElementById('starmenu2').setAttribute("onclick", "ShowAbstract()");
	document.getElementById('starmenu3').setAttribute("onclick", "gotomenu3()");
	document.getElementById('starmenu4').setAttribute("onclick", "gotomenu4()");
	document.getElementById('starmenu5').setAttribute("onclick", "gotomenu5()");
	document.getElementById('help_close_button').setAttribute("onclick", "HideAbstract()");
	document.getElementById('officiallink').setAttribute("onclick", "gotoofficial()");
}
else 
{
	document.getElementById('starmenu1').attachEvent("onclick", gotomenu1);
	document.getElementById('starmenu2').attachEvent("onclick", ShowAbstract);
	document.getElementById('starmenu3').attachEvent("onclick", gotomenu3);
	document.getElementById('starmenu4').attachEvent("onclick", gotomenu4);
	document.getElementById('starmenu5').attachEvent("onclick", gotomenu5);
	document.getElementById('help_close_button').attachEvent("onclick", HideAbstract);
	document.getElementById('officiallink').attachEvent("onclick", gotoofficial);
}

function gotomenu1()
{
	window.open('http://video.msn.com/?mkt=fr-fr&vid=9dbd7454-2ce8-4465-ac6e-b04207e6fcf1&playlist=videoByUuids:uuids:5177e609-3319-44f1-9f58-a010b437df21&tab=s145','new');
}
function gotomenu3()
{
window.open('http://divertissements.fr.msn.com/cinema/galerie.aspx?cp-documentid=8846238&imageindex=1', 'new');
}
function gotomenu4()
{
	window.open('http://video.msn.com/?mkt=fr-fr&vid=a7d68100-28a1-4a48-931c-73f95a44e48f&playlist=videoByUuids:uuids:faa112e9-16f9-4262-8dac-6063858c3098,af5d3443-ec8b-47f8-bc23-7e6d8cd72b50,22247d00-6a67-45cf-8d70-adf345d51475&tab=s145', 'new');
}
function gotomenu5()
{
    window.open('http://blst.msn.com/br/intl/france/starwars/wallpapers.zip','new');
}
function gotoofficial()
{
	window.open('http://www.theforceunleashed.eu/index2.html?lang=fr', 'new');
}





var a = document.getElementById('xnav').lastChild.firstChild;
if (navigator.appName != 'Microsoft Internet Explorer')
{ 
	a.setAttribute("onclick", "changeBackgroundImageFF()");
}
else 
{
	a.attachEvent("onclick", changeBackgroundImageIE);
}
	

function changeBackgroundImageIE() {
if (document.getElementById('more').style.display=='none') {
 document.body.style.background='#cacaca url("http://blst.msn.com/br/intl/france/starwars/image/bg.jpg") no-repeat center -126px';
}
else 
{
 document.body.style.background='#cacaca url("http://blst.msn.com/br/intl/france/starwars/image/bg.jpg") no-repeat center -234px';
}
}



function changeBackgroundImageFF() {
if (document.getElementById('more').style.display=='block') {
 document.body.style.background='#cacaca url("http://blst.msn.com/br/intl/france/starwars/image/bg.jpg") no-repeat center -126px';
}
else 
{
 document.body.style.background='#cacaca url("http://blst.msn.com/br/intl/france/starwars/image/bg.jpg") no-repeat center -234px';
}
}

function ShowAbstract()
{
	document.getElementById('abstract').style.display='block';
	document.getElementById('abstract_parent').style.display='block';
	document.getElementById('help_close_button').style.display='block';
}

function HideAbstract()
{
	document.getElementById('abstract').style.display='none';
	document.getElementById('abstract_parent').style.display='none';
	document.getElementById('help_close_button').style.display='none';
}

