
<!--
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
//-->

function namosw_goto_byselect(sel, targetstr)
{
  var index = sel.selectedIndex;
  if (sel.options[index].value != '') {
     if (targetstr == 'blank') {
       window.open(sel.options[index].value, 'win1');
     } else {
       var frameobj;
       if (targetstr == '') targetstr = 'self';
       if ((frameobj = eval(targetstr)) != null)
         frameobj.location = sel.options[index].value;
     }
  }
}


//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=160 height=505 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="160" height="505" 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=850 height=178 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="850" height="178" menu=false quality=best pluginspage="https://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed>')
 document.writeln('</object>')
}


/*//
function fla(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=110 id=ShockwaveFlash1>')
document.write('<param name="movie" value="flash/'+CateStr+'">')
document.write('<param name="menu" value="false">')
document.write('<param name="quality" value="best">')
document.write('<embed src="flash/'+CateStr+'" width=440 height=110 menu=false quality=best pluginspage="https://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed>')
document.write('</object>')
}*/

//link
function autoBlur(){ 
if(event.srcElement.tagName=="A"||event.srcElement.tagName=="/img") 
document.body.focus(); 
} 
document.onfocusin=autoBlur; 

/*//new windows
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
//-->



//window close
function closeWin() 
{ 
        self.close(); 
}



//pop
function newwin(url) {
POP = window.open( url, "WIN_SUB", "status=0,scrollbars=no,resizable=0" );
POP.focus();
} 

//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 ''; 
}




<!--rollover
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}


function AutoResize(img){ 
  foto1= new Image(); 
  foto1.src=(img); 
  Controlla(img); 
} 
function Controlla(img){ 
  if((foto1.width!=0)&&(foto1.height!=0)){ 
    viewFoto(img); 
  } 
  else{ 
    funzione="Controlla('"+img+"')"; 
    intervallo=setTimeout(funzione,20); 
  } 
} 
function viewFoto(img){ 
   if(foto1.height > 700 || foto1.width > 1000){
	largh=foto1.width; 
	altez=foto1.height+",top="+0+",left="+0+",scrollbars="+1; 
  }else{
	largh=foto1.width; 
	altez=foto1.height;
  }
  stringa="width="+largh+",height="+altez; 
  finestra=window.open("pop.html?img="+img,"",stringa); 
  
} */

//-->

/*//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);
}






//img randem
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'>");  
}



//add site
function bookmark(){
window.external.AddFavorite('http://uk-factory.jp', 'UK-Factory')
}

//iframe
function resizeIframe(fr) {
                fr.setExpression('height',aaa.document.body.scrollHeight);
                fr.setExpression('width',aaa.document.body.scrollWidth);
}
//-->*/


