//Cufon.replace('#footer a', {hover: true});
function blankLinks() {
 if (!document.getElementsByTagName) return;
 var bLinks = document.getElementsByTagName("a");
 for (var i=0; i<bLinks.length; i++) {
   var bLink = bLinks[i];
   if (bLink.getAttribute("href") &&
       bLink.getAttribute("rel") == "blank")
     bLink.target = "_blank";
 }
}
window.onload = blankLinks;

$(document).ready(function(){
	/*$("#carousel").carouFredSel({
		auto: false,
		prev: "a.prev",
		next: "a.next",
		items : {
			visible         : 3,
		},
		scroll : {
			items           : 1,
			duration        : 1000,
			pauseDuration   : 2000,
			onBefore        : function(oldItems, newItems, newSizes, duration) {
				$("#carousel").parent().parent().animate({ paddingLeft: (1100 - newSizes.width) / 2 }, duration);
			}
		}
	}).parent().parent().css({
		paddingLeft: (1100 - $("#carousel").parent().outerWidth()) / 2
	});*/
	
	$("#carousel").carouFredSel({
	    width: 1100,
	    height: 600,
	    padding: [0, 0, 0, 0],
	    items: {
	        visible: "variable",
	        width: "variable",
	        height: 600
	    },
	    scroll: {
	        items: 1,
	        duration: 1000
	    },
	    auto: false,
	    prev: "a.prev",
	    next: "a.next"
	});	
	

	$('.menu li').hover(
		function () {
			$('a:first', this).addClass('active');
			$('div', this).slideDown(100);
		},
		function () {
			$('a:first', this).removeClass('active');
			$('div', this).slideUp(100);        
		}
	);
	$('a.next', this).css('display','none');
	$('a.prev', this).css('display','none');
	$('.photos').hover(
		function () {
			$('a.next', this).css('display','block');
			$('a.prev', this).css('display','block');
		},
		function () {
			$('a.next', this).css('display','none');
			$('a.prev', this).css('display','none');
		}
	);
});

