function toggle(a,b){
	$(a).mouseenter(function(){
		showSubscriber(b)
	}).mouseleave(function(){
			hideSubscriber(b);
	})
}



function hideSubscriber(a){
    $(a).slideUp("slow");

}
function showSubscriber(a){
    $(a).stop(true, true);
    $(a).slideDown("slow");

}



$(document).ready(function(){

a = ".nav_subscribe"
b = "div#subscribe_email";
toggle(a,b);

a = "li#footer_share"
b = "div.footer_share_hidden";
toggle(a,b);

a = "li#footer_subscribe"
b = "div.footer_subscribe_hidden";
toggle(a,b);

a = "div.xreviewkey"
b = "p.xreviewdefinition"
toggle(a,b);


$(".agirlhastoeat").validate();
});

function preload(arrayOfImages) {
    $(arrayOfImages).each(function(){
        $('<img/>')[0].src = this;
        // Alternatively you could use:
        // (new Image()).src = this;
    });
}

// Usage:

preload([
    'wp-content/themes/CMDRedux/images/bg_nav_ele_rss_hover.png',
    'wp-content/themes/CMDRedux/images/bg_nav_ele_twitter_hover.png',
    'wp-content/themes/CMDRedux/images/bg_topten_hover.png'
]);

//New years resolution - Learn Javascript! ^-^


