

function alignCenter()
{
	var InitLeftPos = screen.width/2 - 800/2;
	s2.style.left =  InitLeftPos; 
	mf.style.left = InitLeftPos + 20; 
	s1.style.left =  InitLeftPos + 780; 
}


function ff1(item, i){
	item.src = "news%2Bdays/day" + i + "big.jpg";
}
function ff2(item,i){
	item.src = "news%2Bdays/day" + i + ".jpg";
}

function PrintDaysTable() {
	var str = '<br><table height=75 dir=rtl id="tblResBased" border="0" cellspacing="3" cellpadding="3">';
	var d;
	var curdate = new Date()
	var dayofweek = curdate.getDay()+1; //6
	for(j=1,i=dayofweek; i<=dayofweek+7,j<=7; i++,j++){
		if (j % 3 == 1) str = str + '<tr align=right>';
		if (j==7) str = '<td></td>'+str+'<td></td>';
		if (i%7==0) 
			str = str + '<td><a href=biluim/pickday.asp?day=7><img src="news%2Bdays/day7.jpg" width="25" height="23" border="0"  onmouseover=ff1(this,7) onmouseout=ff2(this,7)></a></td>';
		else {
			d = i%7;
			str = str + '<td><a href=biluim/pickday.asp?day='+ d +'><img src="news%2Bdays/day' + d + '.jpg" width="25" height="23" border="0"  onmouseover=ff1(this,' + d + ') onmouseout=ff2(this,' + d + ')></a></td> ';	}	
	}
	return(str)
}					

function WeekSelected(item)
{
	window.open("weeksummery.asp?week=" + item, "_self")  
}

function f1(item,srcs){
	item.src = srcs + "on.gif";
}
function f2(item,srcs){
	item.src = srcs;
}
function ShowClubs() {
	iClubsType.style.visibility = "visible"; 
}

function fnToggle(s) {
    oTransContainer.filters[0].Apply();
    if (s=='2') { 
        oDIV2.style.display=""; 
		oDIV1.style.display="none";}
    else {  
        oDIV2.style.display="none"; 
		oDIV1.style.display="";
	}
    oTransContainer.filters[0].Play();
 }

/*************************************************************************
  This code is from Dynamic Web Coding at http://www.dyn-web.com/
  See Terms of Use at http://www.dyn-web.com/bus/terms.html
  regarding conditions under which you may use this code.
  This notice must be retained in the code as is!
*************************************************************************/

var timer_id;
function scroll_iframe(frm,inc,dir) {
  if (timer_id) clearTimeout(timer_id);
  if (window.frames[frm]) {
    if (dir == "v") window.frames[frm].scrollBy(0, inc);
    else window.frames[frm].scrollBy(inc, 0);
    timer_id = setTimeout("scroll_iframe('" + frm + "'," + inc + ",'" + dir + "')", 20);
  }
}

function stopScroll() { if (timer_id) clearTimeout(timer_id); }  

/*************************************************************************
moblin.com
*************************************************************************/
function sendcroper(picpath){
    window.open("http://www.moblin.com/cropview.aspx?partnerid=1031&imagepath=" + picpath,
		                "Croper","height=570,width=600,top=50,left=50,scrollbars=no");
}
/*************************************************************************/

function picpac(path){
        var intLeft
        var intTop
        intLeft=(screen.width/2)-(500/2)
        intTop=(screen.height/2)-(500/2)
        window.open("https://secure16.livedns.co.il/picpaccoil/order.asp?path=" + path,"picpac","height=500,width=500,left="+intLeft+",top="+intTop+",status=yes,toolbar=no,menubar=no,location=no,resizable=no,scrollbars=yes");
    }