an_doub=new Array();loop=new Array;function anime_double(id1,id2,rule,arrivee,arrivee2,duree){var Nvar=Math.floor((Math.random()*1000000000)+1);loop[Nvar]=0.05;an_doub[Nvar]=new Array();var start=(new Date).getTime();if(rule=='h'){var val1=document.getElementById(id1).offsetLeft;var val3=document.getElementById(id2).offsetLeft;}else if(rule=='v'){var val1=document.getElementById(id1).offsetTop;var val3=document.getElementById(id2).offsetTop;}an_doub[Nvar]['el1']=document.getElementById(id1);an_doub[Nvar]['val1a']=val1;an_doub[Nvar]['val2a']=arrivee;an_doub[Nvar]['vala']=(arrivee - val1);an_doub[Nvar]['valaAbs']=Math.abs(an_doub[Nvar]['vala']);an_doub[Nvar]['el2']=document.getElementById(id2);an_doub[Nvar]['val1b']=val3;an_doub[Nvar]['val2b']=arrivee2;an_doub[Nvar]['valb']=(arrivee2 - val3);an_doub[Nvar]['valbAbs']=Math.abs(an_doub[Nvar]['valb']);an_doub[Nvar]['start']=start;an_doub[Nvar]['finish']=(start+duree);an_doub[Nvar]['type']=rule;an_doub[Nvar]['duration']=duree;a_double(Nvar);}function a_double(Nvar){if(Nvar&&Nvar != 'undefined'){var time=(new Date).getTime();var pos=(an_doub[Nvar]['valaAbs'] *((time-an_doub[Nvar]['start'])/an_doub[Nvar]['duration']))* loop[Nvar];var pos2=(an_doub[Nvar]['valbAbs'] *((time-an_doub[Nvar]['start'])/an_doub[Nvar]['duration']))* loop[Nvar];loop[Nvar]=(loop[Nvar]+0.05);if(pos>an_doub[Nvar]['valaAbs']){pos=an_doub[Nvar]['valaAbs'];}if(pos2>an_doub[Nvar]['valbAbs']){pos2=an_doub[Nvar]['valbAbs'];}if(an_doub[Nvar]['type']=='h'){if(an_doub[Nvar]['vala']>0){an_doub[Nvar]['el1'].style.left=an_doub[Nvar]['val1a']+pos+'px';}else{an_doub[Nvar]['el1'].style.left=an_doub[Nvar]['val1a'] - pos+'px';}if(an_doub[Nvar]['valb']>0){an_doub[Nvar]['el2'].style.left=an_doub[Nvar]['val1b']+pos2+'px';}else{an_doub[Nvar]['el2'].style.left=an_doub[Nvar]['val1b'] - pos2+'px';}if(time>an_doub[Nvar]['finish']){an_doub[Nvar]['el1'].style.left=an_doub[Nvar]['val2a']+'px';an_doub[Nvar]['el2'].style.left=an_doub[Nvar]['val2b']+'px';delete loop[Nvar];delete an_doub[Nvar];}else{setTimeout("a_double('"+Nvar+"')",10);}}else if(an_doub[Nvar]['type']=='v'){if(an_doub[Nvar]['vala']>0){an_doub[Nvar]['el1'].style.top=an_doub[Nvar]['val1a']+pos+'px';}else{an_doub[Nvar]['el1'].style.top=an_doub[Nvar]['val1a'] - pos+'px';}if(an_doub[Nvar]['valb']>0){an_doub[Nvar]['el2'].style.top=an_doub[Nvar]['val1b']+pos2+'px';}else{an_doub[Nvar]['el2'].style.top=an_doub[Nvar]['val1b'] - pos2+'px';}if(time>an_doub[Nvar]['finish']){an_doub[Nvar]['el1'].style.top=an_doub[Nvar]['val2a']+'px';an_doub[Nvar]['el2'].style.top=an_doub[Nvar]['val2b']+'px';delete loop[Nvar];delete an_doub[Nvar];}else{setTimeout("a_double('"+Nvar+"')",10);}}}}anim=new Array();function anime(id,type,arrivee,duree){var Nvar=Math.floor((Math.random()*1000000000)+1);loop[Nvar]=0.05;anim[Nvar]=new Array();var nav=window.navigator.appName;var element=document.getElementById(id);var parent=element.parentNode;var start=(new Date).getTime();var addX='';var addY='';var moins='';var moins2='';if(type=='m'||type=='t'){if(type=='m'){var valX1=element.offsetLeft;var valY1=element.offsetTop;}else if(type=='t'){var valX1=element.offsetWidth;var valY1=element.offsetHeight;}var vals=arrivee.split("|");if(vals[0]=='u'){var valX2=valX1;unitX='px';}else{if(vals[0].substr(0,2)=='++'||vals[0].substr(0,2)=='--'){addX=vals[0].substr(0,2);}else if(vals[0].substr(0,1)=='-'){moins='-';}var valX2=new RegExp(/([0-9]+)/).exec(vals[0]);valX2=parseInt(moins+valX2[0]);var unitX=new RegExp(/([a-zA-Z\%]+)/).exec(vals[0]);if(unitX){unitX=unitX[0];}else{unitX='px';}}if(vals[1]=='u'){var valY2=valY1;unitY='px';}else{if(vals[1].substr(0,2)=='++'||vals[1].substr(0,2)=='--'){addY=vals[1].substr(0,2);}else if(vals[1].substr(0,1)=='-'){moins2='-';}var valY2=new RegExp(/([0-9]+)/).exec(vals[1]);valY2=parseInt(moins2+valY2[0]);var unitY=new RegExp(/([a-zA-Z\%]+)/).exec(vals[1]);if(unitY){unitY=unitY[0];}else{unitY='px';}}}else if(type=='s'){if(arrivee === parseInt(arrivee)){var val2=arrivee;}else if(arrivee.substr(0,2)=='++'){var val2=element.scrollTop+parseInt(arrivee.substr(2));}else if(arrivee.substr(0,2)=='--'){var val2=element.scrollTop - parseInt(arrivee.substr(2));}var val1=element.scrollTop;}else if(type=='o'){if(element.style.opacity){var val1=(element.style.opacity * 10);isie8='0';}else if(nav=="Microsoft Internet Explorer"&&typeof document.createElement('div').style.filter != 'undefined'){var val1=(element.filters.alpha.opacity/10);isie8='1';}else{var val1=10;isie8='0';}if(arrivee === parseInt(arrivee)){var val2=parseInt(arrivee);}else{if(arrivee.substr(0,2)=='++' &&(val1+parseInt(arrivee))<= 10){var val2=val1+parseInt(arrivee);}else if(arrivee.substr(0,2)=='--' &&(val1 - parseInt(arrivee))>= 0){var val2=val1 - parseInt(arrivee);}}}if(type=='s'||type=='o'){var val=val2 - val1;if(val != 0){anim[Nvar]['el']=element;anim[Nvar]['start']=start;anim[Nvar]['end']=(start+duree);anim[Nvar]['type']=type;anim[Nvar]['val1']=val1;anim[Nvar]['val2']=val2;anim[Nvar]['val']=val;anim[Nvar]['run']=duree;launch(Nvar);}}else if(type=='m'||type=='t'){var valX=valX2 - valX1;var valY=valY2 - valY1;if(valX != 0||valY != 0){anim[Nvar]['el']=element;anim[Nvar]['start']=start;anim[Nvar]['end']=(start+duree);anim[Nvar]['type']=type;anim[Nvar]['valX1']=valX1;anim[Nvar]['valX2']=valX2;anim[Nvar]['valX']=valX;anim[Nvar]['valY1']=valY1;anim[Nvar]['valY2']=valY2;anim[Nvar]['valY']=valY;if((unitY==''||unitY=='undefined'||unitY==null)&&(unitX==''||unitX=='undefined'||unitX==null)){unitY=unitX;}else if((unitY != ''&&unitY != 'undefined'&&unitY != null)&&(unitX==''||unitX=='undefined'||unitX==null)){unitX=unitY;}else if((unitY==''||unitY=='undefined'||unitY==null)&&(unitX==''||unitX=='undefined'||unitX==null)){unitX=unitY='px';}if(unitX != 'px'||unitY != 'px'||addX != ''||addY != ''){var test=document.createElement('div');test.style.position='absolute';if(type=='m'){test.style.width='1px';test.style.height='1px';test.style.left=valX2+unitX;test.style.top=valY2+unitY;}else if(type=='t'){test.style.width=valX2+unitX;test.style.height=valY2+unitY;}parent.appendChild(test);if(type=='m'){var testX=test.offsetLeft;var testY=test.offsetTop;}else if(type=='t'){var testX=test.offsetWidth;var testY=test.offsetHeight;}if(valX1 != valX2){anim[Nvar]['valX2']=testX;}if(valY1 != valY2){anim[Nvar]['valY2']=testY;}if(valY1 != valY2){anim[Nvar]['valY']=anim[Nvar]['valY2'] - valY1;}if(valX1 != valX2){anim[Nvar]['valX']=anim[Nvar]['valX2'] - valX1;}if(addX=='++'){anim[Nvar]['valX2']=valX1+testX;anim[Nvar]['valX']=anim[Nvar]['valX2'] - valX1;}if(addX=='--'){anim[Nvar]['valX2']=valX1 - testX;anim[Nvar]['valX']=anim[Nvar]['valX2'] - valX1;}if(addY=='++'){anim[Nvar]['valY2']=valY1+testY;anim[Nvar]['valY']=anim[Nvar]['valY2'] - valY1;}if(addY=='--'){anim[Nvar]['valY2']=valY1 - testY;anim[Nvar]['valY']=anim[Nvar]['valY2'] - valY1;}parent.removeChild(test);}anim[Nvar]['valXabs']=Math.abs(anim[Nvar]['valX']);anim[Nvar]['valYabs']=Math.abs(anim[Nvar]['valY']);anim[Nvar]['run']=duree;launch(Nvar);}}} function space(Nvar){if(Nvar&&Nvar != 'undefined'){var time=(new Date).getTime();var posX=(anim[Nvar]['valXabs'] *((time - anim[Nvar]['start'])/anim[Nvar]['run']))* loop[Nvar];var posY=(anim[Nvar]['valYabs'] *((time - anim[Nvar]['start'])/anim[Nvar]['run']))* loop[Nvar];loop[Nvar]=(loop[Nvar]+0.05);if(posX>anim[Nvar]['valXabs']){posX=anim[Nvar]['valXabs'];}if(posY>anim[Nvar]['valYabs']){posY=anim[Nvar]['valYabs'];}if(anim[Nvar]['valX']>0){if(anim[Nvar]['type']=='m'){anim[Nvar]['el'].style.left=(anim[Nvar]['valX1']+posX)+'px';}else if(anim[Nvar]['type']=='t'){anim[Nvar]['el'].style.width=(anim[Nvar]['valX1']+posX)+'px';}}else if(anim[Nvar]['valX']<0){if(anim[Nvar]['type']=='m'){anim[Nvar]['el'].style.left=(anim[Nvar]['valX1'] - posX)+'px';}else if(anim[Nvar]['type']=='t'){anim[Nvar]['el'].style.width=(anim[Nvar]['valX1'] - posX)+'px';}}if(anim[Nvar]['valY']>0){if(anim[Nvar]['type']=='m'){anim[Nvar]['el'].style.top=(anim[Nvar]['valY1']+posY)+'px';}else if(anim[Nvar]['type']=='t'){anim[Nvar]['el'].style.height=(anim[Nvar]['valY1']+posY)+'px';}}else if(anim[Nvar]['valY']<0){if(anim[Nvar]['type']=='m'){anim[Nvar]['el'].style.top=(anim[Nvar]['valY1'] - posY)+'px';}else if(anim[Nvar]['type']=='t'){anim[Nvar]['el'].style.height=(anim[Nvar]['valY1'] - posY)+'px';}}if(time>anim[Nvar]['end']){if(anim[Nvar]['type']=='m'){if(anim[Nvar]['valX'] != 0){anim[Nvar]['el'].style.left=anim[Nvar]['valX2']+'px';}if(anim[Nvar]['valY'] != 0){anim[Nvar]['el'].style.top=anim[Nvar]['valY2']+'px';}}else if(anim[Nvar]['type']=='t'){if(anim[Nvar]['valX'] != 0){anim[Nvar]['el'].style.width=anim[Nvar]['valX2']+'px';}if(anim[Nvar]['valY'] != 0){anim[Nvar]['el'].style.height=anim[Nvar]['valY2']+'px';}}delete loop[Nvar];delete anim[Nvar];}else{setTimeout("space('"+Nvar+"')",10);}}} function a_scroll(Nvar){if(Nvar&&Nvar != 'undefined'){var time=(new Date).getTime();var pos=(Math.abs(anim[Nvar]['val'])*((time-anim[Nvar]['start'])/anim[Nvar]['run']))* loop[Nvar];loop[Nvar]=(loop[Nvar]+0.05);if(pos>Math.abs(anim[Nvar]['val'])){pos=Math.abs(anim[Nvar]['val']);}if(anim[Nvar]['val2']>anim[Nvar]['val1']){anim[Nvar]['el'].scrollTop=anim[Nvar]['val1']+pos;}else{anim[Nvar]['el'].scrollTop=anim[Nvar]['val1'] - pos;}if(time>anim[Nvar]['end']){anim[Nvar]['el'].scrollTop=anim[Nvar]['val2'];delete loop[Nvar];delete anim[Nvar];}else{setTimeout("a_scroll('"+Nvar+"')",10);}}} function a_opacity(Nvar){if(Nvar&&Nvar != 'undefined'){var time=(new Date).getTime();var pos=(Math.abs(anim[Nvar]['val'])*((time-anim[Nvar]['start'])/anim[Nvar]['run']));if(pos>Math.abs(anim[Nvar]['val'])){pos=Math.abs(anim[Nvar]['val']);}if(anim[Nvar]['val2']>anim[Nvar]['val1']){if(isie8=='1'){anim[Nvar]['el'].style.filter="alpha(opacity='"+((anim[Nvar]['val1'] * 10)+(pos * 10))+"')";}else{anim[Nvar]['el'].style.opacity=(anim[Nvar]['val1']/10)+(pos/10);}}else{if(isie8=='1'){anim[Nvar]['el'].style.filter="alpha(opacity='"+((anim[Nvar]['val1'] * 10)-(pos * 10))+"')";}else{anim[Nvar]['el'].style.opacity=(anim[Nvar]['val1']/10)-(pos/10);}}if(time>anim[Nvar]['end']){anim[Nvar]['el'].style.filter="alpha(opacity='"+(anim[Nvar]['val2'] * 10)+"')";anim[Nvar]['el'].style.opacity=(anim[Nvar]['val2']/10);delete loop[Nvar];delete anim[Nvar];}else{setTimeout("a_opacity('"+Nvar+"')",10);}}} function launch(Nvar){if(anim[Nvar]['type']=='m'||anim[Nvar]['type']=='t'){space(Nvar);}else if(anim[Nvar]['type']=='s'){a_scroll(Nvar);}else if(anim[Nvar]['type']=='o'){a_opacity(Nvar);}}var titres=new Array();var descriptions=new Array();var direction=new Array();var block=new Array();titres["accueil"]="Stan Philips | Site officiel de Stanley Philips";descriptions["accueil"]="Site officiel de Stanley Philips,chanteur de Gospel et folk musique à la gloire du Seigneur,vivant en France.";direction["accueil"]="notrans";block["accueil"]="free";titres["biographie"]="Stan Philips | Biographie";descriptions["biographie"]="Biographie de Stan Philips/Stan's story";direction["biographie"]="notrans";block["biographie"]="free";titres["discographie"]="Stan Philips | Discographie";descriptions["discographie"]="Discographie de Stanley Philips,en solo et au sein de Eden et Si Tuenda Gospel.";direction["discographie"]="notrans";block["discographie"]="free";titres["media"]="Stan Philips | Presse & Media";descriptions["media"]="Articles de presse,albums photos et page de vidéos.";direction["media"]="notrans";block["media"]="free";titres["video"]="Stan Philips | Vidéos";descriptions["video"]="Page de vidéos musicales de Stanley Philips et Eden.";direction["video"]="notrans";block["video"]="free";titres["radio"]="Stan Philips | Radio";descriptions["radio"]="Interviews et apparitions radio.";direction["radio"]="notrans";block["radio"]="free";titres["photo"]="Stan Philips | Photos";descriptions["photo"]="Galeries photos.";direction["photo"]="notrans";block["photo"]="free";titres["presse"]="Stan Philips | Presse";descriptions["presse"]="Articles de presse";direction["presse"]="notrans";block["presse"]="free";titres["shop"]="Stan Philips | Boutique en Ligne";descriptions["shop"]="Achetez les albums de Stanley Philips,en solo ou avec Eden et Si Tuenda,aux formats CD ou mp3.";direction["shop"]="notrans";block["shop"]="free";titres["cd"]="Stan Philips | Boutique : CD";descriptions["cd"]="Les albums Gospel de Stanley Philips sont disponibles,à la commande,au format CD(règlement par carte bancaire,Paypal,chèque ou mandat cash).";direction["cd"]="notrans";block["cd"]="free";titres["mp3"]="Stan Philips | Boutique : MP3";descriptions["mp3"]="Achetez les albums gospel de Stanley Philips,Eden et Si Tuenda au format mp3,directement depuis le site ou sur votre plateforme de téléchargement favorite.";direction["mp3"]="notrans";block["mp3"]="free";titres["contact"]="Stan Philips | Contact";descriptions["contact"]="Engagez ou contacter Stanley Philips en utilisant ce formulaire de contact.";direction["contact"]="notrans";block["contact"]="free";titres["reservation"]="Stan Philips | Réservation";descriptions["reservation"]="";direction["reservation"]="notrans";block["reservation"]="free";titres["calendrier"]="Stan Philips | Calendrier";descriptions["calendrier"]="Calendrier des dates à retenir de l'actualité de Stanley Philips.";direction["calendrier"]="notrans";block["calendrier"]="free";titres["news"]="Stan Philips | News";descriptions["news"]="Abonnez-vous au fil rss de StanPhilips.com pour connaître toute l'actualité de Stanley Philips,en temps réel.";direction["news"]="notrans";block["news"]="free";titres["liens"]="Stan Philips | Liens";descriptions["liens"]="Liens partenaires et amis.";direction["liens"]="notrans";block["liens"]="free";titres["livredor"]="Stan Philips | Livre d\'or";descriptions["livredor"]="Signez le livredor de StanPhilips.com";direction["livredor"]="notrans";block["livredor"]="free";titres["nousirons"]="Stan Philips | Nous irons";descriptions["nousirons"]="";direction["nousirons"]="notrans";block["nousirons"]="free";titres["youaresogood"]="Stan Philips | You Are So Good";descriptions["youaresogood"]="";direction["youaresogood"]="notrans";block["youaresogood"]="free";titres["montremoitavoie"]="Stan Philips | Montre-moi ta voie";descriptions["montremoitavoie"]="";direction["montremoitavoie"]="notrans";block["montremoitavoie"]="free";titres["onemorechance"]="Stan Philips | One More Chance";descriptions["onemorechance"]="";direction["onemorechance"]="notrans";block["onemorechance"]="free";titres["stronghold"]="Stan Philips | Stronghold";descriptions["stronghold"]="";direction["stronghold"]="notrans";block["stronghold"]="free";titres["essa-wome"]="Stan Philips | Essa Womé";descriptions["essa-wome"]="";direction["essa-wome"]="notrans";block["essa-wome"]="free";titres["partitions"]="Stan Philips | Partitions";descriptions["partitions"]="";direction["partitions"]="notrans";block["partitions"]="free";titres["pensee"]="Stan Philips | Pensées";descriptions["pensee"]="La pensée du mois";direction["pensee"]="notrans";block["pensee"]="free";current='accueil';old="";function charge(){ var test=window.location.hash; if(test==''){ var id=current;}else{ var id=test.substring(3,test.length);} var idz=id.split('#',2); id=idz[0]; if(idz[1]){ var anchor=idz[1];}else{ var anchor='';} var force=id.split('?force=',2); id=force[0]; if(force[1]){ var force=force[1];}else{ var force='';}var objReq= new XMLHttpRequest();objReq.onreadystatechange=function(){if(this.readyState==4&&this.status==200){var e=document.getElementById('main');var divTag=document.createElement('div'); divTag.id=id; divTag.className='page'; divTag.tabIndex='-1'; divTag.style.left=divTag.style.top='0'; divTag.onscroll=function(){menuHeight();}; if(block[id]=="block"){divTag.style.background="#000";}divTag.innerHTML=objReq.responseText;e.appendChild(divTag);divTag=divTag.outerHTML;var frames=document.getElementById(id).getElementsByTagName('iframe');if(frames.length>0){ frames[(frames.length - 1)].onload=function(){divTag.onload=first_load(id,anchor);};}else{ divTag.onload=first_load(id,anchor);} var fbPlugin=document.getElementsByClassName('fb-page'); if(fbPlugin.length>0){FB.XFBML.parse();}}};var url='id_content.php';objReq.open("POST",url,true);objReq.setRequestHeader("Content-Type","application/x-www-form-urlencoded");objReq.send("getpagecontent="+id);}function recharge(id,anchor,force){ flag=true;var objReq= new XMLHttpRequest(); objReq.onreadystatechange=function(){if(this.readyState==4&&this.status==200){var e=document.getElementById("main");var divTag=document.createElement("div"); divTag.id=id; divTag.className="page"; divTag.tabIndex="-1"; if(direction[id] != "notrans"&&direction[id] != "fade"){divTag.style.overflow="hidden";} divTag.onscroll=function(){menuHeight();}; if(block[id]=="block"){divTag.style.background="#000";}divTag.innerHTML=objReq.responseText; e.appendChild(divTag); divTag=divTag.outerHTML; anim=new Array; an_doub=new Array; loop=new Array; var tOuts=window.setTimeout(function(){},0); while(tOuts--){window.clearTimeout(tOuts);} if(direction[id]=="notrans"||direction[id]=="fade"){rectif_margin(id);} var frames=document.getElementById(id).getElementsByTagName('iframe'); if(frames.length>0){ frames[(frames.length - 1)].onload=function(){divTag.onload=relaunchScripts(id,anchor,force);};}else{ divTag.onload=relaunchScripts(id,anchor,force);} var fbPlugin=document.getElementsByClassName('fb-page'); if(fbPlugin.length>0){FB.XFBML.parse();}};};var url="id_content.php";objReq.open("POST",url,true);objReq.setRequestHeader("Content-Type","application/x-www-form-urlencoded");objReq.send("getpagecontent="+id);}flag=false;function check_slide(){var id=window.location.hash;if(id==''){id='#!/accueil';} if(id.substring(0,3)=='#!/'){ id=id.substring(3,id.length); var idz=id.split('#',2); id=idz[0]; if(idz[1]){var anchor=idz[1];}else{var anchor='';} var force=id.split('?force=',2); id=force[0]; if(force[1]){ var force=force[1];}else{ var force='';} if((id != current ||((document.getElementById(current).offsetTop != '0'||document.getElementById(current).offsetLeft != '0')&& document.getElementById('wrapper').offsetWidth>640))&& !flag){ old=current; current=id; if(direction[current] != "notrans"&&direction[old] != "fade"){document.getElementById(old).style.overflow="hidden";} var loading=document.createElement('div'); loading.id='loadingIcon'; document.getElementById('wrapper').appendChild(loading); recharge(current,anchor,force);}else{ rectif_margin(id);}}setTimeout('check_slide()',200);}function getMenuId(){if(getStyle('menu','position')!= 'fixed' &&(getStyle('header_menu','position')=='fixed'||getStyle('header_menu','position')=='absolute'||getStyle('header_menu','position')=='relative')){ return 'header_menu';}else{ return 'menu';}}function slide_in(current,anchor,force){var id=current;document.getElementById(id).style.opacity=document.getElementById(old).style.opacity=1;document.getElementById(id).filter=document.getElementById(old).filter='alpha(opacity=100)';if(force != ''){ var sens=force;}else{ var sens=direction[id];}var larg=document.getElementById('wrapper').offsetWidth;var haut=document.getElementById('wrapper').offsetHeight;var MenuHeight=document.getElementById(getMenuId()).offsetHeight;var MenuWidth=document.getElementById(getMenuId()).offsetWidth;var newpage=document.getElementById(id);var oldpage=document.getElementById(old);oldpage.style.zIndex=2;newpage.style.zIndex=1;if(newpage.offsetWidth <= 640){sens='notrans';var attr=MenuHeight+'px !important';}else{var attr='0px';}if(getStyle('menu','position')!= 'fixed'){anime(getMenuId(),'m','u|'+origTop,2000);}if(sens=='random'){var choix=Math.floor((Math.random()*100)+1);if(choix<20){sens='left';}else if(choix<30){sens='bottom';}else if(choix<40){sens='right';}else if(choix<50){sens='top';}else if(choix<60){sens='crossleft';}else if(choix<70){sens='crossbottom';}else if(choix<80){sens='crossright';}else if(choix<90){sens='crosstop';}else if(choix <= 100){sens='fade';}}var width=larg;var height=haut;if(sens=='left'){newpage.style.left=width+'px';newpage.style.top='0';anime_double(id,old,'h',0,-width,2000);}else if(sens=='right'){newpage.style.top='0';newpage.style.left='-'+width+'px';anime_double(id,old,'h',0,width,2000);}else if(sens=='top'){newpage.style.top=height+'px';newpage.style.left='0';anime_double(id,old,'v',0,-height,2000);}else if(sens=='bottom'){newpage.style.top='-'+height+'px';newpage.style.left='0';anime_double(id,old,'v',0,height,2000);}else if(sens=='crossleft'){newpage.style.left=width+'px';newpage.style.top='0';anime_double(id,old,'h',0,width,2000);}else if(sens=='crossright'){newpage.style.top='0';newpage.style.left='-'+width+'px';anime_double(id,old,'h',0,'-'+width,2000);}else if(sens=='crosstop'){newpage.style.top=height+'px';newpage.style.left='0';anime_double(id,old,'v',0,height,2000);}else if(sens=='crossbottom'){newpage.style.top='-'+height+'px';newpage.style.left='0';anime_double(id,old,'h',0,'-'+height,2000);}else if(sens=='fade'){newpage.style.top='0';newpage.style.left='0';newpage.style.opacity='1';newpage.filter='alpha(opacity=100)';anime(old,'o',0,2000);setTimeout("document.getElementById('"+old+"').style.left="+width+"+'px'",2100);}else if(sens=='notrans'){rectif_margin(id);oldpage.style.display='none';newpage.style.top=attr;newpage.style.left='0';newpage.style.zIndex=2;oldpage.style.zIndex=1;}document.title=titres[id];document.getElementsByName('description')[0].content=descriptions[id];document.getElementsByTagName('meta')[3].content=titres[id];document.getElementsByTagName('meta')[4].content='http://www.stanphilips.com/#!/'+id;document.getElementsByTagName('meta')[5].content=descriptions[id];var linkrel=document.getElementsByTagName('link');for(c=0;c640)||((direction[id]=="notrans"||direction[id]=="fade")&& e.offsetWidth>640)){ e.style.overflow='auto';var scrollSize=e.offsetWidth - e.clientWidth;if(document.body){var larg=(document.body.clientWidth);}else{var larg=(window.innerWidth);}}else if(e.offsetWidth <= 640){e.style.left='0';}}function requiredfields(champs){var signal=0; var checkTest=0; var checkTotal=0;for(i=0;i0){signal++;}if(signal>0){alert('Les champs signales par un * sont obligatoires.');return false;}else{return true;}}function nobot(){document.getElementById('controlfield').value='ImNotaBot';}function getOlder(stage){if(window.XMLHttpRequest){var objReq= new XMLHttpRequest();objReq.onreadystatechange=function(){write_older(objReq.responseText,stage);};}else if(window.ActiveXObject){var objReq=new ActiveXObject("Microsoft.XMLHTTP");if(objReq){objReq.onreadystatechange=function(){write_older(objReq.responseText,stage);};}}var url='system/js/older_news.php';objReq.open("POST",url,true);objReq.setRequestHeader('Content-Type','application/x-www-form-urlencoded');var data='stage='+stage;objReq.send(data);}function write_older(news,stage){document.getElementById('older'+stage).innerHTML=news;}function notitle(id){var links=document.getElementById(id).getElementsByTagName('a'); for(var i=0;i';var prevon='1';}else{var seeprev='';var prevon='0';}if(next != 'none'){var seenext='
';var nexton='1';}else{var seenext='';var nexton='0';}document.getElementById('galeries').innerHTML='
'+num+'
'+legende+'
'+seeprev+''+seenext+'
Fermer
';document.getElementById('seeimg').style.opacity=0;document.getElementById('seeimg').style.filter='alpha(opacity=0)';if(prev != 'none'){document.getElementById('seeprev').style.opacity=0;document.getElementById('seeprev').style.filter='alpha(opacity=0)';}if(next != 'none'){document.getElementById('seenext').style.opacity=0;document.getElementById('seenext').style.filter='alpha(opacity=0)';}document.getElementById('legende').style.opacity=0;document.getElementById('legende').style.filter='alpha(opacity=0)';}function seenot(){document.getElementById('galeries').innerHTML='';}function redim(prevon,nexton,id){if(document.getElementById('wrapper').offsetWidth <= 640){document.getElementById('seebig').style.height=document.getElementById('seenot').style.height=document.getElementById('wrapper').offsetHeight+'px';document.location.href="#openmenu";}var HeightFrame=document.getElementById('seeframe').offsetHeight;var WidthFrame=document.getElementById('seeframe').offsetWidth;var HeightClient=document.getElementById('seebig').offsetHeight;var HeightImg=document.getElementById('seeimg').offsetHeight;var WidthImg=document.getElementById('seeimg').offsetWidth;var HeightContent=HeightClient -(document.getElementById('legende').offsetHeight+document.getElementById('numimg').offsetHeight+parseInt(getStyle('legende','padding-top').replace('px',''))+parseInt(getStyle('legende','padding-bottom').replace('px',''))+parseInt(getStyle('legende','margin-top').replace('px',''))+parseInt(getStyle('legende','margin-bottom').replace('px',''))+parseInt(getStyle('numimg','padding-top').replace('px',''))+parseInt(getStyle('numimg','padding-bottom').replace('px',''))+parseInt(getStyle('numimg','margin-top').replace('px',''))+parseInt(getStyle('numimg','margin-bottom').replace('px',''))+parseInt(getStyle('seeframe','padding-top').replace('px',''))+parseInt(getStyle('seeframe','padding-bottom').replace('px',''))+parseInt(getStyle('seeframe','margin-top').replace('px',''))+parseInt(getStyle('seeframe','margin-bottom').replace('px','')));if(HeightImg>HeightContent){ document.getElementById('seeimg').style.height=HeightContent+'px'; document.getElementById('seeimg').style.width='auto';}NewWidthImg=document.getElementById('seeimg').offsetWidth;if(NewWidthImg>WidthFrame){ var trueWidth=parseInt(getStyle('seeimg','width')); var borders=(document.getElementById('seeimg').offsetWidth - trueWidth)* 2; document.getElementById('seeimg').style.width=(WidthFrame - borders)+'px'; document.getElementById('seeimg').style.height=Math.round((HeightImg/NewWidthImg)*(WidthFrame - borders))+'px';}anime('seeimg','o',10,500);if(prevon=='1'){document.getElementById('seeprev').style.height=document.getElementById('seeimg').offsetHeight+'px';document.getElementById('seeprev').style.width=Math.round(document.getElementById('seeimg').offsetWidth/3)+'px';document.getElementById('seeprev').style.marginTop='-'+((document.getElementById('seeimg').offsetHeight/2)+(document.getElementById('seeprev').offsetHeight/2)+(document.getElementById('legende').offsetHeight)+4)+'px';document.getElementById('seeprev').style.opacity=1;document.getElementById('seeprev').style.filter='alpha(opacity=1)';document.getElementById('seeprev').style.marginLeft=((document.getElementById('seeframe').offsetWidth/2)-(document.getElementById('seeimg').offsetWidth/2))+'px';}if(nexton=='1'){document.getElementById('seenext').style.height=document.getElementById('seeimg').offsetHeight+'px';document.getElementById('seenext').style.width=Math.round(document.getElementById('seeimg').offsetWidth/3)+'px';document.getElementById('seenext').style.marginTop='-'+((document.getElementById('seeimg').offsetHeight/2)+(document.getElementById('seenext').offsetHeight/2)+(document.getElementById('legende').offsetHeight)+4)+'px';document.getElementById('seenext').style.opacity=1;document.getElementById('seenext').style.filter='alpha(opacity=1)';document.getElementById('seenext').style.marginRight=((document.getElementById('seeframe').offsetWidth/2)-(document.getElementById('seeimg').offsetWidth/2))+'px';}document.getElementById('legende').style.opacity=1;document.getElementById('legende').style.filter='alpha(opacity=1)';}function getStyle(el,styleProp){var x=document.getElementById(el);if(x.currentStyle)var y=x.currentStyle[styleProp];else if(window.getComputedStyle)var y=document.defaultView.getComputedStyle(x,null).getPropertyValue(styleProp);return y;}function init_diapo(id,diaporama,type){document.getElementById('diaporama_'+id+'_'+diaporama).getElementsByClassName('container')[0].style.zIndex='3';color_btn(id,diaporama,1);if(type=='carrousel'){window['first_start'+id+'_'+diaporama]='1';}window['go_diapo'+id+'_'+diaporama]='on';}function back_on(id,diaporama_num){window['go_diapo'+id+'_'+diaporama_num]='on';}function diapo(id,diaporama_num,curr_d,last,action,diapo_delais,diapo_duree){ if(window['go_diapo'+id+'_'+diaporama_num]=='on'){ window['go_diapo'+id+'_'+diaporama_num]='off'; setTimeout("back_on('"+id+"','"+diaporama_num+"');",(diapo_duree+10)); if(action=='carrousel'){ var old_d=curr_d - 1;if(old_d<1){old_d=last;}}else{ if(document.getElementById('curr_img_'+id+'_'+diaporama_num).innerHTML==''){var old_d='1';}else{var old_d=document.getElementById('curr_img_'+id+'_'+diaporama_num).innerHTML;}} color_btn(id,diaporama_num,curr_d); var randAction=''; if(action=='randomslide'){var actions=new Array('slideleft','slideright','slideup','slidedown');randAction=actions[Math.floor(Math.random()* 3)];} if(action=='randomcover'){var actions=new Array('coverleft','coverright','coverup','coverdown','uncoverleft','uncoverright','uncoverup','uncoverdown', 'coverhg','coverhd','coverbg','coverbd','uncoverhg','uncoverhd','uncoverbg','uncoverbd');randAction=actions[Math.floor(Math.random()* 15)];} if(action=='randombandes'){var actions=new Array('bandes1','bandes2','bandes3','bandes4','bandes5','bandes6','bandes7','bandes8');randAction=actions[Math.floor(Math.random()* 7)];} if(action=='randomvague'){var actions=new Array('vague1','vague2','vague3','vague4','vague5','vague6','vague7','vague8');randAction=actions[Math.floor(Math.random()* 7)];} if(action=='randomblinds'){var actions=new Array('blinds1','blinds2','blinds3','blinds4','blinds5','blinds6','blinds7','blinds8');randAction=actions[Math.floor(Math.random()* 7)];} if(action=='randomzoom'){var actions=new Array('zoominc','zoominh','zoomind','zoominb','zooming','zoominhg','zoominhd','zoominbg','zoominbd','zoomoutc','zoomouth','zoomoutd','zoomoutb','zoomoutg','zoomouthg','zoomouthd','zoomoutbg','zoomoutbd');randAction=actions[Math.floor(Math.random()* 17)];} if(randAction==''){ if(action=='fade'){ fade(id,diaporama_num,curr_d,old_d,diapo_duree);}else if(action=='slideleft'||action=='slideright'||action=='slideup'||action=='slidedown'){ slide(id,diaporama_num,action,curr_d,old_d,last,diapo_duree);}else if(action=='coverleft'||action=='coverright'||action=='coverup'||action=='coverdown'||action=='coverhg'||action=='coverhd'||action=='coverbg'||action=='coverbd'){ cover(id,diaporama_num,action,curr_d,old_d,last,diapo_duree);}else if(action=='uncoverleft'||action=='uncoverright'||action=='uncoverup'||action=='uncoverdown'||action=='uncoverhg'||action=='uncoverhd'||action=='uncoverbg'||action=='uncoverbd'){ uncover(id,diaporama_num,action,curr_d,old_d,last,diapo_duree);}else if(action=='rideaux1'||action=='rideaux2'||action=='rideaux3'||action=='rideaux4'||action=='rideaux5'||action=='rideaux6'){ curt(id,diaporama_num,action,curr_d,old_d,last,diapo_duree);}else if(action=='rideaux7'||action=='rideaux8'||action=='rideaux9'||action=='rideaux10'||action=='rideaux11'||action=='rideaux12'){ curtclose(id,diaporama_num,action,curr_d,old_d,last,diapo_duree);}else if(action=='bandes1'||action=='bandes2'){ bandesv10(id,diaporama_num,action,curr_d,old_d,last,diapo_duree);}else if(action=='bandes3'||action=='bandes4'){ bandesv20(id,diaporama_num,action,curr_d,old_d,last,diapo_duree);}else if(action=='bandes5'||action=='bandes6'){ bandesh10(id,diaporama_num,action,curr_d,old_d,last,diapo_duree);}else if(action=='bandes7'||action=='bandes8'){ bandesh20(id,diaporama_num,action,curr_d,old_d,last,diapo_duree);}else if(action=='vague1'||action=='vague2'||action=='vague3'||action=='vague4'||action=='vague5'||action=='vague6'||action=='vague7'||action=='vague8'){ vague(id,diaporama_num,action,curr_d,old_d,last,diapo_duree);}else if(action=='blinds1'||action=='blinds2'||action=='blinds3'||action=='blinds4'||action=='blinds5'||action=='blinds6'||action=='blinds7'||action=='blinds8'){ blinds(id,diaporama_num,action,curr_d,old_d,last,diapo_duree);}else if(action=='flou'){ flou(id,diaporama_num,action,curr_d,old_d,diapo_duree);}else if(action=='zoominc'||action=='zoominh'||action=='zoomind'||action=='zoominb'||action=='zooming'||action=='zoominhg'||action=='zoominhd'||action=='zoominbg'||action=='zoominbd'||action=='zoomoutc'||action=='zoomouth'||action=='zoomoutd'||action=='zoomoutb'||action=='zoomoutg'||action=='zoomouthg'||action=='zoomouthd'||action=='zoomoutbg'||action=='zoomoutbd'){ zoom(id,diaporama_num,action,curr_d,old_d,diapo_duree);}else if(action=='carrousel'){ var prevOld_d=(old_d - 1);if(prevOld_d<1){prevOld_d=last;} var next=(curr_d+1);if(next>last){next=1;} if(window['first_start'+id+'_'+diaporama_num]=='1'){ var diaporama=document.getElementById('diaporama_'+id+'_'+diaporama_num); var ratio=diaporama.offsetHeight/diaporama.offsetWidth; window['bigWidth'+id+'_'+diaporama_num]=Math.round((diaporama.offsetWidth/100)* 75); window['bigHeight'+id+'_'+diaporama_num]=Math.round(((diaporama.offsetWidth/100)* 75)* ratio); window['extWidth'+id+'_'+diaporama_num]=Math.round((diaporama.offsetWidth/100)* 50); window['extHeight'+id+'_'+diaporama_num]=Math.round(((diaporama.offsetWidth/100)* 50)* ratio); window['bigLeft'+id+'_'+diaporama_num]=Math.round((diaporama.offsetWidth/2)-(window['bigWidth'+id+'_'+diaporama_num]/2)); window['bigTop'+id+'_'+diaporama_num]=Math.round((diaporama.offsetHeight/2)-(window['bigHeight'+id+'_'+diaporama_num]/2)); window['extLeft'+id+'_'+diaporama_num]=diaporama.offsetWidth - window['bigLeft'+id+'_'+diaporama_num]; window['extTop'+id+'_'+diaporama_num]=Math.round((diaporama.offsetHeight/2)-(window['extHeight'+id+'_'+diaporama_num]/2)); window['extPos'+id+'_'+diaporama_num]=window['extWidth'+id+'_'+diaporama_num] - window['bigLeft'+id+'_'+diaporama_num]; var curr_container=document.getElementById('container_'+id+'_'+diaporama_num+'_'+curr_d); var old_d_container=document.getElementById('container_'+id+'_'+diaporama_num+'_'+old_d); var prevOld_d_container=document.getElementById('container_'+id+'_'+diaporama_num+'_'+prevOld_d); var next_container=document.getElementById('container_'+id+'_'+diaporama_num+'_'+next); old_d_container.style.width=window['bigWidth'+id+'_'+diaporama_num]+'px'; old_d_container.style.height=window['bigHeight'+id+'_'+diaporama_num]+'px'; old_d_container.style.left=window['bigLeft'+id+'_'+diaporama_num]+'px'; old_d_container.style.top=window['bigTop'+id+'_'+diaporama_num]+'px'; old_d_container.style.zIndex='2'; prevOld_d_container.style.width=curr_container.style.width=next_container.style.width=window['extWidth'+id+'_'+diaporama_num]+'px'; prevOld_d_container.style.height=curr_container.style.height=next_container.style.height=window['extHeight'+id+'_'+diaporama_num]+'px'; prevOld_d_container.style.left='-'+window['extPos'+id+'_'+diaporama_num]+'px'; curr_container.style.left=Math.round(diaporama.offsetWidth - window['extPos'+id+'_'+diaporama_num])+'px'; curr_container.style.zIndex='3'; prevOld_d_container.style.top=curr_container.style.top=next_container.style.top=window['extTop'+id+'_'+diaporama_num]+'px'; prevOld_d_container.style.zIndex='1'; next_container.style.zIndex='1'; next_container.style.left=diaporama.offsetWidth+'px'; var d_image=document.getElementById('diaporama_'+id+'_'+diaporama_num).getElementsByClassName('container'); for(var i=0;ilast){next=1;} var d_image=document.getElementById('diaporama_'+id+'_'+diaporama_num).getElementsByClassName('container'); if(document.getElementById('curr_img_'+id+'_'+diaporama_num).innerHTML != '' &&(curr_d0){ document.getElementById('container_'+id+'_'+diaporama_num+'_'+(i+1)).getElementsByClassName('diapo_legende')[0].style.opacity='0';}}}else{ for(var i=0;i0){ document.getElementById('container_'+id+'_'+diaporama_num+'_'+(i+1)).getElementsByClassName('diapo_legende')[0].style.opacity='0';}}} document.getElementById('container_'+id+'_'+diaporama_num+'_'+curr_d).style.zIndex='3'; document.getElementById('container_'+id+'_'+diaporama_num+'_'+old_d).style.zIndex='1'; document.getElementById('container_'+id+'_'+diaporama_num+'_'+prevOld_d).style.zIndex='0'; document.getElementById('container_'+id+'_'+diaporama_num+'_'+next).style.zIndex='1'; anime('container_'+id+'_'+diaporama_num+'_'+curr_d,'m',bigLeft+'|'+bigTop,duree); anime('container_'+id+'_'+diaporama_num+'_'+curr_d,'t',bigWidth+'|'+bigHeight,duree); anime('container_'+id+'_'+diaporama_num+'_'+old_d,'m','-'+window['extPos'+id+'_'+diaporama_num]+'|'+extTop,duree); anime('container_'+id+'_'+diaporama_num+'_'+old_d,'t',extWidth+'|'+extHeight,duree); anime('container_'+id+'_'+diaporama_num+'_'+prevOld_d,'m','-'+extWidth+'|'+extTop,duree); anime('container_'+id+'_'+diaporama_num+'_'+prevOld_d,'t',extWidth+'|'+extHeight,duree); anime('container_'+id+'_'+diaporama_num+'_'+next,'m',extLeft+'|'+extTop,duree); anime('container_'+id+'_'+diaporama_num+'_'+next,'t',extWidth+'|'+extHeight,duree); if(document.getElementById('container_'+id+'_'+diaporama_num+'_'+curr_d).getElementsByClassName('diapo_legende').length>0){ document.getElementById('container_'+id+'_'+diaporama_num+'_'+curr_d).getElementsByClassName('diapo_legende')[0].style.opacity='1';} }function slide(id,diaporama_num,action,curr_d,old_d,last,duree){ var d_image=document.getElementById('diaporama_'+id+'_'+diaporama_num).getElementsByClassName('container'); var curr_container=document.getElementById('container_'+id+'_'+diaporama_num+'_'+curr_d); var old_d_container=document.getElementById('container_'+id+'_'+diaporama_num+'_'+old_d); var decalH=curr_container.offsetWidth; var decalV=curr_container.offsetHeight; if((action=='slideleft' &&(old_dcurr_d&&curr_dcurr_d&&curr_dcurr_d&&curr_dcurr_d&&curr_d]+)>)/ig,'');if(currSel&&currSel.length>0){var PrevImg=currSel.replace('_s','').replace('_m','').replace('.jpg','').replace('.gif','').replace('.png','');document.getElementById("previewpic").innerHTML='';var prevWidth=document.getElementById('prevPic').naturalWidth;var prevHeight=document.getElementById('prevPic').naturalHeight;if(prevWidth>0&&prevHeight>0){anime('previewpic','o',10,200);}else{document.getElementById('previewpic').innerHTML='';}}else{document.getElementById('previewpic').innerHTML='';}}function openMenu(){setTimeout('openMenu2()',10);}function openMenu2(){var switchM=document.getElementById('openmenu');if(switchM.href=='http://www.stanphilips.com/#menu'){switchM.href='#!/'+current;}else{switchM.href='#menu';}window.scrollTo(0,0);}