	$(document).ready(function() { 
		$(function()
				{
					$('#pane1').jScrollPane();
				});  
		 $("a.lightview").fancybox({'overlayShow': true, overlayOpacity:0.9,frameWidth:600,frameHeight:400,hideOnContentClick:false});
		 $("a.lightview2").fancybox({'overlayShow': true, overlayOpacity:0.9,frameWidth:700,frameHeight:400,hideOnContentClick:false});
		 $("a.lightview3").fancybox({'overlayShow': true, overlayOpacity:0.9,frameWidth:320,frameHeight:320,hideOnContentClick:false});
		$('.tabs .tab-active').show(); // show default content
		$('.tabs .header ul a').click(function(){
			$('.tabs .header ul li').removeClass('active');
			$(this).parent().addClass('active'); // make clicked tab active
			$('.tabs .tab').hide(); // hide all content
			$('.tabs').find('#' + $(this).attr('rel')).show(); // and show content related to clicked tab
			return false;
		});
		
		
		
		$("a").focus(function () {
        	$(this).blur();
		});
		$("img.rollover").hover(function () {
			newsrc=$(this).attr('src').replace('.jpg','-over.jpg').replace('.png','-over.png');
        	$(this).attr('src',newsrc);
		},function () {
			newsrc=$(this).attr('src').replace('-over.jpg','.jpg').replace('-over.png','.png');
        	$(this).attr('src',newsrc);
		});
		
	
		var config = {
				toolbar:
					[
						['Format','TextColor','Bold','Italic','Underline','Strike'],
						['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'],
						['Link','Unlink'],['Maximize'],
						['NumberedList','BulletedList','Outdent','Indent'],
						['Undo','Redo','-','RemoveFormat'],
						['Cut','Copy','Paste','PasteText','PasteFromWord'],
					    ['Table','HorizontalRule','SpecialChar']
					],
				uiColor: '#dddddd'
				};
		$('.wysiwyg').each(function(index) {
			config.width=$(this).css('width');
			config.height=$(this).css('height');
			$(this).ckeditor(config);
		});
		
		
	});
	
	function sendEmail() 
	{
		$('.submitButton').val('Sending...');
		$('.submitButton').attr("disabled","true");
		$.post('form-contactus.php?r='+Math.random(),{
			visitor_name: $('#name').val(),
			visitor_tel: $('#tel').val(),
			visitor_email: $('#email').val(),
			visitor_subject: $('#subject').val(),
			visitor_message: $('#message').val()
		});
		$('#sendStatus').html('<br /><p>Your message has been sent, we will reply as soon as possible.<br /><br />Thank you,<br />Banju Boutique</p>');
		$('.submitButton').val('Send Message');
		$('.submitButton').attr("disabled",false);
		$('#contactUsForm').html("");
			
	}
	
	function clickSub(thediv,div,image){
        $.each($('.'+div),function(){
            if(this.id==thediv){
                if(this.style.display=='none')
                {
                    $('#'+this.id).slideDown(700);
                    $('#'+image).show(700);
                    $('#'+'plus-'+this.id).hide(700)
                }
                else
                {
                    $('#'+this.id).slideUp(700);
                    $('#'+image).show(700);
                    $('#'+'minus-'+this.id).hide(700)
                }
            }else
            {
                $('#'+this.id).slideUp(700);
                $('#'+'minus-'+this.id).hide(700);
                $('#'+'plus-'+this.id).show(700);
            }

        });
	}
