// JavaScript Document
$(document).ready(function(){
				//Examples of how to assign the ColorBox event to elements
				$("a[rel='example1']").colorbox({iframe:true, transition:"fade", innerWidth:690, innerHeight:490});
				$("a[rel='example2']").colorbox({transition:"fade"});
				$("a[rel='example3']").colorbox({transition:"none", width:"75%", height:"75%"});
				$("a[rel='example4']").colorbox({slideshow:true});
				$("a[rel='leermas']").colorbox({iframe:true, rel:'group1', innerWidth:776, innerHeight:526});
				$("a[rel='leermas2']").colorbox({iframe:true, rel:'group2', innerWidth:776, innerHeight:526});
				
				
				$("a[rel='fichaa']").colorbox({iframe:true, innerWidth:941, innerHeight:596});
				$("a[rel='casting_descarga']").colorbox({iframe:true, transition:"fade", innerWidth:530, innerHeight:400});
				
				$("a[rel='room0']").colorbox();
				$("a[rel='room1']").colorbox();
				$("a[rel='room2']").colorbox();
				$("a[rel='room3']").colorbox();
				$("a[rel='room4']").colorbox();
				$("a[rel='room5']").colorbox();
				$("a[rel='room6']").colorbox();
				$("a[rel='room7']").colorbox();
				$("a[rel='room8']").colorbox();
				$("a[rel='room9']").colorbox();
				$("a[rel='spa0']").colorbox();
				$("a[rel='spa1']").colorbox();
				$("a[rel='spa2']").colorbox();
				$("a[rel='spa3']").colorbox();
				$("a[rel='spa4']").colorbox();
				$("a[rel='spa5']").colorbox();
				$("a[rel='spa6']").colorbox();
				$("a[rel='spa7']").colorbox();
				$("a[rel='spa8']").colorbox();
				$("a[rel='spa9']").colorbox();
				$(".iframe").colorbox({iframe:true, width:"90%", height:"80%"});
				$(".room").colorbox({slideshow:true});
				$(".example5").colorbox();
				$("a[rel='emas']").colorbox({iframe:true, transition:"fade", innerWidth:201, innerHeight:350});
				$(".leer").colorbox({iframe:true, transition:"fade", innerWidth:760, innerHeight:550});
				$(".menu_lanz").colorbox({iframe:true, innerWidth:760, innerHeight:550});
				$(".artistas").colorbox({iframe:true, innerWidth:830, innerHeight:550});
				
				$(".visor_shoontigs09").colorbox({iframe:true, innerWidth:980, innerHeight:590});
				$(".visor_shoontigs10").colorbox({iframe:true, innerWidth:980, innerHeight:630});
				
				$(".example7").colorbox({width:"80%", height:"80%", iframe:true});
				$(".example8").colorbox({width:"50%", inline:true, href:"#inline_example1"});
				$(".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'); }
				});
				$(".example15").colorbox({iframe:true, innerWidth:690, innerHeight:550});
				
				//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;
				});
				
				
			});
