

// by r@agiletech.ie
jQuery.fn.agiletexteater = function(caption){ return this.each(function(){ t=$(this); t.hide(); l=$('<a href="javascript:void(0);">'+caption+'</a>'); l.insertBefore(t); l.click(function(){ $(this).hide(); $(this).next().slideDown("slow"); }); }) }
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)})}

function searchreset() {

var search = $('#toppanel form input[type=text]');
$(search).attr("value","Search IrishDev...");

$(search).focus(function() {
if ( $(this).attr("value") == "Search IrishDev..." ){
$(this).attr("value","");
}
});
$(search).blur(function() {
if ( $(this).attr("value") == "" ) {
$(this).attr("value","Search IrishDev...");
}
});

}

$(document).ready(function() {
		searchreset();
        $('a.wehatespam').agilenospam();
        $('.whole_story').agiletexteater('Whole Story &raquo;');
        $('.column_home_separator:last, .columner:last').css("margin","0");
    $('#fa_list').jcarousel({
        visible: 5
    });
    $('#fa_list li a').tooltip({ 
	track: true, 
    delay: 0, 
    showURL: false, 
    showBody: " -- ", 
    extraClass: "pretty", 
    fixPNG: true, 
    opacity: 1, 
    left: -120});        
/*
var button = $('<a href="javascript:void(0);">Whole Story &raquo;</a>');
$(button).insertBefore(".hidden_text");
var button = $(".hidden_text").prev();
$(button).click(function() {
if ($(this).next().is(":hidden")) {
$(this).next().slideDown("slow");
$(this).hide();
}
});
*/


});
