$(document).ready(function(){
				//Examples of how to assign the ColorBox event to elements
				$("a[rel='example1']").colorbox();
				$("a[rel='example2']").colorbox({transition:"fade"});
				$("a[rel='example3']").colorbox({transition:"none", width:"75%", height:"75%"});
				$("a[rel='example4']").colorbox({slideshow:true});
				$(".example5").colorbox();
				$(".example6").colorbox({iframe:true, opacity:0.3, innerWidth:500, innerHeight:405});
				$(".example6a").colorbox({iframe:true, opacity:0.3, innerWidth:824, innerHeight:384});
				$(".example7").colorbox({width:"80%", height:"80%", iframe:true});
				$(".example8").colorbox({inline:true, href:"#prev1", opacity:0.3, scrolling:false});
				$(".example9").colorbox({
					onOpen:function(){ alert('onOpen: colorbox is about to open'); },
					onLoad:function(){ alert('onLoad: colorbox has started to load the targeted content'); },
					onComplete:function(){ alert('onComplete: colorbox has displayed the loaded content'); },
					onCleanup:function(){ alert('onCleanup: colorbox has begun the close process'); },
					onClosed:function(){ alert('onClosed: colorbox has completely closed'); }
				});
				$(".show1").colorbox({innerWidth:860, innerHeight:400, opacity:0.5, iframe:true, scrolling:false });
				$("a[rel='partybags']").colorbox({iframe:true, opacity:0.3, innerWidth:860, innerHeight:440, scrolling:false, slideshow:true, slideshowSpeed:5000, slideshowAuto:false, current:"Item {current} of {total}", close:""});
				$(".balloons").colorbox({iframe:true, opacity:0.3, innerWidth:860, innerHeight:420, scrolling:false});
				$(".cpops").colorbox({iframe:true, opacity:0.3, innerWidth:860, innerHeight:420, scrolling:false});			
				$(".cbunting").colorbox({iframe:true, opacity:0.3, innerWidth:860, innerHeight:420, scrolling:false});
				$("a[rel='showgroup']").colorbox({innerWidth:860, innerHeight:420, opacity:0.3, iframe:true, scrolling:false, previous:"<< Previous", next:"Next >>", current:"Show {current} of {total}"});
				$("a[rel='showgroup2']").colorbox({innerWidth:860, innerHeight:420, opacity:0.3, iframe:true, scrolling:false, previous:"<< Previous", next:"Next >>", current:"Show {current} of {total}"});
				$("a[rel='showgroup3']").colorbox({innerWidth:860, innerHeight:420, opacity:0.3, iframe:true, scrolling:false, previous:"<< Previous", next:"Next >>", current:"Show {current} of {total}"});
				$("a[rel='showgroup4']").colorbox({innerWidth:860, innerHeight:420, opacity:0.3, iframe:true, scrolling:false, previous:"<< Previous", next:"Next >>", current:"Show {current} of {total}"});
				
				$(".tvlist").colorbox({inline:true, href:"#tv1", opacity:0.3, scrolling:false});
				$("a[rel='slideshow1']").colorbox({slideshow:true, opacity:0.5, transition:"fade", slideshowSpeed:5000, close:""});
				$(".form1").colorbox({iframe:true, opacity:0.5, innerWidth:840, innerHeight:460});

				//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.");
					return false;
				});
			});
