
function addtolist(id,MusicName,Singer,which)	//添加到临时收藏夹
{ 
window.open("ylist.asp?id="+id+"&which="+which+"&MusicName="+MusicName+"&Singer="+Singer,"addtolist","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=yes,top=10,left=10,width=600,height=400"); 
}

function open_window(url,windowname,size)	//打开新窗口
{ 
window.open(url,windowname,"toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=yes,top=10,left=10,"+size); 
}

function open_window1(url)	//可完全防止歌曲地址外泄,暂时不用
{ 
var arr = showModalDialog(url,"","dialogWidth:245; dialogHeight:85; status:0");
}


//长乐未央音乐播放器V5.0
minimizebar="images/minimize.gif";   //窗口右上角最小化“按钮”的图片
minimizebar2="images/minimize2.gif"; //鼠标悬停时最小化“按钮”的图片
closebar="images/close.gif";         //窗口右上角关闭“按钮”的图片
closebar2="images/close2.gif";       //鼠标悬停时关闭“按钮”的图片
icon="images/icon.gif";              //窗口左上角的小图标

function noBorderWin(fileName,wtit)  //定义一个弹出无边窗口的函数，能数意义见下面“参数说明”，实际使用见最后的实例。
/*
------------------参数说明-------------------
fileName   ：无边窗口中显示的文件。
w　　　　   ：窗口的宽度。
h　　　　   ：窗口的高度。
titleBg    ：窗口“标题栏”的背景色以及窗口边框颜色。
moveBg     ：窗口拖动时“标题栏”的背景色以及窗口边框颜色。
titleColor ：窗口“标题栏”文字的颜色。
titleWord  ：窗口“标题栏”的文字。
scr        ：是否出现滚动条。取值yes/no或者1/0。
--------------------------------------------
*/
{
  var w=505;
  var h=419;
  var titleBg="#B6B6D8";
  var moveBg="EFEFEF";
  var titleColor="#000000";
  var titleWord="<font face=宋体 style='font-size:9pt'>|"+wtit+"| HMPlayer4.0</font>";
  var scr=0;

  var allWin="<head>"+
             "  <OBJECT id=hhctrl type='application/x-oleobject' classid='clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11'><param name='Command' value='minimize'></object>"+
			 "</head>"+
             "<frameset rows='19,*' border=0 frameborder=0>"+
             "  <frame name=header scrolling=no noresize>"+
		     "  <frame name=main src="+fileName+" scrolling="+scr+">"+
		     "</frameset>";  //变量allWin为整个窗口中的内容
  var topWin="<body topmargin=0 leftmargin=0>"+
             "  <table border=0 cellpadding=0 cellspacing=0 width=100% height=100%>"+
			 "    <tr height=20 bgcolor="+titleBg+" onselectstart='return false' onmousedown='x=event.x;y=event.y;setCapture();top.main.document.body.style.border=\"1px solid "+moveBg+"\";this.bgColor=\""+moveBg+"\"' onmouseup='releaseCapture();top.main.document.body.style.border=\"1px solid "+titleBg+"\";this.bgColor=\""+titleBg+"\"' onmousemove='if(event.button==1)top.moveTo(screenLeft+event.x-x,screenTop+event.y-y);'>"+
			 "      <td width=21 align=center><img width=12 width=12 src="+icon+"></td>"+
			 "      <td style=\"font-family:宋体; font-size:12px; color:"+titleColor+";\"><span style='top:1;position:relative;cursor:default;'>"+titleWord+"</span></td>"+
			 "    </tr>"+
			 "  </table>"+
			 "  <div style='position:absolute; left:"+(w-30)+"px; top:4px; width:12px; height:12px; z-index:100'><img border=0 width=12 height=12 alt=最小化 src="+minimizebar+" ; onmouseover=this.src='"+minimizebar2+"' onmouseout=this.src='"+minimizebar+"'></div>"+
			 "  <div style='position:absolute; left:"+(w-14)+"px; top:4px; width:12px; height:12px; z-index:100'><img border=0 width=12 height=12 alt=关闭 src="+closebar+" onmousedown=top.close(); onmouseover=this.src='"+closebar2+"' onmouseout=this.src='"+closebar+"'></div>"+
			 "</body>";  //变量topWin为Title部分的内容
  nbw=window.open('','','fullscreen=yes');  //打开一个全屏窗口
  nbw.resizeTo(w,h);  //重新定制窗口大小
  nbw.moveTo((screen.width-w)/2,(screen.height-h)/2);  //把窗口移动到屏幕中央
  nbw.document.writeln(allWin);  //向整个窗口中写入内容
  nbw.header.document.writeln(topWin);  //向Title部分写入内容
  nbw.main.document.body.style.border="1px solid "+titleBg;  //定义窗口的边框样式
}




//长乐未央音乐播放器V4.0
function hover(id,wert){
if(document.all) document.all[id].filters.alpha.opacity = wert;
}

function open_window2(url,wtit,wna) {
theURL=url 
wname = wna 
W=502; 
H=400; 
windowCERRARa = "images/close_a.gif"  
windowCERRARd = "images/close_d.gif"
windowCERRARo = "images/close_o.gif"
windowNONEgrf = "images/vficon.gif" 
windowCLOCK = "images/clock.gif" 
windowREALtit = "歌曲播放中...请在下次点击歌曲时关闭此窗口。" 
windowTIT = "<font face=宋体 style='font-size:9pt'>&nbsp;&nbsp;&nbsp;|"+wtit+"| HMPlayer4.0</font>"
windowBORDERCOLOR = "#000000"				//标题栏边框色
windowBORDERCOLORsel = "#000000"			//移动窗口时标题栏边框色			
windowTITBGCOLOR = "#B6B6D8"				//标题栏背景色
windowTITBGCOLORsel = "#EFEFEF"				//移动窗口时标题栏背景色
openchromeless(theURL, wname, W, H, windowCERRARa, windowCERRARd, windowCERRARo, windowNONEgrf, windowCLOCK, windowTIT, windowREALtit , windowBORDERCOLOR, windowBORDERCOLORsel, windowTITBGCOLOR, windowTITBGCOLORsel)
}
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) 
  x.src=x.oSrc;
}
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
  var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; 
  i++)
  if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
function MM_findObj(n, d) { //v3.0
  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_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
  if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; 
  x.src=a[i+2];}
}


