﻿$(document).ready(function(){
/*
   	$(".shrink").hover(function()
    {
        $(this).animate({
            height: 150
        },1000); 
    }, function()
    {
        $(this).animate({
            height: 50
        },500);
    });
*/
    
    $(".loginbutton img").hover(function()
    {
        $(this).attr("src", "img/loginButton_hover.png");
    }, function()
    {
        $(this).attr("src", "img/loginButton.png");
    });

    $(".signupbutton img").hover(function()
    {
        $(this).attr("src", "img/signUpButton_hover.png");
    }, function()
    {
        $(this).attr("src", "img/signUpButton.png");
    });
    
    $(".recommandbar img").hover(function()
    {
        $(this).attr("src", "img/recommendToAFriendButton_hover.png");
    }, function()
    {
        $(this).attr("src", "img/recommendToAFriendButton.png");
    });

});



function tempUnitSwitch()
{
    if ( $('input[name=rdbgrpTemp]:checked').val() == "rdbFahrenheit")
    {
        $(".TempUnit").html('ºF');
    }
    else //&#8451;
    {
        $(".TempUnit").html('ºC');
    }
}

function lengthUnitSwitch()
{
    if ( $('input[name=rdbgrpLength]:checked').val() == "rdbFeet")
    {
        $(".LengthUnit").html('ft');
    }
    else
    {
        $(".LengthUnit").html('m');
    }
}

function volumnUnitSwitch()
{
    if ( $('input[name=rdbgrpVolumn]:checked').val() == "rdbGallon")
    {
        $(".VolumnUnit").html('gal');
    }
    else //&#8451;
    {
        $(".VolumnUnit").html('L');
    }
}

function recommendPage()
{
    $("#butRecommend").hide();
    $("#divRecommendDetail").show();
}


