function writeFlash (flashID, flashMovie, width, height) {

	var t ="";
	t += '<object ';
	t += '	id="' + flashID + '"';
	t += '	classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" ';
	t += '	codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" ';
	t += '	width="' + width + '" ';
	t += '	height="' + height + '">';
	t += '		<param name="movie" value="' + flashMovie + '">';
	t += '		<param name="quality" value="high">';
	t += '		<embed src="' + flashMovie + '" ';
	t += '			name="' + flashID + '"';
	t += '			quality="high" ';
	t += '			pluginspage="http://www.macromedia.com/go/getflashplayer" ';
	t += '			type="application/x-shockwave-flash" ';
	t += '			width="' + width + '" ';
	t += '			height="' + height + '">';
	t += '		</embed>';
	t += '</object>';
	
	document.write (t);
}

<!-- START CHECK BROWSER COMPATIBLITY -->

var browser     = '';
var version     = '';
var entrance    = '';
var cond        = '';
// BROWSER?
if (browser == ''){
if (navigator.appName.indexOf('Microsoft') != -1)
browser = 'IE'
else if (navigator.appName.indexOf('Netscape') != -1)
browser = 'Netscape'
else browser = 'NN';
}
// VERSION?
if (version == ''){
version= navigator.appVersion;
paren = version.indexOf('(');
whole_version = navigator.appVersion.substring(0,paren-1);
version         = parseInt(whole_version);
}
// BROWSER & VERSION
if (browser == 'IE' && version >= 4) entrance = 'yes';
if (browser == 'IE' && version < 4) entrance = 'no';
if (browser == 'Netscape' && version >= 2.02) entrance = 'yes';
if (browser == 'Netscape' && version < 2.02) entrance = 'no';

//-->
if (entrance=='yes'){
name1a = new Image;name1a.src = 'Images/Buttons/Home.jpg';
name1b = new Image;name1b.src = 'Images/Buttons/Home_on.jpg';

name2a = new Image;name2a.src = 'Images/Buttons/Profile.jpg';
name2b = new Image;name2b.src = 'Images/Buttons/Profile_on.jpg';

name3a = new Image;name3a.src = 'Images/Buttons/Projects.jpg';
name3b = new Image;name3b.src = 'Images/Buttons/Projects_on.jpg';

name4a = new Image;name4a.src = 'Images/Buttons/PastProjects.jpg';
name4b = new Image;name4b.src = 'Images/Buttons/PastProjects_on.jpg';

name5a = new Image;name5a.src = 'Images/Buttons/Deals.jpg';
name5b = new Image;name5b.src = 'Images/Buttons/Deals_on.jpg';

name6a = new Image;name6a.src = 'Images/Buttons/Mortgage.jpg';
name6b = new Image;name6b.src = 'Images/Buttons/Mortgage_on.jpg';

name7a = new Image;name7a.src = 'Images/Buttons/Contact.jpg';
name7b = new Image;name7b.src = 'Images/Buttons/Contact_on.jpg';

}


function lighten(imgName) {
if (entrance == 'yes'){

    imgOff = eval(imgName + 'a.src');
    document[imgName].src = imgOff;
   }
}

function darken(imgName) {
if (entrance == 'yes'){
    imgOff = eval(imgName + 'b.src');
   document[imgName].src = imgOff;
  
   }

 
 }


<!-- END CHECK BROWSER COMPATIBLITY -->



<!-- START MOUSEOVER -->
 
function init() {
  if (!document.getElementById) return
  var imgOriginSrc;
  var imgTemp = new Array();
  var imgarr = document.getElementsByTagName('img');
  for (var i = 0; i < imgarr.length; i++) {
    if (imgarr[i].getAttribute('hsrc')) {
        imgTemp[i] = new Image();
        imgTemp[i].src = imgarr[i].getAttribute('hsrc');
        imgarr[i].onmouseover = function() {
            imgOriginSrc = this.getAttribute('src');
            this.setAttribute('src',this.getAttribute('hsrc'))
        }
        imgarr[i].onmouseout = function() {
            this.setAttribute('src',imgOriginSrc)
        }
    }
  }
}
onload=init;
 
