 /*
    Created by Randy Bennet http://home.thezone.net/~rbennett/utility/javahead.htm
    Featured on JavaScript Kit (http://javascriptkit.com)
    For this and over 400+ free scripts, visit http://javascriptkit.com
    */

    function setVariables() {
        
        if (document.layers) {
        v=".top=";
        dS="document.";
        sD="";
        y="window.pageYOffset";
        }
        else if (document.all){
        v=".pixelTop=";
        dS="";
        sD=".style";
        y="document.body.scrollTop";
        }
        else if (document.getElementById){
        y="window.pageYOffset";
        }

        var myWidth = 0, myHeight = 0;
        if( typeof( window.innerWidth ) == 'number' ) {
        //Non-IE
        myHeight = window.innerHeight;
        } else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
        //IE 6+ in 'standards compliant mode'
        myHeight = document.documentElement.clientHeight;
        } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
        //IE 4 compatible
        myHeight = document.body.clientHeight;
        }
        tl = document.title;
        if (tl == "Ewe and Me Fiber Studio Index")
            {
                menuht = 500;
            }
        else
            {
                menuht = 480;
            }
        menDifference = (myHeight - menuht) / 2;
    }


    function checkLocation() {
        object="menuobject";
        yy=eval(y);
        yy=yy + menDifference;
        if (document.getElementById)
        document.getElementById("menuobject").style.top=yy
        else
        eval(dS+object+sD+v+yy)
        setTimeout("checkLocation()",10);
    }
    
 