function setCookie(name,value,expires,path,domain,secure){var curCookie=name+"="+escape(value)+((expires)?"; expires="+expires.toGMTString():"")+((path)?"; path="+path:"")+((domain)?"; domain="+domain:"")+((secure)?"; secure":"");document.cookie=curCookie;}function getCookie(name){var dc=document.cookie;var prefix=name+"=";var begin=dc.indexOf("; "+prefix);if(begin==-1){begin=dc.indexOf(prefix);if(begin!=0)return null;}else
begin+=2;var end=document.cookie.indexOf(";",begin);if(end==-1)
end=dc.length;return unescape(dc.substring(begin+prefix.length,end));}function deleteCookie(name,path,domain){if(getCookie(name)){document.cookie=name+"="+((path)?"; path="+path:"")+((domain)?"; domain="+domain:"")+"; expires=Thu, 01-Jan-70 00:00:01 GMT";}}function fixDate(date){var base=new Date(0);var skew=base.getTime();if(skew>0)
date.setTime(date.getTime()-skew);}function Browser(){var ua,s,i;var name;ua=navigator.userAgent;s="Netscape6/";if((i=ua.indexOf(s))>=0){return "Netscape";}s="Gecko";if((i=ua.indexOf(s))>=0){return "Gecko";}s="MSIE";if((i=ua.indexOf(s))){return "Explorer";}}function Jump(newlocation){if(document.images)
location.replace(newlocation);else
location.href=newlocation;}function JumpNetscape(newlocation){if(Browser()=="Netscape"){Jump(newlocation);}}function JumpExplorer(newlocation){if((Browser()=="Explorer")||(Browser()=="Gecko")){Jump(newlocation);}}function JumpHebrewSelected(newlocation){var SelectedLang=getCookie("mikledetlang");if(SelectedLang=="he"){Jump(newlocation);}}function JumpEnglishSelected(newlocation){var SelectedLang=getCookie("mikledetlang");if(SelectedLang=="en"){Jump(newlocation);}}function SaveLangSelection(langselection){var now=new Date();now.setTime(now.getTime()+365*24*60*60*1000);setCookie("mikledetlang",langselection,now);}function SaveVisited(){var now=new Date();now.setTime(now.getTime()+365*24*60*60*1000);setCookie("keyboardvisited","1",now);}function JumpNotVisited(newlocation){var KeyboardVisited=getCookie("keyboardvisited");SaveVisited();if(!(KeyboardVisited=="1")){Jump(newlocation);}}function bookmark(){if(window.external){external.AddFavorite("http://www.muftah-alhuruf.com/index.html",document.title)}}function SaveLayoutSelection(layoutselection){var now=new Date();now.setTime(now.getTime()+365*24*60*60*1000);setCookie("mikledetlayout",layoutselection,now);}function GetLayoutSelection(){return getCookie("mikledetlayout");}function poptastic(newurl,newname,newparams){var newwindow;newwindow=window.open(newurl,newname,newparams);if(window.focus){newwindow.focus()}}