<!-- END MOUSEOVER -->



<!-- START MAILER FORM CHECK -->
function check_mailform() {

if (document.contact.first_name.value ==""){
			window.alert("נא להזין שם פרטי");
			document.contact.first_name.focus();
			return false;
	}
	else {
		if (document.contact.email.value ==""){
					window.alert("נא להזין דואר אלקטרוני");		
					document.contact.email.focus();
					return false;
			
		}
 else{
  document.contact.action = "MailSend.asp";
	document.contact.submit();
		}
		}				
}
	

function clear_mailform(){
	document.contact.reset();

}

<!-- END MAILER FORM CHECK -->










<!-- START CONTACT CHECK FORM -->


function CheckContact(){
 if (document.Contact.FirstName.value==""){
		window.alert("! נא להזין שם פרטי")
		document.Contact.FirstName.focus();
		return false;
	}

	
	

if (document.Contact.Telephone.value.length<7 ){
		window.alert("מספר הטלפון אינו תקין");
		document.Contact.Telephone.focus();
		return false;
	}
	

	
if (document.Contact.Telephone.value!=""){
if (document.Contact.Telephone.value.length<7 ){
		window.alert("מספר הטלפון אינו תקין");
		Contact.Telephone.focus();
		return false;
	}

	
	for (j=0; j<document.Contact.Telephone.value.length; j++)
	  {
	   checkNum=true
	  strChar = document.Contact.Telephone.value.charAt(j);
      
	  checkQ=parseInt(strChar) 
	
      if (isNaN(checkQ))
	  {
	  checkNum=false
	  }
	  }
	
	if (checkNum==false) {
   alert("! נא להזין מספר טלפון בספרות בלבד")
   document.Contact.Telephone.focus();
   return false
   }

}



 if (document.Contact.email.value==""){
		window.alert("! נא להזין דואר אלקטרוני")
		document.Contact.email.focus();
		return false;
	}
	
if ( document.Contact.email.value!="" && document.Contact.email.value.indexOf('@')==-1){
		window.alert(".כתובת הדואר האלקטרוני שגויה");
		document.Contact.email.focus();
		return false
		}
	
document.Contact.submit();

}


function CleanContact(){
document.Contact.reset();
}


<!-- END CONTACT CHECK FORM -->


<!-- START ServForm CHECK FORM -->


function CheckServForm(){
 if (document.servform.FirstName.value==""){
		window.alert("! נא להזין שם פרטי")
		document.servform.FirstName.focus();
		return false;
	}

	
	

if (document.servform.Telephone.value.length<7 ){
		window.alert("מספר הטלפון אינו תקין");
		document.servform.Telephone.focus();
		return false;
	}

	
	for (j=0; j<document.servform.Telephone.value.length; j++)
	  {
	   checkNum=true
	  strChar = document.servform.Telephone.value.charAt(j);
      
	  checkQ=parseInt(strChar) 
	
      if (isNaN(checkQ))
	  {
	  checkNum=false
	  }
	  }
	
	if (checkNum==false) {
   alert("! נא להזין מספר טלפון בספרות בלבד")
   document.servform.Telephone.focus();
   return false
   }




	
if ( document.servform.email.value!="" && document.servform.email.value.indexOf('@')==-1){
		window.alert(".כתובת הדואר האלקטרוני שגויה");
		document.servform.email.focus();
		return false
		}
	
    
    
    if (document.servform.projects.value==""){
		window.alert("! נא בחר פרוייקט")
		document.servform.projects.focus();
		return false;
	}

document.servform.submit();

}


function CleanServForm(){
document.servform.reset();
}


<!-- END ServForm CHECK FORM -->



<!-- START WINDOW POPUP -->
var win = null;
var win1 = null;  



function PopMashkanta(){
LeftPosition =  0;
TopPosition =  0;
mypage="Calculators.asp"
w=600
h=400
myname="Mashkanta"
settings =
'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable'
win = window.open(mypage,myname,settings)
}



