/**
 *@class DetailWindow
 *@extends Div
 */


var DetailWindow = Class.create();


DetailWindow.prototype = Object.extend(new Div, {


	/**
	 *@constructor initialize
	 */
	initialize: function (id,parentId) {
		this.id=id;
		this.parentId=parentId;
		this.createDiv();
		this.display();
		this.setPos();
		this.setStyle();
	},



	/**
	 *display
	 */
	display: function () {
		var html='';
		html+='<iframe id="'+this.id+'frame'+'" src="browse.php?mode=id&entry_id=1">';
		html+='この部分は iframe 対応のブラウザで見てください。';
		html+='</iframe>';
		$(this.id).innerHTML=html;
	},


	/**
	 *setPos
	 */
	setPos: function () {


		/* mainWindow */
		var mainWinLeft=mainWindow.getLeft();
		var mainWinTop=mainWindow.getTop();
		var mainWinWidth=mainWindow.getWidth();
		var mainWinHeight=mainWindow.getHeight();


		/* main */
		var mainLeft=main.getLeft();
		var mainTop=main.getTop();
		var mainWidth=main.getWidth();
		var mainHeight=main.getHeight();


		/* this */
		this.setWidth(1000);
		this.setHeight(mainWinHeight-60);
		this.setLeft((mainWinWidth-1000)/2);
		this.setTop(30);


		/* frame */
		$(this.id+'frame').style.width=1000-60+'px';
		$(this.id+'frame').style.height=mainWinHeight-120+'px';
		$(this.id+'frame').style.left=30+'px';
		$(this.id+'frame').style.top=30+'px';


	},





	/**
	 *setStyle
	 */
	setStyle: function () {
		Element.setStyle($(this.id),{
			backgroundColor	:'#ffffff',


			color			:'#ffffff',
			fontFamily		:'Osaka, sans-serif',
			fontSize		:'14px',
			fontWeight		:'bold',
			lineHeight		:'22px',


			marginLeft		:'0px',
			marginRight		:'0px',
			marginTop		:'0px',
			marginBottom	:'0px',
			paddingLeft		:'0px',
			paddingRight	:'0px',
			paddingTop		:'0px',
			paddingBottom	:'0px',


			borderColor			:'#eeeeee',
			borderLeftWidth		:'1px',
			borderRightWidth	:'1px',
			borderTopWidth		:'1px',
			borderBottomWidth	:'1px',
			borderStyle			:'solid',


			position		:'absolute',	//配置方式:static(default),relative,absolute,fixed,inherit
			overflow		:'hidden',	//スクロールバー制御:visible,hidden,scroll,auto,inherit
			zIndex			:'1000'
		});


		Element.setStyle($(this.id+'frame'),{
			left			:'20px',
			top				:'20px',


			marginLeft		:'0px',
			marginRight		:'0px',
			marginTop		:'0px',
			marginBottom	:'0px',
			paddingLeft		:'0px',
			paddingRight	:'0px',
			paddingTop		:'0px',
			paddingBottom	:'0px',


			borderColor			:'#000000',
			borderLeftWidth		:'0px',
			borderRightWidth	:'0px',
			borderTopWidth		:'0px',
			borderBottomWidth	:'0px',
			borderStyle			:'solid',


			position		:'relative',	//配置方式:static(default),relative,absolute,fixed,inherit
			overflow		:'scroll'	//スクロールバー制御:visible,hidden,scroll,auto,inherit
		});
	}





});
