$(document).ready(function(){

	$('input[type=text]').focus(function(){
	if(this.value==this.defaultValue)this.value='';
	});
	$('input[type=text]').blur(function(){
	if(this.value=='')this.value=this.defaultValue;
	});
	
	$('#wpcontent_slider a').append('<span>FEATURED PROJECT</span>');
	
	$("#partners ul li a").hover(
	  function () {
		$(this).children('img').css('top','0');
	  },
	  function () {
		$(this).children('img').css('top','-145px');
	  }
	);
	
	$('a.galleryTrigger').click(function(){
		$('#galleryPopup').show();
		return false;	
	});
	$('a.galleryTrigger_2').click(function(){
		$('#galleryPopup_2').show();
		return false;	
	});
	$('a.galleryTrigger_3').click(function(){
		$('#galleryPopup_3').show();
		return false;	
	});
	$('a.galleryTrigger_4').click(function(){
		$('#galleryPopup_4').show();
		return false;	
	});
	$('a.closeGallery').click(function(){
		$('.galleryPopupPlaceholder').hide();
		return false;
	});
	
	$('#footer ul li:first-child').removeClass('second').addClass('first');
	$('#footer ul li ul li:first-child').removeClass('first');
	$('#footer ul.top-footer-list li ul li a').addClass('more-link');
	
	/*var winHeight = $(window).height();
	$('#bgrs, #bgrs img').css('height',winHeight);*/
	
});

/*function verticalHeight() {
	var winHeight2 = $(window).height();
  $('#bgrs, #bgrs img').css('height',winHeight2);
}*/
