﻿function UpdateConfig(id)
{
    window.open("/control/UpdateConfig.aspx?id=" + id,'','width=500,height=400');
}
function OpenChat(memberid)
{
    window.open("/user/chat.aspx?m=" + memberid,'','width=628,height=488');
}


createEl = function(t, a, y, x) { 
var e = document.createElement(t); 
document.body.appendChild(e); //
if (a) { 
for (var k in a) { 
if (k == 'class') e.className = a[k]; 
else if (k == 'id') e.id = a[k]; 
else e.setAttribute(k, a[k]); 
} 
} 
if (y) { for (var k in y) e.style[k] = y[k]; } 
if (x) { 
if (e) e.innerHTML = x; 
} 
return e; 
}
function menuFix() {
try
{
 var sfEls = document.getElementById("nav").getElementsByTagName("li");
 for (var i=0; i<sfEls.length; i++) {
  sfEls[i].onmouseover=function() {
  this.className+=(this.className.length>0? " ": "") + "sfhover";
  }
  sfEls[i].onMouseDown=function() {
  this.className+=(this.className.length>0? " ": "") + "sfhover";
  }
  sfEls[i].onMouseUp=function() {
  this.className+=(this.className.length>0? " ": "") + "sfhover";
  }
  sfEls[i].onmouseout=function() {
  this.className=this.className.replace(new RegExp("( ?|^)sfhover\\b"),

"");
  }
 }
 }catch(ex){}
}
window.onload=menuFix;

function LoadFlash(url,wmode,width,Height,param)
{ 
    document.write(
      '<embed src="' + url + '" FlashVars="'+param+'" wmode=' + wmode +
      ' quality="high" pluginspage=http://www.macromedia.com/go/getflashplayer type="application/x-shockwave-flash" width="' + width + 
      '" height="' + Height + '"></embed>');   
}