// JavaScript Document
$(document).ready(function(){
				//To switch directions up/down and left/right just place a "-" in front of the top/left attribute

				//Caption Sliding (Partially Hidden to Visible)
				$('.boxgrid.caption').hover(function(){
					$(".cover", this).stop().animate({top:'135px'},{queue:false,duration:160}); //Controls how tall the caption is.
				}, function() {
					$(".cover", this).stop().animate({top:'170px'},{queue:false,duration:160}); //Controls how much should be shown by default. Change in css also to the same.
				});
				
				
				//For FancyBox
				$("a#thumbs").fancybox({
				'titlePosition'	: 'over'
			});
				
				
		});			

function popup(url) 
{
 var width  = 500;
 var height = 400;
 var left   = (screen.width  - width)/2;
 var top    = (screen.height - height)/2;
 var params = 'width='+width+', height='+height;
 params += ', top='+top+', left='+left;
 params += ', directories=no';
 params += ', location=no';
 params += ', menubar=no';
 params += ', resizable=no';
 params += ', scrollbars=no';
 params += ', status=no';
 params += ', toolbar=no';
 newwin=window.open(url,'windowname5', params);
 if (window.focus) {newwin.focus()}
 return false;
}
