// **************************** /* FONCTION DREAM COMMUNES */ // **************************** function MM_preloadImages() { //v3.0 var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array(); var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i0&&parent.frames.length) { d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i document.getElementById(identifiant).innerHTML =' '; } } // ************************** // Popup centrée // ************************** //PopWin('map','970','790','map.php','1','') var PopUpWindow = null; var win; function PopWin(n,w,h,urlspec,center,options) { if (PopUpWindow != null && ! PopUpWindow.closed) { PopUpWindow.close(); } var str='width='+w+',height='+h+options; if (center && window.screen) { var ah = screen.availHeight - 30; var aw = screen.availWidth - 10; var xc = (aw - w) / 2; var yc = (ah - h) / 2; str += ",left=" + xc + ",screenX=" + xc; str += ",top=" + yc + ",screenY=" + yc; } PopUpWindow = window.open('',n,str); if (PopUpWindow != null) { if (PopUpWindow.opener == null) PopUpWindow.opener = self; PopUpWindow.location.href = urlspec; } } // ************************** // Défilement textes news // ************************** var ejs_tick_news_txt=new Array(); var ejs_tick_news_url=new Array(); var ejs_tick_news_tar=new Array(); ejs_tick_news_txt[0]=''; ejs_tick_news_url[0]='news.html'; ejs_tick_news_tar[0]='_self'; num=1; ejs_tick_news_txt[num]='Rendez-vous au stade de la Valmasque le 28 décembre à 20H.'; ejs_tick_news_url[num]='news.php?newsSelect=048'; ejs_tick_news_tar[num]='_self'; num++; ejs_tick_news_txt[num]='Tous les Cannondale Jekyll 2012 sont en magasin.'; ejs_tick_news_url[num]='news.php?newsSelect=047'; ejs_tick_news_tar[num]='_self'; num++; ejs_tick_news_txt[num]='TREK Madone 6,9 ssl 2012'; ejs_tick_news_url[num]='news.php?newsSelect=046'; ejs_tick_news_tar[num]='_self'; num++; //ejs_tick_news_txt[2]='Les nouvelles couleurs et design 2012 sont disponibles sur www.trekbikes.com'; //ejs_tick_news_url[2]='http://www.trekbikes.com'; //ejs_tick_news_tar[2]='_blank'; /* INITIALISATION */ ejs_tick_actual = 0; function ejs_tick_print() { ejs_tick_old = ejs_tick_actual; ejs_tick_actual++; if(ejs_tick_actual >= ejs_tick_news_url.length) ejs_tick_actual = 1; ejs_tick_slot = 0; ejs_tick_trans(ejs_tick_old, ejs_tick_actual); setTimeout("ejs_tick_print()", 4000); } function ejs_tick_trans(old, actual) { ejs_tick_slot ++; var max_len = Math.max(ejs_tick_news_txt[actual].length, ejs_tick_news_txt[old].length); if(ejs_tick_slot<=max_len) { var debut = ejs_tick_news_txt[actual].substr(0,ejs_tick_slot); var fin = ejs_tick_news_txt[old].substr(ejs_tick_slot,ejs_tick_news_txt[old].length); //document.getElementById("ejs_tick_box").innerHTML =""+debut+fin+""; document.getElementById("ejs_tick_box").innerHTML = ""+debut+""; setTimeout("ejs_tick_trans("+old+", "+actual+")", 50); } else { document.getElementById("ejs_tick_box").innerHTML = ''+ejs_tick_news_txt[actual]+''; } }