﻿/*
*  Load Prototype and script.aculo.us, then slide a div up and down.
*/

google.load("prototype", "1");
google.load("scriptaculous", "1");

function hidesearch() {
    $('searchdiv').hide(); return false;
}

function slideupdownsearch() {
    if (document.getElementById('tbxHiddenStatus').value == "shown") {
        Effect.SlideUp('searchdiv', { 'duration': 1 });
        document.getElementById('searchbutton').style.backgroundImage = "url('images/searchbuttonbackground.gif')";
        document.getElementById('tbxHiddenStatus').value = "hidden" 
    }
    else {
        Effect.SlideDown('searchdiv', { 'duration': 1 });
        document.getElementById('searchbutton').style.backgroundImage = "url('images/hidebuttonbackground.gif')";
        document.getElementById('tbxHiddenStatus').value = "shown" 

    }
    return false;
}



