/*jQuery.noConflict();*/
jQuery(function($) { 
		
	// Superfish
	$("ul.sf-menu").supersubs({ 
		minWidth:    10,   // minimum width of sub-menus in em units 
		maxWidth:    25,   // maximum width of sub-menus in em units 
		extraWidth:  1     // extra width can ensure lines don't sometimes turn over 
						   // due to slight rounding differences and font-family 
	}).superfish({
		delay:			300,
		dropShadows:    false
	});  // call supersubs first, then superfish, so that subs are 
					 // not display:none when measuring. Call before initialising 
					 // containing tabs for same reason. 
			

	// Full page background
	$.supersized({
		//Background image
		slides	:  [ { image : 'img/picture_background.jpg' } ]
	});
			
	
	// Cufon
	Cufon.replace('.replace,.sidebar-widget h4',{fontFamily: 'Museo 500'} );
	Cufon.replace('.sf-menu a',{fontFamily: 'Museo Sans 500'} );
	
	// ColorBox
	$(".video_modal").colorbox({iframe:true, innerWidth:"50%", innerHeight:"50%"});
	$("a[rel='example1']").colorbox();
	$("a[rel='example2']").colorbox({transition:"fade"});
	$("a[rel='example3']").colorbox({transition:"none"});
	$("a[rel='example4']").colorbox({slideshow:true});

	// Scroll to Top
	$('#toTop').click(function() {
		$('#content-wrapper').animate({scrollTop:0},600);
	});	
	
	// Twitter Feed
	$(".pkb-tweet").tweet({
		username: "junglecatworld",
		join_text: "auto",
		count: 1,
		auto_join_text_default: null,
		auto_join_text_ed: null,
		auto_join_text_ing: null,
		auto_join_text_reply: null,
		auto_join_text_url: null,
		loading_text: "loading tweets..."
	});

	
	// Google Map
	$("#modalmap").colorbox({iframe:true, innerWidth:"50%", innerHeight:"50%", href:"http://maps.google.com/maps?q=Jungle+cat+world&hl=en&sll=35.817813,-95.712891&sspn=46.822489,107.138672&hq=Jungle+cat+world&t=h&z=15&output=embed"});
	
	// Membership Information
	$("#membership").colorbox({iframe:true, innerWidth:"65%", innerHeight:"55%", href:"./membership_information.html"});
	
	// Group Information
	$("#group").colorbox({iframe:true, innerWidth:"65%", innerHeight:"55%", href:"./group_information.html"});
});

