/****************************************************************/
/*                GLOBAL JAVASCRIPT PART                        */
/****************************************************************/
var dayarray=new Array("יום א'","יום ב","יום ג'","יום ד'","יום ה'","יום ו'","שבת");
var montharray=new Array("ינואר","פברואר","מרץ","אפריל","מאי","יוני","יולי","אוגוסט","ספטמבר","אוקטובר","נובמבר","דצמבר");
var d=new Date();
var dd=d.getDate();
if (dd<10)
dd="0"+dd;

nereidFadeObjects = new Object();
nereidFadeTimers = new Object();

/****************************************************************/
/*
/****************************************************************/
function nereidFade(object, destOp, rate, delta)
{
    if (!document.all)
        return
    if (object != "[object]")
    {
        setTimeout("nereidFade("+object+","+destOp+","+rate+","+delta+")",0);
        return;
    }
    clearTimeout(nereidFadeTimers[object.sourceIndex]);
    diff = destOp-object.filters.alpha.opacity;
    direction = 1;
    if (object.filters.alpha.opacity > destOp){
        direction = -1;
    }
    delta=Math.min(direction*diff,delta);
    object.filters.alpha.opacity+=direction*delta;

    if (object.filters.alpha.opacity != destOp)
    {
        nereidFadeObjects[object.sourceIndex]=object;
        nereidFadeTimers[object.sourceIndex]=setTimeout("nereidFade(nereidFadeObjects["+object.sourceIndex+"],"+destOp+","+rate+","+delta+")",rate);
    }
}

/****************************************************************/
/*
/****************************************************************/
function openA()
{
	w = screen.availWidth -8;
	h = screen.availHeight -27;
	window.open('no.asp', 'Enter', 'width='+w+', height='+h+', left=0, top=0');
}

function openNew(page,h,w)
{
	window.open(page,"","width="+w+",height="+h+",scrollbars=1")
}

/****************************************************************/
/*
/****************************************************************/
function changeCell(obj,act)
{
	obj.style.filter="blendTrans(duration=0)"; 
	obj.filters.blendTrans.apply()	       
	if(act==1)
	{
		obj.style.background='#627D8B';
		obj.style.color='#ffffff';
		obj.style.borderColor='#990000';
	}
	else
	{
		obj.style.background='#627D8B';
		obj.style.color='#ffffff';
		obj.style.borderColor='#990000';
	}       
	obj.filters.blendTrans.play();
}	

/****************************************************************/
/* Function opens window with the picture                       */
/****************************************************************/
function openWin(img,name,width,height)
{
	var dispWin=window.open ("","NewWin","toolbar=no,status=no,scrollbars=no,directories=no,location=no,menubar=no,height="+(height+50)+",width="+width+"");
	dispWin.focus();
	dispWin.document.write("<HTML><HEAD><TITLE>"+name+" | כל הזכויות שמורות</TITLE><META http-equiv='imagetoolbar' content='no'>");
	dispWin.document.write("</HEAD><BODY bgcolor=#ffffff topmargin=0 leftmargin=0 rightmargin=0 oncontextmenu='return false' onselectstart='return false'><img src='"+img+"' height='"+height+"' width='"+width+"' alt='"+name+"'>");
	dispWin.document.write("<p align=center><INPUT type='button'  value=' סגור/י ' onclick='window.close();' style='border-color:<%=confRed%>;height:22;background-color:#F3F3F3;color:<%=confLines%>;font-size: 7pt; font-weight: bold;FONT-FAMILY: Tahoma; cuersor: hand'></p></BODY></HTML>");
}

/****************************************************************/
/* Function opens window deals                                  */
/****************************************************************/
function deals()
{
    var dispWin1=window.open ("","NewWin","toolbar=no,status=no,scrollbars=no,directories=no,location=no,menubar=no,height=175,width=200");
	dispWin1.focus();
	dispWin1.document.write("<HTML><HEAD><TITLE>כל הזכויות שמורות</TITLE><META http-equiv='imagetoolbar' content='no'>");
	dispWin1.document.write("</HEAD><BODY  bgcolor=#ffffff topmargin=0 leftmargin=0 rightmargin=0 oncontextmenu='return false' onselectstart='return false'><img border=0 src='../pics/massage.jpg' height='125' width='200' alt='Deals'>");
	dispWin1.document.write("<p align=center><INPUT type='button'  value=' סגור/י ' onclick='window.close();' style='border-color:<%=confRed%>;height:25;background-color:#ffffff;color:<%=confLines%>;font-size: 8pt; font-weight: bold;FONT-FAMILY: Tarial;'></p></BODY></HTML>");
}	

