// JavaScript Document
function LoadFlash(url,wmode,width,Height)///设置透明
{ 
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 LoadFlash2(url,width,Height)///设置不透明
{ 
document.write(
'<embed src="' + url + '" quality="high" pluginspage=http://www.macromedia.com/go/getflashplayer type="application/x-shockwave-flash" width="' + width + 
'" height="' + Height + '"></embed>'); 
}


function high(which2){
theobject=which2;theobject.filters.alpha.opacity=0
highlighting=setInterval("highlightit(theobject)",150)
}
function low(which2){
clearInterval(highlighting)
which2.filters.alpha.opacity=100
}
function highlightit(cur2){
if (cur2.filters.alpha.opacity<100)
cur2.filters.alpha.opacity+=30
else if(window.highting)
clearInterval(highlighting)
}

function showsubmenu(sid)
{
temp = eval("submenu"+sid);
if (temp.style.display =="none")
{
eval("submenu"+sid+".style.display=\"\";");
}
else
{
eval("submenu"+sid+".style.display=\"none\";");
}
}


function showsubmenu2(sid)
{
for(i=1;i<=17;i++){
  if(i==sid){
     eval("submenu"+sid+".style.display=\"\";");
    }
    else
   {
     eval("submenu"+i+".style.display=\"none\";");
   }
}
}


var timer;
function roll2(id,dir)//滚动
{
  if(dir == "up")
  document.getElementById(id).scrollLeft = document.getElementById(id).scrollLeft + 4;
  else if(dir == "down")
  document.getElementById(id).scrollLeft = document.getElementById(id).scrollLeft - 4;
}
function rollstart2(id,dir)
{
  timer = setInterval("roll2('"+id+"','"+dir+"')",150);
}
function rollstop2(id)
{
  clearInterval(timer);
}

function show(pic,url,tid,pic2){
	getLDInfo(url,"post",tid);
	document.getElementById(pic2).src=pic;
	
}

function showTopnews(pic,url,tid){
	getLDInfo(url,"post",tid);
	if(pic!=""){
	document.getElementById("topimg").src=pic;
	}
	
}

function Gourl(tid,url){
var obj = document.getElementById(tid);
window.location.href=obj.options[obj.selectedIndex].value;
}
function Gourl2(tid){
var obj = document.getElementById(tid);
window.location.href=obj.options[obj.selectedIndex].value;
}


