// Colorbox //
$(document).ready(function(){
	$(".portfolio").colorbox({width:"680", height:"96%	"});
	//Example of preserving a JavaScript event for inline calls.
	$("#click").click(function(){ 
		$('#click').css({"background-color":"#f00", "color":"#fff", "cursor":"inherit"}).text("Open this window again and this message will still be here.");
		return false;
	});
});

// Top Panel Drop Down //
// http://net.tutsplus.com/tutorials/javascript-ajax/build-a-top-panel-with-jquery/
$(document).ready(function() {
	$("div.panel_button").click(function(){
		$("div#panel").animate({
			height: "250px"
		})
		.animate({
			height: "200px"
		}, "fast");
		$("div.panel_button").toggle();
	
	});	
	
   $("div#hide_button").click(function(){
		$("div#panel").animate({
			height: "0px"
		}, "fast");
		
	
   });	
	
});

// Google Analytics //

var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-4321283-2']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();
