getTwitters('tweet', { 
  id: 'treytt', 
  count: 5, 
  enableLinks: true, 
  ignoreReplies: true, 
  clearContents: true,
  template: '<div class = "prefix"><img src ="%user_profile_image_url%" class = "prof_pic" alt = "twitter picture"/> %user_screen_name% said:</div> <div class = "status">"%text%"</div><div class = "time"><a href="http://twitter.com/%user_screen_name%/statuses/%id%/" target="_blank">%time%</a></div>'
});
// Variables
var foot_which = 1;
// Functions    
function tt(){}
function showContact(){ 
	 $("#contact_me").removeClass("hide");
	 $("#contact_me").slideDown("slow");
	    // check if hidden
           	if($('#aud_hold2:visible'))
        	{
          	  $("#aud_hold2").slideUp("slow");
			}
}
function closeContact(){
	$("#contact_me").slideUp("slow");
	$('#contact_me').addClass("hide");
}
function rotFoot()
{
	if(foot_which == 1)
	{
	$('#foot_pop').empty().fadeOut(100).append($('#foot_recent').html()).fadeIn('slow');
     foot_which = 0;
	}else{
	$('#foot_pop').empty().fadeOut(100).append($('#foot_pop_hold').html()).fadeIn('slow');
		foot_which = 1;
	}
}
function sendEmail()
{
	
				$.post("/first/sendEmail", { contact_name: $("#contact_name").val(),contact_email: $("#contact_email").val(),contact_com: $("#contact_com").val()}, 
				function (data) {
		if(data == 1)
		{
		
			$('#contact_form')[0].reset();
				$('.message_status').empty().append('Your message has been sent.');
				setTimeout("$('.message_status').empty();",10000);
		}else{
        $('.message_status').empty().append("ERROR: Message not sent.");
        setTimeout("$('.message_status').empty();",10000);
    	}
        });
			
	}
function externalLinks() {   
 if (!document.getElementsByTagName) return;   
 var anchors = document.getElementsByTagName("a");   
 for (var i=0; i<anchors.length; i++) {   
   var anchor = anchors[i];   
   if (anchor.getAttribute("href") &&   
       anchor.getAttribute("rel") == "new_win")   
     anchor.target = "_blank";   
 }   
}   	
function viewTags(url)
{
	$('#tag_hold').empty();
	//ajax grab tags
		$.post("/first/getTags", {title: url }, 
				function (data) {
		$.fn.colorbox({html:'<p class = \"show_tags\">'+data+'</p>',title:'Tags for selected article',transition:'none',height:'160',width:'300'});
    });
}
$(document).ready(function(){
	externalLinks();

// footer shenanigans	
	      $('#foot_toc a, #foot_pop a, #foot_recent a').live('mouseover', function(){
                $(this).stop().animate({ paddingLeft: "25px" }, 200); });
        $('#foot_toc a, #foot_pop a, #foot_recent a').live('mouseout', function(){
         		$(this).stop().animate({ paddingLeft: "0px" }); });
// FOR NEW LINKS
// ROTATE RECENT AND POPULAR LINKS ON FOOTER 5/20/2010
var tout = setInterval("rotFoot();", 5000);
// IF ACTIVE CANCEL CYCLE OF FOOT LINKS
$('#foot_pop').hover(
  function () {
 clearInterval (tout);
  },
  function () {
tout = setInterval("rotFoot();", 5000);
  }
);
// END ROTATE	
if($.browser.msie && parseFloat($.browser.version) < 8) { 
$('#no_js').append('Update to the latest version of <a href = "http://www.microsoft.com/windows/internet-explorer/default.aspx">Internet Explorer</a>.');
}

	
	if($.browser.msie && parseFloat($.browser.version) < 7){
	//do nothing else it will break
    }else{
	  $("#menu ul li a.not").hover(
    function () {
    	  $(this).addClass("hovered");
    	 if(!$(this).is(':animated'))
    	 {
      if(temp == "o")
      		{
    	 	 $(this).effect("bounce", { times:2 }, 300);
	  		
    	 	 temp = "x";
	 	 }
    	 	 
	 	 }
       }, 
    function () {
      $(this).removeClass("hovered");
      temp = "o";
    }
  );
return;
}
}); // end doc.ready
