$(document).ready(function(){    
	$('a[href^="http:"]').attr('target','_blank')
});
  $(function() {
    $('#Menu').droppy();
  });
  
      if (swfobject.hasFlashPlayerVersion("9.0.0")) {
      var fn = function() {
        var att = { data:"flash/logo.swf", width:"400", height:"125"};
        var par = { flashvars:"foo=bar", wmode:"transparent"};
        var id = "logoFlash";
        var myObject = swfobject.createSWF(att, par, id);
      };
      swfobject.addDomLoadEvent(fn);
    }
    
//Autodelete the default value of the input boxes
 $(document).ready(function(){
    autodeleteInput('input#txtSearch[@type=text]');
});


function autodeleteInput(input, focusedColor, bluredColor){

    focusedColor = focusedColor != undefined ? focusedColor : '#333333';

    bluredColor = bluredColor != undefined ? bluredColor : '#aaa';

    $(input).focus(function(){

        //Saves the default value
        this.defaultValue = this.defaultValue || this.value;

        if (this.value == this.defaultValue)
            this.value = '';

       $(this).css('color',focusedColor);
    });

    $(input).blur(function(){
        if(this.value.length == 0 || this.value==this.defaultValue)
            $(this).css('color',bluredColor);
        //If it's empty, puts the default value
        if(this.defaultValue && this.value.length==0)
            this.value = this.defaultValue;
    });

}

