/* maps online jquery effects */

 $(document).ready(function(){
    
    
    /* ------------------------------------------------------------------------
	Class: prettyPopin
	Use: Alternative to popups
	Author: Stephane Caron (http://www.no-margin-for-errors.com)/// 

	Version: 1.3
    ------------------------------------------------------------------------- */
    
    /*var _followScroll=false;var _readyBound=false;(function(A){A.fn.prettyPopin=function(B){B=jQuery.extend({modal:false,width:false,height:false,opacity:0.8,animationSpeed:"fast",followScroll:true,loader_path:"Images/prettyPopin/loader.gif",callback:function(){}},B);function D(){if(_readyBound){return }_readyBound=true;A(window).scroll(function(){C()});A(window).resize(function(){C()})}D();return this.each(function(){var M;var L;var H;A(this).click(function(){J();K();A.get(A(this).attr("href"),function(O){A(".prettyPopin .prettyContent .prettyContent-container").html(O);M=B.width||A(".prettyPopin .prettyContent .prettyContent-container").width()+parseFloat(A(".prettyPopin .prettyContent .prettyContent-container").css("padding-left"))+parseFloat(A(".prettyPopin .prettyContent .prettyContent-container").css("padding-right"));A(".prettyPopin").width(M);L=B.height||A(".prettyPopin .prettyContent .prettyContent-container").height()+parseFloat(A(".prettyPopin .prettyContent .prettyContent-container").css("padding-top"))+parseFloat(A(".prettyPopin .prettyContent .prettyContent-container").css("padding-bottom"));A(".prettyPopin").height(L);A(".prettyPopin").height(45).width(45);G()});return false});var G=function(){var O=E();projectedTop=(A(window).height()/2)+O.scrollTop-(L/2);if(projectedTop<0){projectedTop=10;_followScroll=false}else{_followScroll=B.followScroll}A(".prettyPopin").animate({top:projectedTop,left:(A(window).width()/2)+O.scrollLeft-(M/2),width:M,height:L},B.animationSpeed,function(){N()})};var K=function(){A("body").append('<div class="prettyPopin"><!--<a href="#" id="b_close" rel="close">Close</a>--><div class="prettyContent"><img src="'+B.loader_path+'" alt="Loading" class="loader" /><div class="prettyContent-container"></div></div></div>');H=A(".prettyPopin .prettyContent .prettyContent-container");A(".prettyPopin a[rel=close]:eq(0)").click(function(){I();return false});var O=E();A(".prettyPopin").width(45).height(45).css({top:(A(window).height()/2)+O.scrollTop,left:(A(window).width()/2)+O.scrollLeft}).hide().fadeIn(B.animationSpeed)};var J=function(){A("body").append('<div id="overlay"></div>');A("#overlay").css("height",A(document).height());A("#overlay").css("opacity",0).fadeTo(B.animationSpeed,B.opacity);if(!B.modal){A("#overlay").click(function(){I()})}};var N=function(){H.parent().find(".loader").hide();H.parent().parent().find("#b_close").show();H.fadeIn(function(){A(this).find("input[type=text]:first").trigger("focus");A(".prettyPopin a[rel=internal]").click(function(){$link=A(this);H.fadeOut(function(){H.parent().find(".loader").show();A.get($link.attr("href"),function(O){H.html(O);F(H)})});return false});A(".prettyPopin form").bind("submit",function(){$theForm=A(this);H.fadeOut(function(){H.parent().find(".loader").show();A.post($theForm.attr("action"),$theForm.serialize(),function(O){H.html(O);F(H)})});return false})});A(".prettyPopin a[rel=close]:gt(0)").click(function(){I();return false})};var F=function(){var O=E();if(!B.width){M=H.width()+parseFloat(H.css("padding-left"))+parseFloat(H.css("padding-right"))}if(!B.height){L=H.height()+parseFloat(H.css("padding-top"))+parseFloat(H.css("padding-bottom"))}projectedTop=(A(window).height()/2)+O.scrollTop-(L/2);if(projectedTop<0){projectedTop=10;_followScroll=false}else{_followScroll=B.followScroll}A(".prettyPopin").animate({top:projectedTop,left:(A(window).width()/2)+O.scrollLeft-(M/2),width:M,height:L},B.animationSpeed,function(){N()})};var I=function(){A("#overlay").fadeOut(B.animationSpeed,function(){A(this).remove()});A(".prettyPopin").fadeOut(B.animationSpeed,function(){A(this).remove();B.callback()})}});function C(){if(!_followScroll){return }if(!A(".prettyPopin")){return }var F=E();if(A.browser.opera){windowHeight=window.innerHeight;windowWidth=window.innerWidth}else{windowHeight=A(window).height();windowWidth=A(window).width()}projectedTop=(A(window).height()/2)+F.scrollTop-(A(".prettyPopin").height()/2);if(projectedTop<0){projectedTop=10;_followScroll=false}else{_followScroll=true}A(".prettyPopin").css({top:projectedTop,left:(A(window).width()/2)+F.scrollLeft-(A(".prettyPopin").width()/2)})}function E(){scrollTop=window.pageYOffset||document.documentElement.scrollTop||0;scrollLeft=window.pageXOffset||document.documentElement.scrollLeft||0;return{scrollTop:scrollTop,scrollLeft:scrollLeft}}}})(jQuery);
    
    $("a[rel^='prettyPopin']:eq(0)").prettyPopin({width: 550, followScroll:false, animationSpeed: 1});
	$("a[rel^='prettyPopin']:eq(1)").prettyPopin({width: 550, followScroll:false, animationSpeed: 1});
	
	
	$("a[rel^='prettyPopin']:eq(2)").prettyPopin({
				callback : function(){
					alert('This popin has a callback');
				}
			});*/
			
			
    /*var _followScroll=false;var _readyBound=false;(function(A){A.fn.prettyPopin=function(B){B=jQuery.extend({modal:false,width:false,height:false,opacity:0.8,animationSpeed:"fast",followScroll:true,loader_path:"Images/prettyPopin/loader.gif",callback:function(){}},B);function D(){if(_readyBound){return }_readyBound=true;A(window).scroll(function(){C()});A(window).resize(function(){C()})}D();return this.each(function(){var M;var L;var H;A(this).click(function(){J();K();A.get(A(this).attr("href"),function(O){A(".prettyPopin .prettyContent .prettyContent-container").html(O);M=B.width||A(".prettyPopin .prettyContent .prettyContent-container").width()+parseFloat(A(".prettyPopin .prettyContent .prettyContent-container").css("padding-left"))+parseFloat(A(".prettyPopin .prettyContent .prettyContent-container").css("padding-right"));A(".prettyPopin").width(M);L=B.height||A(".prettyPopin .prettyContent .prettyContent-container").height()+parseFloat(A(".prettyPopin .prettyContent .prettyContent-container").css("padding-top"))+parseFloat(A(".prettyPopin .prettyContent .prettyContent-container").css("padding-bottom"));A(".prettyPopin").height(L);A(".prettyPopin").height(45).width(45);G()});return false});var G=function(){var O=E();projectedTop=(A(window).height()/2)+O.scrollTop-(L/2);if(projectedTop<0){projectedTop=10;_followScroll=false}else{_followScroll=B.followScroll}A(".prettyPopin").animate({top:projectedTop,left:(A(window).width()/2)+O.scrollLeft-(M/2),width:M,height:L},B.animationSpeed,function(){N()})};var K=function(){A("body").append('<div class="prettyPopin"><!--<a href="#" id="b_close" rel="close">Close</a>--><div class="prettyContent"><img src="'+B.loader_path+'" alt="Loading" class="loader" /><div class="prettyContent-container"></div></div></div>');H=A(".prettyPopin .prettyContent .prettyContent-container");A(".prettyPopin a[rel=close]:eq(0)").click(function(){I();return false});var O=E();A(".prettyPopin").width(45).height(45).css({top:(A(window).height()/2)+O.scrollTop,left:(A(window).width()/2)+O.scrollLeft}).hide().fadeIn(B.animationSpeed)};var J=function(){A("body").append('<div id="overlay"></div>');A("#overlay").css("height",A(document).height());A("#overlay").css("opacity",0).fadeTo(B.animationSpeed,B.opacity);if(!B.modal){A("#overlay").click(function(){I()})}};var N=function(){H.parent().find(".loader").hide();H.parent().parent().find("#b_close").show();H.fadeIn(function(){A(this).find("input[type=text]:first").trigger("focus");A(".prettyPopin a[rel=internal]").click(function(){$link=A(this);H.fadeOut(function(){H.parent().find(".loader").show();A.get($link.attr("href"),function(O){H.html(O);F(H)})});return false});A(".prettyPopin form").bind("submit",function(){$theForm=A(this);H.fadeOut(function(){H.parent().find(".loader").show();A.post($theForm.attr("action"),$theForm.serialize(),function(O){H.html(O);F(H)})});return false})});A(".prettyPopin a[rel=close]:gt(0)").click(function(){I();return false})};var F=function(){var O=E();if(!B.width){M=H.width()+parseFloat(H.css("padding-left"))+parseFloat(H.css("padding-right"))}if(!B.height){L=H.height()+parseFloat(H.css("padding-top"))+parseFloat(H.css("padding-bottom"))}projectedTop=(A(window).height()/2)+O.scrollTop-(L/2);if(projectedTop<0){projectedTop=10;_followScroll=false}else{_followScroll=B.followScroll}A(".prettyPopin").animate({top:projectedTop,left:(A(window).width()/2)+O.scrollLeft-(M/2),width:M,height:L},B.animationSpeed,function(){N()})};var I=function(){A("#overlay").fadeOut(B.animationSpeed,function(){A(this).remove()});A(".prettyPopin").fadeOut(B.animationSpeed,function(){A(this).remove();B.callback()})}});function C(){if(!_followScroll){return }if(!A(".prettyPopin")){return }var F=E();if(A.browser.opera){windowHeight=window.innerHeight;windowWidth=window.innerWidth}else{windowHeight=A(window).height();windowWidth=A(window).width()}projectedTop=(A(window).height()/2)+F.scrollTop-(A(".prettyPopin").height()/2);if(projectedTop<0){projectedTop=10;_followScroll=false}else{_followScroll=true}A(".prettyPopin").css({top:projectedTop,left:(A(window).width()/2)+F.scrollLeft-(A(".prettyPopin").width()/2)})}function E(){scrollTop=window.pageYOffset||document.documentElement.scrollTop||0;scrollLeft=window.pageXOffset||document.documentElement.scrollLeft||0;return{scrollTop:scrollTop,scrollLeft:scrollLeft}}}})(jQuery);*/
    
    var _followScroll = false;
    var _readyBound = false;

    (function($) {
	    $.fn.prettyPopin = function(settings) {
		    settings = jQuery.extend({
			    modal : false, /* true/false */
			    width : false, /* false/integer */
			    height: false, /* false/integer */
			    opacity: 0.7, /* value from 0 to 1 */
			    animationSpeed: 500, /* slow/medium/fast/integer */
			    followScroll: false, /* true/false */
			    loader_path: '/App_Resources/Images/Common/lightbox/loading.gif', /* path to your loading image */
			    callback: function(){} /* callback called when closing the popin */
		    }, settings);

		    function bindReady(){ // To bind them only once
			    if(_readyBound) return;
			    _readyBound = true;
			    $(window).scroll(function(){ _centerPopin(); });
			    $(window).resize(function(){ _centerPopin(); });
		    };
		    bindReady();
    		
		    return this.each(function(){
			    var popinWidth;
			    var popinHeight;
			    var $c;
    		
			    $(this).click(function(){
				    buildoverlay();
				    buildpopin();
    			
    			
			         // Load the content
    				
				    $.get($(this).attr('href'),function(responseText){
    					
					    /* pete added the following one line here to fade the loader out before the content is loaded */
    					
					    $c.parent().find('.loader').fadeOut(300, function() {
    					
					        $('.prettyPopin .prettyContent .prettyContent-container').html(responseText);
        				
					        // This block of code is used to calculate the width/height of the popin
					        popinWidth = settings.width || $('.prettyPopin .prettyContent .prettyContent-container').width() + parseFloat($('.prettyPopin .prettyContent .prettyContent-container').css('padding-left')) + parseFloat($('.prettyPopin .prettyContent .prettyContent-container').css('padding-right'));
					        $('.prettyPopin').width(popinWidth);
					        popinHeight = settings.height || $('.prettyPopin .prettyContent .prettyContent-container').height() + parseFloat($('.prettyPopin .prettyContent .prettyContent-container').css('padding-top')) + parseFloat($('.prettyPopin .prettyContent .prettyContent-container').css('padding-bottom'));
					        $('.prettyPopin').height(popinHeight);
        				
					        // Now reset the width/height
					        $('.prettyPopin').height(45).width(45);
        				
					        displayPopin();
				        });
				    });
				    return false;
			    });

			    var displayPopin = function() {
    			    
			        var scrollPos = _getScroll();

				    projectedTop = ($(window).height()/2) + scrollPos['scrollTop'] - (popinHeight/2);
				    if(projectedTop < 0) {
					    projectedTop = 10;
					    _followScroll = false;
				    }else{
					    _followScroll = settings.followScroll;
				    };

				    $('.prettyPopin').animate({
					    'top': projectedTop,
					    'left': ($(window).width()/2) + scrollPos['scrollLeft'] - (popinWidth/2),
					    'width' : popinWidth,
					    'height' : popinHeight
				    },settings.animationSpeed, function(){
					    displayContent();
				    });
			    };
    		
			    var buildpopin = function() {
				    $('body').append('<div class="prettyPopin"><div class="prettyContent"><img src="'+settings.loader_path+'" alt="Loading" class="loader" /><div class="prettyContent-container"></div></div></div>');
				    $c = $('.prettyPopin .prettyContent .prettyContent-container'); // The content container
    			
				    $('.prettyPopin a[rel=close]:eq(0)').click(function(){ closeOverlay(); return false; });
    			
				    var scrollPos = _getScroll();
    			
				    // Show the popin
				    $('.prettyPopin').width(45).height(45).css({
					    'top': ($(window).height()/2) + scrollPos['scrollTop'],
					    'left': ($(window).width()/2) + scrollPos['scrollLeft']
				    }).hide().fadeIn(settings.animationSpeed);
			    };
    		
			    var buildoverlay = function() {
				    $('body').append('<div id="overlay"></div>');
    			
				    // Set the proper height
				    $('#overlay').css('height',$(document).height());
    			
				    // Fade it in
				    $('#overlay').css('opacity',0).fadeTo(settings.animationSpeed,settings.opacity);
    			
				    if(!settings.modal){
					    $('#overlay').click(function(){
						    closeOverlay();
					    });
				    };
			    };
    		
		        var displayContent = function() {
    				
				    $c.parent().parent().find('#b_close').show();
				    $c.fadeIn(function(){
					    // Focus on the first form input if there's one
					    $(this).find('input[type=text]:first').trigger('focus');

					    // Check for paging
					    $('.prettyPopin a[rel=internal]').click(function(){
						    $link = $(this);

						    // Fade out the current content
						    $c.fadeOut(function(){
							    $c.parent().find('.loader').show();

							    // Submit the form
							    $.get($link.attr('href'),function(responseText){
								    // Replace the content
								    $c.html(responseText);

								    _refreshContent($c);
							    });
						    });
						    return false;
					    });
    				

					    // Submit the form in ajax
					    $('.prettyPopin form').bind('submit',function(){
						    $theForm = $(this);
						    // Fade out the current content
						    $c.fadeOut(function(){
							    $c.parent().find('.loader').show();
    						
							    // Submit the form
							    $.post($theForm.attr('action'), $theForm.serialize(),function(responseText){
								    // Replace the content
								    $c.html(responseText);

								    _refreshContent($c);
							    });
						    });
						    return false;
					    });
				    });
				    $('.prettyPopin a[rel=close]:gt(0)').click(function(){ closeOverlay(); return false; });
			    };
    	
			    var _refreshContent = function(){
				    var scrollPos = _getScroll();

				    if(!settings.width)	popinWidth = $c.width() + parseFloat($c.css('padding-left')) + parseFloat($c.css('padding-right'));
				    if(!settings.height) popinHeight = $c.height() + parseFloat($c.css('padding-top')) + parseFloat($c.css('padding-bottom'));

				    projectedTop = ($(window).height()/2) + scrollPos['scrollTop'] - (popinHeight/2);
				    if(projectedTop < 0) {
					    projectedTop = 10;
					    _followScroll = false;
				    }else{
					    _followScroll = settings.followScroll;
				    };

				    $('.prettyPopin').animate({
					    'top': projectedTop,
					    'left': ($(window).width()/2) + scrollPos['scrollLeft'] - (popinWidth/2),
					    'width' : popinWidth,
					    'height' : popinHeight
				    }, settings.animationSpeed,function(){
					    displayContent();
				    });
			    };
    		
			    var closeOverlay = function() {
				    $('#overlay').fadeOut(settings.animationSpeed,function(){ $(this).remove(); });
				    $('.prettyPopin').fadeOut(settings.animationSpeed,function(){ $(this).remove(); settings.callback() });
			    };
		    });
    	
		    function _centerPopin(){
			    if(!_followScroll) return;

			    // Make sure the popin exist
			    if(!$('.prettyPopin')) return;
    			
			    var scrollPos = _getScroll();

			    if($.browser.opera) {
				    windowHeight = window.innerHeight;
				    windowWidth = window.innerWidth;
			    }else{
				    windowHeight = $(window).height();
				    windowWidth = $(window).width();
			    };

			    projectedTop = ($(window).height()/2) + scrollPos['scrollTop'] - ($('.prettyPopin').height()/2);
			    if(projectedTop < 0) {
				    projectedTop = 10;
				    _followScroll = false;
			    }else{
				    _followScroll = true;
			    };

			    $('.prettyPopin').css({
				    'top': projectedTop,
				    'left': ($(window).width()/2) + scrollPos['scrollLeft'] - ($('.prettyPopin').width()/2)
			    });
		    };
    	
		    function _getScroll(){
			    scrollTop = window.pageYOffset || document.documentElement.scrollTop || 0;
			    scrollLeft = window.pageXOffset || document.documentElement.scrollLeft || 0;
			    return {scrollTop:scrollTop,scrollLeft:scrollLeft};
		    };
	    };
    })(jQuery);
    
    
    $("a[rel^='prettyPopin']").prettyPopin();
    
    
    
    
    /* ------------------------------------------------------------------------
    Slimbox v2.02 - The ultimate lightweight Lightbox clone for jQuery
	(c) 2007-2009 Christophe Beyls <http://www.digitalia.be>
	MIT-style license.
	------------------------------------------------------------------------- */
	
    (function(w){var E=w(window),u,g,F=-1,o,x,D,v,y,L,s,n=!window.XMLHttpRequest,e=window.opera&&(document.compatMode=="CSS1Compat")&&(w.browser.version>=9.3),m=document.documentElement,l={},t=new Image(),J=new Image(),H,a,h,q,I,d,G,c,A,K;w(function(){w("body").append(w([H=w('<div id="lbOverlay" />')[0],a=w('<div id="lbCenter" />')[0],G=w('<div id="lbBottomContainer" />')[0]]).css("display","none"));h=w('<div id="lbImage" />').appendTo(a).append(q=w('<div style="position: relative;" />').append([I=w('<a id="lbPrevLink" href="#" />').click(B)[0],d=w('<a id="lbNextLink" href="#" />').click(f)[0]])[0])[0];c=w('<div id="lbBottom" />').appendTo(G).append([w('<a id="lbCloseLink" href="#" />').add(H).click(C)[0],A=w('<div id="lbCaption" />')[0],K=w('<div id="lbNumber" />')[0],w('<div style="clear: both;" />')[0]])[0]});w.slimbox=function(O,N,M){u=w.extend({loop:false,overlayOpacity:0.8,overlayFadeDuration:400,resizeDuration:400,resizeEasing:"swing",initialWidth:250,initialHeight:250,imageFadeDuration:400,captionAnimationDuration:400,counterText:"Image {x} of {y}",closeKeys:[27,88,67],previousKeys:[37,80],nextKeys:[39,78]},M);if(typeof O=="string"){O=[[O,N]];N=0}y=E.scrollTop()+((e?m.clientHeight:E.height())/2);L=u.initialWidth;s=u.initialHeight;w(a).css({top:Math.max(0,y-(s/2)),width:L,height:s,marginLeft:-L/2}).show();v=n||(H.currentStyle&&(H.currentStyle.position!="fixed"));if(v){H.style.position="absolute"}w(H).css("opacity",u.overlayOpacity).fadeIn(u.overlayFadeDuration);z();k(1);g=O;u.loop=u.loop&&(g.length>1);return b(N)};w.fn.slimbox=function(M,P,O){P=P||function(Q){return[Q.href,Q.title]};O=O||function(){return true};var N=this;return N.unbind("click").click(function(){var S=this,U=0,T,Q=0,R;T=w.grep(N,function(W,V){return O.call(S,W,V)});for(R=T.length;Q<R;++Q){if(T[Q]==S){U=Q}T[Q]=P(T[Q],Q)}return w.slimbox(T,U,M)})};function z(){var N=E.scrollLeft(),M=e?m.clientWidth:E.width();w([a,G]).css("left",N+(M/2));if(v){w(H).css({left:N,top:E.scrollTop(),width:M,height:E.height()})}}function k(M){w("object").add(n?"select":"embed").each(function(O,P){if(M){w.data(P,"slimbox",P.style.visibility)}P.style.visibility=M?"hidden":w.data(P,"slimbox")});var N=M?"bind":"unbind";E[N]("scroll resize",z);w(document)[N]("keydown",p)}function p(O){var N=O.keyCode,M=w.inArray;return(M(N,u.closeKeys)>=0)?C():(M(N,u.nextKeys)>=0)?f():(M(N,u.previousKeys)>=0)?B():false}function B(){return b(x)}function f(){return b(D)}function b(M){if(M>=0){F=M;o=g[F][0];x=(F||(u.loop?g.length:0))-1;D=((F+1)%g.length)||(u.loop?0:-1);r();a.className="lbLoading";l=new Image();l.onload=j;l.src=o}return false}function j(){a.className="";w(h).css({backgroundImage:"url("+o+")",visibility:"hidden",display:""});w(q).width(l.width);w([q,I,d]).height(l.height);w(A).html(g[F][1]||"");w(K).html((((g.length>1)&&u.counterText)||"").replace(/{x}/,F+1).replace(/{y}/,g.length));if(x>=0){t.src=g[x][0]}if(D>=0){J.src=g[D][0]}L=h.offsetWidth;s=h.offsetHeight;var M=Math.max(0,y-(s/2));if(a.offsetHeight!=s){w(a).animate({height:s,top:M},u.resizeDuration,u.resizeEasing)}if(a.offsetWidth!=L){w(a).animate({width:L,marginLeft:-L/2},u.resizeDuration,u.resizeEasing)}w(a).queue(function(){w(G).css({width:L,top:M+s,marginLeft:-L/2,visibility:"hidden",display:""});w(h).css({display:"none",visibility:"",opacity:""}).fadeIn(u.imageFadeDuration,i)})}function i(){if(x>=0){w(I).show()}if(D>=0){w(d).show()}w(c).css("marginTop",-c.offsetHeight).animate({marginTop:0},u.captionAnimationDuration);G.style.visibility=""}function r(){l.onload=null;l.src=t.src=J.src=o;w([a,h,c]).stop(true);w([I,d,h,G]).hide()}function C(){if(F>=0){r();F=x=D=-1;w(a).hide();w(H).stop().fadeOut(u.overlayFadeDuration,k)}return false}})(jQuery);

    // AUTOLOAD CODE BLOCK (MAY BE CHANGED OR REMOVED)
    jQuery(function($) {
	    $("a[rel^='lightbox']").slimbox({/* Put custom options here */}, null, function(el) {
		    return (this == el) || ((this.rel.length > 8) && (this.rel == el.rel));
	    });
    });  
    
    /* print document */
    $("#printOrderConfirmation").click(function() {
		window.print();
		return false;
        });
    
    /* show popup*/
    $(".buyNowButton").click(function() {
        $(".buyingOptionsPopup").show();
        return false;
    });
    
    /* hide popup*/
    $("#closePopup").click(function() {
        $(".buyingOptionsPopup").hide();
        return false;
    });    
    
    $("#hoverImg1").hover(function() {
        $(".mainImages").hide();
        $(".mainImages").attr("rel","");
        $("#imgMain1").show();
        $("#imgMain1").attr("rel","lightbox-product");
        $(".onArrow").hide();
        $("#onArrow1").show();
    });
    
    $("#hoverImg2").hover(function() {
        $(".mainImages").hide();
        $(".mainImages").attr("rel","");
        $("#imgMain2").show();
        $("#imgMain2").attr("rel","lightbox-product");
        $(".onArrow").hide();
        $("#onArrow2").show();
    });
    
    $("#hoverImg3").hover(function() {
        $(".mainImages").hide();
        $(".mainImages").attr("rel","");
        $("#imgMain3").show();
        $("#imgMain3").attr("rel","lightbox-product");
        $(".onArrow").hide();
        $("#onArrow3").show();
    });
    
    
    /* show hide checkout basket */
    $("#hideBasket").click(function (event) {
        $("#basketTable").slideUp(750, function () {
            $("#hideBasket").slideUp(0, function () {
                $("#showBasket").slideDown(0); 
        });
      });
      return false;
    });
    
    /* show hide checkout basket */
    $("#showBasket").click(function (event) {
        $("#basketTable").slideDown(750, function () {
            $("#showBasket").slideUp(0, function () {
                $("#hideBasket").slideDown(0); 
        });
      });
      return false;
    });   
    
    /* show hide promo code */
    $("#showPromo").click(function (event) {
        $(".promoCode").slideDown(750);
        return false;
    });    
    
    /* show hide add new billing address */
    $("#useNewBillingAddress").click(function (event) {
        $("#newBillingAddress").slideDown(750);
    });
    
    /* show hide add new billing address */
    $("#useCurrentBillingAddress").click(function (event) {
        $("#newBillingAddress").slideUp(750);
    });
    
    /* show hide add new delivery address */
    $("#useNewDeliveryAddress").click(function (event) {
        $("#newDeliveryAddress").slideDown(750);
    });
    
    /* show hide add new delivery address */
    $("#useCurrentDeliveryAddress").click(function (event) {
        $("#newDeliveryAddress").slideUp(750);
    });
    

    
    
 });








