$(document).ready(function(){

/* Scrolling Archive */
    $("#archive-scroll0").jCarouselLite({
        btnNext: ".next",
        btnPrev: ".prev"
    });
    
    
/* Tooltips */	
	  
	$("#archive-thumbnails img[title], #archive-scroll img[title], #footer-social-links a[title]").tooltip({
		tip: '#demotip',
		predelay: "1000", 
		position: "top center", 
		effect: "fade",
		lazy: "true", 
		opacity: "1"
	});


//Examples of how to assign the ColorBox event to elements

	$().colorbox();
	$(".comic-page").colorbox({iframe:true, innerWidth:669, innerHeight:1040, current:"", transition:"fade"});
	$(".merch-product").colorbox({iframe:true, innerWidth:780, innerHeight:760, current:"", transition:"fade"});
	$(".legal").colorbox({iframe:true, innerWidth:700, innerHeight:500, current:""});
	$(".subscribe").colorbox({iframe:true, innerWidth:700, innerHeight:300, current:""});

	
     $("a.close ").click(function() {
                parent.$.fn.colorbox.close();
                return false;
        }) 

	
//Example of preserving a JavaScript event for inline calls.
	$("#click").click(function(){ 
		$('#click').css({"background-color":"#000", "color":"#fff", "cursor":"inherit"}).text("Open this window again and this message will still be here.");
		return false;
	});
	
  

});


