var Client="joqr"
var apigm = "http://www.uniqueradio.jp/unique"
var Program_name;
var Program_img ="http://www.uniqueradio.jp/img/spacer.gif";
var Program_link;
var Program_text;

function intstart(){

}
function startFile(){
	clearTimeout(maintimer);
	requestFile('','GET',apigm,true,on_loaded_2)
	maintimer = setTimeout("startFile()",30000);
}

	function on_loaded_2(oj)
	{
      var res	= oj.responseText 
      eval(res)
      if((!Program_name)&&(!Program_img)&&(!Program_link)&&(!Program_text)&&(!Program_personality)){
         //location.href = "end.html"
      }else{

         document.getElementById('P_img').innerHTML = '<img src="'+Program_img+'" border="0" width="96" height="72">';

         if(Program_name){
            document.getElementById('P_name').innerHTML = decodeURIComponent(Program_name);
         }else{
            document.getElementById('P_name').innerHTML = '';
         }
         if(Program_text){
            document.getElementById('P_text').innerHTML = decodeURIComponent(Program_text);
         }else{
            document.getElementById('P_text').innerHTML = '';
         }
      }
	}
function createHttpRequest(){
  if(window.ActiveXObject){
    try {
      return new ActiveXObject("Msxml2.XMLHTTP");
    } catch (e) {
      try {
        return new ActiveXObject("Microsoft.XMLHTTP");
      } catch (e2) {
        if(window.XMLHttpRequest){



          return new XMLHttpRequest();
        } else {
          return null;
        }
      }
    }
  } else if(window.XMLHttpRequest){
    return new XMLHttpRequest();
  } else {
    return null;
  }
}

	function requestFile( data , method , fileName , async ,callback )
	{
		var httpoj = createHttpRequest()	

		httpoj.onreadystatechange = function()	
		{ 
			if ((httpoj.readyState==4) && (httpoj.status==200))
			{ 
				callback(httpoj)
			}
		}
		httpoj.open( method , fileName , async )
		httpoj.setRequestHeader('If-Modified-Since', 'Wed, 15 Nov 1995 00:00:00 GMT');
		httpoj.send( data ) 
	}


function wopen(url){
win=window.open(url,"new","width=370,height=440,resizable=no,scrollbars=no,menubar=no,toolbar=no,directories=no,status=yes");
}
function wopen1(){
win=window.open("http://www.uniqueradio.jp/vodplayer/player1/","new","width=370,height=440,resizable=no,scrollbars=no,menubar=no,toolbar=no,directories=no,status=yes");
}

function wopen2(){
win=window.open("http://www.uniqueradio.jp/vodplayer/player2/","new","width=370,height=440,resizable=no,scrollbars=no,menubar=no,toolbar=no,directories=no,status=yes");
}

function wopen4(){
win=window.open("http://www.uniqueradio.jp/vodplayer/player4/","new","width=370,height=440,resizable=no,scrollbars=no,menubar=no,toolbar=no,directories=no,status=yes");
}

function wopen11(){
win=window.open("http://www.uniqueradio.jp/vodplayer/player11/","new","width=370,height=440,resizable=no,scrollbars=no,menubar=no,toolbar=no,directories=no,status=yes");
}

function wopen20(){
win=window.open("http://www.uniqueradio.jp/vodplayer/player20/","new","width=370,height=440,resizable=no,scrollbars=no,menubar=no,toolbar=no,directories=no,status=yes");
}

function wopen_request(){
win=window.open("http://www.uniqueradio.jp/request.html","request","width=580,height=500,resizable=yes,scrollbars=no,menubar=no,toolbar=no,directories=no,status=yes");
}

function WindowOpens(url,width,height){
win=window.open(url,"window","width=" + width + ",height=" + height +",resizable=yes,scrollbars=yes,menubar=no,toolbar=no,directories=no,status=yes");
}

function fullopen(strURL) {
var options;

    if (navigator.appName.charAt(0)=='M')
        options = "fullscreen=1,scrollbars=0";
    else if (navigator.appName.charAt(0)=='N')
        options = "scrollbars=0,left=0,top=0"
                + ",width=" + screen.width
                + ",height=" + screen.height;

    window.open(strURL, "", options);
}

