function setActiveStyleSheet(e){var d,c,b;for(d=0;(c=document.getElementsByTagName("link")[d]);d++){if(c.getAttribute("rel").indexOf("style")!=-1&&c.getAttribute("title")){c.disabled=true;if(c.getAttribute("title")==e){c.disabled=false}}}}function showFilled(a){return(a>9)?""+a:"0"+a}function horloge_Start(){UR_Nu=new Date;UR_Indhold=showFilled(UR_Nu.getHours())+":"+showFilled(UR_Nu.getMinutes())+":"+showFilled(UR_Nu.getSeconds());var b="CONTENThorloge";var a=document.getElementById("ur");if(a!=null){a.innerHTML=UR_Indhold;setTimeout("horloge_Start()",1000)}}function demohorloge(){var a=new Moowind("horloge",300,220,true,410,110,$("home"),"Horloge",["nofullscreenbutton","noresizebutton","nozeffect",""]);a.drag_on();if(a.status!="error"){a.foreground("#004");a.inject('<div id="ur" style="font-size:42px;padding-top:5px;margin-top:50px;">toto</div>');horloge_Start();a.set_focus()}}function imagedemo(){var a=new Moowind("imagedemowindow",440,340,true,401,10,$("home"),"Inner html : Integraton d une image",["noresizebutton",""]);if(a.status!="error"){a.inject('<center><image src="moowind.jpg" border="0"/></center>');a.drag_on()}}function googleframe(){var a=new Moowind("googleframe",800,600,true,500,89,$("home"),"Google en iframe",[,"nozeffect",""]);if(a.status!="error"){a.inject_frame("http://www.google.fr");a.drag_on()}}function codewin(b,c){var a=new Moowind(b,600,600,true,200,90,$("home"),b,[""]);if(a.status!="error"){a.wrap(c,0);a.drag_on()}}function telecharger(){var a=new Moowind("Telechargementw ",750,600,true,200,90,$("home"),"T&eacute;l&eacute;charger Moowind",[""]);if(a.status!="error"){a.wrap("telechargementm",0);a.drag_on()}}function dspeeajax(){var a=new Moowind("Dspeeajax",950,600,true,200,90,$("home"),"Exemple Ajax",[""]);if(a.status!="error"){a.inject_ajax("http://www.moowind.com/dspee2/viewvideo.php?idvideo=236623");a.drag_on()}}function fullpagedemo(){var a=new Moowind("fullpagewrap",900,600,true,0,20,$("home"),"fullpagewrap",[""]);if(a.status!="error"){a.wrap("content",0);a.drag_on();ajaxwindemo.drag_on()}}function showdemo(){var a=new Moowind("Demos",800,550,true,100,30,$("home"),"Demos",[""]);if(a.status!="error"){a.wrap("demonstration",0);a.drag_on()}}function rebondir(){var d=new Moowind("rebondir",100,100,true,400,200,$("home"),"mon rebond",[""]);d.drag_on();var f=3300;var c=-1;var a=-1;var e=parseInt(removepx(d.root_get_width()))-100;var b=parseInt(removepx(d.root_get_height()))-100;for(i=0;i<100;i++){newwidth=parseInt(d.get_xpos());newheight=parseInt(d.get_ypos());newheight+=1;if((newwidth>=e)||(newwidth<=10)){c=0-c}if((newheight>=b)||(newheight<=10)){a=0-a}d.set_position(newwidth,newheight);d.set_focus();d.write_text("")}};