function photoOpen(url,windowname,crisscross){

    //画像をロードしてサイズを取得

    var i = new Image();
    var features="location=no, menubar=no, status=yes, scrollbars=yes, resizable=yes, toolbar=no";
    
    var width = 0;
    var height = 0;
    
    if (crisscross == 1){
	    width = 830;
    	height = 620;
    }else if (crisscross == 2){
    	width = 620;
    	height = 830;
    }
    
    //中央に表示するために値を取得
    
	if (width) {
     	if (window.screen.width > width)
   			features+=", left="+(window.screen.width-width)/2;
  			else width=window.screen.width;
  			features+=", width="+width;
	}
	if (height) {
  		if (window.screen.height > height)
   			features+=", top="+(window.screen.height-height)/2;
  			else height=window.screen.height;
  			features+=", height="+height;
 	}

    //空ウィンドウオープン

    var pop_win = window.open(url,windowname,features);

    //空ウィンドウ出力用HTML

    pop_win.window.document.open();
    pop_win.window.document.write(
     '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">'
    +'<html lang="ja">'
    +'<head>'
    +'<meta http-equiv="Content-Type" content="text/html; charset=Shift_JIS">'
    +'<meta http-equiv="Content-Style-Type" content="text/css">'
	+'<meta http-equiv="Content-Script-Type" content="text/javascript">'
    +'<title>'+windowname+'</title>'
    +'</head>'
    +'<body style="margin:10px 5px 5px 5px;padding:0;border:0;text-align:center;">'
    +'<a href="javascript:window.close()"><img src="'+url+'" alt="'+windowname+'" border="0"></a>'
    +'</body>'
    +'</html>'

    );

    pop_win.window.document.close();

}

function links(){
	linkurl=links.arguments[1];
	document.write(linkurl.link(links.arguments[2] + links.arguments[0] + links.arguments[3]));
}

function kaihansen(num){
	if(num==0){
		document.top_photo.src="001.jpg";
	}else if(num==1){
		document.top_photo.src="002.jpg";
	}else if(num==2){
		document.top_photo.src="003.jpg";
	}else if(num==3){
		document.top_photo.src="004.jpg";
	}else if(num==4){
		document.top_photo.src="005.jpg";
	}else if(num==5){
		document.top_photo.src="006.jpg";
	}
}
