Shadowbox.init({
	language: 'en',
	players: ['img', 'html', 'iframe', 'qt', 'wmp', 'swf', 'flv'],
	flvPlayer:'js/shadowbox-3.0rc1/libraries/mediaplayer/player.swf',
	overlayOpacity: '0.9'
	});

$(document).ready(function() {//js that's not executed until the page loads
	
	// set up all image map area elements with a "teambio" class to work with Shadowbox
	Shadowbox.setup("area.teambio", {
	});

	varlimit = 15; 										//max iae videos
	varloop = 0; 											//loop through all videos
	$('a.iamevolv').each(function(){	//for each link with the class 'iamevolv'
  	varloop = varloop+1;						//increment loop
		if (varloop <= varlimit) {			//if the max hasn't been reached
    	Shadowbox.setup($(this), {		//add the video to the shadowbox gallery
      	width: 648,									//width
				height: 480,								//height
        player: 'flv',							//file type
        gallery: 'IAE',							//name of gallery
        autoplayMovies: true				//start playing immediately
    	});//end shadowbox setup
		}//end if
	});//end for each link with the class 'iamevolv'

/*
	pvarlimit = 6; 										//max product videos
	pvarloop = 0; 										//loop through all videos
	$('a.prdtst').each(function(){		//for each link with the class 'prdtst'
  	pvarloop = pvarloop+1;					//increment loop
		if (pvarloop <= pvarlimit) {		//if the max hasn't been reached
    	Shadowbox.setup($(this), {		//add the video to the shadowbox gallery
      	width: 648,									//width
				height: 480,								//height
        player: 'flv',							//file type
        gallery: 'PRV',							//name of gallery
        autoplayMovies: true				//start playing immediately
    	});//end shadowbox setup
		}//end if
	});//end for each link with the class 'prdtst'
*/

});//end document ready function

function openShadowbox(content, player, title, height, width, gallery){
	Shadowbox.open({
		content: content,
		player: player,
		title: title,
		height: height,
		width: width,
		gallery: gallery //Setting a gallery name doesn't work yet
	});
}
