function msg(str1,str2){
window.location.href="mailto:" + str1 + "@" + str2;
}
//-----------------------------------------------------------------
// Flashing Link Script- © Dynamic Drive (www.dynamicdrive.com)
// This notice must stay intact for use
// Visit http://www.dynamicdrive.com/ for full source code
//-----------------------------------------------------------------
var flashs=new Array();
var flash0='';
var flash1='';
function flash_change(){
for (i=0; i< flashs.length; i++){
if (flashs[i].style.backgroundColor!=flash1) {
flashs[i].style.backgroundColor=flash1;
flashs[i].style.color=flash0;
} else {
flashs[i].style.backgroundColor=flash0;
flashs[i].style.color=flash1;
}
}
}
function flash_init(bg,fore){
flash0=bg;
flash1=fore;
var i=0;
if(document.all) { while(eval("document.all.flash"+i)!=null) flashs[i]= eval("document.all.flash"+i++); }
else if(document.getElementById) { while(document.getElementById("flash"+i)!=null) flashs[i]= document.getElementById("flash"+i++); }
setInterval("flash_change()",600);
}
//-----------------------------------------------------------------
// Trembling message script- © Dynamic Drive (www.dynamicdrive.com)
// For full source code, 100's more DHTML scripts, and TOS,
// visit http://www.dynamicdrive.com
//-----------------------------------------------------------------
var ns6=document.getElementById&&!document.all
var ie=document.all
var customcollect=new Array()
var jigglei=0
function jiggle_it(num){
if ((!document.all&&!document.getElementById)) return;
customcollect[num].style.left=(parseInt(customcollect[num].style.left)==-1)? customcollect[num].style.left=1 : customcollect[num].style.left=-1
}
function jiggle_init(){
if (ie){
while (eval("document.all.jiggle"+jigglei)!=null){
customcollect[jigglei]= eval("document.all.jiggle"+jigglei)
jigglei++
}
} else if (ns6){
while (document.getElementById("jiggle"+jigglei)!=null){
customcollect[jigglei]= document.getElementById("jiggle"+jigglei)
jigglei++
}
}
if (customcollect.length==1)
setInterval("jiggle_it(0)",80)
else if (customcollect.length>1)
for (y=0;y<customcollect.length;y++){
var tempvariable='setInterval("jiggle_it('+y+')",'+'100)'
eval(tempvariable)
}
}
//-----------------------------------------------------------------
// Dock Content script- Created by and © Dynamicdrive.com
// This notice must stay intact for use
// Visit http://www.dynamicdrive.com/ for full script
//-----------------------------------------------------------------
var offsetfromedge=0      //offset from window edge when content is "docked". Change if desired.
var dockarray=new Array() //array to cache dockit instances
var dkclear=new Array()   //array to cache corresponding clearinterval pointers
function dockit(el, duration){
this.source=document.all? document.all[el] : document.getElementById(el);
this.source.height=this.source.offsetHeight;
this.docheight=truebody().clientHeight;
this.duration=duration;
this.pagetop=0;
this.elementoffset=this.getOffsetY();
dockarray[dockarray.length]=this;
var pointer=eval(dockarray.length-1);
var dynexpress='dkclear['+pointer+']=setInterval("dockornot(dockarray['+pointer+'])",100);';
dynexpress=(this.duration>0)? dynexpress+'setTimeout("clearInterval(dkclear['+pointer+']); dockarray['+pointer+'].source.style.top=0", duration*1000)' : dynexpress;
eval(dynexpress);
}
dockit.prototype.getOffsetY=function(){
var totaloffset=parseInt(this.source.offsetTop);
var parentEl=this.source.offsetParent;
while (parentEl!=null){
totaloffset+=parentEl.offsetTop;
parentEl=parentEl.offsetParent;
}
return totaloffset;
}
function dockornot(obj){
obj.pagetop=truebody().scrollTop;
if (obj.pagetop>obj.elementoffset) //detect upper offset
obj.source.style.top=obj.pagetop-obj.elementoffset+offsetfromedge+"px";
else if (obj.pagetop+obj.docheight<obj.elementoffset+parseInt(obj.source.height)) //lower offset
obj.source.style.top=obj.pagetop+obj.docheight-obj.source.height-obj.elementoffset-offsetfromedge+"px";
else
obj.source.style.top=0;
}
function truebody(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}

