// JavaScript Document

		function screenSize() {
      var h;
      h = (window.innerHeight ? window.innerHeight : (document.documentElement.clientHeight ? document.documentElement.clientHeight : document.body.offsetHeight));
      return h;
}
		var colorboxHeight = screenSize() - 40;

		$(document).ready(function(){
			//Examples of how to assign the ColorBox event to elements
			$("a[rel='popup']").colorbox({height:colorboxHeight});
			$("a[id='popup_auto_open']").colorbox({height:colorboxHeight, open:true});
			$("a[rel='popup_one']").colorbox({height:colorboxHeight, rel:'nofollow'});
			$("a[rel='gallery']").colorbox({height:colorboxHeight, slideshow:true});
			$(".popUpWindow").colorbox({width:"50%", inline:true, href:"#popUpWindow_content"});
			$(".popup_page").colorbox();
			$(".popup_youtube").colorbox({iframe:true, innerWidth:700, innerHeight:445});
			$(".iframe").colorbox({iframe:true, width:"90%", height:"90%"});
			$(".iframe_fixed").colorbox({iframe:true, width:"900", height:"90%"});
			$(".iframe_fixed_grouped").colorbox({iframe:true, width:"900", height:"90%", current: "{current}/{total}"});
			$(".ajax").colorbox();
			
			//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;
			//});
		});
