	function setVariables() {
		if (navigator.appName == "Netscape") {
		v=".top=";
		dS="document.";
		sD="";
		y="window.pageYOffset";
		}
		else {
		v=".pixelTop=";
		dS="";
		sD=".style";
		y="document.body.scrollTop";
		}
		}
		function checkLocation() {
		object="object1";
		yy=eval(y);
		eval(dS+object+sD+v+yy);
		setTimeout("checkLocation()",10);
		}
		function checkLocation1() {
		object="object2";
		yy=eval(y);
		eval(dS+object+sD+v+yy);
		setTimeout("checkLocation()",10);
		}

		function docSize(x,area,align)
		{
			width = document.body.offsetWidth;
			spaceWidth = (width - x)/2;
			if(align == "right")
			{
				document.getElementById(area).style.right = spaceWidth+"px";
			}
			if(align == "left")
			{
				document.getElementById(area).style.left = spaceWidth+"px";
			}
		}

		function alertSize() {
		  var myWidth = 0, myHeight = 0;
		  if( typeof( window.innerWidth ) == 'number' ) {
			//Non-IE
			myWidth = window.innerWidth;
			myHeight = window.innerHeight;
		  } else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
			//IE 6+ in 'standards compliant mode'
			myWidth = document.documentElement.clientWidth;
			myHeight = document.documentElement.clientHeight;
		  } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
			//IE 4 compatible
			myWidth = document.body.clientWidth;
			myHeight = document.body.clientHeight;
		  }
			if(myWidth < 1030) {
				document.getElementById('divTopLeft').style.display = 'none';
				//document.getElementById('divTopRight').style.display = 'none';				
			} else {
				document.getElementById('divTopLeft').style.display = '';
				//document.getElementById('divTopRight').style.display = '';				
			}
		}
		
		var divs_pic = new Array();
		var site = "http://www.sherut24.co.il/";
		function catColor(id,num,act)
		{
			if(act == "add")
			{
				divs_pic[num] = id;
			} else if(act == "click") {
				if(document.getElementById(divs_pic[num]).src != (site+"images/top_blue_click.jpg"))
				{
					for(i=1; i < divs_pic.length; i++)
					{
						document.getElementById(divs_pic[i]).src = "images/top_orange.jpg";
					}
					document.getElementById(divs_pic[num]).src = "images/top_blue_click.jpg";
				} else {
					document.getElementById(divs_pic[num]).src = "images/top_orange.jpg";
				}
			} else if(act == "over") {
				if(document.getElementById(divs_pic[num]).src != (site+"images/top_blue_click.jpg"))
					document.getElementById(divs_pic[num]).src = "images/top_blue_over.jpg";
			} else if(act == "out") {
				if(document.getElementById(divs_pic[num]).src != (site+"images/top_blue_click.jpg"))
					document.getElementById(divs_pic[num]).src = "images/top_orange.jpg";
			}
		}
		
		var cat_ids = new Array();
		var cat_txt = new Array();
		function fillArr(id,num,txt)
		{
			cat_ids[num] = id;
			cat_txt[num] = txt;
		}
		
		function boldCat(num)
		{
			for(i=1; i < cat_ids.length; i++)
			{
				document.getElementById("subcat_"+cat_ids[i]).style.color = "black";
			}
			document.getElementById("subcat_"+cat_ids[num]).style.color = "#117A97";
		}
		
		function showCities(id,num)
		{
			document.getElementById('subcat').value=id;
			document.getElementById('city').style.display='block';
			document.getElementById('subcatTxt').innerHTML='<font size="2"><b>'+cat_txt[num]+'</b></font>';
		}
		
		function checkForm()
		{
			var err=0;
			if (document.myform1.q0.value == "" || document.myform1.q1.value == "")
			{
				alert('אנא מלא את כל השדות בטופס');
				err = 1;
			}

			if(err == 0)
				window.location = "business.php?q="+document.myform1.q0.value+"&q2="+document.myform1.q1.value;
		}
		function getBanner(id,writeObject,kind,width,height)
		{
			document.getElementById(id).style.height = height+"px";
			document.getElementById(id).style.width = width+"px";
			if(kind == 1)
				document.getElementById(id).innerHTML = '<img src="'+writeObject+'" width="'+width+'" height="'+height+'" alt="" />';
			else if(kind == 2)
			{
				var fo = new FlashObject(writeObject, "animationName", width, height, "8", "#FFFFFF");
				fo.addParam("allowScriptAccess", "sameDomain");
				fo.addParam("quality", "high");
				fo.addParam("scale", "exactfit");
				fo.addParam("loop", "true");
				fo.write(id);
			} else if(kind == 3) {
				document.getElementById(id).innerHTML = writeObject;
			}
		}
		
		function tellf_main()
		{
			x = window.open("tellf.php", "tellf", "width=400, height=420, resizable=1, toolbar=0, top=100, left=200, location=0, status=1, menubar=0, scrollbars=1");
			x.focus();	
		}
