$(document).ready(function() {
	
	Shadowbox.init({
		animSequence:	"sync",
		resizeDuration:	"0.4",
		players: ['html','iframe', 'img', 'flv'],
		troubleElements: ['object', 'embed']
	});	
	
	$(".flvLink").each(function(i){
		var href = $(this).attr("href");
		var title = $(this).attr("title")
		$(this).click(function(){
			Shadowbox.open({
				content:    href,
				player:     'flv',
				title:      title,
				height:     360,
				width:      480,
				options: {
					flashVars:	{ lightcolor: '#A90023' }
				}
			});
			return false;
		});
	});
	
	$(".mp3Link").each(function(i){
		var href = $(this).attr("href");
		var title = $(this).attr("title")
		$(this).click(function(){
			Shadowbox.open({
				content:    href,
				player:     'flv',
				title:      title,
				height:     '0',
				width:      400,
				options: {
					flashVars:	{ lightcolor: '#A90023' }
				}
			});
			return false;
		});
	});
	
	$(".review").hide();

	$(".reviewLink").each(function(i){
		var html = $(".review").eq(i).html();
		var title = $(".reviewLink").eq(i).attr("title");
		$(this).click(function(){
			Shadowbox.open({
				content:    html,
				player:     "html",
				title:      title,
				height:     400,
				width:      400
			});
			return false;
		});
	});
	
});

