//菜单列表
var menu1="<a href='002-3.html'>时空之旅</a><br><a href='002-1.html'>欢乐马戏</a>";
var menu2="<a href='004.html'>白玉兰剧场</a><br><a href='006.html'>南市影剧院</a>";


//防止错误出现
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 fiximgwin(url)
{
var imgwin=window.open('','img','width=50,height=50')//打开一个空白窗口，并初始化大小
imgwin.focus()//使窗口聚焦，成为当前窗口
var HTML="<html>\r\n<head>\r\n<title>精彩剧照欣赏</title>\r\n</head>\r\n<body oncontextmenu=\"return false\" onselectstart=\"return false\" ondragstart=\"return false\" oncopy=\"return false\" oncut=\"return false\" saveAs=\"return false\" leftmargin=\"0\" topmargin=\"0\">\r\n<a href=\"javascript:close()\"><img src=\""+url+"\" onload=\"window.resizeTo(this.width+10,this.height+36);window.moveTo((screen.width-this.width)/2,(screen.height-this.height)/2)\" border=0></a>\r\n</body>\r\n</html>"//这里是关键代码，在图片加载完后调用resizeTo()和moveTo()方法调整窗口大小和位置
var doc=imgwin.document
doc.open("text/html","replace") //指定文档的多用途网际邮件扩充协议
doc.write(HTML)//向空白窗口写入代码
doc.close()//关闭输入流，并强制发送数据显示。
}


function check(loading) {
	//关闭页面加载层
	document.all.Loading_layer.style.display = "none";
}
<!--
function window_onload() {
check(document.all.loading_Sender);
}
//-->


//弹出窗口2
<!--
function MM_openBrWindow(theURL,winName,features) { //v2.0
window.open(theURL,winName,features);
}
//-->

//打开全文
function  article(a)
{
	if( a == "wholelength" )
	{
		whole.style.display = "none";
		part.style.display = "block";
	}
	if( a == "partlength" )
	{
		whole.style.display = "block";
		part.style.display = "none";
	}

}

//支付方式转换
function  service(v)
{
	if( v == "deliv" )
	{
		delivtable.style.display = "block";
		posttable.style.display = "none";
	}
	if( v == "bank" )
	{
		delivtable.style.display = "none";
		posttable.style.display = "block";
	}

}

//漂浮
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 + 40) + doc.body.scrollTop;
      if (top -2 + 300 >= doc.body.clientHeight) {
	obj2.style.pixelTop = (bottom + 40) + doc.body.scrollTop - 0 - 3;
      }
      obj2.style.pixelLeft = (left - 0) + 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;
}
