// iso 8859-15

$(document).ready(function(){$('ul.sf-menu').superfish({autoArrows:false,speed:'slow'});if(!($.browser.msie&&(parseInt($.browser.version)==6))){$('ul.sf-menu > li.h').hover(function(){var str=$(this).find("img").attr("src");$(this).find("img").attr("src",str.substr(0,str.indexOf(".png")-1)+"2.png")},function(){var str=$(this).find("img").attr("src");$(this).find("img").attr("src",str.substr(0,str.indexOf(".png")-1)+"1.png")})}else{$("#enteteSimple div.menuPrincipal").css("marginLeft","75px");$("#enteteModele div.menuPrincipal").css("marginLeft","75px");$("#enteteModele div.menuPrincipal").css("marginTop","8px");$("#ssMenu").css("marginLeft","110px");$("#ssMenuModeles  div").css("paddingLeft","8px");$("#ssMenu_ieh div").css({marginLeft:"150px"});$("div.menuPrincipal ul.sf-menu li ul").css("z-index",99);$("div#contenu div.colB").css("z-index",-1)}$(window).bind('load',function(){var preload=new Array();$("ul.sf-menu > li.h").each(function(){var str=$(this).find("img").attr("src");preload.push(str.substr(0,str.indexOf(".png")-1)+"2.png")});var img=document.createElement('img');$(img).bind('load',function(){if(preload[0]){this.src=preload.shift()}}).trigger('load')})});function o_demtec(){var lang=(arguments.length==1)?arguments[0]:"fr";if(lang=="fr"){window.open("../img/fr/demtecMondeSite.jpg",'Dwindow','width=1049,height=796')}else{window.open("../pdf/en/demtec_monde.pdf",'Dwindow','width=700,height=905')}return false}function o_communique(){var lang=(arguments.length==1)?arguments[0]:"fr";if(lang=="fr"){window.open('../pdf/fr/communique_mars_2010.pdf','PDFwindow','width=700,height=865')}else{window.open('../pdf/en/pressReleaseMarch2010.pdf','PDFwindow','width=700,height=865')}return false}function o_inovation(){var lang=(arguments.length==1)?arguments[0]:"fr";if(lang=="fr"){window.open('../pdf/fr/demtec_innovation.pdf','PDFwindow','width=1008,height=655')}else{window.open('../pdf/en/demtec_innovation.pdf','PDFwindow','width=1008,height=655')}return false}


function do_date(lang)
{
     
    var arr_m = (lang =="fr") ? ['janvier', 'février', 'mars', 'avril', 'mai', 'juin','juillet', 'août', 'septembre', 'octobre', 'novembre', 'décembre'] : ['january', 'february', 'march', 'april', 'may', 'june','july', 'august', 'september', 'october', 'november', 'december'];
    var today = new Date(),
        str_date = "";
        
    str_date = today.getDate() + " " + arr_m[today.getMonth()] + " " + today.getFullYear() ;
        
     document.write(str_date);
     //console.log(str_date);
}

