
	//check for browser type
	isIE=document.all;
	isNN=!document.all&&document.getElementById;
	isN4=document.layers;
	
	//main nav image rollovers
	if(document.images)
	 {
	  nav_xoff=new Image();
	  nav_xon=new Image();
	  nav_xoff.src="sw7_layout_images/sw7_nav-xoff.gif";
 	  nav_xon.src="sw7_layout_images/sw7_nav-xon.gif";

	  nav_catalog_xoff=new Image();
	  nav_catalog_xon=new Image();	  
	  nav_catalog_xon.src="sw7_layout_images/sw7_nav-catalog-xon.gif";
	  nav_catalog_xoff.src="sw7_layout_images/sw7_nav-catalog-xoff.gif";

 	  nav_special_xoff=new Image();
	  nav_special_xon=new Image();	  
	  nav_special_xon.src="sw7_layout_images/sw7_nav-special-xon.gif";
	  nav_special_xoff.src="sw7_layout_images/sw7_nav-special-xoff.gif";

 	  nav_utility_xoff=new Image();
	  nav_utility_xon=new Image();	  
	  nav_utility_xon.src="sw7_layout_images/sw7_nav-utility-xon.gif";
	  nav_utility_xoff.src="sw7_layout_images/sw7_nav-utility-xoff.gif";	  
	}
	
	
function sw7_nav_clear(group, section)	{

if (group == "main") {
	var section_image = 'sw7_nav_img_' + section;
	var section_cell = 'sw7_nav_cell_' + section;	
	var section_link = 'sw7_nav_link_' + section;
	var section_off_image =  nav_xoff.src;
	var section_cell_class = "sw7_nav_menu_item";
	var section_link_class = "sw7_nav_menu_link"; 
	} 
	
	if (group == "catalog") {
	var section_image = 'sw7_nav_catalog_img_' + section;
	var section_cell = 'sw7_nav_catalog_cell_' + section;	
	var section_link = 'sw7_nav_catalog_link_' + section;
	var section_off_image =  nav_catalog_xoff.src;
	var section_cell_class = "sw7_nav_menu_catalog_item";
	var section_link_class = "sw7_nav_menu_catalog_link"; 	
	}
	
	if (group == "utility") {
	var section_image = 'sw7_nav_utility_img_' + section;
	var section_cell = 'sw7_nav_utility_cell_' + section;	
	var section_link = 'sw7_nav_utility_link_' + section;
	var section_off_image =  nav_utility_xoff.src;
	var section_cell_class = "sw7_nav_menu_utility_item";
	var section_link_class = "sw7_nav_menu_utility_link"; 	
	}
	
	if (group == "special") {
	var section_image = 'sw7_nav_special_img_' + section;
	var section_cell = 'sw7_nav_special_cell_' + section;	
	var section_link = 'sw7_nav_special_link_' + section;
	var section_off_image =  nav_special_xoff.src;
	var section_cell_class = "sw7_nav_menu_special_item";
	var section_link_class = "sw7_nav_menu_special_link"; 
	}
		
	
	//swap x image for current item to off
	document.getElementById(section_image).src = section_off_image ;
	document.getElementById(section_cell).setAttribute("class", section_cell_class); 
	document.getElementById(section_link).setAttribute("class", section_link_class);
	document.getElementById(section_cell).style.backgroundColor=''; 		
	
}	

function sw7_navtab_clear(section)	{

    // sw7_nav_clear("tab", section)	;
	document.getElementById("sw7_navtab_cell_"+ section).setAttribute("class", navtab_sections[section]); 
	document.getElementById("sw7_navtab_link_"+section).setAttribute("class", "sw7_navtab_menu_link");	
}


function sw7_main_nav_clear(section)	{
	 sw7_nav_clear("main", section)	;	
}	

function sw7_catalog_nav_clear(section)	{
	 sw7_nav_clear("catalog", section)	;			
}	

function sw7_utility_nav_clear(section)	{
	 sw7_nav_clear("utility", section)	;			
}	

function sw7_special_nav_clear(section)	{
	 sw7_nav_clear("special", section)	;			
}	



function sw7_main_nav_clear_all()	{
	var section = new Array("catalog", "photos", "affiliates", "bands", "news", "contact", "sikshit", "press", "contests");
	for (i=0;i<section.length;i++)
	{
	sw7_main_nav_clear(section[i]);
	}
}	

function sw7_special_nav_clear_all()	{
	var section = new Array("new", "best", "gift", "discontinued");
	for (i=0;i<section.length;i++)
	{
	sw7_special_nav_clear(section[i]);
	}
}	

function sw7_utility_nav_clear_all()	{
	var section = new Array("friend","bookmark");
	for (i=0;i<section.length;i++)
	{
	sw7_utility_nav_clear(section[i]);
	}
}	


