document.write("<LINK media=screen href=\"../js/thickbox.css\" type=text/css rel=stylesheet>");
document.write("<SCRIPT src=\"../js/jquery.js\" type=text/javascript></SCRIPT>");
document.write("<SCRIPT src=\"../js/thickbox.js\" type=text/javascript></SCRIPT>");

//天气预报弹出窗
function show_lyrics2(song_id) {
  if (document.all['l' + song_id + 'A'] != null &&
      document.all['l' + song_id + 'B'] != null) {
    var objA = document.all['l' + song_id + 'A'];
    var objB = document.all['l' + song_id + 'B'];
    if (objB.style.display == 'none') {
      objA.style.display = 'none';
      objB.style.display = '';
    } else {
      objA.style.display = '';
      objB.style.display = 'none';
    }
  }
  return false;
}

var doc = document;

var alb_CO = null;
function show_album_cover(obj, enabled) {
  if (enabled == false) {
    return;
  }
  
  if (alb_CO != null) {
    hide_album_cover(alb_CO);
  }

  if(document.getElementById) {
    var obj2 = document.getElementById(obj.id + '2');
  } else if (document.all) {
    var obj2 = document.all[obj.id + '2'];
  }
  if (obj2 != null) {
    try {
      var rect = obj.getBoundingClientRect();
      var left = rect.left;
      var top = rect.top;
      var bottom = rect.bottom;

      obj2.style.pixelTop = (top - 2) + doc.body.scrollTop;
      if (top -2 + 300 >= doc.body.clientHeight) {
	obj2.style.pixelTop = (bottom - 196) + doc.body.scrollTop - 0 - 3;
      }
      obj2.style.pixelLeft = (left - 199) + doc.body.scrollLeft;
    } catch(e) {
      var left = obj.x;
      var top = obj.y-(-300-obj.height);
      obj2.style.left = left;
      obj2.style.top = top;
    }
    obj2.style.display = '';
    alb_CO = obj2;
  }
}
function hide_album_cover(obj, enabled) {
  
  if (enabled == false) {
    return;
  }
  obj.style.display = 'none';
  alb_CO = null;
}

//防止错误出现
function killErrors() {
return true;}
window.onerror = killErrors;
var pltsPop=null;
var pltsoffsetX = 10;   // 弹出窗口位于鼠标左侧或者右侧的距离；3-12 合适
var pltsoffsetY = 15;  // 弹出窗口位于鼠标下方的距离；3-12 合适
var pltsPopbg="#FFFFFF"; //背景色
var pltsPopfg="#000000"; //前景色
var pltsTitle="cvvvv";
document.write('<div id=pltsTipLayer style="display: none;position: absolute; z-index:10001"></div>');
function pltsinits()
{document.onmouseover=plts;
document.onmousemove=moveToMouseLoc;}
function plts()
{var o=event.srcElement;
if(o.alt!=null && o.alt!=""){o.dypop=o.alt;o.alt=""};
if(o.title!=null && o.title!=""){o.dypop=o.title;o.title=""};
pltsPop=o.dypop;
if(pltsPop!=null&&pltsPop!=""&&typeof(pltsPop)!="undefined")
{pltsTipLayer.style.left=-1000;
pltsTipLayer.style.display='';
var Msg=pltsPop.replace(/\n/g,"<br>");
Msg=Msg.replace(/\0x13/g,"<br>");
var re=/\{(.[^\{]*)\}/ig;
if(!re.test(Msg))pltsTitle="";
else{
re=/\{(.[^\{]*)\}(.*)/ig;
pltsTitle=Msg.replace(re,"$1")+"&nbsp;";
re=/\{(.[^\{]*)\}/ig;
Msg=Msg.replace(re,"");
Msg=Msg.replace("<br>","");}
var content =
'<table style="background:url(http://www.srts.net/travel/image1/channel.jpg) #ffffff;border:1px solid #444444;" id=toolTipTalbe><tr id=pltsPoptop><th id=topleft><p id=topright style="display:none"></th></tr><tr><td  style="padding:1px;line-height:135%">'+Msg+'</td></tr>'+
'<tr id=pltsPopbot style="display:none"><th><p id=botleft></p><p id=botright align=rightstyle="display:none"></th></tr></table>';
pltsTipLayer.innerHTML=content;
toolTipTalbe.style.width=Math.min(pltsTipLayer.clientWidth,document.body.clientWidth/2.2);
moveToMouseLoc();
return true;}else{pltsTipLayer.innerHTML='';
pltsTipLayer.style.display='none';
return true;}}
function moveToMouseLoc()
{if(pltsTipLayer.innerHTML=='')return true;
var MouseX=event.x;
var MouseY=event.y;
//window.status=event.y;
var popHeight=pltsTipLayer.clientHeight;
var popWidth=pltsTipLayer.clientWidth;
if(MouseY+pltsoffsetY+popHeight>document.body.clientHeight)
{popTopAdjust=-popHeight-pltsoffsetY*1.5;
pltsPoptop.style.display="none";
pltsPopbot.style.display="";}else{
popTopAdjust=0;pltsPoptop.style.display="";pltsPopbot.style.display="none";}
if(MouseX+pltsoffsetX+popWidth>document.body.clientWidth){
popLeftAdjust=-popWidth-pltsoffsetX*2;topleft.style.display="none";
botleft.style.display="none";
topright.style.display="";
botright.style.display="";}else
{popLeftAdjust=0;topleft.style.display="";botleft.style.display="";
topright.style.display="none";botright.style.display="none";}
pltsTipLayer.style.left=MouseX+pltsoffsetX+document.body.scrollLeft+popLeftAdjust;
pltsTipLayer.style.top=MouseY+pltsoffsetY+document.body.scrollTop+popTopAdjust;
return true;}
pltsinits();

//防止错误出现
function MM_findObj(n, d) { 
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document); return x;
}
function MM_showHideLayers() { 
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; }
    obj.visibility=v; }
}
function high(which2) { 
 theobject=which2 
 highlighting=setInterval("highlightit(theobject)",30) 
 } 
 function low(which2){ 
 clearInterval(highlighting) 
 which2.filters.alpha.opacity=80 
 } 
 function highlightit(cur2){ 
 if (cur2.filters.alpha.opacity<100) 
 cur2.filters.alpha.opacity+=13
 else if (window.highlighting) 
 clearInterval(highlighting) 
 }

//防止错误出现
var n=0;
var showNum = document.getElementById("num");
function Mea(value){
	n=value;
	setBg(value);
	plays(value);
	}
function setBg(value){
	for(var i=0;i<4;i++)
if(value==i){
		showNum.getElementsByTagName("td")[i].className='onbig';
		}
	else{	
		showNum.getElementsByTagName("td")[i].className='offbig';
		}
	}
function plays(value){
	with (fc){
		filters[0].Apply();
		for(i=0;i<4;i++)i==value?children[i].style.display="block":children[i].style.display="none";
		filters[0].play(); 		
		}
}
function clearAuto(){clearInterval(autoStart)}
function setAuto(){autoStart=setInterval("auto(n)", 4000)}
function auto(){
	n++;
	if(n>3)n=0;
	Mea(n);
}
function sub(){
	n--;
	if(n<0)n=3;
	Mea(n);
}
setAuto();