/*Player de pub audio*/
EPCMS_UA=navigator.userAgent; EPCMS_DOM=(document.getElementById?true:false); EPCMS_IE=(document.all && !EPCMS_DOM?true:false); EPCMS_NS4=(document.layers?true:false); EPCMS_FIREFOX=(EPCMS_UA.indexOf('Firefox')!=-1); EPCMS_IEXPLORE=(EPCMS_UA.indexOf('MSIE')!=-1); if(EPCMS_IEXPLORE){R=navigator.appVersion.match(/MSIE (\d+\.\d+)/,''); EPCMS_IEXPLORE_V=Number(R[1]);} EPCMS_NETSCAPE=(EPCMS_UA.indexOf('Netscape')!=-1); EPCMS_SAFARI=(EPCMS_UA.indexOf('Safari')!=-1);
function epid(o){return document.getElementById(o);}
function epcook(v,t,n){d=new Date(); b=0; if(document.cookie) r=document.cookie; c=r.split("; "); i=0; while(i<c.length){V=c[i]; e=V.split("="); if(e[0]==v && t==1){cr=d.getTime()+(1*86400000); d.setTime(cr); document.cookie=e[0]+"="+n+"; expires="+d.toGMTString(); return n;} else if(t==0){cr=d.getTime()-(1*86400000); d.setTime(cr); document.cookie=e[0]+"=; expires="+d.toGMTString(); return 0;} else if(e[0]==v && t==3){i=c.length; return e[1];} else if(e[0]==v && t==4){i=c.length; return e[0];} i++;} if(!b && t==1){cr=d.getTime()+(1*86400000); d.setTime(cr); document.cookie=v+"="+n+"; expires="+d.toGMTString(); return n;}}
EPALPHA="mark"; EPALPHA_O=0; EPALPHA_O2=100; EPALPHA_T=0;
function epalpha(e,i,t){EPALPHA=e; EPALPHA_O=i; EPALPHA_T=t; epalpha_act();}
function epalpha_act(){if(EPALPHA){if(EPCMS_IEXPLORE || EPCMS_SAFARI) epid(EPALPHA).style.filter="alpha(style=0,opacity="+EPALPHA_O2+")"; else epid(EPALPHA).style.MozOpacity=EPALPHA_O2/100; if(EPALPHA_T && EPALPHA_O2<EPALPHA_O) EPALPHA_O2+=5; else if(!EPALPHA_T && EPALPHA_O2>EPALPHA_O) EPALPHA_O2-=5; if(EPALPHA_O2!=EPALPHA_O) window.setTimeout('epalpha_act()',75);}}
function pubaudio(){T=epcook('pubaudio_play',3,0); if(T==1){epcook('pubaudio_play',1,2); dewp=epid("dewplayer"); dewp.dewstop();} else{epcook('pubaudio_play',1,1); dewp.dewplay();}}
function re(s){parent.window.redir(s);}
function mark(){if(EPALPHA_O2==100){epalpha('mark',0,0); window.setTimeout('mark()',1500);} else{cc=M[MI].length; cc=40000+(cc*10); epid('mark').innerHTML=M[MI]; MI++; if(MI>=M.length) MI=0; epid('mark').start(); epalpha('mark',100,1); MI=epcook('pubaudio_mark',1,MI); window.setTimeout('mark()',cc);}}
MI=0; MI=epcook('pubaudio_mark',3,0); M=new Array();
M[0]="<div onclick=\"re('index.php?eppage=contact&epcontact_sujet=Informations sur vos activités')\">Bienvenue sur le site de Soleilinvest ! Pour toute information sur nos activités, <a href=\"#\">cliquez ici</a> !!!</div>";
M[1]="<div onclick=\"re('index.php?eppage=programme')\">Retrouvez l'ensemble de nos programmes immobiliers dans la <a href=\"#\">section vente</a> de notre site !</div>";
M[2]="<div onclick=\"re('index.php?eppage=castellare_di_casinca')\"><a href=\"#\">Vivez l'aventure corse à <a href=\"index.php?eppage=castellare_di_casinca\">Castellare-di-Casinca</a></div>";
M[3]="<div onclick=\"re('index.php?eppage=vire')\">Ressourcez-vous au coeur de <a href=\"#\">la Normandie</a> et découvrez notre tout nouveau programme immobilier à Vire, à proximité du Mont-Saint-Michel.</div>";
M[4]="<div onclick=\"re('index.php?eppage=saly')\">Investissez au soleil et découvrez dès à présent notre programme en bord de mer au <a href=\"#\">Sénégal</a> !!!</div>";
M[5]="<div onclick=\"re('index.php?eppage=calvisson')\">Découvrez tout le charme de la provence à Calvisson au domaine du <a href=\"#\">Mas des Vignes</a> !</div>";
M[6]="<div onclick=\"re('index.php?eppage=monestier')\">Visitez le Périgord et goûtez à une gastronomie haut en couleur à <a href=\"#\">Monestier</a> !</div>";
M[7]="<div onclick=\"re('http://www.soleilinvest.com/ima/newsletter/newsletter.html')\">Vous avez reçu un message sur votre GSM ? <a href=\"#\">Cliquez ici</a> pour découvrir de quoi il s'agit !</div>";
M[8]="<div onclick=\"re('index.php?eppage=carte_france')\">Découvrez l'ensemble de nos ventes et de nos locations en <a href=\"#\">France</a> !</div>";
M[9]="<div onclick=\"re('http://www.lemasdesvignesacalvisson.com')\">Passez vos vacances au sud de la France à Calvisson au <a href=\"#\">domaine du Mas des Vignes</a> !</div>";
M[10]="<div onclick=\"re('http://www.lesdemeuresduventoux.com')\">Découvrez le charme de la provence aux <a href=\"#\">Demeures du Ventoux</a> !</div>";
M[11]="<div onclick=\"re('http://www.residencefortsamson.com')\">Envie de découvrir la Normandie ? Rendez-vous à la résidence <a href=\"#\">Fort Samson</a> pour un séjour inoubliable !</div>";

