function    set_active_menu()
{
    //  set some menu-options active
    var host        =   'www.yellowbirdsdonthavewingsbuttheyflytomakeyouexperiencea3dreality.com';
    var full_host   =   'http://'+host;
    
    var current_href    =   document.location.href;
    var curr            =   current_href.split('?');
    var curr_arr        =   curr[0].split('\/\/');
    var current_href    =   curr_arr[1].replace(host,'');
    var current_href_s  =   current_href+'/';
    
    var menu            =   document.getElementById('menu');
    if(menu)
    {
        var as              =   menu.getElementsByTagName('a');   
        for(var i=0;i<as.length;i++)
        {
            var a_href      =   as[i].getAttribute('href');
            /* IE does it absolute.. why? */
            a_href          =   a_href.replace(full_host,'');
            if(current_href == a_href || current_href_s == a_href || current_href.indexOf(a_href) !== -1)
            {
                as[i].className =   'active';
            }
        }
    }
    
    var submenu         =   document.getElementById('submenu');
    if(submenu)
    {
        var as              =   submenu.getElementsByTagName('a');   
        for(var i=0;i<as.length;i++)
        {
            var a_href      =   as[i].getAttribute('href');
            a_href          =   a_href.replace(full_host,'');
            if(current_href == a_href || current_href_s == a_href || current_href.indexOf(a_href) !== -1)
            {
                as[i].className =   'active';
            }
        }
    }   
}

function preload_footer()
{
    var photos      =   new Array();
    photos[1]       =   new Image();
    photos[1].src   =   "/images/_common/facebook_over.png";
    photos[2]       =   new Image();
    photos[2].src   =   "/images/_common/twitter_over.png";
    photos[3]       =   new Image();
    photos[3].src   =   "/images/_common/linkedin_over.png";
}