// menu
function imgTrans(id,after) { 
eval(id+'.filters.blendTrans.stop();'); 
eval(id+'.filters.blendTrans.Apply();'); 
eval(id+'.src="'+after+'";'); 
eval(id+'.filters.blendTrans.Play();'); 
} 

// link
function bluring(){ 
if(event.srcElement.tagName=="A"||event.srcElement.tagName=="IMG") document.body.focus(); 
} 
document.onfocusin=bluring;

// flash
function fl_view(objhtml){
	document.write(objhtml);
}
function openWinCenter(url, wname, wopt) {
    var newopt = "", wHeight = 0, wWidth = 0;
    if (wopt != undefined) {
    var woptlist = wopt.replace(/ /g, "").split(",");
    for (var i in woptlist) {
    if (woptlist[i].match(/^height=/i)) {
        wHeight = parseInt(woptlist[i].substr(7),10);
                if (!isNaN(wHeight)) newopt += "top=" + Math.floor((screen.availHeight - wHeight) / 2) + ",";
            }
            if (woptlist[i].match(/^width=/i)) {
                wWidth = parseInt(woptlist[i].substr(6),10);
                if (!isNaN(wWidth)) newopt += "left=" + Math.floor((screen.availWidth - wWidth) / 2) + ",";
            }
        }
    }
    return window.open(url, wname, newopt + wopt);
} 