//----- Multimedia 4/3 et 16/9eme
function sound(filename){soundauto(filename,0);}
function soundauto(filename,autostart){document.write("<object type=\"application/x-shockwave-flash\" width=\"18\" height=\"19\" align=\"absmiddle\" classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\"><param name=\"allowScriptAccess\" value=\"sameDomain\" /><param name=\"movie\" value=\"/img/playermp3.swf?son=" + filename + "&amp;autostart=" + autostart +"&amp;autoreplay=0&amp;showtime=0&amp;volume=100\" /><param name=\"wmode\" value=\"transparent\" /><param name=\"quality\" value=\"high\" /><embed type=\"application/x-shockwave-flash\" width=\"18\" height=\"19\" align=\"absmiddle\" allowScriptAccess=\"sameDomain\" src=\"/img/playermp3.swf?son=" + filename + "&amp;autostart=" + autostart +"&amp;autoreplay=0&amp;showtime=0&amp;volume=100\" wmode=\"transparent\" quality=\"high\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\"></embed></object>");}
function soundw(filename){document.write("<object type=\"application/x-shockwave-flash\" width=\"150\" height=\"19\" align=\"absmiddle\" classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\"><param name=\"allowScriptAccess\" value=\"sameDomain\" /><param name=\"movie\" value=\"/img/playermp3.swf?son=" + filename + "&amp;autostart=0&amp;autoreplay=0&amp;showtime=1&amp;volume=100\" /><param name=\"wmode\" value=\"transparent\" /><param name=\"quality\" value=\"high\" /><embed type=\"application/x-shockwave-flash\" width=\"150\" height=\"19\" align=\"absmiddle\" allowScriptAccess=\"sameDomain\" src=\"/img/playermp3.swf?son=" + filename + "&amp;autostart=0&amp;autoreplay=0&amp;showtime=1&amp;volume=100\" wmode=\"transparent\" quality=\"high\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\"></embed></object>");}
function video(filename){videoimg(filename,"");}
function videoimg(filename,startimage){videoxy(filename,425,355,0,startimage);}
function videoauto(filename){videoxy(filename,425,355,1,"");}
function videoxy(filename,width,height,autoload,startimage){document.write("<object type=\"application/x-shockwave-flash\" width=\""+width+"\" height=\""+height+"\" classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\"><param name=\"allowScriptAccess\" value=\"sameDomain\" /><param name=\"movie\" value=\"/img/playerflv.swf?flv="+filename+"&amp;width="+width+"&amp;height="+height+"&amp;showstop=1&amp;showvolume=1&amp;showtime=1&amp;showfullscreen=1&amp;autoload="+autoload+"&amp;startimage="+startimage+"&amp;buttonovercolor=FF0000&amp;loadingcolor=FF0000&amp;showiconplay=1&amp;bgcolor1=000000&amp;bgcolor2=000000&amp;buffercolor=E0E0E0&amp;iconplaycolor=000000&amp;iconplaybgcolor=FFFFFF&amp;iconplaybgalpha=100&amp;slidercolor1=FFFFFF&amp;slidercolor2=C0C0C0&amp;sliderovercolor=FF0000\" /><param name=\"wmode\" value=\"transparent\" /><param name=\"allowFullScreen\" value=\"true\" /><embed type=\"application/x-shockwave-flash\" width=\""+width+"\" height=\""+height+"\" allowScriptAccess=\"sameDomain\" src=\"/img/playerflv.swf?flv="+filename+"&amp;width="+width+"&amp;height="+height+"&amp;showstop=1&amp;showvolume=1&amp;showtime=1&amp;showfullscreen=1&amp;autoload="+autoload+"&amp;startimage="+startimage+"&amp;buttonovercolor=FF0000&amp;loadingcolor=FF0000&amp;showiconplay=1&amp;bgcolor1=000000&amp;bgcolor2=000000&amp;buffercolor=E0E0E0&amp;iconplaycolor=000000&amp;iconplaybgcolor=FFFFFF&amp;iconplaybgalpha=100&amp;slidercolor1=FFFFFF&amp;slidercolor2=C0C0C0&amp;sliderovercolor=FF0000&amp;playeralpha=100\" wmode=\"transparent\" allowFullScreen=\"true\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\"></embed></object>");}
function flash(filename,width,height){document.write("<object width=\""+width+"\" height=\""+height+"\" align=\"absmiddle\"><param name=\"allowScriptAccess\" value=\"sameDomain\" /><param name=\"movie\" value=\"" + filename + "\" /><param name=\"wmode\" value=\"transparent\" /><param name=\"quality\" value=\"high\" /><embed width=\""+width+"\" height=\""+height+"\" align=\"absmiddle\" allowScriptAccess=\"sameDomain\" src=\"" + filename + "\" wmode=\"transparent\" quality=\"high\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\"></embed></object>");}
function youtube(filename){document.write("<object width=\"425\" height=\"355\"><param name=\"movie\" value=\"http://www.youtube.com/v/" + filename + "?fs=1&hl=fr_FR&rel=0\"></param><param name=\"wmode\" value=\"transparent\"></param><embed src=\"http://www.youtube.com/v/" + filename + "?fs=1&hl=fr_FR&rel=0\" type=\"application/x-shockwave-flash\" wmode=\"transparent\" width=\"425\" height=\"355\"></embed></object>");}
function youtubew(filename){document.write("<object width=\"640\" height=\"385\"><param name=\"movie\" value=\"http://www.youtube.com/v/" + filename + "?fs=1&hl=fr_FR&rel=0\"></param><param name=\"wmode\" value=\"transparent\"></param><param name=\"allowFullScreen\" value=\"true\"></param><embed src=\"http://www.youtube.com/v/" + filename + "?fs=1&hl=fr_FR&rel=0\" type=\"application/x-shockwave-flash\" wmode=\"transparent\" allowfullscreen=\"true\" width=\"640\" height=\"385\"></embed></object>");}
function dailymotion(filename){document.write("<object width=\"425\" height=\"335\"><param name=\"movie\" value=\"http://www.dailymotion.com/swf/" + filename + "\"></param><param name=\"allowFullScreen\" value=\"true\"></param><param name=\"allowScriptAccess\" value=\"always\"></param><embed src=\"http://www.dailymotion.com/swf/" + filename + "\" type=\"application/x-shockwave-flash\" width=\"425\" height=\"335\" allowFullScreen=\"true\" allowScriptAccess=\"always\"></embed></object>");}
function dailymotionw(filename){document.write("<object width=\"640\" height=\"360\"><param name=\"movie\" value=\"http://www.dailymotion.com/swf/" + filename + "?width=640\"></param><param name=\"allowFullScreen\" value=\"true\"></param><param name=\"allowScriptAccess\" value=\"always\"></param><embed type=\"application/x-shockwave-flash\" src=\"http://www.dailymotion.com/swf/" + filename + "?width=640\" width=\"640\" height=\"360\" allowfullscreen=\"true\" allowscriptaccess=\"always\"></embed></object>");}
function vimeo(filename){document.write("<iframe src=\"http://player.vimeo.com/video/" + filename + "\" width=\"425\" height=\"240\" frameborder=\"0\"></iframe>");}
function vimeow(filename){document.write("<iframe src=\"http://player.vimeo.com/video/" + filename + "\" width=\"640\" height=\"360\" frameborder=\"0\"></iframe>");}
function zapiksw(filename){document.write("<object width=\"640\" height=\"360\"><param name=\"movie\" value=\"http://www.zapiks.fr/share/player.swf?file=" + filename + "&lang=fr\"></param><param name=\"wmode\" value=\"transparent\"></param><param name=\"allowfullscreen\" value=\"true\"></param><param name=\"allowscriptaccess\" value=\"always\"></param><embed src=\"http://www.zapiks.fr/share/player.swf?file=" + filename + "&lang=fr\" type=\"application/x-shockwave-flash\" wmode=\"transparent\" width=\"640\" height=\"360\" allowfullscreen=\"true\" allowscriptaccess=\"always\" ></embed></object>");}
function watw(filename){document.write("<object width=\"640\" height=\"360\" id=\"wat_5481969\"><param name=\"movie\" value=\"http://www.wat.tv/swf2/" + filename + "\"></param><param name=\"allowFullScreen\" value=\"true\"></param><param name=\"allowScriptAccess\" value=\"always\"></param><embed src=\"http://www.wat.tv/swf2/" + filename + "\" type=\"application/x-shockwave-flash\"  allowscriptaccess=\"always\" allowfullscreen=\"true\" width=\"640\" height=\"360\"></embed></object>");}
function redbullw(videourl){document.write("<object width=\"640\" height=\"360\"><param name=\"allowfullscreen\" value=\"true\"/><param name=\"allowscriptaccess\" value=\"always\"/><embed src=\"http://www.redbull.fr/cs/RedBull/flash/RBPlayerNew.swf?data_url=" + videourl + "\" type=\"application/x-shockwave-flash\" allowfullscreen=\"true\" allowscriptaccess=\"always\" width=\"640\" height=\"360\"/></object>");}
function myspace(filename){document.write("<embed src=\"http://lads.myspace.com/videos/vplayer.swf\" flashvars=\"m=" + filename + "&v=2&type=video\" type=\"application/x-shockwave-flash\" width=\"430\" height=\"346\"></embed>");}

