﻿var contentw = 0;   
minpichr = 0.7;

function mouseover_ver(ver)
{
        if (selperiod!="tab_current" && ver=="tab_current") document.getElementById("tab_current").style.backgroundPosition="-48px 0px";
        if (selperiod!="tab_follow" && ver=="tab_follow") document.getElementById("tab_follow").style.backgroundPosition="-47px 0px"; 
        if (selperiod!="tab_past" && ver=="tab_past") document.getElementById("tab_past").style.backgroundPosition="-63px 0px"; 
}

function mouseout_ver(ver)
{
        if (selperiod!="tab_current" && ver=="tab_current") document.getElementById("tab_current").style.backgroundPosition="0px 0px";
        if (selperiod!="tab_follow" && ver=="tab_follow") document.getElementById("tab_follow").style.backgroundPosition="0px 0px"; 
        if (selperiod!="tab_past" && ver=="tab_past") document.getElementById("tab_past").style.backgroundPosition="0px 0px"; 
}
     
     
function page_postload() 
{
    if (selperiod.indexOf("tab_")==0)
    {
        switch (selperiod)
        {
            case "tab_current": document.getElementById("tab_current").style.backgroundPosition="-48px 0px"; break;
            case "tab_follow": document.getElementById("tab_follow").style.backgroundPosition="-47px 0px"; break;
            case "tab_past": document.getElementById("tab_past").style.backgroundPosition="-63px 0px"; break;
        }    
    }
    else    {
        document.getElementById(selperiod).className="selected";
    }
}  


