// JavaScript Document

function checkEmail() {
    if ( document.subscribeform.elements[0].value.indexOf("@") == -1) {
      alert("ֿמזאכףיסעא, גגוהטעו זאש email");
      document.subscribeform.elements[0].focus();
      return false;
    } 
 
  return true;
} 
function checkHebEmail() {
    if ( document.subscribeform.elements[0].value.indexOf("@") == -1) {
      alert("נא להקליד את כתובת האימייל שלכם");
      document.subscribeform.elements[0].focus();
      return false;
    } 
 
  return true;
}   
 
function openMap() {
	window.open("map.htm","Urban_Tao","height=550,width=750,resizable=no");
	
}

function discounts() {
	window.open("discounts.htm","Urban_Tao","height=350,width=500,resizable=no"); 
	self.name="main";
	}


/*function resize()
{	
	
	var oW = 785, oH=570;
	window.resizeTo( oW + 200, oH + 200 );
    var myW = 0, myH = 0, d = window.document.documentElement, b = window.document.body;
	if( window.innerWidth ) { myW = window.innerWidth; myH = window.innerHeight; }
	else if( d && d.clientWidth ) { myW = d.clientWidth; myH = d.clientHeight; }
	else if( b && b.clientWidth ) { myW = b.clientWidth; myH = b.clientHeight; }
	if( window.opera && !document.childNodes ) { myW += 16; }
	window.resizeTo( oW + ( ( oW + 200 ) - myW ), oH + ( (oH + 200 ) - myH ) ); 
}
*/

function startList()	
 {
	if (document.all && document.getElementById) {
		navRoot = document.getElementById("dmenu");
		for (i=0; i < navRoot.childNodes.length; i++) {
			node = navRoot.childNodes[i];
			if (node.nodeName=="LI") {
				node.onmouseover=function() {
					this.className+=" over";
				}
				node.onmouseout=function() {
					this.className=this.className.replace(" over", "");
				}
			}
		}
	}
}

function CreateBookmarkLink() {

  title = document.title;
  url = unescape(location.href);

	if (window.sidebar) { // Mozilla Firefox Bookmark
		window.sidebar.addPanel(title, url,"");
	} else if( window.external ) { // IE Favorite
		window.external.AddFavorite( url, title); }
	else if(window.opera && window.print) { // Opera Hotlist
		return true; }
 }


function load() {
	
	startList();
	
	/*self.moveTo(0,0);
	
	if (window.innerWidth )  {
		self.resizeTo(screen.width,screen.height-20); }
 	else
		self.resizeTo(screen.availWidth,screen.availHeight);
		*/
	
 
}
	
	
window.onload=load;

if (window.innerWidth ) { 		
		if (screen.width<1024 )		{ 
		 document.write('<'+'link rel="stylesheet" type="text/css" href="styles800.css" >');
		 document.write('<'+'link rel="stylesheet" type="text/css" href="mozilla800.css" >');		 
		}
		else {
			document.write('<'+'link rel="stylesheet" type="text/css" href="mozilla.css" >');
		}
	}
	else  { 
		
		if (screen.width<1024) {
			
		document.write('<'+'link rel="stylesheet" type="text/css" href="styles800.css" >');
		}
	  }
	
	


