<!--

// Preload Tab Images
var daily_article =  new Image(); daily_article.src =  "images/general/daily_article_on.gif";
var weekly_article = new Image(); weekly_article.src = "images/general/weekly_article_on.gif";
var monthly_article =    new Image(); monthly_article.src =    "images/general/monthly_article_off.gif";

var divids1=new Array('monthlyarticle','weeklyarticle','dailyarticle');
var tabids1=new Array('monthly_article','weekly_article','daily_article');


function switchid1(id,tab){  
        hideallids1();
        showdiv1(id,tab);
}

function hideallids1(){
        //loop through the array and hide each element by id
        for (var i=0;i<divids1.length;i++){
                hidediv1(divids1[i],tabids1[i]);
        }                 
}

function hidediv1(id,taboff) {
        //safe function to hide an element with a specified id
        if (document.getElementById) { // DOM3 = IE5, NS6
                document.getElementById(id).style.display = 'none';
        }
        else {
                if (document.layers) { // Netscape 4
                        document.id.display = 'none';
                }
                else { // IE 4
                        document.all.id.style.display = 'none';
                }
        }
        // switch tab image to off state
        document.getElementById(taboff).src = "images/general/"+taboff+"_off.gif";
}

function showdiv1(id,tab) {
        //safe function to show an element with a specified id
                  
        if (document.getElementById) { // DOM3 = IE5, NS6
                document.getElementById(id).style.display = 'block';
        }
        else {
                if (document.layers) { // Netscape 4
                        document.id.display = 'block';
                }
                else { // IE 4
                        document.all.id.style.display = 'block';
                }
        }
        // switch tab image to current selection
        document.getElementById(tab).src = "images/general/"+tab+"_on.gif";
}

// Preload Tab Images
var your_article1 =    new Image(); your_article1.src =    "images/general/your_article1_on.gif";
var your_article2 = new Image(); your_article2.src = "images/general/your_article2_on.gif";
var your_article3 =  new Image(); your_article3.src =  "images/general/your_article3_off.gif";

var divids=new Array('yourarticle1','yourarticle2','yourarticle3');
var tabids=new Array('your_article1','your_article2','your_article3');


function switchid(id,tab){  
        hideallids();
        showdiv(id,tab);
}

function hideallids(){
        //loop through the array and hide each element by id
        for (var i=0;i<divids.length;i++){
                hidediv(divids[i],tabids[i]);
        }                 
}

function hidediv(id,taboff) {
        //safe function to hide an element with a specified id
        if (document.getElementById) { // DOM3 = IE5, NS6
                document.getElementById(id).style.display = 'none';
        }
        else {
                if (document.layers) { // Netscape 4
                        document.id.display = 'none';
                }
                else { // IE 4
                        document.all.id.style.display = 'none';
                }
        }
        // switch tab image to off state
        document.getElementById(taboff).src = "images/general/"+taboff+"_off.gif";
}

function showdiv(id,tab) {
        //safe function to show an element with a specified id
                  
        if (document.getElementById) { // DOM3 = IE5, NS6
                document.getElementById(id).style.display = 'block';
        }
        else {
                if (document.layers) { // Netscape 4
                        document.id.display = 'block';
                }
                else { // IE 4
                        document.all.id.style.display = 'block';
                }
        }
        // switch tab image to current selection
        document.getElementById(tab).src = "images/general/"+tab+"_on.gif";
}

//-->



