
//onerror = report;

function report() {
        return true;
}

function switchDiv(elementId, bolVisible,row) {
        if(row == '') { row=0; }
        if( document.getElementById ) { var theElement = document.getElementById(elementId); } else {
        if( document.all ) { var theElement = document.all[ elementId ]; } else { var theElement = new Object(); } }
        if( !theElement ) { return; }
        if( theElement.style ) { theElement = theElement.style; }
        if( typeof( theElement.display ) == 'undefined' && !( window.ScriptEngine && ScriptEngine().indexOf( 'InScript' ) + 1 ) ) { window.alert( 'Hidden navigation will not work in this browser' ); return; }
        if (bolVisible == true) {
                if (row == 0) {
                theElement.display = 'block';
                }
                                
                if(row == 2)
                {
                        if(browser == 'Internet Explorer')
                        {
                                theElement.display = 'block';
                        } else {
                                theElement.display = 'table';
                        }
                
                }
                
                if(row == 1)
                {
                        if(browser == 'Internet Explorer')
                        {
                                theElement.display = 'block';
                        } else {
                                theElement.display = 'table-row';
                        }
                }
                
        } else {
                theElement.display = 'none';
        }
}

// THIS CODE BY Four Points Cardinal
// http://www.fopo.net/
// Traffic Exchange Mods and Website Designs
// Custom Ventrino mods available by request
// Contact Joshua at joshuaditty@cardinal-points.com

var Pid;
var timerfix = 'no';
var stimercnt = 10;
var newblocksize = 0;
var newload=0;
function stimerfix() {
        if (Pid) {
                if (timerfix == 'no') {
                        clearInterval(Pid);
                        stimercnt = (waitTime+1)-Math.ceil(loaded/10);
                        timerfix='yes';
                        newload=loaded;
                }
        }
        if (timerfix == 'yes') {
                stimercnt=stimercnt-1;
                if (stimercnt <= 0) {
                        setTimeout('hidebar()',100);
                }
                newload=(waitTime-stimercnt)*10;
                newblocksize = blocksize*newload;
                if (newblocksize > barwidth-2) {
                        newblocksize=barwidth-2;
                }
                timbarfix=barheight-2;
                if (timbarfix > 0) {
                        resizeEl(PBdone, 0, newblocksize, timbarfix, 0);
                }
                document.getElementById('count').innerHTML=stimercnt;
        }
        if (stimercnt > 0) {
                setTimeout("stimerfix()",1000);
        }
}
stimerfix();

