//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=565 height=320 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="565" height="320" menu=false quality=best pluginspage="https://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed>')
 document.writeln('</object>')
}


//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=565 height=40 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=565 height=40 menu=false quality=best pluginspage="https://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed>')
document.write('</object>')
}

//left_menu
function left(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=150 height=370 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=150 height=370 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);
}
//-->

/*//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);
}


//window close
function closeWin() 
{ 
        self.close(); 
}



//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'>");  
}

//
 
function newwin(url) {
POP = window.open( url, "WIN_SUB", "status=0,scrollbars=no,resizable=0" );
POP.focus();
} 


//add site
function bookmark(){
window.external.AddFavorite('http://uruseiyatura.com', 'エステレビュー')
}

//iframe
function resizeIframe(fr) {
                fr.setExpression('height',aaa.document.body.scrollHeight);
                fr.setExpression('width',aaa.document.body.scrollWidth);
}
//-->*/


//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];}
}
//-->
