document.write(''); //Browser Check var arVersion = navigator.appVersion.split("MSIE") var version = parseFloat(arVersion[1]) //PopUps function MakePU(UrlRef,menubar,resizable,scrollbars,status,Width,Height){ window.open(UrlRef,"mm","menubar="+menubar+",resizable="+resizable+",status="+status+",scrollbars="+scrollbars+", width="+Width+", height="+Height) } function PinkMail(){ MakePU('http://www.gogay.co.il/components/Mailer/PinkMail.html',0,0,0,0,500,410) } function PUMailer(Page){ MakePU('http://www.gogay.co.il/components/Mailer/'+Page+'.html',0,0,0,0,500,410) } /////////////////////////////////////////////////////// //Chnaging Classes function ToggleClass(dID,newClass){ if (document.getElementById(dID) != null){ document.getElementById(dID).className = newClass } } //LightBox LightBox_Staus = "off" function lightbox_load(LB_Name){ LightBox_Staus = "on" LB_BG = "lightbox_495x320_" + LB_Name LB_Container = "lightbox_495x320_container_" + LB_Name changeOpac(0,LB_BG) changeOpac(0,LB_Container) document.getElementById(LB_BG).style.display = "block"; document.getElementById(LB_Container).style.display = "block"; opacity(LB_BG,0,40,300) opacity(LB_Container,0,100,300) //closing the searcharea due to error in form element select on IE6 if ((version >= 5.5) && (document.body.filters)){ NowOnSite_Close() //document.getElementById("Search_Field").style.display = "none"; } } function lightbox_close(LB_Name){ LightBox_Staus = "off" LB_BG = "lightbox_495x320_" + LB_Name LB_Container = "lightbox_495x320_container_" + LB_Name if (document.getElementById(LB_BG) != null){ document.getElementById(LB_BG).style.display = "none"; document.getElementById(LB_Container).style.display = "none"; changeOpac(0,LB_BG) changeOpac(0,LB_Container) } } //Set As Homepage function SetHP(obj){ if (confirm("האם להפוך לעמוד הבית?")) { obj.style.behavior='url(#default#homepage)'; obj.setHomePage('http://www.gogay.co.il'); } } //Search box function DoSearch(){ var SearchWord = document.all.SearchWord.value; var SearchIn = eval(document.all.SearchIn.value) if (SearchWord.length <3){ alert("נא הקלידו מילת חיפוש בת 3 תווים או יותר"); document.all.SearchWord.focus() } else{ switch(SearchIn){ case 1: document.location.href = 'http://www.gogay.co.il/search/content/?cx=000870466372070717043:n7daguiedhy&cof=FORID:11&hl=he&q='+SearchWord; break; case 2: document.location.href = 'http://www.gogay.co.il/search/sipurim/?cx=000870466372070717043:a4isrjahsfg&cof=FORID:11&hl=he&q='+SearchWord; break; case 3: document.location.href = 'http://www.gogay.co.il/search/yoman/?cx=000870466372070717043:ijg3g8jveeo&cof=FORID:11&hl=he&q='+SearchWord; break; case 4: document.location.href = 'http://www.gogay.co.il/search/forums/?cx=000870466372070717043:rmedjydz3mq&cof=FORID:11&hl=he&q='+SearchWord; break; case 5: document.location.href = 'http://www.gogay.co.il/search/index/?cx=000870466372070717043:tbkdsp71smo&cof=FORID:11&hl=he&q='+SearchWord; break; default: alert("אפשרות זו עדיין לא זמינה") } } } // DESIGN - Opacity Functions function opacity(id, opacStart, opacEnd, millisec) { //speed for each frame var speed = Math.round(millisec / 100); var timer = 0; //determine the direction for the blending, if start and end are the same nothing happens if(opacStart > opacEnd) { for(i = opacStart; i >= opacEnd; i--) { setTimeout("changeOpac(" + i + ",'" + id + "')",(timer * speed)); timer++; } } else if(opacStart < opacEnd) { for(i = opacStart; i <= opacEnd; i++) { setTimeout("changeOpac(" + i + ",'" + id + "')",(timer * speed)); timer++; } } } //change the opacity for different browsers function changeOpac(opacity, id) { var object = document.getElementById(id).style; object.opacity = (opacity / 100); object.MozOpacity = (opacity / 100); object.KhtmlOpacity = (opacity / 100); object.filter = "alpha(opacity=" + opacity + ")"; } function shiftOpacity(id, millisec) { //if an element is invisible, make it visible, else make it ivisible if(document.getElementById(id).style.opacity == 0) { opacity(id, 0, 100, millisec); } else { opacity(id, 100, 0, millisec); } } //Generic cookie baker function createCookie(name,value,days) { if (days) { var date = new Date(); date.setTime(date.getTime()+(days*24*60*60*1000)); var expires = "; expires="+date.toGMTString(); } else var expires = ""; document.cookie = name+"="+value+expires+"; path=/"; } //Generic cookie reader function readCookie(name) { var nameEQ = name + "="; var ca = document.cookie.split(';'); for(var i=0;i < ca.length;i++) { var c = ca[i]; while (c.charAt(0)==' ') c = c.substring(1,c.length); if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length); } return null; } NOS_Status = readCookie("NowOnSite") //Now On Site functions function NowOnSite_Toggle(){ if (NOS_Status == "Closed"){ NowOnSite_Open(); } else{ NowOnSite_Close(); } } function NowOnSite_Open(){ //closing the lightboxs due to error in form element select on IE6 if ((version >= 5.5) && (document.body.filters)){ if (LightBox_Staus != 'off'){ lightbox_close('forums') } } createCookie("NowOnSite","Open",4) NOS_Status = "opened" ObjWidth = document.getElementById("NowOnSite_panel_main").style.width cutPoint = document.getElementById("NowOnSite_panel_main").style.width.indexOf("pt") if (cutPoint < 0 ){ cutPoint = document.getElementById("NowOnSite_panel_main").style.width.indexOf("px") } if (cutPoint > 0 ){ ObjWidth = eval(ObjWidth.substring(ObjWidth, cutPoint)) } if (ObjWidth < 480){ ObjWidth = ObjWidth + 20 document.getElementById("NowOnSite_panel_main").style.width = ObjWidth t = setTimeout("NowOnSite_Open()", 40); } else{ NowOnSite_Content('show') document.getElementById("NowOnSite_button").src = "http://www.gogay.co.il/images/header/searchbox/comp_r_open.gif" } } function NowOnSite_Close(){ createCookie("NowOnSite","Closed",4) NOS_Status = "Closed" ObjWidth = document.getElementById("NowOnSite_panel_main").style.width cutPoint = document.getElementById("NowOnSite_panel_main").style.width.indexOf("pt") if (cutPoint < 0 ){ cutPoint = document.getElementById("NowOnSite_panel_main").style.width.indexOf("px") } if (cutPoint > 0 ){ ObjWidth = eval(ObjWidth.substring(ObjWidth, cutPoint)) } NowOnSite_Content('hide') if (ObjWidth > 0){ ObjWidth = ObjWidth - 40 document.getElementById("NowOnSite_panel_main").style.width = ObjWidth t = setTimeout("NowOnSite_Close()", 40); } else{ document.getElementById("NowOnSite_panel_main").style.width = 0 document.getElementById("NowOnSite_button").src = "http://www.gogay.co.il/images/header/searchbox/comp_r_search.gif" } } function NowOnSite_Content(action){ if (action == "show"){ //document.getElementById("NowOnSite_title").style.display = "block"; document.getElementById("NowOnSite_inner").style.display = "block"; //opacity("NowOnSite_title", 0, 100, 1000) opacity("NowOnSite_inner", 0, 100, 1000) //document.getElementById("NowOnSite_Open").style.cursor = " "; } else if (action == "hide"){ //document.getElementById("NowOnSite_title").style.display = "none"; document.getElementById("NowOnSite_inner").style.display = "none"; //changeOpac(0, "NowOnSite_title") changeOpac(0, "NowOnSite_inner") //document.getElementById("NowOnSite_Open").style.cursor = "pointer"; } } ////////// NOW ON SITE FUNCTIONS /////////////// document.write(''); document.write(''); document.write(''); document.write(''); document.write('
'); document.write(''); document.write('
'); document.write('
') document.write(''); /////////////////////////// NOW ON SITE /////////////////////////// function ResetSearchArea(ObjectName){ ObjectName.value = ""; } document.write('
'); document.write(''); document.write(''); document.write(''); document.write(''); document.write(''); document.write(''); document.write('

'); document.write('
'); document.write('
'); document.write('
') // document.write('
'); // document.write(''); document.write(''); document.write('
'); document.write(''); // document.write('
'); document.write('
') document.write(''); document.write('
') document.write('
'); document.write('
'); document.write('

'); document.write('
'); /////////////////////////// NOW ON SITE - END /////////////////////////// ////////////////////////// Cur.Channel Activation /////////////////////// dID = "nav_btn" + MainChannel ToggleClass(dID,"nav_btn_on") ActiveLink = "nav_btn_txt" + MainChannel ToggleClass(ActiveLink,"txt bold txt12") document.write('
') document.write(''); document.write('
'); if (MainChannel == "channels"){ // ערוצים רוחביים - תפריטי משנה document.write('
'); } document.write('
'); document.write(''); document.write(''); document.write('
');