//menu
function menu(CateStr) {
 document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="https://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width=170 height=210 id=ShockwaveFlash1>')
 document.write('<param name="movie" value="flash/'+CateStr+'">')
document.write('<param name="menu" value="false">')
document.write('<param name="quality" value="high">')
document.write('<param name="wmode" value="transparent">')
 document.writeln('<embed src="flash/'+CateStr+'" width="170" height="210" menu=false quality=best pluginspage="https://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed>')
 document.writeln('</object>')
}


//main
function main(CateStr) {
document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="https://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width=800 height=450 id=ShockwaveFlash1>')
document.write('<param name="movie" value="flash/'+CateStr+'">')
document.write('<param name="menu" value="false">')
document.write('<param name="quality" value="high">')
document.write('<param name="wmode" value="transparent">')
document.write('<embed src="flash/'+CateStr+'" width=800 height=450 menu=false quality=best pluginspage="https://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed>')
document.write('</object>')
}
function main1(CateStr) {
document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="https://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width=800 height=450 id=ShockwaveFlash1>')
document.write('<param name="movie" value="flash/'+CateStr+'">')
document.write('<param name="menu" value="false">')
document.write('<param name="quality" value="high">')
document.write('<param name="wmode" value="transparent">')
document.write('<embed src="flash/'+CateStr+'" width=800 height=450 menu=false quality=best pluginspage="https://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed>')
document.write('</object>')
}

/*new window
function na_open_window(name, url, left, top, width, height, toolbar, menubar, statusbar, scrollbar, resizable)
{
  toolbar_str = toolbar ? 'yes' : 'no';
  menubar_str = menubar ? 'yes' : 'no';
  statusbar_str = statusbar ? 'yes' : 'no';
  scrollbar_str = scrollbar ? 'yes' : 'no';
  resizable_str = resizable ? 'yes' : 'no';
  window.open(url, name, 'left='+left+',top='+top+',width='+width+',height='+height+',toolbar='+toolbar_str+',menubar='+menubar_str+',status='+statusbar_str+',scrollbars='+scrollbar_str+',resizable='+resizable_str);
}

function closeWin() 
{ 
        self.close(); 
}



var list= new Array()
list[list.length]='images/sub/sub_img1.gif';   
list[list.length]='images/sub/sub_img2.gif'; 
list[list.length]='images/sub/sub_img3.gif'; 
list[list.length]='images/sub/sub_img4.gif'; 
j=parseInt(Math.random()*list.length);
j=(isNaN(j))?0:j;
function showimg(){
document.write("<img src='"+list[j]+"' width='199'  height='587'>");  
}


function newwin(url) {
POP = window.open( url, "WIN_SUB", "status=0,scrollbars=no,resizable=0" );
POP.focus();
} */



//link
function autoBlur(){ 
if(event.srcElement.tagName=="A"||event.srcElement.tagName=="/img") 
document.body.focus(); 
} 
document.onfocusin=autoBlur; 



//png
function setPng24(obj) { 
    obj.width=obj.height=1; 
    obj.className=obj.className.replace(/\bpng24\b/i,''); 
    obj.style.filter = 
    "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+ obj.src 

+"',sizingMethod='image');" 
    obj.src='';  
    return ''; 
}




function clockon() {
    thistime= new Date()
    var hours=thistime.getHours()
    var minutes=thistime.getMinutes()
    var seconds=thistime.getSeconds()
    if (eval(hours) <10) {hours="0"+hours}
    if (eval(minutes) < 10) {minutes="0"+minutes}
    if (seconds < 10) {seconds="0"+seconds}
    thistime = hours+":"+minutes+":"+seconds
        
    if(document.all) {
        bgclocknoshade.innerHTML=thistime
        bgclockshade.innerHTML=thistime
    }
    
    if(document.layers) {
        document.bgclockshade.document.write('<div id="bgclockshade" style="position:absolute;visibility:visible;font-family:Verdana;color:000000;font-size:12px;top:4898px;left:70px">'+thistime+'</div>')
        document.bgclocknoshade.document.write('<div id="bgclocknoshade" style="position:absolute;visibility:visible;font-family:Verdana;color:000000;font-size:12px;top:4898px;left:70px">'+thistime+'</div>')
        document.close()
    }
    var timer=setTimeout("clockon()",200)
}
