jQuery.noConflict();

jQuery(document).ready(function() {		
															
	/* Anything Slider */
	jQuery('#slider').anythingSlider({
		resizeContents      : false,
		addWmodeToObject    : 'transparent',
		buildArrows 		: false,
		buildStartStop		: false,
		buildNavigation		: true,
		infiniteSlides		:true,
		enableArrows		: true,
		hashTags			: false,
		autoPlay            : true,
		delay               : 5000
	});
				      
	/* Hover image opacity */
	jQuery("a[data-rel^='fadeimg'] img").hover(function() {
		jQuery(this).stop().fadeTo("fast", 0.5); 
	},function(){
		jQuery(this).stop().fadeTo("fast", 1.0); 
	});
	
	/* Menu */
	ddsmoothmenu.init({
		mainmenuid: "smoothmenu1", //menu DIV id
		orientation: 'h', //Horizontal or vertical menu: Set to "h" or "v"
		classname: 'ddsmoothmenu', //class added to menu's outer DIV
		contentsource: "markup" //"markup" or ["container_id", "path_to_menu_file"]
	});
	
	/* Social Tooltip */
	jQuery('#headersocial img[title]').tooltip({opacity: 0.5, effect: 'fade', delay: 0, fadeOutSpeed: 0, fadeInSpeed: 0});
		
	/* Teaser Carousel */
	if(jQuery('#hometeasers').length != 0){
		jQuery('#hometeasers').tinycarousel({ display: 3, interval: false, intervaltime: 5000, duration: 600});
	}

	/* Content Tabs */
	jQuery("ul.tabs").tabs("div.panes > div");
	
	/* Sidebar Height */
	
	/* Pricing Table Alternate Row Color */
	
	/* Contact Form */
	
	/* Newsletter Subscription */
	
	/* Blog Comments */

/* Blog & Portfolio Social Sharing */
	
	/* PrettyPhoto */
	addPrettyPhoto();
	
	/* Portfolio Quicksand */


	/* Nivo Slider */
	
	/* Piecemaker Slider */
	
	/* Google Maps */

	/* Skype Toolbar Removal */
	
});

/* Linkify and Relative Time functions by Ralph Whitbeck http://ralphwhitbeck.com/2007/11/20/PullingTwitterUpdatesWithJSONAndJQuery.aspx */


function addPrettyPhoto() {
	/* PrettyPhoto init */
	jQuery("a[data-rel^='prettyPhoto']").prettyPhoto({
		theme: 'pp_default',
		overlay_gallery: false,
		show_title: false,
		hideflash: true
	});
	
	/* PrettyPhoto hover image opacity */
	jQuery("a[data-rel^='prettyPhoto'] img").hover(function() {
		jQuery(this).stop().fadeTo("fast", 0.5); 
	},function(){
		jQuery(this).stop().fadeTo("fast", 1.0); 
	});	
}



/* Contact Form */


