Cufon.replace('h1');
Cufon.replace('h2');
Cufon.replace('h3');
Cufon.replace('marquee');
Cufon.replace('nav ul li a', { hover: true });

Cufon.now();

$(document).ready(function(){

	// Image Rollover's
	// class="rollover"
	// over state image needs prefix over-
	$('.rollover').hover(function(){
		$(this).attr('src',$(this).attr('src').replace('.','-over.'));
	},function(){
		$(this).attr('src',$(this).attr('src').replace('-over',''));
	});

	// Put footer bar to background bottom
	$('.foot').css('top',($('body').height()-$('#footer-holder').height()-5)+'px');
	//console.log($('.foot').css('top'),$('body').height());
	$('.foot').css('height',$('#footer-holder').css('height'));
	//console.log($('.foot').css('height'),$('#footer-holder').css('height'));

	// Align heights of Content holders.

	//content.php
	if($('#content-nav')){
		if ($('#content-nav').height() > $('#content-holder').height()){
			$('#content-holder').height($('#content-nav').height());
		}else{
			$('#content-nav').height($('#content-holder').height());
		}	
	}

	$('#slideshow').cycle({ 
		fx:     'scrollHorz', 
		prev:   '#prev', 
		next:   '#next', 
		pause: 1,
		timeout: 6000
	});

	$('#content-slide').cycle({ 
		fx:     'scrollHorz', 
		prev:   '#prev', 
		next:   '#next', 
		pause: 1,
		timeout: 6000
	});

	$(".iframe-small").fancybox({
		'width'				: 560,
		'height'			: 400,
		'transitionIn'		: 'fade',
		'transitionOut'		: 'fade',
		'scrolling'         : 'yes',
		'type'				: 'iframe'
	});

	$(".iframe").fancybox({
		'width'				: 760,
		'height'			: 600,
		'transitionIn'		: 'fade',
		'transitionOut'		: 'fade',
		'scrolling'         : 'yes',
		'type'				: 'iframe',
		'onClosed': function() {
			parent.location.reload();
		}
	});

	$(".add-basket").hover(function(){
		$(this).attr('href','/cart/add-to-cart.php?'+$('#productform').serialize());
	});

	$("#showlist").click(function(){$('#shopbaglist').fadeIn();});
	$("#close").click(function(){$("#shopbaglist").fadeOut();});

});








