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

	$('#menu-primary li:first-child').addClass('first-child');
	
/*
	$('<div class="cycnav"><span><a id="prev" href="#">prev</a><a id="next" href="#">next</a></span></div>').prependTo('#story-single div.introduction');

	$('#story-single div.story').cycle({
	    fx:     'fade',
	    speed:  'fast',
	    timeout: 0,
	    next:   '#next, .story, .images',
	    prev:   '#prev'
	});
*/
	
    $('a.popup').click(function(){
        window.open(
        	this.href, 
			'Popup',
			'width=980, height=720, scrollbars=1'
		);
        return false;
    });
	
    $('a.share-on-tumblr').click(function(){
        window.open(
        	this.href, 
			'Popup',
			'width=550, height=450, scrollbars=1'
		);
        return false;
    });
    
    $('#unsub-form').hide();
	
    $('#toggle-unform').click(function(){
    	$('#unsub-form').toggle();
    });
	

	$('#cartoonquickjump').submit( function() {              
		goUrl = '/daily-cartoons/' + $('#keyword').val().toLowerCase() + '/';
		window.location = goUrl;
		return false;  // Prevent the default form behaviour
	});

/*
	$('#archivebuylinks').hide();
	
    $('#archivebuytitle').mouseover(function(){
    	$('#archivebuylinks').show();
    });
*/

});



