//This hides the inline content if JavaScript is supported.
document.write("<style type='text/css'>.hidden{display:none;}<\/style>");

$(document).ready(function(){
	//Examples of Global Changes
	$.fn.colorbox.settings.bgOpacity = "0.9";

	//Examples of how to assign the ColorBox event to elements.
	$("a[rel='jack']").colorbox({transition:"fade"});
	$("a[rel='dogs']").colorbox({transition:"elastic", contentCurrent:"{current} / {total}"});
	$(".colorbox").colorbox({transition:"none", fixedWidth:"75%",fixedHeight:"75%", initialWidth:"75%", initialHeight:"75%"});
	$("a.single").colorbox({}, function(){
		alert('Howdy, this is an example callback.');
	});
	$("a[title='Homer Defined']").colorbox();
	$("#flash").colorbox({href:"flash.html"});
	$("a[href='http://google.com']").colorbox({fixedWidth:"80%", fixedHeight:550, iframe:true});
	$("#inline").colorbox({fixedWidth:"50%", inline:true, href:"#inline_example"});

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