$(document).ready(function(){ 
						   
	


	
	$("#logo").click(function() {  
		window.location = "http://www.clothesagency.com/clothes.php?page=home"
		});
	
	$("#bread").click(function() {  
		window.location = "http://www.clothesagency.com/cms/clothes/ladies/ultimate-reductions-all"
		});
	
	
		$("#openthelog").click(function() {  
		$('#login').show();
		$('#loginform').show();
		});
      $("#logclose").click(function() {  
		$('#login').hide();
		$('#loginform').hide();
		});
		
		$("#account").click(function() {  
		$('#loggedsection').show();
		$('#accountclose').show();
		$('#account').hide();
		});
		
		$("#accountclose").click(function() {  
		$('#loggedsection').hide();
		$('#accountclose').hide();
		$('#account').show();
		
		
		});
		
		$("#tab1").click(function() { 
		$('#prodtab4').hide(); 
		$('#prodtab1').show();
		$('#prodtab2').hide();
		$('#prodtab3').hide();
		$('#tab1').css("background-image", "url(http://www.clothesagency.com/images/item%20description%20OFF.png)");
		$('#tab2').css("background-image", "url(http://www.clothesagency.com/images/sales%20&%20returns%20ON.png)");
		$('#tab3').css("background-image", "url(http://www.clothesagency.com/images/ask%20seller%20ON.png)");
		$('#tab4').css("background-image", "url(http://www.clothesagency.com/images/email%20friend%20ON.png)");
		
		});
		$("#tab2").click(function() { 
		$('#prodtab4').hide(); 
		$('#prodtab2').show();
		$('#prodtab1').hide();
		$('#prodtab3').hide();
		$('#tab1').css("background-image", "url(http://www.clothesagency.com/images/item%20description%20ON.png)");
		$('#tab2').css("background-image", "url(http://www.clothesagency.com/images/sales%20&%20returns%20OFF.png)");
		$('#tab3').css("background-image", "url(http://www.clothesagency.com/images/ask%20seller%20ON.png)");
		$('#tab4').css("background-image", "url(http://www.clothesagency.com/images/email%20friend%20ON.png)");
		
		});
		$("#tab3").click(function() {  
		$('#prodtab3').hide();
		$('#prodtab4').show();
		$('#prodtab2').hide();
		$('#prodtab1').hide();
		$('#tab1').css("background-image", "url(http://www.clothesagency.com/images/item%20description%20ON.png)");
		$('#tab2').css("background-image", "url(http://www.clothesagency.com/images/sales%20&%20returns%20ON.png)");
		$('#tab3').css("background-image", "url(http://www.clothesagency.com/images/ask%20seller%20OFF.png)");
		$('#tab4').css("background-image", "url(http://www.clothesagency.com/images/email%20friend%20ON.png)");
		});
		
		$("#tab4").click(function() {  
		$('#prodtab3').show();
		$('#prodtab4').hide();
		$('#prodtab2').hide();
		$('#prodtab1').hide();
		$('#tab1').css("background-image", "url(http://www.clothesagency.com/images/item%20description%20ON.png)");
		$('#tab2').css("background-image", "url(http://www.clothesagency.com/images/sales%20&%20returns%20ON.png)");
		$('#tab3').css("background-image", "url(http://www.clothesagency.com/images/ask%20seller%20ON.png)");
		$('#tab4').css("background-image", "url(http://www.clothesagency.com/images/email%20friend%20OFF.png)");
		});
		
		$("#regback2").click(function() { 
		$('#reg2').hide();
		$('#reg1').show();
		});
		
		$("#miniregop").click(function() { 
		
		$('#miniregopshow').show();
		});
		
		$("#miniregopoff").click(function() { 
		
		$('#miniregopshow').hide();
		});
		
		
		$("#regback3").click(function() { 
		$('#reg3').hide();
		$('#reg2').show();
		});
		
		$("#regback4").click(function() { 
		$('#reg4').hide();
		$('#reg3').show();
		});
		
		$("#regnext5").click(function() { 
		$('#reg2').hide();
		$('#reg4').show();
		$('#reg3').hide();
		});
		
		$("#regback6").click(function() { 
		$('#reg4').hide();
		$('#reg2').show();
		});
		
		$("#reg2busyes").click(function() { 
		$('#reg2bus').show();
		
		});
		$("#reg2bushide").click(function() { 
		$('#reg2bus').hide();
		
		});
		
		
		
    }); 

