$(document).ready(function () {    
       
    $('#nav li').hover(   
        function () {   
            //show its submenu   
            $('ul', this).slideDown(300);   
  
        },    
        function () {   
            //hide its submenu   
            $('ul', this).slideUp(300);            
        }   
    );   
       
});  


function linkeo(telephone, heure) {
	var url="http://www.linkeo.net/accueil.nsf/banniere?Open&TELEPHONE=" + telephone + "&TELAGENT=0821021031&PRENOM=&CODEBOUTON=CAT1001&DELAISEC=&POPUP=1";
	window.open(url, "linkeo", "width=400,height=600,scrollbars=NO");
}
	
function redirect_devis(formulaire) {
	if (formulaire.type[0].checked==true) {
		window.open('http://www.assurances-therond.fr/cgi-bin/tarificateur/modif_devis.cgi?WHAT=edit&pg=homepage');
	}
	else if (formulaire.type[1].checked==true) {
		window.open('http://extranet.tarificateur.net/tarifauto/conditions/uid/0206');
	}
	else if (formulaire.type[2].checked==true) {
		document.location = 'devis.php';
	}
}

function newWindow(a_str_windowURL, a_str_windowName, a_int_windowWidth, a_int_windowHeight, a_bool_scrollbars, a_bool_resizable, a_bool_menubar, a_bool_toolbar, a_bool_addressbar, a_bool_statusbar, a_bool_fullscreen) {
  var int_windowLeft = (screen.width - a_int_windowWidth) / 2;
  var int_windowTop = (screen.height - a_int_windowHeight) / 2;
  var str_windowProperties = 'height=' + a_int_windowHeight + ',width=' + a_int_windowWidth + ',top=' + int_windowTop + ',left=' + int_windowLeft + ',scrollbars=' + a_bool_scrollbars + ',resizable=' + a_bool_resizable + ',menubar=' + a_bool_menubar + ',toolbar=' + a_bool_toolbar + ',location=' + a_bool_addressbar + ',statusbar=' + a_bool_statusbar + ',fullscreen=' + a_bool_fullscreen + '';
  var obj_window = window.open(a_str_windowURL, a_str_windowName, str_windowProperties)
    if (parseInt(navigator.appVersion) >= 4) {
      obj_window.window.focus();
    }
}
