﻿$(document).ready(function(){
			$("a[rel='ex1']").colorbox();
			$("a[rel='ex2']").colorbox({transition:"fade"});
			$("a[rel='ex3']").colorbox({transition:"none", width:"75%", height:"75%"});
			$("a[rel='ex4']").colorbox({slideshow:true});
			$(".ex5").colorbox();
			$(".ex6").colorbox({iframe:true, innerWidth:425, innerHeight:344});
			$(".imp").colorbox({width:"370", height:"200", transition:"fade", inline:"true", href:"#imp1"});
			$(".pod").colorbox({width:"560", height:"400", transition:"fade", inline:"true", href:"#pod1"});
			$(".ste").colorbox({width:"620", height:"270", transition:"fade", inline:"true", href:"#ste1"});
			$(".ram").colorbox({width:"370", height:"150", transition:"fade", inline:"true", href:"#ram1"});
			$(".stvor").colorbox({width:"370", height:"160", transition:"fade", inline:"true", href:"#stvor1"});
			$(".v-ot").colorbox({width:"600", height:"300", transition:"fade", inline:"true", href:"#v-ot1"});
			$(".fur").colorbox({width:"600", height:"600", transition:"fade", inline:"true", href:"#fur1"});
			$(".mset").colorbox({width:"620", height:"300", transition:"fade", inline:"true", href:"#mset1"});
			$(".ex8").colorbox({width:"621", height:"340", transition:"fade", inline:"true", href:"#inline_ex1"});
			$(".ex9").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'); }
			});
			
			//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;
			});
		});
