$(document).ready(function() {
// Homepage images jquery scroller
	$('.imageHomepage .description').css("opacity", 0);
	$('.imageHomepage .description').animate({height: "0px"},10)
	$('.imageHomepage').bind("mouseenter", (function()
	{
		$(this).children('.description').animate({height: "22px", opacity: 1},300);
	}));
	$('.imageHomepage').bind("mouseleave", (function()
	{
		$(this).children('.description').animate({height: "0px", opacity: 0},200);
	}));

// Overview images jquery scroller
	$('.imageOverview .description').css("opacity", 0);
	$('.imageOverview .description').animate({height: "0px"},10)
	$('.imageOverview').bind("mouseenter", (function()
	{
		$(this).children('.description').animate({height: "22px", opacity: 1},300);
	}));
	$('.imageOverview').bind("mouseleave", (function()
	{
		$(this).children('.description').animate({height: "0px", opacity: 0},200);
	}));

// Overview images jquery scroller
	$('.imageFull .description').css("opacity", 0);
	$('.imageFull .description').animate({height: "0px"},10)
	$('.imageFull').bind("mouseenter", (function()
	{
		$(this).children('.description').animate({height: "22px", opacity: 1},300);
	}));
	$('.imageFull').bind("mouseleave", (function()
	{
		$(this).children('.description').animate({height: "0px", opacity: 0},200);
	}));

//Thumb Detail Viewer
$("ul.thumbs li a").hover(function() {
	$(this).find('img').addClass("hover");
	var mainImage = $(this).attr("href"); //Find Image Name
	$("#detail img").attr({ src: mainImage });
	}, function() {
	$(this).find('img').removeClass("hover");
});

//Swap Image on Click
$("ul.thumbs li a").click(function() {
/*
	var mainImage = $(this).attr("href"); //Find Image Name
	$("#detail img").attr({ src: mainImage });
*/	
	return false;		
});
 










// Cufon After Pageload
	Cufon.replace('h1,h2,h3,h4,h5');
	Cufon.replace('#topNavi ul li a, #breadcrumb ul li, #navi ul li a',{ hover:true });
});

// Cufon extra for IE 
Cufon.replace('h1,h2,h3,h4,h5');
Cufon.replace('#topNavi ul li a, #breadcrumb ul li, #navi ul li a',{ hover:true });

