jQuery.fn.DefaultValue=function(text){return this.each(function(){if(this.type!="text"&&this.type!="password"&&this.type!="textarea"){return;}var fld_current=this;if(this.value==""){this.value=text;}else{return;}$(this).focus(function(){if(this.value==text||this.value==""){this.value="";}});$(this).blur(function(){if(this.value==text||this.value==""){this.value=text;}});$(this).parents("form").each(function(){$(this).submit(function(){if(fld_current.value==text){fld_current.value="";}});});});};

$(document).ready(function(){

	$('a[rel*="external"]').live('click',function(){window.open($(this).attr('href'));return false;});
	$("a[rel^='prettyPhoto']").prettyPhoto({show_title: false});
	
	$('#logo').css('top', -150);
  	$('#logo').animate({ top: 25 }, {duration: 1500,easing: 'easeOutBounce'});
	
	$().UItoTop({easingType: 'easeOutBounce'});
	
	$('.clean_alert, .clean_ok').css('left', 250);
  	$('.clean_alert, .clean_ok').animate({ left: 0 }, {duration: 1500,easing: 'easeOutBounce'});
 	
	$('#banner_inner ul').innerfade({ speed: 750, timeout: 5000, type: 'random', containerheight: '293px' }); 
	
	$("#frm_name").DefaultValue("Enter name ...");
	$("#frm_email").DefaultValue("Email address ...");
	$("#frm_msg").DefaultValue("Enter message ...");
    $("#captchaform").DefaultValue("Enter security code ...");
	
});
