
  // Cufon Text Heading
 Cufon.replace('h1,h2,h3,h4');
// Fancy Box

$(document).ready(function() {

                        $("dd:not(:first)").hide();
                        $("dt a").click(function(){
                                    $("dd:visible").slideUp("slow");
                                    $(this).parent().next().slideDown("slow");
                                    return false;

                        });

                        $(".demo").fancybox({ 

				
				'width'				: 810,
				'height'			: 560,
		        'autoScale'     	: true,
		        'transitionIn'		: 'fade',
				'transitionOut'		: 'none',
				'type'				: 'iframe',
				'centerOnScroll'    : true,
				'titleShow'         : false
			});
						    $("#demo").fancybox({
				
				'width'				: 810,
				'height'			: 560,
		        'autoScale'     	: true,
		        'transitionIn'		: 'fade',
				'transitionOut'		: 'none',
				'type'				: 'iframe',
				'centerOnScroll'    : true,
				'titleShow'         : false
			});
			$("#newsletter").fancybox({
				
				'width'				: 720,
				'height'			: 500,
		        'autoScale'     	: true,
		        'transitionIn'		: 'fade',
				'transitionOut'		: 'none',
				'type'				: 'iframe',
				'centerOnScroll'    : true,
				'titleShow'         : false
			});
			$(".newsletter").fancybox({
				
				'width'				: 720,
				'height'			: 500,
		        'autoScale'     	: true,
		        'transitionIn'		: 'fade',
				'transitionOut'		: 'none',
				'type'				: 'iframe',
				'centerOnScroll'    : true,
				'titleShow'         : false
});
			
			$("#various5").fancybox({
				'width'				: '75%',
				'height'			: '75%',
				'autoScale'			: false,
				'transitionIn'		: 'none',
				'transitionOut'		: 'none',
				'type'				: 'iframe'
			});

			$(".jobs").fancybox({
				
				'width'				: 790,
				'height'			: 690,
		        'autoScale'     	: true,
		        'transitionIn'		: 'fade',
				'transitionOut'		: 'none',
				'type'				: 'iframe',
				'centerOnScroll'    : true,
				'titleShow'         : false
			});
			$(".casestudy").fancybox({
				
				'width'				: 1100,
				'height'			: 750,
		        'autoScale'     	: true,
		        'transitionIn'		: 'fade',
				'transitionOut'		: 'none',
				'type'				: 'iframe',
				'centerOnScroll'    : true,
				'titleShow'         : false
			});

			});

var val = window.location.search.substring(1);
//alert(val);
if(val!=''){
	//$('"#' + val + ':visible"').slideUp("slow");
	$(this).parent('.sidebar').eq(val).find('dl').slideDown('slow'); 


}


