var objMenu, menuTimer_index=0; function BuildSEOLink(mdl,str,id){ if (typeof mdl == 'undefined') mdl=''; if (typeof str == 'undefined') str=''; if (typeof id == 'undefined') id=''; return (_html_base+(mdl==''?'index':mdl)+(str!=''?'/'+str:'')+(id!=''?'/'+id:'')); } function displayPost(icons){ if(icons == 'flash_Contact'){ document.location.href = BuildSEOLink("contact"); }else if(icons=='flash_Home'){ document.location.href = BuildSEOLink(""); }else if(icons == 'flash_Aid'){ document.location.href = BuildSEOLink("content","firstaid","48"); }else if(icons=='flash_Plan'){ document.location.href = BuildSEOLink("content","plan","51"); }else if(icons=='flash_Growth'){ document.location.href = BuildSEOLink("content","growth","49"); }else if(icons=='flash_Creative'){ document.location.href = BuildSEOLink("content","creative","50"); } } function MenuServices_Mover(){ if (BrowserDetect.browser == 'Firefox') hpx = 0; if (BrowserDetect.browser == 'Explorer')hpx = 10; if (!objMenu) objMenu = document.getElementById('Menu_Services'); if (objMenu.style.display!="block"){ objMenu.style.left = (findPosX(document.getElementById('btn4')) + hpx)+"px"; objMenu.style.top = (findPosY(document.getElementById('btn4'))+33)+"px"; objMenu.style.display = "block"; } flag = true; if (menuTimer_index>0){ clearTimeout(menuTimer_index); menuTimer_index=0; } } function Menu_Mover(id,parent_id){ if (BrowserDetect.browser == 'Firefox') hpx = 0; if (BrowserDetect.browser == 'Explorer')hpx = 10; objMenu = document.getElementById(id); if (objMenu.style.display!="block"){ objMenu.style.left = (findPosX(document.getElementById('btn' + parent_id)) + hpx)+"px"; objMenu.style.top = (findPosY(document.getElementById('btn' + parent_id))+33)+"px"; objMenu.style.display = "block"; } flag = true; if (menuTimer_index>0){ clearTimeout(menuTimer_index); menuTimer_index=0; } } function MenuServices_Mout(){ flag = false; if (!objMenu) objMenu = document.getElementById('Menu_Services'); menuTimer_index = setTimeout("menuTimer()",800); } function Menu_Mout(id){ flag = false; setTimeout("AdvancedMenuTimer('"+ id +"')",800); } function menuTimer(){ if (!flag) objMenu.style.display = "none"; } function AdvancedMenuTimer(id){ if (!flag) document.getElementById(id).style.display = "none"; } function nav_MOver(navID){ document.getElementById('left'+navID).className='navBarLeft_Over'; document.getElementById('center'+navID).className='navBarMiddle_Over'; document.getElementById('right'+navID).className='navBarRight_Over'; } function nav_MOut(navID){ document.getElementById('left'+navID).className='navBarLeft'; document.getElementById('center'+navID).className='navBarMiddle'; document.getElementById('right'+navID).className='navBarRight'; } function IsEmail(sText) { var at="@" var dot="." var lat=sText.indexOf(at) var lstr=sText.length var ldot=sText.indexOf(dot) if (sText=="" || sText==null){ return false } if (sText.indexOf(at)==-1 || sText.indexOf(at)==0 || sText.indexOf(at)==lstr){ return false } if (sText.indexOf(dot)==-1 || sText.indexOf(dot)==0 || sText.indexOf(dot)==lstr){ return false } if (sText.indexOf(at,(lat+1))!=-1){ return false } if (sText.substring(lat-1,lat)==dot || sText.substring(lat+1,lat+2)==dot){ return false } if (sText.indexOf(dot,(lat+2))==-1){ return false } if (sText.indexOf(" ")!=-1){ return false } return true } function doSignUp(objEmail){ if (IsEmail(objEmail.value)){ //document.location.href = '/_modules/maillistForHome.php?act=signup&email=' + objEmail.value; document.getElementById('subform').submit(); }else{ alert("יש להזין כתובת מייל תקינה"); objEmail.focus(); } } function doSignDown(objEmail){ if (IsEmail(objEmail.value)){ document.location.href = '/_modules/maillistForHome.php?act=signdown&email=' + objEmail.value; }else{ alert("יש להזין כתובת מייל תקינה"); objEmail.focus(); } } function findPosX(obj){ var curleft = 0; if (obj.offsetParent){ while (obj.offsetParent){ curleft += obj.offsetLeft; //curtop += obj.currentStyle.borderWidth; obj = obj.offsetParent; } }else{ if (obj.x) curleft += obj.x; } return curleft; } function findPosY(obj){ var curtop = 0; if (obj.offsetParent){ while (obj.offsetParent){ curtop += obj.offsetTop; //curtop += obj.currentStyle.borderHeight; obj = obj.offsetParent; } }else{ if (obj.y) curtop += obj.y; } return curtop; } function flash_Tips(){ document.location.href = BuildSEOLink("tips"); } //function flash_Home(){ //document.location.href = BuildSEOLink(""); //} //function flash_Contact(){ //document.location.href = BuildSEOLink("contact"); //} //var forms_DIGITS = "0123456789 -"; // //function IsNumeric(sText){ // return (ChkStrBy(sText,forms_DIGITS)); //} // //function ChkStrBy(sText, sValidChars){ // var ret = true; // if (sText.length==0) return (false); // for (i = 0 ; i < (sText.length) && (ret==true) ; i++){ // if (sValidChars.indexOf(sText.charAt(i)) == -1){ // ret = false; // } // } // return (ret); //} // //function doLogin() { // if(!IsNumeric(document.frmLogin.email.value)){ // if (IsEmail(document.frmLogin.email.value)){ // if (document.frmLogin.password.value!="") { // return true; // }else{ // alert("Fill in password"); // document.frmLogin.password.focus(); // return false; // } // } else { // alert("Incorrect email addres"); // document.frmLogin.email.focus(); // document.frmLogin.email.select(); // return false; // } // }else{ // if(document.frmLogin.email.value.length>=2){ // if (document.frmLogin.password.value!="") { // return true; // }else{ // alert("Fill in password"); // document.frmLogin.password.focus(); // return false; // } // }else{ // alert("View pass must be 2 digits"); // document.frmLogin.email.focus(); // return false; // } // } //} // //function doRemind(){ // if (!IsEmail(document.frmLogin.email.value)){ // alert("Incorrect email addres"); // document.frmLogin.email.focus(); // document.frmLogin.email.select(); // }else{ // location.href="?act=remind&emailremind="+document.frmLogin.email.value; // } //} // //