// JavaScript Document
jQuery(document).ready(function(){
	
	//Hide (Collapse) the toggle containers on load
	jQuery("#slide-panel").hide(); 

	//Switch the "Open" and "Close" state per click then slide up/down (depending on open/close state)
	jQuery("#panel-button").click(function(){
		jQuery("#slide-panel").slideToggle("slow");
	});
	
	jQuery(".panel-trigger").click(function(){
		jQuery("#slide-panel").slideToggle("slow");
	});
        
        // Using our tweetAction plugin. For a complete list with supported
	// parameters, refer to http://dev.twitter.com/pages/intents#tweet-intent

	jQuery('#tweetLink').tweetAction({
		text:		'Check out the free #Concrete5 #CMS #theme "Environmental" by @digitaludesign',
		url:		'http://www.digitaluprisingdesign.com/digital-uprising-design-blog/environmental-theme',
		related:	'digitaludesign'
	},function(){

		// Callback function. Triggered when the user closes the pop-up window:
                jQuery('a#tweetLink').hide();
                jQuery('.downloadButton a').attr('style', '');
		jQuery('.downloadButton a').show();
                                //.removeClass('nonActive')
				//.addClass('active')
				//.attr('href','environmental.zip');

	});
	
});

var $buoop = {vs:{i:7,f:3,o:10.01,s:3,n:9}} 
$buoop.ol = window.onload; 
window.onload=function(){ 
 if ($buoop.ol) $buoop.ol(); 
 var e = document.createElement("script"); 
 e.setAttribute("type", "text/javascript"); 
 e.setAttribute("src", "http://browser-update.org/update.js"); 
 document.body.appendChild(e); 
};
