/*///////////////// CUFON IMAGE REPLACEMENT /////////////////////////*/	
	Cufon.replace('h1');
	Cufon.replace('h2');
	Cufon.replace('h3');
	Cufon.replace('h4');

/*///////////////// END CUFON IMAGE REPLACEMENT /////////////////////////*/	

/*///////////////// BEGIN NIVO SLIDER /////////////////////////*/	
$(window).load(function() {
        $('#slider').nivoSlider();
});
/*///////////////// END NIVO SLIDER /////////////////////////*/

/*///////////////// PORTFOLIO HOVER EFFECT /////////////////////////*/
$(document).ready(function(){
$('.enlarge').css({ opacity: 0 });
$('.enlarge').css({ cursor: 'pointer' });
$('.enlarge').hover(function(){
    $(this).stop().animate({ opacity: 1 }, 500);
    
}, function(){
   $(this).stop().animate({ opacity: 0 }, 300);
 
});
});
/*///////////////// END PORTFOLIO HOVER EFFECT /////////////////////////*/

/*/////////////////  HOVER EFFECT /////////////////////////*/
$(document).ready(function(){
	$('.social-links li a img').hover(function(){
		$(this).stop().animate({ marginTop: "-5px"}, 300);
		
	}, function(){
	   $(this).stop().animate({ marginTop: "0px" }, 300);
	 
	});
});
/*///////////////// END  HOVER EFFECT /////////////////////////*/

/*///////////////// SUBMENU HOVER EFFECT /////////////////////////*/
$(document).ready(function(){
	$('.box-body ul li a ').hover(function(){
		$(this).stop().animate({marginLeft: "30px" }, 300);
		
	}, function(){
	   $(this).stop().animate({marginLeft: "15px" }, 300);
	 
	});
});
/*///////////////// END SUBMENU HOVER EFFECT /////////////////////////*/

/*///////////////// FOOTER NAVIGATION HOVER EFFECT /////////////////////////*/
$(document).ready(function(){
	$('.footer-navigation li a').hover(function(){
		$(this).stop().animate({marginLeft: "15px" }, 300);
		
	}, function(){
	   $(this).stop().animate({marginLeft: "0px" }, 300);
	 
	});
});
/*///////////////// END FOOTER NAVIGATION HOVER EFFECT /////////////////////////*/

/*///////////////// LATEST POSTS HOVER EFFECT /////////////////////////*/
$(document).ready(function(){
	$('.latest-post').hover(function(){
		$(this).stop().animate({marginLeft: "10px" }, 300);
	
	}, function(){
	   $(this).stop().animate({marginLeft: "0px" }, 300);
	  
	 
	});
});
/*///////////////// END LATEST POSTS HOVER EFFECT /////////////////////////*/


/*///////////////// ACCORDION /////////////////////////*/
$(document).ready(function(){
	//Set default open/close settings
	$('.acc_container').hide(); //Hide/close all containers
	$('.acc_trigger:first').addClass('active').next().show(); //Add "active" class to first trigger, then show/open the immediate next container
	
	//On Click
	$('.acc_trigger').click(function(){
		if( $(this).next().is(':hidden') ) { //If immediate next container is closed...
			$('.acc_trigger').removeClass('active').next().slideUp(); //Remove all .acc_trigger classes and slide up the immediate next container
			$(this).toggleClass('active').next().slideDown(); //Add .acc_trigger class to clicked trigger and slide down the immediate next container
		}
		return false; //Prevent the browser jump to the link anchor
	});
});
/*///////////////// END ACCORDION /////////////////////////*/

jQuery(document).ready(function() {
    	  // Main navigation dropdowns
          $("ul.tabs").tabs("div.panes > div");
          $("ul.css-tabs").tabs("div.css-panes > div");
          $(".scrollable").scrollable();
          $(".accordion").tabs(".pane", {tabs: 'h2', effect: 'slide'});
          $(".accordion-faq").tabs(".pane", {tabs: 'span', effect: 'slide'});
     	  $('img.captify').captify({});
          /* External links open in new windows */
          $("a[rel='external']").bind("click.external", function(){
            window.open(this.href);
            return false;
          });

});

// simple hide no animation
function hide(id){
    if (document.getElementById){
    obj = document.getElementById(id);
    obj.style.display = "none";
    }     }

// simple show no animation
function show(id){
    if (document.getElementById){
    obj = document.getElementById(id);
    obj.style.display = "";
    }    }

// jquery hide, show and toggle
function ajaxshow(id){	$(id).fadeIn("slow");	}
function ajaxhide(id){	$(id).fadeOut("slow");	}
function toggle(id){	$(id).slideToggle("fast"); }


