﻿
logger=document.getElementById('loggerSpan');var titleSel=0;var fadebgcolor="white";var fadewidth;var fadeheight;var w;var h;var linkToArt;var fadearray=new Array();var fadeclear=new Array();var dom=(document.getElementById);var iebrowser=document.all;function fadeshow(theimages,fadewidth,fadeheight,borderwidth,delay,pause,displayorder){document.getElementById('sliderTd').innerHTML="";this.pausecheck=pause;this.mouseovercheck=0;this.delay=delay;this.degree=10;this.curimageindex=0;this.nextimageindex=1;fadearray[fadearray.length]=this;this.slideshowid=fadearray.length-1;this.canvasbase="canvas"+this.slideshowid;this.curcanvas=this.canvasbase+"_0";this.theimages=theimages;this.imageborder=parseInt(borderwidth);this.postimages=new Array();for(p=0;p<theimages.length;p++){this.postimages[p]=new Image();this.postimages[p].src=theimages[p][0];}var fadeheight=fadeheight+this.imageborder*2;w=fadewidth;h=fadeheight;if(iebrowser&&dom||dom){document.write('<table cellpadding="0" cellspacing="0" border="0" class="MainSlyTb">'+'<tr>'+'<td style="width: 6px;text-align:left;">'+'<img alt="" height="6" src="images/slider_tl.gif" width="6" /></td>'+'<td class="bTop" style="width:428px;">'+'&nbsp;</td>'+'<td style="width: 6px;text-align:right;">'+'<img alt="" height="6" src="images/slider_tr.gif" width="6" /></td>'+'</tr>'+'<tr><td id="tdMainArt" align="center" colspan="3" class="RecipebLeftRight">'+'<table cellpadding="0" cellspacing="0" border="0"><tr>'+'<td id="gTd" align="center" width="'+fadewidth+'">'+'<div id="master'+this.slideshowid+'" style="position:relative;width:'+fadewidth+'px;height:'+fadeheight
+'px;overflow:hidden;"><div id="'+this.canvasbase+'_0" style="position:absolute;width:'+fadewidth+'px;height:'+fadeheight+'px;top:0;left:0;filter:progid:DXImageTransform.Microsoft.alpha(opacity=10);opacity:0.1;-moz-opacity:0.1;-khtml-opacity:0.1;background-color:'+fadebgcolor+'"></div><div id="'+this.canvasbase+'_1" style="position:absolute;width:'+fadewidth+'px;height:'+fadeheight+'px;top:0;left:0;filter:progid:DXImageTransform.Microsoft.alpha(opacity=10);opacity:0.1;-moz-opacity:0.1;-khtml-opacity:0.1;background-color:'+fadebgcolor+'"></div>'+GETStripe()+'</div></td><td style="width:5px;font-size:5px;"></td><td align="right">'+GETTitlesTable(fadeimages)+'</td></tr></table>'+'</td></tr>'+'<tr><td style="width: 6px;text-align:left;">'+'<img alt="" height="6" src="images/slider_bl.gif" width="6" /></td>'+'<td class="bBottom">'+'&nbsp;</td>'+'<td style="width: 6px;text-align:right;">'+'<img alt="" height="6" src="images/slider_br.gif" width="6" /></td>'+'</tr>'+'</table>');}else{document.write('<div><img name="defaultslide'+this.slideshowid+'" src="'+this.postimages[0].src+'"></div>');}if(iebrowser&&dom||dom){this.startit();}else{this.curimageindex++;t=setInterval("fadearray["+this.slideshowid+"].rotateimage()",this.delay)}};function GETTitlesTable(ar){var tbl='<table cellpadding="0" cellspacing="0" border="0" style="width:285px" class="SecipeSliderInnerTbl">';tbl+='<tr><td id="tdTtl1" onmouseover="colorTtl(this);" style="padding-right:5px;border-bottom:solid 1px #B3B468;height:36px;font-size:14px;font-weight:bold;" onmouseout="colorTtl2(this);" class="RecipeSlyderTitle"><span class="SlyderTitle" title="'+ar[0][4]+'" onclick="SelectSliderTitle(0);">'+ar[0][4]+' '+IsVideo(ar[0][5])+'</span></td></tr>';tbl+='<tr><td id="tdTtl2" onmouseover="colorTtl(this);" style="padding-right:5px;border-bottom:solid 1px #B3B468;height:36px;font-size:14px;font-weight:bold;" onmouseout="colorTtl2(this);" class="RecipeSlyderTitle"><span class="SlyderTitle" title="'+ar[1][4]+'" onclick="SelectSliderTitle(1);">'+ar[1][4]+' '+IsVideo(ar[1][5])+'</span></td></tr>';tbl+='<tr><td id="tdTtl3" onmouseover="colorTtl(this);" style="padding-right:5px;border-bottom:solid 1px #B3B468;height:36px;font-size:14px;font-weight:bold;" onmouseout="colorTtl2(this);" class="RecipeSlyderTitle"><span class="SlyderTitle" title="'+ar[2][4]+'" onclick="SelectSliderTitle(2);">'+ar[2][4]+' '+IsVideo(ar[2][5])+'</span></td></tr>';tbl+='<tr><td id="tdTtl4" onmouseover="colorTtl(this);" style="padding-right:5px;border-bottom:solid 1px #B3B468;height:36px;font-size:14px;font-weight:bold;" onmouseout="colorTtl2(this);" class="RecipeSlyderTitle"><span class="SlyderTitle" title="'+ar[3][4]+'" onclick="SelectSliderTitle(3);">'+ar[3][4]+' '+IsVideo(ar[3][5])+'</span></td></tr>';tbl+='<tr><td id="tdTtl5" onmouseout="colorTtl2(this);" onmouseover="colorTtl(this);" style="padding-right:5px;#B3B468;height:37px;font-size:14px;font-weight:bold;" onmouseout="colorTtl2(this);" class="SlyderTitle"><span class="RecipeSlyderTitle" title="'+ar[4][4]+'" onclick="SelectSliderTitle(4);">'+ar[4][4]+' '+IsVideo(ar[4][5])+'</span></td></tr>';tbl+='</table>';return tbl;};function GETStripe(){return'<div id="stripeDiv" onmouseover="Opac();" onmouseout="OpacOut();" onclick="linkIt();" class="SliderStripe">'+'<table border="0" style="width:99%;height:245px;background-color:Transparent;">'+'<tr><td id="tdArtLink" style="height:150px;background-color:Transparent;"></td></tr>'+'<tr><td style="height:15px;width:100%;background-color:white;filter:progid:DXImageTransform.Microsoft.alpha(opacity=70);opacity:0.7;-moz-opacity:0.7;-khtml-opacity:0.7;">'+'<a style="filter:progid:DXImageTransform.Microsoft.alpha(opacity=100);opacity:1;-moz-opacity:1;-khtml-opacity:1;" id="stripeLink" style="z-index:151;" class="SliderStripe"></a></td></tr>'+'<tr><td style="height:15px;"></td></tr>'+'</table>'+'</div>';};function Opac(){var object2=document.getElementById('stripeLink').style;object2.opacity=1;object2.MozOpacity=1;object2.KhtmlOpacity=1;object2.filter="alpha(opacity="+100+")";};function OpacOut(){var object2=document.getElementById('stripeLink').style;object2.opacity=1;object2.MozOpacity=1;object2.KhtmlOpacity=1;object2.filter="alpha(opacity="+100+")";};function IsVideo(v){if(v=='True')return'<img alt="כתבת וידאו" src="images/icon_video_14x10.gif">';else
return'';};function fadepic(obj){if(obj.degree<100){obj.degree+=10;if(obj.tempobj.filters&&obj.tempobj.filters[0]){if(typeof obj.tempobj.filters[0].opacity=="number")obj.tempobj.filters[0].opacity=obj.degree;else
obj.tempobj.style.filter="alpha(opacity="+obj.degree+")";}else if(obj.tempobj.style.MozOpacity)obj.tempobj.style.MozOpacity=obj.degree/101;else if(obj.tempobj.style.KhtmlOpacity)obj.tempobj.style.KhtmlOpacity=obj.degree/100;else if(obj.tempobj.style.opacity&&!obj.tempobj.filters)obj.tempobj.style.opacity=obj.degree/101;}else{clearInterval(fadeclear[obj.slideshowid]);obj.nextcanvas=(obj.curcanvas==obj.canvasbase+"_0")?obj.canvasbase+"_0":obj.canvasbase+"_1";obj.tempobj=iebrowser?iebrowser[obj.nextcanvas]:document.getElementById(obj.nextcanvas);obj.populateslide(obj.tempobj,obj.nextimageindex);obj.nextimageindex=(obj.nextimageindex<obj.postimages.length-1)?obj.nextimageindex+1:0;setTimeout("fadearray["+obj.slideshowid+"].rotateimage()",obj.delay);}};function SelectSliderTitle(n){window.open(fadeimages[n][1],"_self");};
fadeshow.prototype.populateslide=function(picobj,picindex){var slideHTML="";if(this.theimages[picindex][1]!="")slideHTML='<a href="'+this.theimages[picindex][1]+'" target="'+this.theimages[picindex][2]+'">';slideHTML+='<img src="'+this.postimages[picindex].src+'" border="'+this.imageborder+'px">';if(this.theimages[picindex][1]!="")slideHTML+='</a>';picobj.innerHTML=slideHTML;};function resetLinksClass(arr){for(var i=0;i<arr.length;i++)document.getElementById(arr[i][3]).className="SlyderTitle";};var u=0;fadeshow.prototype.rotateimage=function(){if(u==this.theimages.length){u=0;}if(this.pausecheck==1){var cacheobj=this;}if(this.mouseovercheck==1||titleSel==1){}else if(iebrowser&&dom||dom){this.resetit();resetLinksClass(this.theimages);document.getElementById(this.theimages[u][3]).className="RecipeSlyderTitleSelected";document.getElementById('stripeLink').innerHTML=this.theimages[u][4];document.getElementById('stripeLink').href=this.theimages[u][1];document.getElementById('stripeLink').title=this.theimages[u][4];document.getElementById('stripeDiv').title=fadeimages[u][4];linkToArt=fadeimages[u][1];var crossobj=this.tempobj=iebrowser?iebrowser[this.curcanvas]:document.getElementById(this.curcanvas);crossobj.style.zIndex++;fadeclear[this.slideshowid]=setInterval("fadepic(fadearray["+this.slideshowid+"])",50);this.curcanvas=(this.curcanvas==this.canvasbase+"_0")?this.canvasbase+"_1":this.canvasbase+"_0";}else{var ns4imgobj=document.images['defaultslide'+this.slideshowid];ns4imgobj.src=this.postimages[this.curimageindex].src;}this.curimageindex=(this.curimageindex<this.postimages.length-1)?this.curimageindex+1:0
u++;};fadeshow.prototype.resetit=function(){this.degree=10;var crossobj=iebrowser?iebrowser[this.curcanvas]:document.getElementById(this.curcanvas);if(crossobj.filters&&crossobj.filters[0]){if(typeof crossobj.filters[0].opacity=="number")crossobj.filters(0).opacity=this.degree;else
crossobj.style.filter="alpha(opacity="+this.degree+")";}else if(crossobj.style.MozOpacity)crossobj.style.MozOpacity=this.degree/101;else if(crossobj.style.KhtmlOpacity)crossobj.style.KhtmlOpacity=this.degree/100;else if(crossobj.style.opacity&&!crossobj.filters)crossobj.style.opacity=this.degree/101;};function linkIt(){window.open(linkToArt,"_self")};fadeshow.prototype.startit=function(){var crossobj=iebrowser?iebrowser[this.curcanvas]:document.getElementById(this.curcanvas);this.populateslide(crossobj,this.curimageindex);if(this.pausecheck==1){var cacheobj=this;var crossobjcontainer=iebrowser?iebrowser["master"+this.slideshowid]:document.getElementById("master"+this.slideshowid);var f=this.slideshowid+1;crossobjcontainer.onmouseover=function(){cacheobj.mouseovercheck=1};crossobjcontainer.onmouseout=function(){cacheobj.mouseovercheck=0};}this.rotateimage();};function colorTtl(o){if(document.getElementById(o.id).className=="SlyderTitle")document.getElementById(o.id).className="SlyderTitleH";if(document.getElementById(o.id).className=="RecipeSlyderTitleSelected")Opac();};function colorTtl2(o){if(document.getElementById(o.id).className=="SlyderTitleH"){document.getElementById(o.id).className="SlyderTitle";}OpacOut();};