/***********************************************
* Pausing up-down scroller- © Dynamic Drive (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit http://www.dynamicdrive.com/ for this script and 100s more.
***********************************************/

function pausescroller(content, divId, delay, class1, class2){
this.content=content //message array content
this.tickerid=divId //ID of ticker div to display information
this.delay=delay //Delay between msg change, in miliseconds.
this.mouseoverBol=0 //Boolean to indicate whether mouse is currently over scroller (and pause it if it is)
this.hiddendivpointer=1 //index of message array for hidden div
document.write('<div id="'+divId+'"><div class="innerDiv class1" style="position: absolute; width: 100%" id="'+divId+'1">'+content[0]+'</div><div class="innerDiv class2" style="position: absolute; width: 100%; visibility: hidden" id="'+divId+'2">'+content[1]+'</div></div>')
var scrollerinstance=this
if (window.addEventListener) //run onload in DOM2 browsers
window.addEventListener("load", function(){scrollerinstance.initialize()}, false)
else if (window.attachEvent) //run onload in IE5.5+
window.attachEvent("onload", function(){scrollerinstance.initialize()})
else if (document.getElementById) //if legacy DOM browsers, just start scroller after 0.5 sec
setTimeout(function(){scrollerinstance.initialize()}, 500)
}

// -------------------------------------------------------------------
// initialize()- Initialize scroller method.
// -Get div objects, set initial positions, start up down animation
// -------------------------------------------------------------------

