		
/* Set up the preview layer to use with pretty photo -------------------------- */

$(document).ready(function()
{
	$('.lightbox-image').hover
	(
		function(){ $(this).find("a.lightbox-link").css('display', 'block');},
		function(){ $(this).find("a.lightbox-link").css('display', 'none');}
	);
});


/* Adjust the proper width for drop down menu options ------------------------- */

$(document).ready(function()
{
	$("#NavBar li").each
	(
		function()
		{
			if($(this).parent().attr("class") != 'Menu')
			{
				width	= $(this).width();
				
				$(this).css('width', width);
				$(this).children("ul.Menu").css('width', '150px');
				$(this).children("ul.Menu").children("li").css('width', '150px').css('height', 'auto');
				$(this).children("ul.Menu").children("li.Menu_Arrow").css('height', '11px');
			}
			
		}
	);
});


/* Enable the drop down menu -------------------------------------------------- */

$(document).ready(function()
{
	$("#NavBar li a").hover
	(
		function()
		{ 
			if($(this).parent().children("ul.Menu").length!=0)
			{
			
				if ($.browser.msie && $.browser.version.substr(0,1) == 6)
				{
					
				}else
				{
 					$(this).parent().css('background', 'url("css/img/menu-arrow.png") no-repeat 50px 52px');
				}
				
				$(this).parent().find("ul.Menu").find("span").css('display', 'inline');
				$(this).parent().find("ul.Menu").slideDown('fast').show();
				$(this).parent().hover(function(){
				}, function()
				{
					$(this).parent().find("ul.Menu").slideUp('fast');
					$(this).css('background', '');
				});
			}
		}
	)
});


/* Enable PrettyPhoto --------------------------------------------------------- */

$(document).ready(function()
{
	$("a[rel^='prettyPhoto']").prettyPhoto({social_tools: false});
});
