
$(document).ready(function(){
	
	$("div").filter("#brandsnavCont").hide();	
		 
	$(".brandstog").toggle(function(){
	  $("#brandsnavCont").slideDown("slow"); 
	},function(){
	  $("#brandsnavCont").slideUp("slow");
	});

         
	
         
         	
// Navigation rollovers
$("img#4easy_icon").mouseover(function(){
   $("img#4easy_icon").attr("src", "skins/Classic/styleImages/kido/4easy_icon_over.gif");
   $("img#sale4kids_icon").attr("src", "skins/Classic/styleImages/kido/sale4kids_icon_out.gif");  
   $("img#free_icon").attr("src", "skins/Classic/styleImages/kido/free_icon_out.gif");  
   $("img#roll_desc").attr("src", "skins/Classic/styleImages/kido/4easy_text.gif"); 
});

$("img#4easy_icon").mouseout(function(){
   $("img#4easy_icon").attr("src", "skins/Classic/styleImages/kido/4easy_icon_out.gif");
   $("img#sale4kids_icon").attr("src", "skins/Classic/styleImages/kido/sale4kids_icon_out.gif");  
   $("img#free_icon").attr("src", "skins/Classic/styleImages/kido/free_icon_over.gif");  
   $("img#roll_desc").attr("src", "skins/Classic/styleImages/kido/free_text.gif");       
});

$("img#sale4kids_icon").mouseover(function(){
   $("img#4easy_icon").attr("src", "skins/Classic/styleImages/kido/4easy_icon_out.gif");
   $("img#sale4kids_icon").attr("src", "skins/Classic/styleImages/kido/sale4kids_icon_over.gif");  
   $("img#free_icon").attr("src", "skins/Classic/styleImages/kido/free_icon_out.gif");  
   $("img#roll_desc").attr("src", "skins/Classic/styleImages/kido/sale4kids_text.gif"); 
});

$("img#sale4kids_icon").mouseout(function(){
   $("img#4easy_icon").attr("src", "skins/Classic/styleImages/kido/4easy_icon_out.gif");
   $("img#sale4kids_icon").attr("src", "skins/Classic/styleImages/kido/sale4kids_icon_out.gif");  
   $("img#free_icon").attr("src", "skins/Classic/styleImages/kido/free_icon_over.gif");  
   $("img#roll_desc").attr("src", "skins/Classic/styleImages/kido/free_text.gif");       
});


$('#accessories').hover(function() {
    $("img#accessories").attr("src", "images/accessories_over.gif"); 
}, function() {
    $("img#accessories").attr("src", "images/accessories_out.gif");       
});

$('#bedding').hover(function() {
    $("img#bedding").attr("src", "images/bedding_over.gif"); 
}, function() {
    $("img#bedding").attr("src", "images/bedding_out.gif");       
});

$('#books').hover(function() {
    $("img#books").attr("src", "images/books_over.gif"); 
}, function() {
    $("img#books").attr("src", "images/books_out.gif");       
});            

$('#bathandbody').hover(function() {
    $("img#bathandbody").attr("src", "images/bathandbaby_over.gif"); 
}, function() {
    $("img#bathandbody").attr("src", "images/bathandbaby_out.gif");       
});                   

$('#clothing').hover(function() {
    $("img#clothing").attr("src", "images/clothing_over.gif"); 
}, function() {
    $("img#clothing").attr("src", "images/clothing_out.gif");       
});

$('#decor').hover(function() {
    $("img#decor").attr("src", "images/decor_over.gif"); 
}, function() {
    $("img#decor").attr("src", "images/decor_out.gif");       
});

$('#furniture').hover(function() {
    $("img#furniture").attr("src", "images/furniture_over.gif"); 
}, function() {
    $("img#furniture").attr("src", "images/furniture_out.gif");       
});

$('#gear').hover(function() {
    $("img#gear").attr("src", "images/gear_over.gif"); 
}, function() {
    $("img#gear").attr("src", "images/gear_out.gif");       
});

$('#organic').hover(function() {
    $("img#organic").attr("src", "images/organic_over.gif"); 
}, function() {
    $("img#organic").attr("src", "images/organic_out.gif");       
});

$('#shoes').hover(function() {
    $("img#shoes").attr("src", "images/shoes_over.gif"); 
}, function() {
    $("img#shoes").attr("src", "images/shoes_out.gif");       
});

$('#toys').hover(function() {
    $("img#toys").attr("src", "images/toys_over.gif"); 
}, function() {
    $("img#toys").attr("src", "images/toys_out.gif");       
});

$('#mealtime').hover(function() {
    $("img#mealtime").attr("src", "images/mealtime_over.gif"); 
}, function() {
    $("img#mealtime").attr("src", "images/mealtime_out.gif");       
});

$('#home').hover(function() {
    $("img#home").attr("src", "images/home_over.gif"); 
}, function() {
    $("img#home").attr("src", "images/home_out.gif");       
});                  
            
$('#about').hover(function() {
    $("img#about").attr("src", "images/about_over.gif"); 
}, function() {
    $("img#about").attr("src", "images/about_out.gif");       
});                 

$('#blog').hover(function() {
    $("img#blog").attr("src", "images/blog_over.gif"); 
}, function() {
    $("img#blog").attr("src", "images/blog_out.gif");       
});

$('#wishlist').hover(function() {
    $("img#wishlist").attr("src", "images/wishlist_over.gif"); 
}, function() {
    $("img#wishlist").attr("src", "images/wishlist_out.gif");       
});   

$('#gifts').hover(function() {
    $("img#gifts").attr("src", "images/gifts_over.gif"); 
}, function() {
    $("img#gifts").attr("src", "images/gifts_out.gif");       
});                           

$('#links').hover(function() {
    $("img#links").attr("src", "images/links_over.gif"); 
}, function() {
    $("img#links").attr("src", "images/links_out.gif");       
});

$('#press').hover(function() {
    $("img#press").attr("src", "images/press_over.gif"); 
}, function() {
    $("img#press").attr("src", "images/press_out.gif");       
});

$('#login').hover(function() {
    $("img#login").attr("src", "images/login_over.gif"); 
}, function() {
    $("img#login").attr("src", "images/login_out.gif");       
});

$('#register').hover(function() {
    $("img#register").attr("src", "images/register_over.gif"); 
}, function() {
    $("img#register").attr("src", "images/register_out.gif");       
});

$('#contact').hover(function() {
    $("img#contact").attr("src", "images/contact_over.gif"); 
}, function() {
    $("img#contact").attr("src", "images/contact_out.gif");       
});

$('#search').hover(function() {
    $("img#search").attr("src", "images/search_over.gif"); 
}, function() {
    $("img#search").attr("src", "images/search_out.gif");       
});

$('#logout').hover(function() {
    $("img#logout").attr("src", "images/logout_over.gif"); 
}, function() {
    $("img#logout").attr("src", "images/logout_out.gif");       
});

$('#myaccount').hover(function() {
    $("img#myaccount").attr("src", "images/myaccount_over.gif"); 
}, function() {
    $("img#myaccount").attr("src", "images/myaccount_out.gif");       
});
          
            
});