pausescroller.prototype.initialize=function(){
this.tickerdiv=document.getElementById(this.tickerid)
this.visiblediv=document.getElementById(this.tickerid+"1")
this.hiddendiv=document.getElementById(this.tickerid+"2")
this.visibledivtop=parseInt(pausescroller.getCSSpadding(this.tickerdiv))
//set width of inner DIVs to outer DIV's width minus padding (padding assumed to be top padding x 2)
this.visiblediv.style.width=this.hiddendiv.style.width=this.tickerdiv.offsetWidth-(this.visibledivtop*2)+"px"
this.getinline(this.visiblediv, this.hiddendiv)
this.hiddendiv.style.visibility="visible"
var scrollerinstance=this
document.getElementById(this.tickerid).onmouseover=function(){scrollerinstance.mouseoverBol=1}
document.getElementById(this.tickerid).onmouseout=function(){scrollerinstance.mouseoverBol=0}
if (window.attachEvent) //Clean up loose references in IE
window.attachEvent("onunload", function(){scrollerinstance.tickerdiv.onmouseover=scrollerinstance.tickerdiv.onmouseout=null})
setTimeout(function(){scrollerinstance.animateup()}, this.delay)
}

// -------------------------------------------------------------------
// animateup()- Move the two inner divs of the scroller up and in sync
// -------------------------------------------------------------------

pausescroller.prototype.animateup=function(){
var scrollerinstance=this
if (parseInt(this.hiddendiv.style.top)>(this.visibledivtop+5)){
this.visiblediv.style.top=parseInt(this.visiblediv.style.top)-5+"px"
this.hiddendiv.style.top=parseInt(this.hiddendiv.style.top)-5+"px"
setTimeout(function(){scrollerinstance.animateup()}, 50)
}
else{
this.getinline(this.hiddendiv, this.visiblediv)
this.swapdivs()
setTimeout(function(){scrollerinstance.setmessage()}, this.delay)
}
}

// -------------------------------------------------------------------
// swapdivs()- Swap between which is the visible and which is the hidden div
// -------------------------------------------------------------------

pausescroller.prototype.swapdivs=function(){
var tempcontainer=this.visiblediv
this.visiblediv=this.hiddendiv
this.hiddendiv=tempcontainer
}

pausescroller.prototype.getinline=function(div1, div2){
div1.style.top=this.visibledivtop+"px"
div2.style.top=Math.max(div1.parentNode.offsetHeight, div1.offsetHeight)+"px"
}

// -------------------------------------------------------------------
// setmessage()- Populate the hidden div with the next message before it's visible
// -------------------------------------------------------------------

pausescroller.prototype.setmessage=function(){
var scrollerinstance=this
if (this.mouseoverBol==1) //if mouse is currently over scoller, do nothing (pause it)
setTimeout(function(){scrollerinstance.setmessage()}, 100)
else{
var i=this.hiddendivpointer
var ceiling=this.content.length
this.hiddendivpointer=(i+1>ceiling-1)? 0 : i+1
this.hiddendiv.innerHTML=this.content[this.hiddendivpointer]
this.animateup()
}
}

pausescroller.getCSSpadding=function(tickerobj){ //get CSS padding value, if any
if (tickerobj.currentStyle)
return tickerobj.currentStyle["paddingTop"]
else if (window.getComputedStyle) //if DOM2
return window.getComputedStyle(tickerobj, "").getPropertyValue("padding-top")
else
return 0
}

