// NAVBAR
function display_subnav(sub_div) {
	document.getElementById('store_links').style.display='none';
	document.getElementById('how_links').style.display='none';
	document.getElementById('where_links').style.display='none';
	document.getElementById('who_links').style.display='none';
	document.getElementById('what_links').style.display='none';
	document.getElementById('why_links').style.display='none';
	document.getElementById(sub_div).style.display='block';
}

function hide_subnav() {
	document.getElementById('store_links').style.display='none';
	document.getElementById('how_links').style.display='none';
	document.getElementById('where_links').style.display='none';
	document.getElementById('who_links').style.display='none';
	document.getElementById('what_links').style.display='none';
	document.getElementById('why_links').style.display='none';
}

//POP GOES THE WINDOW
function newWindow(filename,w,h) {
var Prop= 
"location=no,scrollbars=no,menubars=no,toolbars=no,resizable=yes"+",width=" + w + ",height=" + h + ",top=" +50+ ",left=" +125;
    
if (!window.window2) {
        // has not yet been defined
        window2 = window.open(filename,'windowRef',Prop);
    }
    else {
        // has been defined
        if (window2.focus) {
            // still open
           window2.close();
	     window2 = window.open(filename,'windowRef',Prop);

        }
        else {
            window2 = window.open(filename,'windowRef',Prop);
        }
    }
}

function newWindow2(filename,w,h) {
var Prop= 
"location=no,scrollbars=yes,menubars=no,toolbars=no,resizable=yes"+",width=" + w + ",height=" + h + ",top=" +50+ ",left=" +125;
    
if (!window.window2) {
        // has not yet been defined
        window2 = window.open(filename,'windowRef',Prop);
    }
    else {
        // has been defined
        if (window2.focus) {
            // still open
          window2.close();
	     window2 = window.open(filename,'windowRef',Prop);

        }
        else {
            window2 = window.open(filename,'windowRef',Prop);
        }
    }
}

function newWindow3(filename,w,h) {
var Prop= 
"location=no,scrollbars=yes,menubars=no,toolbars=no,resizable=yes"+",width=" + w + ",height=" + h + ",top=" +50+ ",left=" +125;
    
if (!window.window3) {
        // has not yet been defined
        window3 = window.open(filename,'windowRef',Prop);
    }
    else {
        // has been defined
        if (window3.focus) {
            // still open
           window3.close();
	     window3 = window.open(filename,'windowRef',Prop);

        }
        else {
            window3 = window.open(filename,'windowRef',Prop);
        }
    }
}









function homeStyle() {
	window.parent.document.getElementById('musicFrame').style.backgroundColor='#75723D'; 
	window.parent.document.getElementById('mainFrame').style.backgroundImage='url(images/home_bkgrd.gif)';
	window.parent.document.getElementById('mainFrame').style.backgroundRepeat='repeat-x';
	window.parent.document.body.style.backgroundImage='url(images/home_bkgrd.gif)'; 
	window.parent.document.body.style.backgroundRepeat='repeat-x';
	window.parent.document.body.style.backgroundColor='#75723D';
}

/*  ########### WHO SCHTUFF ################ */
function whoStyle() {
	window.parent.document.getElementById('musicFrame').style.backgroundColor='#71654B'; 
	window.parent.document.getElementById('mainFrame').style.backgroundImage='url(images/who_bkgrd.gif)'; 
	window.parent.document.getElementById('mainFrame').style.backgroundRepeat='repeat-x'; 
	window.parent.document.body.style.backgroundImage='url(images/who_bkgrd.gif)'; 
	window.parent.document.body.style.backgroundRepeat='repeat-x';
	window.parent.document.body.style.backgroundColor='#71654B'; 
}