function sw7_catalog_nav_clear_all()	{
	var section = new Array("mens", "womens", "baby", "accessories", "bands", "dds");
	for (i=0;i<section.length;i++)
	{
	sw7_catalog_nav_clear(section[i]);
	}
}	


function sw7_navtab_clear_all(section, menu)	{
	
	if (menu == 'catalog')	{
	var section_arr = new Array("all", "mens", "womens", "baby", "accessories", "dds", "new", "best", "gift", "discount", "som");
	//alert('catalog cleared');
	}
	
	if (menu =='gallery') {
	var section_arr = new Array("catalog", "bands", "people", "photo", "model", "girls");	
	//alert('gallery cleared');
	}
	
	if (menu =='press') {
	var section_arr = new Array("magazine", "banners", "press", "media", "kit");	
	//alert('gallery cleared');
	}
	
	
	for (i=0;i<section_arr.length;i++)
	{
	

		sw7_navtab_clear(section_arr[i]);
	}
}	


function sw7_special_nav_rollover(section) {
	//clear out all x images that are in on state
	sw7_special_nav_clear_all();
	//set variable name
	var section_element = 'sw7_nav_special_cell_' + section;
	var section_element_image = 'sw7_nav_special_img_' + section;
	var section_element_link = 'sw7_nav_special_link_' + section;	
	//swap current nav item style
	document.getElementById(section_element).setAttribute("class", "sw7_nav_menu_special_item_on"); 
	//swap x image for current nav item to on
	document.getElementById(section_element_image).src = nav_xon.src ;
	//swap link color
	document.getElementById(section_element_link).setAttribute("class", "sw7_nav_menu_special_link_on"); 
	
	document.getElementById(section_element).style.backgroundColor='#666666';
	
	return; 
}


function sw7_utility_nav_rollover(section, menu) {
	//clear out all x images that are in on state
	sw7_utility_nav_clear_all(menu);
	//set variable name
	var section_element = 'sw7_nav_utility_cell_' + section;
	var section_element_image = 'sw7_nav_utility_img_' + section;
	var section_element_link = 'sw7_nav_utility_link_' + section;	
	//swap current nav item style
	document.getElementById(section_element).setAttribute("class", "sw7_nav_menu_utility_item_on"); 
	//swap x image for current nav item to on
	document.getElementById(section_element_image).src = nav_utility_xon.src ;
	//swap link color
	document.getElementById(section_element_link).setAttribute("class", "sw7_nav_menu_utility_link_on"); 
	
	document.getElementById(section_element).style.backgroundColor='';
	return; 
}

function sw7_catalog_nav_rollover(section) {
	//clear out all x images that are in on state
	sw7_catalog_nav_clear_all();
	//set variable name
	var section_element = 'sw7_nav_catalog_cell_' + section;
	var section_element_image = 'sw7_nav_catalog_img_' + section;
	var section_element_link = 'sw7_nav_catalog_link_' + section;	
	//swap current nav item style
	document.getElementById(section_element).setAttribute("class", "sw7_nav_menu_catalog_item_on"); 
	//swap x image for current nav item to on
	document.getElementById(section_element_image).src = nav_xon.src ;
	//swap link color
	document.getElementById(section_element_link).setAttribute("class", "sw7_nav_menu_catalog_link_on"); 
	
	document.getElementById(section_element).style.backgroundColor='#666666';
	
	
	return; 
}

function sw7_main_nav_rollover(section) {
	//clear out all x images that are in on state
	sw7_main_nav_clear_all();
	//set variable name
	var section_element = 'sw7_nav_cell_' + section;
	var section_element_image = 'sw7_nav_img_' + section;
	var section_element_link = 'sw7_nav_link_' + section;	
	//swap current nav item style
	document.getElementById(section_element).setAttribute("class", "sw7_nav_menu_item_on"); 
	//swap x image for current nav item to on
	document.getElementById(section_element_image).src = nav_xon.src ;
	//swap link color
	document.getElementById(section_element_link).setAttribute("class", "sw7_nav_menu_link_on"); 
	
	document.getElementById(section_element).style.backgroundColor='#666666';
	return; 
}
	

function sw7_navtab_rollover(section, menu) {
	//alert (section);
	sw7_navtab_clear_all(section, menu);	
	//set variable name
	var section_element = 'sw7_navtab_cell_' + section;
	var section_element_link = 'sw7_navtab_link_' + section;	
	//swap current nav item style
	document.getElementById(section_element).setAttribute("class", "sw7_navtab_menu_item_on"); 
	//swap link color
	document.getElementById(section_element_link).setAttribute("class", "sw7_navtab_menu_link_on"); 
	
	//document.getElementById(section_element).style.backgroundImage="url('../sw7_layout_images/sw7_catalog_btn_gray.jpg')");
	return; 
}	


 function doSel(obj)
 {
     for (i = 1; i < obj.length; i++)
        if (obj[i].selected == true)
           eval(obj[i].value);
}