/****************************************************************/
/* Function creates effects of onmouseover in buttons bar       */
/****************************************************************/
function OnMouseButtonOver ( obj )
{
    obj.style.background='#5EB5EF'; 
    obj.style.borderColor='#5486B8';
    obj.style.color='#FFFFFF';
}	

/****************************************************************/
/* Function creates effects of onmouseout in buttons bar        */
/****************************************************************/
function OnMouseButtonOut ( obj )
{
    obj.style.background='#5486B8'; 
    obj.style.borderColor='#5EB5EF';  
    obj.style.color='#FFFFFF';		
}	

/*****************************************************************/
/* Function creates effects of onmouseover in buttonsC bar       */
/*****************************************************************/
function OnMouseButtonCOver ( obj )
{
    obj.style.background='#9FB1BB'; 
    obj.style.borderColor='#627D8B';
    obj.style.color='#FFFFFF';
}

/*****************************************************************/
/* Function creates effects of onmouseout in buttonsC bar        */
/*****************************************************************/
function OnMouseButtonCOut ( obj )
{
    obj.style.background='#627D8B'; 
    obj.style.borderColor='#990000';  
    obj.style.color='#FFFFFF';		
}	

/****************************************************************/
/* Function checks if name of the theme was added to field      */
/* Created for createtheme.asp page                             */
/****************************************************************/
function CheckTheme ()
{
    if ( document.frmThemes.ThemeName.value == "" )
    {
        document.getElementById("ErrorMessage").innerText = "נא הכנס/י את שם הנושא";
        return false;
    }
    return true;
}	

/********************************************************************/
/* For categorydescription.asp
/********************************************************************/
function FormatText(command, option)
{
    frames.Message.document.execCommand(command, true, option);
    frames.Message.focus();
    if(command=="ForeColor")
        col.style.visibility='hidden';
}


/****************************************************************/
/* Function creates effects of onmouseover in buttons bar       */
/****************************************************************/
function OnMouseOverLinks ( obj )
{
    obj.style.color='#9FB1BB';
    obj.style.textDecoration="underline";
}	

/****************************************************************/
/* Function creates effects of onmouseout in buttons bar        */
/****************************************************************/
function OnMouseOutLinks ( obj )
{
    obj.style.color='#333333';
    obj.style.textDecoration="none";		
}

/****************************************************************/
/* Function creates effects of onmouseout in top bar            */
/****************************************************************/
function OnMouseOutTopLinks ( obj )
{
    obj.style.color='#FFFFFF';
    obj.style.textDecoration="none";		
}

/****************************************************************/
/* Function creates effects of onmouseOVER in top bar           */
/****************************************************************/
function OnMouseOverTopLinks ( obj )
{
    obj.style.color='#247AE9';
    obj.style.textDecoration="underline";		
}

/****************************************************************/
/* Function for forum. Opens tguvot                             */
/****************************************************************/
function GetTguvot(obj)
{
    if ( document.getElementById( 'MessageTguva'+ obj.id ).style.display == 'none' )
    {
        obj.innerText = 'סגור תגובות -';
        document.getElementById( 'MessageTguva'+ obj.id ).style.display = 'block';
    }
    else
    {
        obj.innerText = 'קרא תגובות +';
        document.getElementById( 'MessageTguva'+ obj.id ).style.display = 'none';
    }
}
function newsover( obj )
{
    obj.style.color='#FFFFFF';
}
function newsout( obj )
{
    obj.style.color='#627D8B';
}

/****************************************************************/
/*                IMAGE JAVASCRIPT PART                         */
/****************************************************************/
var slidespeed=15000
var slideimages=new Array("../pics/BannShopPro49.jpg","../pics/BannShopPro49.jpg")
var slidelinks=new Array("arts.asp?im=Heb&cat=3&catId=178","arts.asp?im=Heb&cat=3&catId=178")

var imageholder=new Array()
var ie55=window.createPopup
for (i=0;i<slideimages.length;i++){
imageholder[i]=new Image()
imageholder[i].src=slideimages[i]
}

function gotoshow(){
window.location=slidelinks[whichlink]
}