function openCenteredWindow(url, name, parms) {
   var width = 310;
   var height = 310;
   var left = Math.floor( (screen.width - width) / 2);
   var top = Math.floor( (screen.height - height) / 2);
   var winParms = "top=" + top + ",left=" + left + ",height=" + height + ",width=" + width;
   if (parms) { winParms += "," + parms; }
   var win = window.open(url, name, winParms);
   if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}


var preloaded = new Array();
function preload_images() {
    for (var i = 0; i < arguments.length; i++){
        preloaded[i] = document.createElement('img');
        preloaded[i].setAttribute('src',arguments[i]);
    };
};
preload_images(
    'skins/Classic/styleImages/kido/4easy_icon_over.gif',
	'skins/Classic/styleImages/kido/4easy_icon_out.gif',
	'skins/Classic/styleImages/kido/4easy_text.gif',
    'skins/Classic/styleImages/kido/sale4kids_icon_over.gif',
	'skins/Classic/styleImages/kido/sale4kids_icon_out.gif',
	'skins/Classic/styleImages/kido/sale4kids_text.gif',
    'skins/Classic/styleImages/kido/free_icon_out.gif',
	'skins/Classic/styleImages/kido/free_icon_over.gif',
	'skins/Classic/styleImages/kido/free_text.gif',
	'images/accessories_over.gif',
	'images/bedding_over.gif',
	'images/books_over.gif',
	'images/bathandbaby_over.gif',
	'images/clothing_over.gif',
	'images/decor_over.gif',
	'images/furniture_over.gif',
	'images/gear_over.gif',
	'images/bathandbaby_over.gif',
	'images/organic_over.gif',
	'images/shoes_over.gif',
	'images/toys_over.gif',
	'images/mealtime_over.gif',
	'images/home_over.gif',
	'images/about_over.gif',
	'images/blog_over.gif',
	'images/wishlist_over.gif',
	'images/gifts_over.gif',
	'images/links_over.gif',
	'images/press_over.gif',
	'images/login_over.gif',
	'images/register_over.gif',
	'images/contact_over.gif',
	'images/search_over.gif',
	'images/logout_over.gif',
	'images/myaccount_over.gif'
);
                        
