$(document).ready(function() {

$('.issuelistingpost a[href="#"]').each( function(){ $(this).remove();   });

$('#issues a[href="#"]').each( function(){ $(this).replaceWith("<span>Available Soon</span>");   });


$('a:has(img)').css("border-bottom","none");



 $(document).bind('keydown', 'Alt+q',function (evt){slideFunction(); return false; });
 
 
// Set the user's selection for the which issue browsing format

        var whichIssueFormat = $.cookie('whichIssueFormat');
    if (whichIssueFormat == 'covers') {
$("#issuesnav a").removeClass('active');
$('#issuesnav a[href="#issuescovers"]').addClass('active');
$("#issuesfull").hide(); 
$("#issuescovers").show();


 
 };
 

// Set the user's selection for the Header State

 var showTop = $.cookie('showTop');
    if (showTop == 'collapsed') {

 $("#dashbar").hide();
     $(this).removeClass("active");

 
 };
 
 
 $("a#closedashbar").click(function(){
 
 slideFunction();
 });
 
 
 function slideFunction(){
if ($("#dashbar").is(":hidden")) {
    $("#dashbar").slideDown("fast");
    $(this).addClass("active");
    $.cookie('showTop', 'expanded', { expires: 777, path: '/', domain: 'enjoyminutiae.com', secure: false });
    return false;

} else {
    $("#dashbar").slideUp("fast");
    $(this).removeClass("active");
    $.cookie('showTop', 'collapsed', { expires: 777, path: '/', domain: 'enjoyminutiae.com', secure: false });
    return false;}
 };


	
$("a#expander").fancybox({
	'overlayOpacity' : .7,
	'overlayColor' : '#2f2b2c',
'centerOnScroll' : true,
	'hideOnContentClick' : true,
	'speedOut' :100,
	});



$("#selectionsnav a[rel!=all]").click(function(){

$("#selectionsnav a").removeClass('active');
$(this).addClass('active');

var linkString = $(this).attr('rel');
$("#selections a").hide();
$("#selections a." + linkString ).show();
return false;
});

 $("#selectionsnav a#all").click(function(){
$("#selectionsnav a").removeClass('active');
$(this).addClass('active');
$("#selections a").show();
return false;
        });
        
        
        


// Set the user's selection for the Header State

        var whichIssueFormat = $.cookie('whichIssueFormat');
    if (whichIssueFormat == 'covers') {
$("#issuesnav a").removeClass('active');
$('#issuesnav a[href="#issuescovers"]').addClass('active');
$("#issuesfull").hide(); 
$("#issuescovers").show();


 
 };
 

$("#issuesnav a").click(function(){

$("#issuesnav a").removeClass('active');
$(this).addClass('active');

 (linkString = $(this).attr('href'));
$("#issuesfull").hide(); $("#issuescovers").hide();
$(linkString).show();
    $.cookie('whichIssueFormat', $(this).attr('rel'), { expires: 777, path: '/', domain: 'enjoyminutiae.com', secure: false });

return false;
});

     
        
        
        

  
 });