function LoadFlv(strFlash,strWidth,strHeight,strObj)
{
	var fla ="<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='"+strWidth+"' height='"+strHeight+"'>"+
                "<param name='movie' value='../../Flash/"+strFlash+"' />"+
                "<param name='quality' value='high' />"+
                "<param name='SCALE' value='noborder' />"+
				"<param name='wmode' value='transparent'>"+
                "<embed src='Fla/"+strFlash+"'width='"+strWidth+"' height='"+strHeight+"' quality='high' pluginspage=' http://www.macromedia.com/go/getflashplayer'"+
       	         "    type='application/x-shockwave-flash' scale='noborder'></embed>"+
            "</object>";
			if(typeof($(strObj))!= "undefined" &&$(strObj)!=null&&$(strObj)!="")
			{
				$(strObj).innerHTML=fla;
			}
}

window.onload=function()
{
	LoadFlv("banner.swf","752","77","MingLu")
	LoadFlv("nzbaidu.swf","752","77","nzbaidu");
}

function GetBoothNum(str,hallClassID,BoothName,BoothNum)
{
    if(str=="")
   {
       if(confirm("此展位抢注中,是否申请该展位？"))
       {
            if(GetCookie("UserID")!=null&&GetCookie("UserID")!="")
            {
                 window.open("../Booth/BoothManage.aspx?ProClass="+hallClassID+"&Page="+BoothName+"&BoothNum="+BoothNum+"","","height=500,width=850,top=50,left=50,   toolbar=yes,   menubar=yes,scrollbars=yes,   resizable=yes,   location=yes,   status=yes");
            }
            else
            {
                alert("您还没有登陆，或还没有注册账号，请登录或注册账号！");
                window.open('../../User/UserLogin.aspx?ProClass='+hallClassID+'&Page='+BoothName+'&BoothNum='+BoothNum+'','','height=500,width=850,top=50,left=50,   toolbar=yes,   menubar=yes,scrollbars=yes,   resizable=yes,   location=yes,   status=yes');
            }
       }
   } 
   else
   {
        ymPrompt.setDefaultCfg({maskAlpha:0.7});
         var arr=str.split(",");
         var ss=hallClassID+","+BoothName;
        $win({message:"../BoothNum/BoothNum_"+arr[0]+".aspx?UserID="+arr[1]+"&hallClassID="+ss,title:'展厅',width:648,height:510,iframe:true,maxBtn:false});
   } 
}
function GetBoothNumym(ym,str,hallClassID,BoothName)
{
    if(str=="")
   {
        alert("此展位抢注中..");
   } 
   else
   {
         var ss=hallClassID+","+BoothName;
         var arr=str.split(",");
        ym.win({message:"../BoothNum/BoothNum_"+arr[0]+".aspx?UserID="+arr[1]+"&hallClassID="+ss,title:'展厅',width:648,height:510,iframe:true,maxBtn:false});
   } 
}

function GetBoothNum1(A,hallClassID,BoothName,BoothNum)
{
    if($(A).getAttribute("aa")==""||$(A).getAttribute("aa")==null)
   {
      if(confirm("此展位抢注中,是否申请该展位？"))
       {
            if(GetCookie("UserID")!=null&&GetCookie("UserID")!="")
            {
                 window.open("../Booth/BoothManage.aspx?ProClass="+hallClassID+"&Page="+BoothName+"&BoothNum="+BoothNum+"","","height=500,width=850,top=50,left=50,   toolbar=yes,   menubar=yes,scrollbars=yes,   resizable=yes,   location=yes,   status=yes");
            }
            else
            {
                alert("您还没有登陆，或还没有注册账号，请登录或注册账号！");
                window.open('../../User/UserLogin.aspx?ProClass='+hallClassID+'&Page='+BoothName+'&BoothNum='+BoothNum+'','','height=500,width=850,top=50,left=50,   toolbar=yes,   menubar=yes,scrollbars=yes,   resizable=yes,   location=yes,   status=yes');
            }
       }
   } 
   else
   {
         var ss=hallClassID+","+BoothName;
         var arr=$(A).getAttribute("aa").split(",");
        $win({message:"../BoothNum/BoothNum_"+arr[0]+".aspx?UserID="+arr[1]+"&hallClassID="+ss,title:'展厅',width:648,height:510,iframe:true,maxBtn:false});
   } 
}

function GetBooth()
{
    if($("txtSerch").value==""){
        alert("请输入搜索条件！");
        return false;
    }
   else
   { 
     var url="../ShowHall/GetBooth.aspx?str="+escape($("txtSerch").value.replace(/[ ]/g,"")); 
      $win({message:url,title:'展位信息',width:607,height:230,iframe:true,maxBtn:false,titleBar: true });
  }
}
function SetBooth(strJson)
{ 
   $win({message:strJson,titleBar:true,title:'查询结果',height:250}); 
 }
function go(stype)
{ 
    var str=$("dplDh").options($("dplDh").selectedIndex).value;
     if(str==null||str=="")
   {
            alert("暂无其他展区");
   } 
   else
   {
       
        location.href="Hall_"+stype+".aspx?BoothName="+str;
   } 
} 
function GoBooth()
{
    alert("此展厅暂未开通正在布展");
}
function next(strBoothID)
{
    var sIndex=$("dplDh").selectedIndex;
     var sValue=$("dplDh").options(sIndex).value;
    var sA=sValue.charCodeAt(0); 
    var scount=$("dplDh").length;
    if(sA !=64+scount)
   {  
        var str=String.fromCharCode(sA+1); 
   } 
   location.href="Hall_"+strBoothID+".aspx?BoothName="+str;
}
function up(strBoothID)
{
    var sIndex=$("dplDh").selectedIndex;
    var sValue=$("dplDh").options(sIndex).value;
   var sA=sValue.charCodeAt(0);
   var scount=$("dplDh").length;
    if(sA!=65)
   {
        var str=String.fromCharCode(sA-1);
   }  
    location.href="Hall_"+strBoothID+".aspx?BoothName="+str;
}
function gonext()
{
    var sIndex=$("dplDh").selectedIndex;
    var sValue=$("dplDh").options(sIndex).value;
   var sA=sValue.charCodeAt(0);
   var scount=$("dplDh").length;
   var str;
    if(sA !=64+scount)
   {  
        var str=String.fromCharCode(sA+1); 
   } 
   else
   {
        str='A';
   }
   location.href="Hall_1.aspx?BoothName="+str;
}