function whoStyle2() {
	window.parent.parent.document.getElementById('musicFrame').style.backgroundColor='#71654B'; 
	window.parent.parent.document.getElementById('mainFrame').style.backgroundImage='url(images/who_bkgrd.gif)'; 
	window.parent.parent.document.getElementById('mainFrame').style.backgroundRepeat='repeat-x'; 
	window.parent.parent.document.body.style.backgroundImage='url(images/who_bkgrd.gif)'; 
	window.parent.parent.document.body.style.backgroundRepeat='repeat-x';
	window.parent.parent.document.body.style.backgroundColor='#71654B'; 
}

function who_select() {
	for (i=1; i<4; i++) {
	var elem = 'w' + i;
	document.getElementById(elem).style.color='#2E2813';
	}
}

/*  ########### WHAT SCHTUFF ################ */
function whatStyle() {
	window.parent.document.getElementById('musicFrame').style.backgroundColor='#5F5E40'; 
	window.parent.document.getElementById('mainFrame').style.backgroundImage='url(images/what_bkgrd.gif)';
	window.parent.document.getElementById('mainFrame').style.backgroundRepeat='repeat-x';
	window.parent.document.body.style.backgroundImage='url(images/what_bkgrd.gif)'; 
	window.parent.document.body.style.backgroundRepeat='repeat-x';
	window.parent.document.body.style.backgroundColor='#5F5E40';
}

function what_select() {
	for (i=1; i<4; i++) {
	var elem = 'w' + i;
	document.getElementById(elem).style.color='#2E2813';
	}
} 


function whereStyle() {
	window.parent.document.getElementById('musicFrame').style.backgroundColor='#646A76'; 
	window.parent.document.getElementById('mainFrame').style.backgroundImage='url(images/where_bkgrd.gif)'; 
	window.parent.document.getElementById('mainFrame').style.backgroundRepeat='repeat-x'; 
	window.parent.document.body.style.backgroundImage='url(images/where_bkgrd.gif)'; 
	window.parent.document.body.style.backgroundRepeat='repeat-x';
	window.parent.document.body.style.backgroundColor='#646A76';
}

function whereStyle2() {
	window.parent.parent.document.getElementById('musicFrame').style.backgroundColor='#646A76'; 
	window.parent.parent.document.getElementById('mainFrame').style.backgroundImage='url(images/where_bkgrd.gif)'; 
	window.parent.parent.document.getElementById('mainFrame').style.backgroundRepeat='repeat-x'; 
	window.parent.parent.document.body.style.backgroundImage='url(images/where_bkgrd.gif)'; 
	window.parent.parent.document.body.style.backgroundRepeat='repeat-x';
	window.parent.parent.document.body.style.backgroundColor='#646A76';
}

function whyStyle() {
	window.parent.document.getElementById('musicFrame').style.backgroundColor='#D7C59F'; 
	window.parent.document.getElementById('mainFrame').style.backgroundImage='url(images/why_bkgrd.gif)'; 
	window.parent.document.getElementById('mainFrame').style.backgroundRepeat='repeat-x';
	window.parent.document.body.style.backgroundImage='url(images/why_bkgrd.gif)'; 
	window.parent.document.body.style.backgroundRepeat='repeat-x';
	window.parent.document.body.style.backgroundColor='#D7C59F';
}

function whyStyle2() {
	window.parent.parent.document.getElementById('musicFrame').style.backgroundColor='#D7C59F'; 
	window.parent.parent.document.getElementById('mainFrame').style.backgroundImage='url(images/why_bkgrd.gif)'; 
	window.parent.parent.document.getElementById('mainFrame').style.backgroundRepeat='repeat-x';
	window.parent.parent.document.body.style.backgroundImage='url(images/why_bkgrd.gif)'; 
	window.parent.parent.document.body.style.backgroundRepeat='repeat-x';
	window.parent.parent.document.body.style.backgroundColor='#D7C59F';
}

function why_select() {
	for (i=1; i<5; i++) {
	var elem = 'w' + i;
	document.getElementById(elem).style.color='#2E2813';
	}
}
