
 
$(document).ready(function(){
						   
	$('div#tanklessWaterHeatersContainter div#twh_right div#info_lessenergy').show();

	$('div#tanklessWaterHeatersContainter div#twh_left div.btn').mouseover(function(){
		var t = $(this).attr("id");
		$('div#tanklessWaterHeatersContainter div#twh_right div.info').hide();
		$('div#tanklessWaterHeatersContainter div#twh_right div#info_'+ t).show();
		});

                                                  
});



$(document).ready(function(){
     
	 
	 var doch = $(document).height();
	 var docw = $(document).width();
	 var winh = $(window).height();
	 var winw = $(window).width();
	 
	 	 
	var vt = ((winh - 450) / 2);
	var vl = ((winw - 600) / 2);
	 
	$('div#video').css("top", vt)
	$('div#video').css("left", vl)
	 
	  
	 $('div#overlay').height(doch);

	 $('a.playvideo').click(function(){
		$('div#overlay').fadeTo('normal', 0.5);
		$('div#video').fadeIn(300);							 
		});
	 
	 $('div#video div.close').click(function(){
		$('div#video').hide();
		$('div#overlay').fadeOut(300);
		});	
	 
	 
	  $('div#overlay').click(function(){
		$('div#video').hide();
		$(this).fadeOut(300);
		$('div#survey').fadeOut(300);
		});
	 
	 
	 $('div#survey a').click(function(){
		$('div#survey').fadeOut(300);
		$('div#overlay').fadeOut(300);
		$.post(
			'counter/count.php',
			{ 'referer' : $(this).attr('id') }
		);
		return false;
	});
	 
	 
});

$(window).resize(function(){ 
	var doch = $(document).height();
	var docw = $(document).width();
	var winh = $(window).height();
	var winw = $(window).width();

	var vt = ((winh - 450) / 2);
	var vl = ((winw - 600) / 2);

	$('div#overlay').height(doch);


	$('div#video').css("top", vt)
	$('div#video').css("left", vl)						  
						  
						  
						  });






