// JavaScript Document
$(document).ready(function(){	
						   
	var length = $("#ad_rot li").length;
	var length2 = $("#ad_rot2 li").length;

	var ran = Math.floor(Math.random()*length) + 1;
	var ran2 = Math.floor(Math.random()*length) + 1;
	
	$("#ad_rot li:nth-child(" + ran + ")").show();
	$("#ad_rot2 li:nth-child(" + ran2 + ")").show();

	function adRotate(){
		var oCurPhoto = $("#ad_rot2 div.current");
		var oNxtPhoto = oCurPhoto.next();
		if (oNxtPhoto.length == 0)
			oNxtPhoto = $("#ad_rot2 div:first");
		oCurPhoto.removeClass('current').addClass('previous');
		oNxtPhoto.css({opacity:0.0}).addClass('current').animate({opacity: 1.0}, 1000,
		   function() {
			  oCurPhoto.removeClass('previous'); 
		   });
	};									   

});


$(document).ready(function() {
	$("#her_click").click(function (){
		$("#nav_heritage").slideToggle();								
	});
	

});


$(document).ready(function()
{
	$("#showcase").awShowcase(
	{
		content_width:  500,
		content_height: 300,
		auto: true,
		continuous:	true,
		transition_speed: 400,
		transition_delay: 200,
		pauseonover: false,
		stoponclick: false,
		interval: 4000,
		loading: true,
		arrows: false
	});
});

$(document).ready(function()
{
	$("#logo_drop").animate({
		top: 0
		}, 1000, function (){
		});

});


