// ROLLOVER CODE

if (document.images) {
	
// MAIN NAV

	productsover = new Image
	productsover.src = "/saucony/images/mainnav/products_over.gif"
	productsup = new Image
	productsup.src = "/saucony/images/mainnav/products_up.gif"
	
	scienceover = new Image
	scienceover.src = "/saucony/images/mainnav/science_over.gif"
	scienceup = new Image
	scienceup.src = "/saucony/images/mainnav/science_up.gif"
	
	communityover = new Image
	communityover.src = "/saucony/images/mainnav/community_over.gif"
	communityup = new Image
	communityup.src = "/saucony/images/mainnav/community_up.gif"
	
	dealersover = new Image
	dealersover.src = "/saucony/images/mainnav/dealers_over.gif"
	dealersup = new Image
	dealersup.src = "/saucony/images/mainnav/dealers_up.gif"

	}

// END ROLLOVER CODE

//shoe pop-up

	function largerView(location) {
		largerview = window.open (location,'largeview','height=550,width=569,scrollbars=1,resizable=0,toolbar=0,location=0');
	}
	
//Buy pop-up	
	function buyOnline(location) {
		buyonline = window.open (location,'onlinebuying','height=550,width=560,scrollbars=1,resizable=0,toolbar=0,location=0');
	}
	
//Flash pop-up	
	function flashView(location) {
		flashview = window.open (location,'view360','height=300,width=420,scrollbars=0,resizable=0,toolbar=0,location=0');
	}	
	
// Tabbed Table Stuff
	function tables() {
		one = document.getElementById("tblMensShoes");
		two = document.getElementById("tblWomensShoes");

	}

	function reveal1() {
  		if( !one.style.display || one.style.display == "none" ) 
			{
				one.style.display = "block";
				two.style.display = "none";
		
	    	} 
		}
	
	function reveal2() {
  		if( !two.style.display || two.style.display == "none" ) 
			{
				one.style.display = "none";
				two.style.display = "block";
	    	} 
		}
// RANDOM PHOTOS
var rdmPhoto = new Array();
	rdmPhoto[0] = "<img src=\"images/runnerscode/runnercode01.gif\" />";
	rdmPhoto[1] = "<img src=\"images/runnerscode/runnercode02.gif\" />";
	rdmPhoto[2] = "<img src=\"images/runnerscode/runnercode03.gif\" />";
	rdmPhoto[3] = "<img src=\"images/runnerscode/runnercode04.gif\" />";
	rdmPhoto[4] = "<img src=\"images/runnerscode/runnercode05.gif\" />";
	rdmPhoto[5] = "<img src=\"images/runnerscode/runnercode06.gif\" />";
	rdmPhoto[6] = "<img src=\"images/runnerscode/runnercode07.gif\" />";
	rdmPhoto[7] = "<img src=\"images/runnerscode/runnercode08.gif\" />";
	rdmPhoto[8] = "<img src=\"images/runnerscode/runnercode09.gif\" />";
	rdmPhoto[9] = "<img src=\"images/runnerscode/runnercode10.gif\" />";
	rdmPhoto[10] = "<img src=\"images/runnerscode/runnercode11.gif\" />";
	var n = 10;
	var rdmChg = Math.round(Math.random() * n);
	var randomPhoto = rdmPhoto[rdmChg];
// END RANDOM PHOTOS