//global vars  
var searchBoxes = $(".text");  
var searchBox = $("#query-input");    
var searchBoxDefault = "Search Transcend..."; 
//Effects for both searchbox   
searchBox.focus(function(){  
    if($(this).attr("value") == searchBoxDefault) $(this).attr("value", "");  
});  
searchBox.blur(function(){  
    if($(this).attr("value") == "") $(this).attr("value", searchBoxDefault);  
});

$(document).ready(function() {
  $("a").filter(function() {
    return this.hostname && this.hostname !== location.hostname;
  }).addClass('external');
  $("a").filter(function() {
    return this.hostname && this.hostname !== location.hostname;
  }).attr('target', '_blank');

});