function NewWindow(mypage,myname,w,h,scroll){
LeftPosition =  0;
TopPosition =  0;

settings =
'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable'
win = window.open(mypage,myname,settings)
}

function NewWindow1(mypage,page1,myname,w,h,scroll){
LeftPosition =  0;
TopPosition =  0;

settings ='height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable';


settings1 ='height=320,width=484,top=0,left=0,scrollbars=no,resizable';

win1 = window.open(page1,'name1',settings);

}
<!-- END WINDOW POPUP -->







<!-- START ONMOUSOVER SHOW BIG PICTURE -->

var ie=document.all
var ns6=document.getElementById&&!document.all

function ietruebody(){
return (document.compatMode && document.compatMode!="BackCompat" && !window.opera)? document.documentElement : document.body
}

function enlarge(which, e, position, imgwidth, imgheight){
if (ie||ns6){
crossobj=document.getElementById? document.getElementById("showimage") : document.all.showimage
if (position=="center"){
pgyoffset=ns6? parseInt(pageYOffset) : parseInt(ietruebody().scrollTop)
horzpos=ns6? pageXOffset+window.innerWidth/2-imgwidth/2 : ietruebody().scrollLeft+ietruebody().clientWidth/2-imgwidth/2
vertpos=ns6? pgyoffset+window.innerHeight/2-imgheight/2 : pgyoffset+ietruebody().clientHeight/2-imgheight/2
if (window.opera && window.innerHeight) //compensate for Opera toolbar
vertpos=pgyoffset+window.innerHeight/2-imgheight/2
vertpos=Math.max(pgyoffset, vertpos)
}
else{
var horzpos=ns6? pageXOffset+e.clientX : ietruebody().scrollLeft+event.clientX
var vertpos=ns6? pageYOffset+e.clientY : ietruebody().scrollTop+event.clientY
}
crossobj.style.left=horzpos+"px"
crossobj.style.top=vertpos+"px"

crossobj.innerHTML='<div align="right" id="dragbar"><span id="closetext" onClick="closepreview()" style="cursor:hand; color:ffffff" >סגור חלון</span> </div><img src="'+which+'">'
crossobj.style.visibility="visible"
return false
}
else //if NOT IE 4+ or NS 6+, simply display image in full browser window
return true
}

function closepreview(){
crossobj.style.visibility="hidden"
}

function drag_drop(e){
if (ie&&dragapproved){
crossobj.style.left=tempx+event.clientX-offsetx+"px"
crossobj.style.top=tempy+event.clientY-offsety+"px"
}
else if (ns6&&dragapproved){
crossobj.style.left=tempx+e.clientX-offsetx+"px"
crossobj.style.top=tempy+e.clientY-offsety+"px"
}
return false
}

function initializedrag(e){
if (ie&&event.srcElement.id=="dragbar"||ns6&&e.target.id=="dragbar"){
offsetx=ie? event.clientX : e.clientX
offsety=ie? event.clientY : e.clientY

tempx=parseInt(crossobj.style.left)
tempy=parseInt(crossobj.style.top)

dragapproved=true
document.onmousemove=drag_drop
}
}

document.onmousedown=initializedrag
document.onmouseup=new Function("dragapproved=false")

<!-- START ONMOUSOVER SHOW BIG PICTURE -->


<!-- START MOVIE -->

var theURL1 = 'Video/mov.asp';
var width1=330;
var height1=310;
   
function mov() {
newWindow = window.open(theURL1,'newWindow','toolbar=no,menubar=no,resizable=yes,scrollbars=no,status=no,location=no,width='+width1+',height='+height1);
}
<!-- END MOVIE -->




function showProjectDetails(j){
  object=document.all.viewProjectDetails(j);
  object2=document.all.viewProjectContacts(j);
if (object.style.display=='none')
   { 

  object.style.display='';
   object2.style.display='none';
  
   }
else
   { 
    object.style.display='none';
	}  
}	

function showProjectContact(j){
  object=document.all.viewProjectContacts(j);
   object2=document.all.viewProjectDetails(j);
 
if (object.style.display=='none')
   { 

 
  object.style.display='';
   object2.style.display='none';
  
  
   }
else
   { 
      object.style.display='none';
	}  
}	





