// $(function () {
// 	$('#navigation ul li a').hover(function() {
// 		$(this).fadeTo("fast", 1);
// 	}, function() {
// 		$(this).fadeTo("fast", 0.8);
// 	});
// 		$('#navigation ul li#currentpage a').hover(function() {
// 			$(this).css('opacity', '0.9');
// 		 });
// }); 

$(document).ready(function(){
$("label").click(function () { 
 $("label").removeClass("myradio").removeClass("onactive");
$(this).addClass("myradio").css({opacity: 1});
  var title = $(this).text();
$(".RdSelect").text(title);
   });
   
   $("label").mouseover(
function(){
	$(this).not(".myradio").addClass("onactive");
     });
	$("label").mouseout(
function(){
	$(this).removeClass("onactive");
});
});


$(document).ready(function() {
	$('input[type="text"]').focus(function() {
	    if (this.value == this.defaultValue){ 
	    	this.value = '';
		}
		if(this.value != this.defaultValue){
			this.select();
		}
	});
	$('input[type="text"]').blur(function() {
	    if ($.trim(this.value) == ''){
	    	this.value = (this.defaultValue ? this.defaultValue : '');
		}
	});
});

$(function(){
var spt = $('span.mailme');
var at = / at /;
var dot = / dot /g;
var addr = $(spt).text().replace(at,"@").replace(dot,".");
$(spt).after('<a href="mailto:'+addr+'" title="Send an email">'+ addr +'</a>')
.hover(function(){window.status="Send a letter!";}, function(){window.status="";});
$(spt).remove();
});

function mailify(id){
	document.location.href='mailto:' + id + '@' + 'c' + 're' + 'ad' + 'o' + '.' + 'co' + 'm';
}
