// ColorBox v1.3.18 - a full featured, light-weight, customizable lightbox based on jQuery 1.3+
// Copyright (c) 2011 Jack Moore - jack@colorpowered.com
// Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php

$(document).ready(function(){
 

			//Examples of how to assign the ColorBox event to elements
			$(".group1").colorbox({rel:'group1'});
			$(".group2").colorbox({rel:'group2', transition:"fade"});
			$(".group3").colorbox({rel:'group3', transition:"none", width:"75%", height:"75%"});
			$(".group4").colorbox({rel:'group4', slideshow: false});
			$(".ajax").colorbox();
			$(".ajax2").colorbox();
			$(".ajax3").colorbox();
			$(".upper").colorbox({overlayClose:false,returnFocus:true,
			data: function() {
        return $.colorbox.init();  }

			
			
			});
			$(".youtube").colorbox({iframe:true, innerWidth:425, innerHeight:344});
			$(".iframe").colorbox({iframe:true, width:"675px", height:"675px"});
			$("#test").colorbox({inline:true, width:"50%"});
			$(".inline").colorbox({inline:true, width:"675px"});
			$(".form1").colorbox({href:"activity_session_signup.asp?sessionID=<%=session_rs('sessionID')%>"});
			$(".callbacks").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'); }
			});
			
			$(".callupper").colorbox({overlayClose:false,returnFocus:true,
				onOpen:function(){$.colorbox.next(); },
				//onLoad:function(){$.colorbox({href:"http://www.google.com"}); },
				//onComplete:function(){ alert('onComplete: colorbox has displayed the loaded content'); },
				onCleanup:function() {$.ajaxSetup ({cache: false}); },
				onClosed:function(){
					//document.getElementById("signupbut").removeAttribute("href");
					//return document.getElementById("signupbut").style.display = "none";	
					//javascript:location.reload(true)
					//document.getElementById('body').className = "dnone";
					//return $.colorbox.init(); 
					//$.colorbox({href:"#"});
					javascript:location.reload(true)
					


				
				}
			});

			
			
			//Example of preserving a JavaScript event for inline calls.
			$("#click").click(function(){ 
				$('#click').css({"background-color":"#f00", "color":"#fff", "cursor":"inherit"}).text("Please check fields in red.");
				return false;
			});
			
			//Example of preserving a JavaScript event for inline calls.
			$("#upperm").click(function(){ 
				$('#upperm');
				return false;
			});

		});