function showUnitContact(){
  object=document.all.viewUnitContacts;
 
if (object.style.display=='none')
   { 
  object.style.display='';
   }
else
   { 
      object.style.display='none';
	}  
}	






function showUnitContactSales(j){
  object=document.all.viewUnitContactsSales(j);
if (object.style.display=='none')
   { 

  object.style.display='';
   }
else
   { 
    object.style.display='none';
	}  
}	

function showProjectContact(j){
  object=document.all.viewProjectContacts(j);
   object2=document.all.viewProjectDetails(j);
 
if (object.style.display=='none')
   { 

 
  object.style.display='';
   object2.style.display='none';
  
  
   }
else
   { 
      object.style.display='none';
	}  
}	



function Change(imgName) {


 PicDiv.innerHTML ="";
 t="";

  t +='<img  id="big" name="big" src="'+imgName+'"  border=0 >'
   PicDiv.innerHTML = t;
   
}
function ChangeFrame(location) {

PicDiv.innerHTML ="";
 t="";
 t +='<iframe  width="710" height="325" src="'+location+'"  name="main" id="mainframe"  marginheight="0" marginwidth="0" scrolling="Auto" ></iframe>'

 
   PicDiv.innerHTML = t;
   
}


<!------------------- Gallery Flash End ---------------->
function ChangeVideo(location,width,height) {


 PicDiv.innerHTML ="";
 flashID="minisite";
 t="";
 flashMovie="admin/projects/uploads/VideoFlash/"+location;
 
   t += '<object ';
	t += '	id="' + flashID + '"';
	t += '	classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" ';
	t += '	codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" ';
	t += '	width="' + width + '" ';
	t += '	height="' + height + '">';
	t += '		<param name="movie" value="' + flashMovie + '">';
	t += '		<param name="quality" value="high">';
	t += '		<embed src="' + flashMovie + '" ';
	t += '			name="' + flashID + '"';
	t += '			quality="high" ';
	t += '			pluginspage="http://www.macromedia.com/go/getflashplayer" ';
	t += '			type="application/x-shockwave-flash" ';
	t += '			width="' + width + '" ';
	t += '			height="' + height + '">';
	t += '		</embed>';
	t += '</object>';
	
     PicDiv.innerHTML = t;
   
}


<!------------------- Gallery Flash End ---------------->

<!------------------- Project Form ---------------->
function CheckFormProject(j) {

	if (document.form.FirstName(j).value ==""){
			window.alert("נא להזין שם פרטי");
			document.form.FirstName(j).focus();
			return false;
	}
	if (document.form.LastName(j).value ==""){
			window.alert("נא להזין שם משפחה");
			document.form.LastName(j).focus();
			return false;
	        }
		
	if (document.form.Email(j).value ==""){
				window.alert("נא להזין דואר אלקטרוני");
				document.form.Email(j).focus();
				return false;
			}
	
	
	document.form.FirstNameToSend.value=document.form.FirstName(j).value;
	document.form.LastNameToSend.value=document.form.LastName(j).value;
	document.form.CityToSend.value=document.form.City(j).value;
	document.form.TelephoneToSend.value=document.form.Telephone(j).value;
	document.form.CellToSend.value=document.form.Cell(j).value;
	document.form.EmailToSend.value=document.form.Email(j).value;
	document.form.CommentsToSend.value=document.form.Comments(j).value;
	document.form.Project_IDToSend.value=document.form.Project_ID(j).value;
	
			
	document.form.submit();
	
	
}

<!------------------- Project  Form End ---------------->

<!------------------- Unit  Form ---------------->
function CheckFormUnit() {

	if (document.form.FirstName.value ==""){
			window.alert("נא להזין שם פרטי");
			document.form.FirstName.focus();
			return false;
	}
	if (document.form.LastName.value ==""){
			window.alert("נא להזין שם משפחה");
			document.form.LastName.focus();
			return false;
	        }
		
	if (document.form.Email.value ==""){
				window.alert("נא להזין דואר אלקטרוני");
				document.form.Email.focus();
				return false;
			}
			
	document.form.submit();
	
	
}

