jQuery.fn.agilenospam = function(){return this.each(function(){e=$(this).attr('rel').split('').reverse().join('').replace('##','@').replace('#','.');$(this).attr('href','mailto:'+e);if(!$(this).text())$(this).text(e)})}

 $(document).ready(function(){
    $('a.wehatespam').agilenospam();
 	$('.paginator_next').parent('a').addClass('paginator_n');
 	$('.paginator_prev').parent('a').addClass('paginator_p');
 	$('#footer_nav a:last').css("marginRight","0px");
 	$('#nav_inner a').each(function() {
 		if ( $(this).parent().hasClass('nav_selected') == false) {
 			var $point = $(this).text();
 			$(this).wrapInner('<b></b>');
 			$(this).append('<span>'+$point+'</span>');
 		}
 	});
 	
 	$('.editbutton').mouseover(function() {
 	}).mouseout(function(){ $(this).parents('dl').css("background","none") });
 	
	if (jQuery.browser.msie) { // PNG support for IE6
	  if(parseInt(jQuery.browser.version) == 6) {
	  	$('#home_screen_abstract,#footer_curve,#home_screen_people_top,.white_curve,.ifixpng,.icon, .green li img').ifixpng();      
	  }	
	}
	
	/* Sorry for my JavaScriptish */
	$('#header_loginbox input').each(function() {
	
		var login = "Email Address";
		var pass = "*****";
		
		if (( this.id == "FurzeeFrontend_freeform_username" && this.value == login ) || ($(this).attr('type') == "password" && this.value == pass )) { $(this).css("color","#777") }
	
		$(this).focus(function() {
				
			if ( this.id == "FurzeeFrontend_freeform_username" ) {
				if ( this.value == login ) {
					this.value = "";
					$(this).css("color","#333");
				}
			} else if ( this.id == "FurzeeFrontend_freeform_password" ) {
				if ( this.value == pass ) {
					this.value = "";
					$(this).css("color","#333");
				}
			}
			
		 }).blur(function() {
		 	if ( this.id == "FurzeeFrontend_freeform_username" && this.value == "" ) {
		 		this.value = login;
		 		$(this).css("color","#777");
		 	}
		 });
	 });
	 
 });

