jQuery(document).ready(function(){
    changeToMail("mails-place-0",0)
    setStyles();
    autoHeight();

    ddsmoothmenu.init({
        mainmenuid: "smoothmenu1", //menu DIV id
    	orientation: 'v', //Horizontal or vertical menu: Set to "h" or "v"
    	classname: 'ddsmoothmenu', //class added to menu's outer DIV
    	//customtheme: ["#1c5a80", "#18374a"],
    	contentsource: "markup" //"markup" or ["container_id", "path_to_menu_file"]
    });

    jQuery("li#services").mouseenter(function(){
        jQuery("#encarts").animate({
            opacity: 0.15
        }, 200);
    }).mouseleave(function(){
        jQuery("#encarts").animate({
            opacity: 1
        }, 200);
    });
})


function PopUpMovie(strFile, nWidth, nHeight) {
    if ((typeof WindowPopUp != "undefined") && (WindowPopUp != null)) {
        WindowPopUp.close();
    }
    nHeight += 18;
    WindowPopUp = window.open("popup-movie.php?file="+strFile+"&width="+nWidth+"&height="+nHeight, "popup", "left="+((screen.width-nWidth)/2)+", top="+((screen.height-nHeight)/2)+", width="+nWidth+", height="+nHeight);
    if (WindowPopUp != null) {
        WindowPopUp.focus();
    }
}

