// JavaScript Document
function forgotid() {
    window.open('forgotpass.php','','height=220,width=420');
}

function changenow(i) {

var c1="#3F547F";
var selectedc="#999999";

for (x=0;x<3;x++) {
	document.getElementById("_"+x).style.backgroundColor = c1;
}

	switch(i) {
		case 'all' :
			bshow(i);
			bhide('new');
			bhide('pop');
			document.getElementById("_0").style.backgroundColor = selectedc;
			break;
		case 'new' :
			bshow('new');
			bhide('all');
			bhide('pop');
			document.getElementById("_1").style.backgroundColor = selectedc;
			break;
		case 'pop' :
			bshow('pop');
			bhide('all');
			bhide('new');
			document.getElementById("_2").style.backgroundColor = selectedc;
			break;
	}
}

function vchangenow(i) {

var c1="#3F547F";
var selectedc="#999999";

for (x=3;x<6;x++) {
	document.getElementById("_"+x).style.backgroundColor = c1;
}

	switch(i) {
		case 'vnew' :
			bshow(i);
			bhide('vmost');
			bhide('vtop');
			document.getElementById("_3").style.backgroundColor = selectedc;
			break;
		case 'vmost' :
			bshow(i);
			bhide('vnew');
			bhide('vtop');
			document.getElementById("_4").style.backgroundColor = selectedc;
			break;
		case 'vtop' :
			bshow(i);
			bhide('vnew');
			bhide('vmost');
			document.getElementById("_5").style.backgroundColor = selectedc;
			break;
	}
}

function bshow(i) {
	a=document.getElementById(i);
	a.style.visibility="visible";
	a.style.position = "";
	a.style.zIndex = 9;	
}
function bhide(i) {
	a=document.getElementById(i);
	a.style.visibility="hidden";
	a.style.position = "absolute";
	a.style.zIndex = 0;	
}

function radio() {
    window.open('shoutcast/player.php','_blank','height=162,width=362');
}