$(document).ready(function(){



$('#div1').click(function(){
$('.boxes').hide('slow');
$('#a').show('slow');
$('#div1 p').css("background-image", "url(http://www.clothesagency.com/images/downarrowfaq.png)");
});
$('#div2').click(function(){
$('.boxes').hide('slow');
$('#b').show('slow');
});
$('#div3').click(function(){
$('.boxes').hide('slow');
$('#c').show('slow');
});
$('#div4').click(function(){
$('.boxes').hide('slow');
$('#d').show('slow');
});
$('#div5').click(function(){
$('.boxes').hide('slow');
$('#e').show('slow');
});
$('#div6').click(function(){
$('.boxes').hide('slow');
$('#f').show('slow');
});
$('#div7').click(function(){
$('.boxes').hide('slow');
$('#g').show('slow');
});
$('#div8').click(function(){
$('.boxes').hide('slow');
$('#h').show('slow');
});
$('#div9').click(function(){
$('.boxes').hide('slow');
$('#i').show('slow');
});
$('#div10').click(function(){
$('.boxes').hide('slow');
$('#j').show('slow');
});
$('#div11').click(function(){
$('.boxes').hide('slow');
$('#k').show('slow');
});
$('#div12').click(function(){
$('.boxes').hide('slow');
$('#l').show('slow');
});
$('#div13').click(function(){
$('.boxes').hide('slow');
$('#m').show('slow');
});
$('#div14').click(function(){
$('.boxes').hide('slow');
$('#n').show('slow');
});
$('#div15').click(function(){
$('.boxes').hide('slow');
$('#o').show('slow');
});
$('#div16').click(function(){
$('.boxes').hide('slow');
$('#p').show('slow');
});
$('#div17').click(function(){
$('.boxes').hide('slow');
$('#q').show('slow');
});
$('#div18').click(function(){
$('.boxes').hide('slow');
$('#r').show('slow');
});
$('#listed').click(function(){
$('#namehide').show('slow');
});
$('#collected').click(function(){
$('#address').show('slow');
});
$('#contact').click(function(){
$('#collection').show('slow');
});

});
	
$(document).ready(function() {

$('a.title').click(function(){

// get the ID of the image to fade in
var targetID = $(this).attr("id").replace("title_", "movtitle_");


// if there are any active images in the container
if ($('#imageContainer img.active').length > 0){

// fade them out (and remove the flag)
$('#imageContainer img.active').fadeOut('fast', function(){

// when the fade out is done, fade in the new image and flag it
$('#'+targetID).fadeIn('fast').addClass('active');

}).removeClass('active');


// if there aren't any active images
}else if 
($('#imageContainer div.active').length > 0){

// fade them out (and remove the flag)
$('#imageContainer div.active').fadeOut('fast', function(){

// when the fade out is done, fade in the new image and flag it
$('#'+targetID).fadeIn('fast').addClass('active');

}).removeClass('active');

}

else{

// just fade in the target image and flag it
$('#'+targetID).fadeIn('fast').addClass('active');

}

});

});
var newwindow = '';
	function popup(url) {
	if (newwindow.location && !newwindow.closed) {
		newwindow.location.href = url;
		newwindow.focus(); }
	else {
		newwindow=window.open(url,'htmlname','width=600,height=500,resizable=0,scrollbars=yes');}
	}
