top.document.title					= "Dirty Dancing America - Official Site - Look and Listen";
$(document).ready(function() {
	baseY	= $("#banner_media").height() + $("#content_top").height() + $("#content_bottom").height() + $("#ticker").height() + $("#footer").height() + 100;
	videoY	= baseY + $("#media_video").height();
	photoY	= baseY + $("#media_photos").height();
	musicY	= baseY + $("#media_music").height()-100;
	$('#btn_video').addClass('active');
	$("#iframe", top.document).css({ height: videoY });
	$('#content').css({height: $('#media_video').height() });
	
	
	/*
	swfobject.registerObject("photo_gallery", "9.0.0", "flash/dd_photogallery.swf");
	swfobject.registerObject("video_player", "9.0.0", "flash/dd_videoplayer.swf", params);
	var params = { wmode: "transparent" };
	*/
	
	$('#btn_video a').click(function(event) {
		$('#slider').animate({ left: 0 }, 500);
		$('#content').animate({ height: $('#media_video').height() }, 500);
		$("#iframe", top.document).animate({ height: videoY }, 500);
		$('#btn_video').addClass('active');
		$('#btn_photos, #btn_music').removeClass('active');
		event.preventDefault();
	});
	$('#btn_photos a').click(function(event) {
		$('#slider').animate({ left: -834 }, 500);
		$('#content').animate({ height: $('#media_photos').height() }, 500);
		$("#iframe", top.document).animate({ height: photoY }, 500);
		$('#btn_photos').addClass('active');
		$('#btn_video, #btn_music').removeClass('active');
		event.preventDefault();
	});
	$('#btn_music a').click(function(event) {
		$('#slider').animate({ left: -1668}, 500 );
		$('#content').animate({ height: $('#media_music').height() }, 500);
		$("#iframe", top.document).animate({ height: musicY }, 500);
		$('#btn_music').addClass('active');
		$('#btn_video, #btn_photos').removeClass('active');
		event.preventDefault();
	});
});