$(document).ready(function(){
	// Colorbox
	$(".activity").colorbox({width:"700px", height:"400px", iframe:true});
	$(".requirements").colorbox({width:"800px", height:"600px", iframe:true});
	
	// Hover Presentation
	$(".presentation").hover(
      function () {
        $(this).stop().animate({backgroundColor:'#FFCB42'}, 300);
      }, 
      function () {
        $(this).stop().animate({backgroundColor:'#FFD86F'}, 300);
      }
    );
	
	// Click Presentation
	$(".presentation").click(
		function(){
			var id = $(this).attr("id").substring(4);
			LaunchSlideshow(id);
		}
	);
	
	// Show Bio
	$(".biolink").click(
		function(){
			var id = $(this).attr("id").substring(2);
			$('#' + id).toggle();
		}
	);
});
// Launch eSym
function LaunchSlideshow(x){
	var esymwidth = 980;
	var esymheight = 610;
	var winl = (screen.width-esymwidth)/2; 
	var wint = (screen.height-esymheight)/2; 
	window.open('player.html?pres='+x,'Slideshow_Window','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width=' + esymwidth + ',height=' + esymheight + ' top='+wint+',left='+winl+'')
}
// Refer A Colleague
function refer(x){
	var esymwidth = 800;
	var esymheight = 600;
	var winl = (screen.width-esymwidth)/2; 
	var wint = (screen.height-esymheight)/2; 
	window.open(x,'Refer_Window','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width=' + esymwidth + ',height=' + esymheight + ' top='+wint+',left='+winl+'')
}