<!------------------- Unit Form End ---------------->





<!------------------- UnitSales Form ---------------->
function CheckFormUnitSales(j) {

	if (document.form.FirstName(j).value ==""){
			window.alert("נא להזין שם פרטי");
			document.form.FirstName(j).focus();
			return false;
	}
	if (document.form.LastName(j).value ==""){
			window.alert("נא להזין שם משפחה");
			document.form.LastName(j).focus();
			return false;
	        }
		
	if (document.form.Email(j).value ==""){
				window.alert("נא להזין דואר אלקטרוני");
				document.form.Email(j).focus();
				return false;
			}
	
	
	document.form.FirstNameToSend.value=document.form.FirstName(j).value;
	document.form.LastNameToSend.value=document.form.LastName(j).value;
	document.form.CityToSend.value=document.form.City(j).value;
	document.form.TelephoneToSend.value=document.form.Telephone(j).value;
	document.form.CellToSend.value=document.form.Cell(j).value;
	document.form.EmailToSend.value=document.form.Email(j).value;
	document.form.CommentsToSend.value=document.form.Comments(j).value;
	document.form.Project_IDToSend.value=document.form.Project_ID(j).value;
	document.form.Unit_IDToSend.value=document.form.Unit_ID(j).value;
			
	document.form.submit();
	
	
}

<!------------------- UnitSales  Form End ---------------->

function ClearForm(){
	document.form.reset();

}



<!------------------- Picture  Project details  End ---------------->

function ProjectPics(Location) {

   document.getElementById('PicDiv').style.display='none';
   document.getElementById('mediumpic').style.display='block';
    document.getElementById('popup').style.display='block';
    document.getElementById('mediumpic').src = 'admin/projects/uploads/medium/'+Location;
    document.getElementById('popup').href='PopUpImage.asp?File=admin/projects/uploads/big/'+Location;
}


function UnitPics(Location) {

 document.getElementById('PicDiv').style.display='none';
      document.getElementById('mediumpic').style.display='block';
    document.getElementById('popup').style.display='block';
    document.getElementById('mediumpic').src = 'admin/projects/unituploads/medium/'+Location;
    document.getElementById('popup').href='PopUpImage.asp?File=admin/projects/unituploads/big/'+Location;
}


 

function ProjectFlash(location,flgFlash,width,height) {

if (flgFlash)
{
document.getElementById('PicDiv').style.display='block';
 PicDiv.innerHTML ="";
 flashID="minisite";
 t="";
 flashMovie="admin/projects/uploads/VideoFlash/"+location;
 
   t += '<object ';
	t += '	id="' + flashID + '"';
	t += '	classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" ';
	t += '	codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" ';
	t += '	width="' + width + '" ';
	t += '	height="' + height + '">';
	t += '		<param name="movie" value="' + flashMovie + '">';
	t += '		<param name="quality" value="high">';
	t += '		<embed src="' + flashMovie + '" ';
	t += '			name="' + flashID + '"';
	t += '			quality="high" ';
	t += '			pluginspage="http://www.macromedia.com/go/getflashplayer" ';
	t += '			type="application/x-shockwave-flash" ';
	t += '			width="' + width + '" ';
	t += '			height="' + height + '">';
	t += '		</embed>';
	t += '</object>';
	
     PicDiv.innerHTML = t;
      document.getElementById('mediumpic').style.display='none';
    document.getElementById('popup').style.display='none';
    
}	   
}


<!------------------- Picture  Project details  End ---------------->






