<!--

// The syntax for using these functions in an HTML document are as follows:
//
// <a href="#" onMouseOver="imgOn('img2')" onMouseOut="imgOff('img2')">
// <img src="file.gif" name="img2" width="60" height="60" border="0"></a>
				
var webSections = new Array();

webSections[0] = "home";
webSections[1] = "about_us";
webSections[2] = "jewish_basics";
webSections[3] = "recipes_books";
webSections[4] = "keep_current";
webSections[5] = "classes_activities";
webSections[6] = "shopping";
webSections[7] = "calendar";


var currentPage = '';

// loop through the section array to identify the subscript of the section we're in                
for (i=0; i < webSections.length; i++) {
                
	if (webSections[i] == section) {
		currentPage = "img" + i;
	}
}


var bName = navigator.appName;
var bVer = parseInt(navigator.appVersion);

if ((bName == "Netscape" && bVer >= 3) || (bName == "Microsoft Internet Explorer" && bVer >= 4 )) {

	br = "good";

} else {

	br = "bad";
	 
}

	if (br == "good") {
	
			var pathtoRoot = "/";
			
			img0on = new Image(); img0on.src = pathtoRoot + "images/home_on.gif";
	        img0off = new Image(); img0off.src = pathtoRoot + "images/home_off.gif";
			img1on = new Image(); img1on.src = pathtoRoot + "images/about_us_on.gif";
	        img1off = new Image(); img1off.src = pathtoRoot + "images/about_us_off.gif";
	        img2on = new Image(); img2on.src = pathtoRoot + "images/jewish_basics_on.gif";
	        img2off = new Image(); img2off.src = pathtoRoot + "images/jewish_basics_off.gif";
	       	img3on = new Image(); img3on.src = pathtoRoot + "images/recipes_books_on.gif";
	        img3off = new Image(); img3off.src = pathtoRoot + "images/recipes_books_off.gif";
	        img4on = new Image(); img4on.src = pathtoRoot + "images/keep_current_on.gif";
	        img4off = new Image(); img4off.src = pathtoRoot + "images/keep_current_off.gif";
	        img5on = new Image(); img5on.src = pathtoRoot + "images/classes_activities_on.gif";
	        img5off = new Image(); img5off.src = pathtoRoot + "images/classes_activities_off.gif";
	        
	        //img4 reserved for shopping
	        //img5 reserved for calendar
	        
	        

	              
			
	}


function imgOn(imgName) {
        if (br == "good") {
                document[imgName].src = eval(imgName + "on.src");
                //document.hold.src = eval(imgName + "hold.src");
                //window.status = eval(imgName + "copy");
       			
       }

}

function imgOff(imgName) {
        if (br == "good"){
	            
	            // keep the img state on for current page       
                if (imgName == currentPage) {
                	document[imgName].src = eval(imgName + "on.src");
	            } else { 
	            	document[imgName].src = eval(imgName + "off.src");
	            }
                //document.hold.src = "space.gif"; 
                //window.status = " ";
  				     
        
        }

}

//for dynamic menus
var menu0;
var menu1;
var menu2;
var menu3;
var menu4;
var menu5;
var menu6;
var menu7;              
var currentHolder;

function init() {

        if (is_nav4)
        {
        menu0 = document.homenav
        menu1 = document.aboutusnav
        menu2 = document.jewishbasicsnav
		menu3 = document.recipesbooksnav
		menu4 = document.keepcurrentnav
		menu5 = document.classesactivitiesnav
		menu6 = document.shoppingnav
		menu7 = document.calendarnav
		currentHolder = document.holder

		} else if (is_ie4up) {
		
        menu0 = homenav.style
        menu1 = aboutusnav.style
        menu2 = jewishbasicsnav.style
		menu3 = recipesbooksnav.style
		menu4 = keepcurrentnav.style
		menu5 = classesactivitiesnav.style
		menu6 = shoppingnav.style
		menu7 = calendarnav.style
		currentHolder = holder.style
		}

    
}

//turn on subnav when moused over and hide the current sub nav bar

function show(showobj)
        {
        
        if (is_nav4up) { 
        
        	showobj.visibility = "show"
        	hide(currentHolder);
        
        		} else if (is_ie4up) {
        		
        			showobj.visibility = "visible"
        			hide(currentHolder);
        	}
        
        }
        
//hide the subnavs              

function hide(hideobj)
        {
        
        
        	if (is_nav4up) {
        	
        		hideobj.visibility = "hide"
        		
        		
        	} else if (is_ie4up) {
        	
        	hideobj.visibility = "hidden"
        
       }

}

//hide everything except subnav of the section we are in

function hideAll()
        {
        if (is_nav4up || is_ie4up){
	    
	    hide(menu0); hide(menu1); hide(menu2);hide(menu3); hide(menu4); hide(menu5); hide(menu6); hide(menu7);
	    
	    StayOn(currentHolder);
		}
	}	

//this keeps the section we are in subnav visible

function StayOn(showobj) {
        
        if (is_nav4up) { 
        
        	showobj.visibility = "show"
        	
        
        } else if (is_ie4up) {
        		
        			showobj.visibility = "visible"
        		
        }

}
	
		
//this sets the timeout to clear all subnav if choice wasn't made.

var TimeOutNum = 0;

function SetTimer()
        {
                TimeOutNum = setTimeout("hideAll();",5000);
                
        }






loaded = 0;

//-->
