/**
*
* WMC Music
* Theme designed by Wiseguy Digital
*
*/

var $j = jQuery.noConflict(); // no conflict with Magento Prototype

$j(document).ready(function(){

    // Navigation
    $j('#nav-wmc li').each(function(){
        $j(this).mouseenter(function(e){
           $j(this).addClass('over');
           $j(this).find('div').fadeIn('fast');
        });
    });
    $j('#nav-wmc li').each(function(){
        $j(this).mouseleave(function(e){
           $j(this).removeClass('over');
           $j(this).find('div').hide();
           e.stopPropagation();
        });
    });

    // Lazyload images
		if (navigator.platform != "iPad") {
    	$j("img").lazyload();
		}

    // Pretty photo links
    $j("a[rel^='prettyPhoto']").prettyPhoto({
        showTitle:false,
        allowresize:false,
        theme:'dark_square'
    });

    // Social links
    $j('.top-blog-link').click(function(){
       window.open(this.href);
       return false;
    });
    $j('#social-links li a').click(function(){
       window.open(this.href);
       return false;
    });

});
