    var isVisibleDisplayDesign = false;
    var isVisibleBrandingDesign = false;
    var isVisibleConstructionDesign = false;
    
    function checkSlideUp(){
		$('#designContent').css("display", "none");
		$('#brandingContent').css("display", "none");
		$('#constructionContent').css("display", "none");
		isVisibleDisplayDesign = false;
		isVisibleBrandingDesign = false;
		isVisibleConstructionDesign = false;
   	}
   	
  $(document).ready(function(){
    
    $("#designBtn").click(function () {
    	if (isVisibleDisplayDesign) {
    		checkSlideUp();
    	}else {
    		checkSlideUp();
			$('#designContent').css("display", "block");
			isVisibleDisplayDesign = true;
		}
    });
    
    $("#brandingBtn").click(function () {
    	if (isVisibleBrandingDesign) {
    		checkSlideUp();
    	}else {
    		checkSlideUp();
			$('#brandingContent').css("display", "block");
			isVisibleBrandingDesign = true;
		}
    });
    
    $("#constructionBtn").click(function () {
    	if (isVisibleConstructionDesign) {
    		checkSlideUp();
    	}else {
    		checkSlideUp();
			$('#constructionContent').css("display", "block");
			isVisibleConstructionDesign = true;
		}
    });
    
    
    //var speed = 700;
    var speed = 1000;
    $('.slideshow1').cycle({
		fx: 'fade', // choose your transition type, ex: fade, scrollUp, shuffle, etc...
    	speed:   speed,
    	timeout: 1000,
    	delay: 650
	});
	
	$('.slideshow2').cycle({
		fx: 'fade', // choose your transition type, ex: fade, scrollUp, shuffle, etc...
    	speed:   speed,
    	timeout: 1000,
    	delay: 800
	});
	
	$('.slideshow3').cycle({
		fx: 'fade', // choose your transition type, ex: fade, scrollUp, shuffle, etc...
    	speed:   speed,
    	timeout: 1000,
    	delay: 0
	});
	
	$('.slideshow4').cycle({
		fx: 'fade', // choose your transition type, ex: fade, scrollUp, shuffle, etc...
    	speed:   speed,
    	timeout: 1000,
    	delay: 1200
	});
	
	$('.slideshow5').cycle({
		fx: 'fade', // choose your transition type, ex: fade, scrollUp, shuffle, etc...
    	speed:   speed,
    	timeout: 1000,
    	delay: 400
	});
  });

