//var myBaseURL = "http://192.115.62.98/yedhaifa/"
//r myBaseURL = "http://www.yedhaifa.co.il/new/"
var myBaseURL = "http://www.yedhaifa.co.il/"

var windowwidth=0;
if (document.body.clientWidth>750)
	windowwidth=(document.body.clientWidth/2)-314
	//windowwidth=(document.body.clientWidth/2)-375

//alert (windowwidth)
arMenu1 = new Array(
105,
(windowwidth+300),85,
"white","white",
"red","#330099",
"white","white",
"<div align=right class=tafrit>ה'זנרב</div>",myBaseURL+"details.asp?cat=1",0,
"<div align=right class=tafrit>הליל ירופיס</div>",myBaseURL+"details.asp?cat=3",0,
"<div align=right class=tafrit>לוכאל</div>",myBaseURL+"details.asp?cat=4",0,
"<div align=right class=tafrit>לופיט</div>",myBaseURL+"details.asp?cat=5",0,
"<div align=right class=tafrit>המילגה ירוחאמ</div>",myBaseURL+"details.asp?cat=8",0,
"<div align=right class=tafrit>סופמק</div>",myBaseURL+"details.asp?cat=9",0,
"<div align=right class=tafrit>הליל ייח</div>",myBaseURL+"details.asp?cat=19",0,
"<div align=right class=tafrit>דועו הקיסומ</div>",myBaseURL+"details.asp?cat=6",0
)

arMenu2= new Array(
105,
(windowwidth+388),85,
"white","white",
"red","#330099",
"white","white",
"<div align=right class=tafrit>יעובש</div>",myBaseURL+"details.asp?cat=18",0,
"<div align=right class=tafrit>יללכ יתנש</div>",myBaseURL+"HORO_Year_images/horoskop.asp",0,
"<div align=right class=tafrit>תינימ המאתה יתנש</div>",myBaseURL+"HORO_Year_images/11.asp",0
)

arMenu3 = new Array(
72,
(windowwidth+490),85,
"white","white",
"red","#330099",
"white","white",
"<div align=right class=tafrit>טרופס רעש</div>",myBaseURL+"details.asp?cat=15",0,
"<div align=right class=tafrit>טרופס</div>",myBaseURL+"details.asp?cat=13",0,
"<div align=right class=tafrit>ירחא הקד</div>",myBaseURL+"details.asp?cat=16",0,
"<div align=right class=tafrit>תידדצ הסנכה</div>",myBaseURL+"details.asp?cat=17",0
)

arMenu4 = new Array(
72,
(windowwidth+558),85,
"white","white",
"red","#330099",
"white","white",
"<div align=right class=tafrit>תושדח רעש</div>",myBaseURL+"details.asp?cat=14",0,
"<div align=right class=tafrit>תושדח</div>",myBaseURL+"details.asp?cat=12",0,
"<div align=right class=tafrit>תוברת</div>",myBaseURL+"details.asp?cat=21",0
)

function DrawImageMap(){
	document.write("<map name=\"bar\">")
	document.write("<area shape=\"RECT\" coords=\"80,65,10,85\" href=\""+myBaseURL+"details.asp?cat=20\" ALT=\"פרשת השבוע - ידיעות חיפה\">")
	document.write("<area shape=\"RECT\" coords=\"160,65,90,85\" href=\""+myBaseURL+"details.asp?cat=11\" ALT=\"מדריך ארועים - ידיעות חיפה\">")
	document.write("<area shape=\"RECT\" coords=\"300,65,180,85\" href=\""+myBaseURL+"details.asp?cat=2\" ALT=\"יומנה של פמניסטית - ידיעות חיפה\">")
	document.write("<area shape=\"RECT\" coords=\"370,65,320,85\" href=\""+myBaseURL+"details.asp?cat=10\" ALT=\"צרכנות - ידיעות חיפה\">")
	document.write("<area shape=\"RECT\" coords=\"470,65,390,85\" href=\"\" onMouseOver=\"popUp('elMenu1',event)\" onMouseOut=\"popDown('elMenu1')\" onClick=\"return false\" ALT=\"מדורי חברה - ידיעות חיפה\">")
	document.write("<area shape=\"RECT\" coords=\"550,65,480,85\" href=\"\" onMouseOver=\"popUp('elMenu2',event)\" onMouseOut=\"popDown('elMenu2')\" onClick=\"return false\" ALT=\"הורוסקופ - ידיעות חיפה\">")
	document.write("<area shape=\"RECT\" coords=\"620,65,565,85\" href=\"\" onMouseOver=\"popUp('elMenu3',event)\" onMouseOut=\"popDown('elMenu3')\" onClick=\"return false\" ALT=\"ספורט - ידיעות חיפה\">")
	document.write("<area shape=\"RECT\" coords=\"690,65,640,85\"  href=\"\" onMouseOver=\"popUp('elMenu4',event)\" onMouseOut=\"popDown('elMenu4')\" onClick=\"return false\" ALT=\"חדשות - ידיעות חיפה\">")
	document.write("<area shape=\"RECT\" coords=\"765,65,705,85\" href=\""+myBaseURL+"\" ALT=\"ידיעות חיפה - דף הבית\">")
	document.write("</map>")
}

