﻿function LoadSwf(url,wmode,width,Height) 
{ 
    var strswf = "";
     strswf = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" '+
	           'codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" ' +
	           'width="'+ width +'" height="'+ Height +'" >' +
              '<param name="movie" value="'+ url +'">' +
              '<param name="quality" value="high">' +
              '<param name="allowfullscreen" value="true">' +
              '<param name="wmode" value="transparent">' +
              '<embed src="<%=Content%>" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" ' +
              ' width="'+ width +'" height="'+ Height +'"></embed>' + 
              '</object>';
    document.write(strswf);
	//document.write("<embed src='" + url + "' wmode=" + wmode + " quality='high' pluginspage=http://www.macromedia.com/go/getflashplayer type='application/x-shockwave-flash' width='" + width + "' height='" + Height + "'></embed>"); 
	
} 
/*===============设置页面信息条数==========================================*/
function setPageSize(pagecount) {
    var url = '/Inc/SetPara.asp?Act=SetPageSize&Parm=' + pagecount;
    AjaxCall(url,"ajaxRefresh")
}
/*===============设置页面显示的方式========================================*/
function setListStyle(style) {
     var url = '/Inc/SetPara.asp?Act=setListStyle&Parm=' + style;
    AjaxCall(url,"ajaxRefresh")
}
/*===============发送给好友========================================*/
function SendToFriend() 
{
    var url = location.href;
    var title = document.title;
    return false;
    alert(url + '\r\n' + title);
}
/*===============设置信息级别========================================*/
function SetInfoRank(InfoRank,ContentID) 
{
    var url = location.href;
    var title = document.title;
    alert( '已经评级,谢谢您的参与!' );
    return false;
    alert(url + '\r\n' + ContentID);
}
/*===============发送给好友========================================*/
function CheckTopLogin() 
{
   //alert('登录');
}
/*===============发送给好友========================================*/
function RegisterMember() 
{
   //alert('注册会员');
}

function thumbErr(img) 
{
    this.src = "/images/nopic.gif";
}
function copytomem(objname)
{
    var obj = Ob(objname);
    if((typeof obj.value)=="string")
    {
        alert("链接地址复制成功!\n\n您可以通过邮件\QQ\MSN等聊天工具发送给您的朋友!")
        window.clipboardData.setData("Text",obj.value);
        obj.select();
    }
}
