function showDiv(id){
hideDivs(4);
if(document.getElementById(id).style.display == "none"){
document.getElementById(id).style.display = "block";
}else{ 
document.getElementById(id).style.display = "none";
}
}


function hideDivs(divNum){
for(i=1; i<=divNum; i++){
if(document.getElementById('sub'+i).style.display == "block"){
document.getElementById('sub'+i).style.display = "none";
}
}return true;
}

function verifyCompatibleBrowser(){ 
    this.ver=navigator.appVersion 
    this.dom=document.getElementById?1:0 
    this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom)?1:0; 
    this.ie4=(document.all && !this.dom)?1:0; 
    this.ns5=(this.dom && parseInt(this.ver) >= 5) ?1:0; 
 
    this.ns4=(document.layers && !this.dom)?1:0; 
    this.bw=(this.ie5 || this.ie4 || this.ns4 || this.ns5) 
    return this 
} 

function openWindow(href) {
bw=new verifyCompatibleBrowser();
if(bw.ns4){
newWindow=window.open(href,'new','toolbar=no,scrollbars=yes,location=no,width=510,height=619');
}else{
newWindow=window.open(href,'new','toolbar=no,location=no,width=504,height=600');
}
newWindow.focus();
}
function closeWindow() {
self.close();
}

function openVideoWindow(href) {
newWindow=window.open(href,'newVideo','toolbar=no,location=no,width=450,height=300');
newWindow.focus();
}