


function CopyToClipboard()
{
	
	field = document.getElementById('newurl')
    var content = document.getElementById('newurl');
    content.focus()
    content.select()
	var data = content.value;

	//need flash component
  
}

function callBack(val) {
	 $("body").animate( { backgroundColor: 'pink' }, 300)
	    .animate( { backgroundColor: 'white' }, 300);

}

function reseter() {
	if(document.getElementById('search_box').value == "Enter Fat URL Here") {
		document.getElementById('search_box').value = "";
	}
}


$(document).ready(function() {
   




 	
	$("#panel").hide();

 	var a = $("<a>What's all this, then?!</a>").attr('href','#').addClass("btn-slide");
	 $('#wrapper').before(a);


   $(".btn-slide").click(function(){

      if ($("#panel").is(":hidden")) {
        $("#panel").slideDown("slow");
	$(this).addClass("active");
       
	return false;
	
      } else {
        $("#panel").slideUp("slow");
	$(this).removeClass("active");
 
	return false;

      }
	
   });




$("#bkmrk").hover(function(){
	
	
	$("#bar").fadeIn("slow");
	
	},function(){

		$("#bar").fadeOut("slow");
});



$("#copy_button").click(CopyToClipboard);
	$("#search_box").click(reseter);
	
	
	$("#url_subbut").hover(function(){
	
	
	$('input[type="image"]').attr("src", "template/default/img/go_off.gif");
	
	},function(){

	  $(this).removeClass("shover");
	  $('input[type="image"]').attr("src", "template/default/img/go.gif");
	});



   


});

