//Cufon
//Cufon.replace('.navigation ul li a', { fontFamily: 'Myriad Pro', hover: true });
Cufon.replace('.navigation p', { fontFamily: 'Myriad Pro', hover: true });
Cufon.replace('.servicesNav ul li', { fontFamily: 'Myriad Pro', hover: true });
//Cufon.replace('.leftCont p.namecufon', { fontFamily: 'Rage Italic LET', hover: true });


/* Shadow Hover effect */
$(document).ready(function() {
   $(".bannerboxsecond").click(function(){
   	//$(this).topZIndex();
   	$(this).css({"zIndex":"2","opacity":"1"});
	$(this).animate({
	top: "80px",
	left:"188px"
	},1000);
	$(this).fadeIn();
	$(this).siblings("div.bannerbox").css({"zIndex":"1","opacity":"0.5"}).animate({
	top: "0",
	left:"83px"	
	},1000);
   });
   $(".bannerbox").click(function(){
   	//$(this).topZIndex();
   	$(this).css({"zIndex":"2","opacity":"1"});
	$(this).animate({
	top: "80px",
	left:"188px"
	},1000);
	$(this).fadeIn();
	$(this).siblings("div.bannerboxsecond").css({"zIndex":"1","opacity":"0.5"}).animate({
	top: "0",
	left:"83px"	
	},1000);
   });
 });


//Custom js
$(document).ready(function(){
	$('.contentPart').jScrollPane({showArrows: true});
	$('.sideScroll').jScrollPane({showArrows: true});
	$('.ssPortfolio').jScrollPane({showArrows: true});
	$('.storyBlock').jScrollPane({showArrows: true});
	$('.proScroll').jScrollPane({showArrows: true});
	//$('.scrollsh').jScrollPane({showArrows: true});
	
	
	$('.blogPost ul li div:last-child').addClass('noset');
	$('#footer ul:first-child li:first-child').css('background', 'none');
						   
$(document).ready(function(){   
	$('.innerMenu ul li ul').hide();
	$('.innerMenu ul li ul li div').hide();
	$('.innerMenu ul li').hover(
      function () {
		$(this).children('ul').fadeIn('fast');
      }, 
      function () {
		$(this).children('ul').fadeOut();
     });
	
	$('.innerMenu ul li ul li').hover(
      function () {
		$(this).children('div.imgShow').slideDown('fast');
      }, 
      function () {
		$(this).children('div.imgShow').slideUp();
     });
});
	

//Slide js
$('.bannerSlids').cycle({ 
    speed:  'fast', 
    timeout: 0, 
    next:   '#next', 
    prev:   '#prev',
    fx:     'scrollLeft' 
	});

$('.bannerSlidsPro').cycle({ 
    speed:  'fast', 
    timeout: 5000, 
    next:   '#next', 
    prev:   '#prev',
    fx:     'scrollLeft' 
	});
});





