/*
	* Main JavaScript file for Time for Climate Justice Site
	Author: Tim Reader
	Framework: jQuery
	
	Main functions:
	


*/



$(document).ready(function(){  					   
 


	
		//.css( {backgroundPosition: "0 0"} )
		/*.mouseover(function(){
			$(this).stop().animate({backgroundPosition:"(0 bottom)"}, {duration:500})
		})
		.mouseout(function(){
			$(this).stop().animate({backgroundPosition:"(0 -50px)"}, {duration:200, complete:function(){
				$(this).css({backgroundPosition: "0 -50px"})
			}})
		})*/
	
$('#searchform label').text('Search:');

$.fn.search = function() {
	
	return this.focus(function() {
		if( this.value == this.defaultValue ) {
			this.value = "";
		}
	}).blur(function() {
		if( !this.value.length ) {
			this.value = this.defaultValue;
		}
	});
};
$("#s").search();

//var defaultValue = "type and press enter to search...";

//$("#s").attr("value", defaultValue);// initial value
 	
/* 	
    $('.gallery a').lightBox({
	overlayBgColor: '#FFF',
	overlayOpacity: 0.6,
	imageLoading: '/wp-content/themes/rupert2011/_scripts/lightbox/images/lightbox-ico-loading.gif',
	imageBtnClose: '/wp-content/themes/rupert2011/_scripts/lightbox/images/lightbox-btn-close.gif',
	imageBtnPrev: '/wp-content/themes/rupert2011/_scripts/lightbox/images/lightbox-btn-prev.gif',
	imageBtnNext: '/wp-content/themes/rupert2011/_scripts/lightbox/images/lightbox-btn-next.gif',
	containerResizeSpeed: 350,
	txtImage: 'Image',
	txtOf: 'of'
   });

*/

}) // close document.ready
 

