// JavaScript Document

$(document).ready(function (){

	//Set height for all shadows

	

	var toWidth = $('.box').innerWidth();

	$('.shadow-right, .shadow-left').each(function(index){

		var toHeight = $(this).siblings('.box').eq(0).innerHeight() + 2;

		$(this).css('height', toHeight+'px');

	});

	$('.shadow-bottom, .shadow-top').each(function(index){

		var toWidth = $(this).siblings('.box').eq(0).innerWidth() + 4;

		$(this).css('width', toWidth+'px');

	});

	//Highlight current page
	if($currentPage != 'null'){

		$('#menu > ul > li').eq($currentPage).children().eq(0).addClass('active');
	}

	

	//Set height for separator

	$('.box > .separator').each(function(index){

		var toHeight = $(this).siblings('.left').eq(0).innerHeight();

		$(this).css('height',toHeight);

	});

})
