// JavaScript Document

if (top != self)
{
alert('This page is being loaded by a iFrame. The page will be reloaded now.');
top.location=self.location;
}


//Nav
$(document).ready(function(){
	//Toggle Form Wrapper when the Fan Button is pressed
	$("#zammfanbtn").click(function () {
      $("#form_wrapper").slideToggle("slow");
	});
});



//Upcoming Releases scroller on the homepage
$(document).ready(function(){
	//set scroller
	$("#movie_poster_wrapper").scrollable({items:'.movie_poster_scroller',horizontal:true});
	
	//make homepage 3 columns equal height
	//find the height for each column
	var leftColHeight = $("#home #row2 .left").height();
	var centerColHeight = $("#home #row2 .center").height();
	var rightColHeight = $("#home #row2 .right").height();
	
	//alert('the left col is '+leftColHeight+', the center is '+centerColHeight+', and the right is '+rightColHeight);
	
	//usually, the center column is the tallest.
	//set the tallestCol to the center col as a default
	var tallestCol = rightColHeight;
	
	//check to see if one of the other columns is taller, if so, reset the tallestCol variable
	if (leftColHeight > tallestCol) {
		tallestCol = leftColHeight;
	} else if (centerColHeight > tallestCol) {
		tallestCol = rightColHeight;
	}

	
	
	
	
	//alert ('the tallest column is '+tallestCol);
	
	//apply the tallestCol size to all three columns
	$("#home #row2 .left div.border").height(tallestCol);
	$("#home #row2 .center div.border").height(tallestCol);
	$("#home #row2 .right div.border").height(tallestCol);
});