function ProjectUnitFlash(location,flgFlash,width,height) {

if (flgFlash)
{
document.getElementById('PicDiv').style.display='block';
 PicDiv.innerHTML ="";
 flashID="minisite";
 t="";
 flashMovie="admin/projects/unituploads/VideoFlash/"+location;
 
   t += '<object ';
	t += '	id="' + flashID + '"';
	t += '	classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" ';
	t += '	codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" ';
	t += '	width="' + width + '" ';
	t += '	height="' + height + '">';
	t += '		<param name="movie" value="' + flashMovie + '">';
	t += '		<param name="quality" value="high">';
	t += '		<embed src="' + flashMovie + '" ';
	t += '			name="' + flashID + '"';
	t += '			quality="high" ';
	t += '			pluginspage="http://www.macromedia.com/go/getflashplayer" ';
	t += '			type="application/x-shockwave-flash" ';
	t += '			width="' + width + '" ';
	t += '			height="' + height + '">';
	t += '		</embed>';
	t += '</object>';
	
     PicDiv.innerHTML = t;
       document.getElementById('mediumpic').style.display='none';
    document.getElementById('popup').style.display='none';
}	   
}




function OpenSwith(openobj){
 
      if (document.getElementById(openobj).style.display=="none")
         {  document.getElementById(openobj).style.display="";}
      else  
         { document.getElementById(openobj).style.display="none";}
      }	

function OnMouseOverChange(id,f){

	var itm = null;
	var itf= null;
	
		if (document.getElementById) {
			itm = document.getElementById(id);
		} else if (document.all){
			itm = document.all[id];
		} else if (document.layers){
			itm = document.layers[id];
		}
	
	
		if (document.getElementById) {
			itf = document.getElementById(f);
		} else if (document.all){
			itf = document.all[f];
		} else if (document.layers){
			itf = document.layers[f];
		}
        
    

	itm.style.backgroundImage="url(http://hmg.co.il/Projects/images/category.jpg)";
  
    itf.style.display = ""; 
}

function OnMouseOutChange(id,f){
	var itm = null;
	var itf= null;
	
		if (document.getElementById) {
			itm = document.getElementById(id);
		} else if (document.all){
			itm = document.all[id];
		} else if (document.layers){
			itm = document.layers[id];
		}
	
	
		if (document.getElementById) {
			itf = document.getElementById(f);
		} else if (document.all){
			itf = document.all[f];
		} else if (document.layers){
			itf = document.layers[f];
		}
	itm.style.backgroundImage="url(http://hmg.co.il/Projects/images/category2.jpg)";
    itf.style.display = "none"; 
}




function OnMouseOverChangeMenu(id){

	var itm = null;
	
	
		if (document.getElementById) {
			itm = document.getElementById(id);
		} else if (document.all){
			itm = document.all[id];
		} else if (document.layers){
			itm = document.layers[id];
		}
	
		
	    itm.style.backgroundImage="url(http://hmg.co.il/Projects/images/menu/gray.png)";
		itm.className ="MenuTitleHorisontalOver";
        
  }

function OnMouseOutChangeMenu(id){
	var itm = null;
	
	
		if (document.getElementById) {
			itm = document.getElementById(id);
		} else if (document.all){
			itm = document.all[id];
		} else if (document.layers){
			itm = document.layers[id];
		}
	
	
	   itm.style.backgroundImage="url(http://hmg.co.il/Projects/images/menu/black.png)";
		itm.className ="MenuTitleHorisontal";
       
	
   
}










function OnMouseOverChangeMenuP(id){

	var itm = null;
	
	
		if (document.getElementById) {
			itm = document.getElementById(id);
		} else if (document.all){
			itm = document.all[id];
		} else if (document.layers){
			itm = document.layers[id];
		}
	
		
	    itm.style.backgroundImage="url(http://hmg.co.il/Projects/images/menu/butt_b_r.png)";
		itm.className ="MenuTitleHorisontalOver";
        
  }

function OnMouseOutChangeMenuP(id){
	var itm = null;
	
	
		if (document.getElementById) {
			itm = document.getElementById(id);
		} else if (document.all){
			itm = document.all[id];
		} else if (document.layers){
			itm = document.layers[id];
		}
	
	
	   itm.style.backgroundImage="url(http://hmg.co.il/Projects/images/menu/butt_r.png)";
		itm.className ="MenuTitleHorisontal";
       
	
   
}





