			$(document).ready(function(){

				$('.boxgrid.slidedown').hover(function(){
					$(".cover", this).stop().animate({top:'272px'},{queue:false,duration:300});
				}, function() {
					$(".cover", this).stop().animate({top:'0px'},{queue:false,duration:300});
				});
				
				
				//e-newsletter slide
				$(".btn-slide").click(function(){
					$("#panel").slideToggle(300);
					$(this).toggleClass("active"); return false;
				});
				
			
	
			});
			
			$(function(){
					$('.resize').click(function(){
						var ourText = $('body');
						var currFontSize = ourText.css('font-size');
						var finalNum = parseFloat(currFontSize, 10);
						var stringEnding = currFontSize.slice(-2);
						if(this.id == 'large') {
							finalNum *= 1.2;
						}
						else if (this.id == 'small'){
							finalNum /=1.2;
						}
						ourText.css('fontSize', finalNum + stringEnding);
					});
				});

// Editing Instructions
// 1. Change '#your_div_id' to whatever the ID attribute of your DIV is
// 2. Change '175' to whatever the height of your header is, if you have no header, set to 0

/********************************
*   (C) 2009 - Thiago Barbedo   *
*   - tbarbedo@gmail.com        *
*********************************/
window.onscroll = function()
{
    if( window.XMLHttpRequest ) {
            $('#offer').css('position','fixed');
            $('#offer').css('bottom','0');
    }
}