	function setEqualHeight(columns)
	 {
		 var tallestcolumn = 0;
		 columns.each(
			 function()
			 {
				 currentHeight = $(this).height();
					 if(currentHeight > tallestcolumn)
					 {
					 	tallestcolumn  = currentHeight;
					 }
			 }
		 );
		 if (tallestcolumn > 60)
		 	columns.height(tallestcolumn);
		else
			columns.height(60);
		 //alert("test");
	 }

	 //Set css stylesheet based upon cookie value
	 try {
	     if ($.cookie("css")) {
	         $("link.changer").attr("href", $.cookie("css"));
	     }
	 }
	 catch (err) {
	 }

$(document).ready(function() {
    	    setEqualHeight($(".offer_desc > div.offer_text"));

    //Full Caption Sliding (Hidden to Visible)
    	    $('.boxgrid.captionfull').hover(function() {
    	        $(".caption_teaser", this).stop().animate({ top: '88px' }, { queue: false, duration: 160 });
    	        $(".cover", this).stop().animate({ top: '48px' }, { queue: false, duration: 400 });
    	    }, function() {
    	        $(".cover", this).stop().animate({ top: '88px' }, { queue: false, duration: 160 });
    	        $(".caption_teaser", this).stop().animate({ top: '68px' }, { queue: false, duration: 500 });
    	    });


    //Change stylesheet for content text.
    $(".font_change").click(function() {
        $("link.changer").attr("href", $(this).attr('rel'));
        $.cookie("css", $(this).attr('rel'), { expires: 365, path: '/' });
        return false;
    });

});

