/** general.js **/
function replacemail(a,b,c){
	var e=(a + '@' + b + '.' + c); 
	var f=('<a h' + 'ref="mai' + 'lto:' + e + '" class="email">' + e + '<\/a>');
    var g='<noscript>'+a+' [at]'+b+' [dot] '+c+'<\/noscript>';
	document.write(f);
	document.write(g);
}

$(document).ready(function(){ 

	// Disable right-click context menu 
	$('.no-right-click').bind("contextmenu", function(e) {
        return false;
    });

	// functions for handling the "type email here" in the mailing list sign up input in the header
    $('#em').focus(function(){
        if ($(this).val() == $(this).attr('title')) {
           $(this).attr('title',$(this).val());
           $(this).val('');
        }
    });
    $('#em').blur(function(){
        if ($(this).val() == ''){
           $(this).val($(this).attr('title'));
        }
    });

	$("#podcastxml").focus(function(){ 
		this.select();
	 });
});
