/*AJax Add to cart */
(function($){$.extend({add2cart:function(source_id,target_id,callback){var source=$('#'+source_id);var target=$('#'+target_id);var shadow=$('#'+source_id+'_shadow');if(!shadow.attr('id')){$('body').prepend('<div id="'+source.attr('id')+'_shadow" style="display: none; background-color: #F3F3F3; border: solid 1px #DFDFDF; position: static; top: 0px; z-index: 100000;">&nbsp;</div>');var shadow=$('#'+source.attr('id')+'_shadow');}if(!shadow){alert('Cannot create the shadow div');}shadow.width(source.css('width')).height(source.css('height')).css('top',source.offset().top).css('left',source.offset().left).css('opacity',0.5).show();shadow.css('position','absolute');shadow.animate({width:target.innerWidth(),height:target.innerHeight(),top:target.offset().top,left:target.offset().left},{duration:300}).animate({opacity:0},{duration:100,complete:callback});}});})(jQuery);
/*toggle tabs */
var active="tabtrigger1";function initToggle(){$(".tabtrigger").click(function(){document.getElementById(active).parentNode.parentNode.id="";this.parentNode.parentNode.id="active";switch(active){case"tabtrigger1":$("#tab1").css({display:"none"});break
case"tabtrigger2":$("#tab2").css({display:"none"});break
case"tabtrigger3":$("#tab3").css({display:"none"});break
case"tabtrigger4":$("#tab4").css({display:"none"});break
default:}active=this.id;switch(active){case"tabtrigger1":$("#tab1").css({display:"block"});break
case"tabtrigger2":$("#tab2").css({display:"block"});break
case"tabtrigger3":$("#tab3").css({display:"block"});break
case"tabtrigger4":$("#tab4").css({display:"block"});break
default:}return false;});}$(document).ready(function(){$("#tab2").css({display:"none"});$("#tab3").css({display:"none"});$("#tab4").css({display:"none"});initToggle();});
/* slideshow */$(function() {$('#slideshow').cycle();});
/* product zoomer */$(document).ready(function() {$("a.fancyzoom").fancybox(
{   'zoomOpacity'			: true,
		'overlayShow'			: true,
		'zoomSpeedIn'			: 500,
		'zoomSpeedOut'			: 800,
		'easingIn'				: 'easeOutBack',
		'easingOut'				: 'easeInBack'
});
});
RecaptchaOptions = { theme : 'custom'}