/***********************************************
* Animated Collapsible DIV v2.4- (c) Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for this script and 100s more
***********************************************/

animatedcollapse.addDiv('menu1', 'fade=1')
animatedcollapse.addDiv('menu25', 'fade=1')
animatedcollapse.addDiv('menu86', 'fade=1')

animatedcollapse.ontoggle=function($, divobj, state){ //fires each time a DIV is expanded/contracted
	//$: Access to jQuery
	//divobj: DOM reference to DIV being expanded/ collapsed. Use "divobj.id" to get its ID
	//state: "block" or "none", depending on state
}

animatedcollapse.init()


$(function() {

	var imageUrl;

	imageUrl = 'images/google_anglia.jpg';

	if ($("#words").attr("value") == "")
		$("#words").css("background-image", "url('" + imageUrl + "')").css("background-repeat", "no-repeat").css("background-position", "center center");
	else
		$("#words").css("background-image", "");
	$("#words").blur( function () { if ($("#words").attr("value") == "") $("#words").css("background-image", "url('" + imageUrl + "')").css("background-repeat", "no-repeat").css("background-position", "center center"); } );

	$("#words").focus( function () { $("#words").css("background-image", ""); } );
});