P="http://www.soleilinvest.com/media/"; L=P+"douce_france.mp3|"+P+"il_y_a.mp3|"+P+"music.mp3|"+P+"long_long_journey.mp3";
L2=L.split("|"); for(var j,x,i=L2.length;i;j=parseInt(Math.random()*i),x=L2[--i],L2[i]=L2[j],L2[j]=x); L=L2.join("|"); l=L.length-4; L=L.substr(0,l);
var T; var F; F=parent.window.FONDSONORE; F2=0; if(F==666){F2=F; F="";} if(!F) F=L; else F=P+F+".mp3|"+L; T=epcook('pubaudio_play',3,0); if(!T) epcook('pubaudio_play',1,1); if(!F2 && (!T || T==1)){PL="&autoplay=1";} else PL="";
document.write('<font style="font-size:4pt"><br></font><table align=right style="background-color:#5D99CE;color:#ffffff;font-size:10pt;width:100%"><td><marquee title="Consultez cette annonce !" style="cursor:pointer" width="100%" id=mark direction=left scrollamount=4 scrolldelay=50 onmouseover="this.stop()" onmouseout="this.start()"></marquee></td><td width=210><object type="application/x-shockwave-flash" data="'+P+'dewplayer.swf?son='+F+'.mp3'+PL+'" id=dewplayer width=200 height=20 bgcolor="#5D99CE"><param name=movie value="'+P+'dewplayer.swf?son='+F+'.mp3'+PL+'"><param name=wmode value="transparent"><param name=bgcolor value="#5D99CE"></object></td><td width=180><input onclick="pubaudio()" style="border:0px;width:12px;" type=checkbox'); if(T==2) document.write(' checked'); document.write('> Couper le fond sonore &#160&#160&#160&#160&#160</td></table>');
epid('mark').stop(); window.setTimeout('mark()',5000);


