function que_JumpMenu(targ,selObj,restore){
	if (selObj.options[selObj.selectedIndex].value == 'welcome'){ 
		eval(targ + ".location='content/welcome.php'");

	}else if (selObj.options[selObj.selectedIndex].value == 'kronicle'){ 

		eval(targ + ".location='content/kronicle.php'");

	}else if (selObj.options[selObj.selectedIndex].value == 'webvision'){ 

		eval(targ + ".location='content/webvision.php'");

	}else if (selObj.options[selObj.selectedIndex].value == 'newforumposts'){ 

		eval(targ + ".location='content/newforumposts.php'");

	}else if (selObj.options[selObj.selectedIndex].value == 'que'){ 

		eval(targ + ".location='content/que.php'");

	}else{
  		eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
	}
  	if (restore) selObj.selectedIndex=0;
}


var g_bPaused = false; // To track pause button state;
onerror = ShowError; // Check for Jscript errors.

function changeSkin(){
	StopMe();
}

function changeChannel(value){
        StopMe();
	var url = value[value.selectedIndex].value;
	document.location.href = url;
}

function ShowError (msg,url,linenumber){
	alert(msg + " at line " + linenumber); // Display Jscript errors.
	// mediaPlayer.error.webHelp();
	StopMe();
}
	
function PlayMe(){ // Play the Player.

	if (mediaPlayer.controls.isAvailable('Play')){
                // g_bPaused = true;
		document.mediaPlayer.controls.play();
		// play.style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + src + "', sizingMethod='scale')"
	}
}

function PauseMe(){ // Pause the Player.
	if( g_bPaused == true ){
                // g_bPaused = false;
		document.mediaPlayer.controls.play();
	}else{  
                // g_bPaused = true;
		document.mediaPlayer.controls.pause();
	}
}
		
function StopMe(){ // Stop the Player.

	if (mediaPlayer.controls.isAvailable('Stop')){
                // g_bPaused = true;
		document.mediaPlayer.controls.stop();
	}	
}

function update (){
	var TimeNow = mediaPlayer.controls.currentPosition;
	var TimeTotal = mediaPlayer.currentMedia.duration;
	// divDuration.innerHTML = "Sec: ";
	// divDuration.innerHTML += Math.floor(TimeTotal - TimeNow);
}

function next (){
	if (document.mediaPlayer.controls.isAvailable('Next')) document.mediaPlayer.controls.next();
}

function previous (){
	if (document.mediaPlayer.controls.isAvailable('Previous')) document.mediaPlayer.controls.previous();
}

function changeColor(idd, bgg, txxt) {
	idd.style.background=bgg;
	idd.style.color=txxt

}

function testurl(url){
	 var qurl = url;
	 StopMe();
	 document.mediaPlayer.URL = qurl;
	 document.mediaPlayer.controls.play();

	// divPlayerinfo.innerHTML = "<embed src=http://www.phong.com/astro/mouse2/fluidian.swf width=50% height=50%>";
}

function fullscreen(){
	if (document.mediaPlayer.playState == 3) document.mediaPlayer.fullScreen = 'true';
}

    function toggle(id) { 
      if (document.getElementById(id).style.display=="block") { 
        document.getElementById(id).style.display="none"; 
      } else { 
        document.getElementById(id).style.display="block"; 
      } 
    }







