$(document).ready(function(){
	//Examples of how to assign the ColorBox event to elements.
	
	$(".slideshow").colorbox({slideshow:true});
		$("#inline").colorbox({width:"50%", inline:true, href:"#inline_example1", title:"hello"});
		
	//Example of cookie in jquery within the lightbox plugin
	if($.cookie("gingersnap") != "true"){
	
		if($.cookie("sugar") != "true"){	
			
			$("a#single_image").colorbox({								
			});
			
			// This is what launches the box
			// This gets run on load because of $(document).ready(function() {       
			// Looks for the a tag with the single_image id on it and runs the click function  
			// Cookie Time
			$("a#single_image").click();
			$.cookie("sugar", "true", { expires: 1 });
		}else{	
			
			$("a#second_image").colorbox({								
			});
			
			// This is what launches the box
			// This gets run on load because of $(document).ready(function() {       
			// Looks for the a tag with the single_image id on it and runs the click function  
			// Cookie Time
			$("a#second_image").click();
			$.cookie("gingersnap", "true", { expires: 7 });
		}
	}
});
