/* Author: Joshua Hester

*/

function egWin(url)
{
	newWindow = window.open(url,"NYC","top=100,left=10,width=720,height=425,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no");
	newWindow.location.href = url;
	newWindow.focus("NYC")
}


function cornellWin(url)
{
	newWindow = window.open(url,"NYC","top=100,left=10,width=800,height=540,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no");
	newWindow.location.href = url;
	newWindow.focus("NYC")
}


/* Shadowbox function */
function shadowBoxVid() {      

	// Don't setup Shadowbox if the page doesn't use it
	if ($("a.gallery").length > 0) {
		// Setup Shadowbox for popup videos
		Shadowbox.init({
			skipSetup: true,
			players: ["iframe"] //iframe player used for ajax calls, see lib docs for more options
		});

		//give each link a class of "gallery" to activate modal
		Shadowbox.setup("a.gallery", {
			height: 560,
			width: 740
		});	
	}
}

/* Shadowbox function */
function shadowBoxVid2() {      

	// Don't setup Shadowbox if the page doesn't use it
	if ($("a.gallery2").length > 0) {
		// Setup Shadowbox for popup videos
		Shadowbox.init({
			skipSetup: true,
			players: ["iframe"] //iframe player used for ajax calls, see lib docs for more options
		});

		//give each link a class of "gallery" to activate modal
		Shadowbox.setup("a.gallery2", {
			height: 430,
			width: 740
		});	
	}
}

    
 
/**
* JQuery Document Ready function 
* Calls all functions in order to run on JQuery Document Ready
*/
$(document).ready(function(){  
	
	shadowBoxVid();
	shadowBoxVid2();
	
});                                






