function DrawMenuTable(){
	document.write("<TD align=center width=80><a style=\"color:white; text-decoration:none; font-weight:bold; font-size:12px;\"  href=\""+myBaseURL+"details.asp?cat=20\">עובשה תשרפ</a></TD>")
	document.write("<TD align=center width=80><a style=\"color:white; text-decoration:none; font-weight:bold; font-size:12px;\"  href=\""+myBaseURL+"details.asp?cat=11\">םיעורא ךירדמ</a></TD>")
	document.write("<TD align=center width=130><a style=\"color:white; text-decoration:none; font-weight:bold; font-size:12px;\"  href=\""+myBaseURL+"details.asp?cat=2\">תיטסינימפ לש הנמוי</a></TD>")
	document.write("<TD align=center width=60><a style=\"color:white; text-decoration:none; font-weight:bold; font-size:12px;\"  href=\""+myBaseURL+"details.asp?cat=10\">תונכרצ</a></TD>")
	document.write("<TD align=center width=90><a style=\"color:white; text-decoration:none; font-weight:bold; font-size:12px;\"  href=\"\" onMouseOver=\"popUp('elMenu1',event)\" onMouseOut=\"popDown('elMenu1')\" onClick=\"return false\">תוליכר ירודמ</a></TD>")
	document.write("<TD align=center width=80><a style=\"color:white; text-decoration:none; font-weight:bold; font-size:12px;\"  href=\"\" onMouseOver=\"popUp('elMenu2',event)\" onMouseOut=\"popDown('elMenu2')\" onClick=\"return false\">פוקסורוה</a></TD>")
	document.write("<TD align=center width=62><a style=\"color:white; text-decoration:none; font-weight:bold; font-size:12px;\"  href=\"\" onMouseOver=\"popUp('elMenu3',event)\" onMouseOut=\"popDown('elMenu3')\" onClick=\"return false\">טרופס</a></TD>")
	document.write("<TD align=center width=62><a style=\"color:white; text-decoration:none; font-weight:bold; font-size:12px;\"  href=\"\" onMouseOver=\"popUp('elMenu4',event)\" onMouseOut=\"popDown('elMenu4')\" onClick=\"return false\">תושדח</a></TD>")
	document.write("<TD align=center width=62><a style=\"color:white; text-decoration:none; font-weight:bold; font-size:12px;\"  href=\""+myBaseURL+"Default.asp\">ישאר</a></TD>")
}




function ButtomMenu(){
	document.write("<TABLE width=\"768\">")
	document.write("<TR height=25>")
	document.write("<TD width=\"25%\" bgColor=\"#330099\" align=center>")
	document.write("<a style=\"color:white; text-decoration:underline\" href=\"mailto:yedhaifa@spotnik.com\">רשק ורצ</a>")
	document.write("</TD>")
	document.write("<TD width=\"25%\" bgColor=\"#330099\" align=center>")
	document.write("<a style=\"color:white; text-decoration:underline\" href=\"javascript:void(0)\" onClick=\"this.style.behavior='url(#default#homepage)';this.setHomePage('http://www.yedhaifa.co.il/');\">תיבה רתאל ונתוא ךופה</a>")
	document.write("</TD>")
	document.write("<TD width=\"25%\" bgColor=\"#330099\" align=center>")
	document.write("<a style=\"color:white; text-decoration:underline\" href=\"http://www.coral-tell.co.il\" target=\"_blank\">רתאב םוסריפ</a>")
	document.write("</TD>")
	document.write("<TD width=\"25%\" bgColor=\"#330099\" align=center>")
	document.write("<a style=\"color:white; text-decoration:underline\" href=\"#\" onClick=\"return false\">וניתודוא</a>")
	document.write("</TD>")
	document.write("</TR>")
	document.write("</TABLE><BR>")
}

function isodatetime() {
	var today = new Date();
	var year  = today.getYear();
	if (year < 2000)    // Y2K Fix, Isaac Powell
		year = year + 1900; // http://onyx.idbsu.edu/~ipowell
	var month = today.getMonth() + 1;
	var day  = today.getDate();
	var hour = today.getHours();
	var hourUTC = today.getUTCHours();
	var diff = hour - hourUTC;
	var hourdifference = Math.abs(diff);
	var minute = today.getMinutes();
	var minuteUTC = today.getUTCMinutes();
	var minutedifference;
	var second = today.getSeconds();
	var timezone;
	if (minute != minuteUTC && minuteUTC < 30 && diff < 0) { hourdifference--; }
	if (minute != minuteUTC && minuteUTC > 30 && diff > 0) { hourdifference--; }
	if (minute != minuteUTC) {
		minutedifference = ":30";
	}else {
		minutedifference = ":00";
	}
	if (hourdifference < 10) { 
		timezone = "0" + hourdifference + minutedifference;
	}else {
		timezone = "" + hourdifference + minutedifference;
	}
	if (diff < 0) {
		timezone = "-" + timezone;
	}else {
		timezone = "+" + timezone;
	}
	if (month <= 9) month = "0" + month;
	if (day <= 9) day = "0" + day;
	if (hour <= 9) hour = "0" + hour;
	if (minute <= 9) minute = "0" + minute;
	if (second <= 9) second = "0" + second;
	time = day + "/" + month + "/" + year  +"   "+ hour + ":" + minute + ":" + second //+" "+ timezone;
	document.isoclock.display.value = time;
	window.setTimeout("isodatetime();", 500);
}