function OnMouseOverChange(id,f,idf){

	var itm = null;
    var itm2 = null;
	var itf= null;
	
		if (document.getElementById) {
			itm = document.getElementById(id);
		} else if (document.all){
			itm = document.all[id];
		} else if (document.layers){
			itm = document.layers[id];
		}
	
	if (document.getElementById) {
			itm2 = document.getElementById(idf);
		} else if (document.all){
			itm2 = document.all[id];
		} else if (document.layers){
			itm2 = document.layers[id];
		}
    
    
		if (document.getElementById) {
			itf = document.getElementById(f);
		} else if (document.all){
			itf = document.all[f];
		} else if (document.layers){
			itf = document.layers[f];
		}
        
    

	itm.style.backgroundImage="url(http://hmg.co.il/Projects/images/menu/bg_green.png)";
itm2.style.backgroundImage="url(http://hmg.co.il/Projects/images/menu/bg_green.png)";
    itf.style.display = ""; 
     itm.className ="MenuTitleVerticalOver";
}

function OnMouseOutChange(id,f,idf){
	var itm = null;
    var itm2 = null;
    
	var itf= null;
	
		if (document.getElementById) {
			itm = document.getElementById(id);
		} else if (document.all){
			itm = document.all[id];
		} else if (document.layers){
			itm = document.layers[id];
		}
	
	if (document.getElementById) {
			itm2 = document.getElementById(idf);
		} else if (document.all){
			itm2 = document.all[id];
		} else if (document.layers){
			itm2 = document.layers[id];
		}
    
    
		if (document.getElementById) {
			itf = document.getElementById(f);
		} else if (document.all){
			itf = document.all[f];
		} else if (document.layers){
			itf = document.layers[f];
		}
	itm.style.backgroundImage="url(http://hmg.co.il/Projects/images/menu/bg_gray.png)";
    itm2.style.backgroundImage="url(http://hmg.co.il/Projects/images/menu/bg_gray.png)";
    itf.style.display = "none"; 
    itm.className ="MenuTitleVertical";
}

function OnMouseOverChangeLast(id,f,idf){

	var itm = null;
    var itm2 = null;
	var itf= null;
	
		if (document.getElementById) {
			itm = document.getElementById(id);
		} else if (document.all){
			itm = document.all[id];
		} else if (document.layers){
			itm = document.layers[id];
		}
	
	if (document.getElementById) {
			itm2 = document.getElementById(idf);
		} else if (document.all){
			itm2 = document.all[id];
		} else if (document.layers){
			itm2 = document.layers[id];
		}
    
    
		if (document.getElementById) {
			itf = document.getElementById(f);
		} else if (document.all){
			itf = document.all[f];
		} else if (document.layers){
			itf = document.layers[f];
		}
        
    

	itm.style.backgroundImage="url(http://hmg.co.il/Projects/images/menu/small/menu_green.jpg)";
itm2.style.backgroundImage="url(http://hmg.co.il/Projects/images/menu/small/menu_green.jpg)";
    itf.style.display = ""; 
     itm.className ="MenuTitleVerticalOver";
}

function OnMouseOutChangeLast(id,f,idf){
	var itm = null;
    var itm2 = null;
    
	var itf= null;
	
		if (document.getElementById) {
			itm = document.getElementById(id);
		} else if (document.all){
			itm = document.all[id];
		} else if (document.layers){
			itm = document.layers[id];
		}
	
	if (document.getElementById) {
			itm2 = document.getElementById(idf);
		} else if (document.all){
			itm2 = document.all[id];
		} else if (document.layers){
			itm2 = document.layers[id];
		}
    
    
		if (document.getElementById) {
			itf = document.getElementById(f);
		} else if (document.all){
			itf = document.all[f];
		} else if (document.layers){
			itf = document.layers[f];
		}
	itm.style.backgroundImage="url(http://hmg.co.il/Projects/images/menu/small/menu_gray.jpg)";
    itm2.style.backgroundImage="url(http://hmg.co.il/Projects/images/menu/small/menu_gray.jpg)";
    itf.style.display = "none"; 
    itm.className ="MenuTitleVertical";
}
