function	document_write(s)
{
	document.write(s) ;
}

/******************************************************************************/
function	PREV_Display (a)
{
	var	div = PREV.div ;
	var	top, left, maxLeft ;

	if (a>1 && div.style.display=="none")
	{
		div.style.left = div.style.right = "" ;
		div.style.width = "" ;
		div.style.visibility = "hidden" ;
		div.style.display = "block" ;

		PREV.width = div.scrollWidth ;
		if (PREV.env.maxWidth && PREV.env.maxWidth<PREV.width)
		{
			div.style.width = PREV.env.maxWidth ;
			if (div.firstChild) PREV.width = Math.max(div.scrollWidth, div.firstChild.scrollWidth) ;
		}

		div.style.display = "none" ;
		div.style.visibility = "visible" ;
	}

	if (! PREV.show) return ;

	maxLeft = document.body.scrollWidth-PREV.env.padding[1]-PREV.width ;
	left = PREV.px + PREV.env.offset[1] ;
	if (left > maxLeft)
		if (PREV.px-PREV.env.offset[3] >= PREV.env.padding[3]+PREV.width)
			left -= PREV.width + PREV.env.offset[1] + PREV.env.offset[3] ;
		else	left = maxLeft ;

	if (PREV.py+PREV.env.offset[2]+div.scrollHeight > document.body.scrollTop+document.body.clientHeight)
	{
		if (left == maxLeft)
			if (PREV.py-PREV.env.offset[0]-div.clientHeight > document.body.scrollTop)
				top = PREV.py - PREV.env.offset[0] - div.clientHeight ;
			else	top = PREV.py + PREV.env.offset[2] ;
		else	top = document.body.scrollTop + document.body.clientHeight - div.clientHeight ;
	}
	else	top = PREV.py + PREV.env.offset[2] ;

	div.style.top = top, div.style.left = left ;
	if (a)	div.style.display = "" ;
}
function	PREV_SetHTML (s)
{
	PREV.div.innerHTML = "" + (PREV.env.head?PREV.env.head:"") + s + (PREV.env.tail?PREV.env.tail:"") ;
	PREV.ready = true ;
	PREV_Display(2) ;
}
function	PREV_onload (e)
{
	if (! e) e = window.event ;
	if (PREV.env.type=="url" && (e.currentTarget?e.currentTarget:e.srcElement).id==PREV.env.frameId)
		PREV_SetHTML(document.getElementById(PREV.env.frameId).contentWindow.document.body.innerHTML) ;
}
function	PREV_Load ()
{
	switch (PREV.env.type)
	{
	case	"id.value":
		PREV_SetHTML(document.getElementById(PREV.id).value) ;
		break ;
	case	"id.html":
		PREV_SetHTML(document.getElementById(PREV.id).innerHTML) ;
		break ;
	case	"html":
		PREV_SetHTML(PREV.id) ;
		break ;
	case	"url":
		PREV.ready = false ;
		var	si = document.getElementById(PREV.env.frameId) ;
		if (si.attachEvent)
		{
			si.detachEvent("onload", PREV_onload) ;
			si.attachEvent("onload", PREV_onload) ;
		}
		else si.onload = PREV_onload ;
		si.src = PREV.id ;
		break ;
	}
}
function	PREV_HideDisplay ()
{
	if (! PREV.show) PREV.div.style.display = "none" ;
}
function	PREV_HideRequest ()
{
	PREV.show = false ;
	if (PREV.env.delay)	
		setTimeout("PREV_HideDisplay()", PREV.env.delay*1000) ;
	else	PREV_HideDisplay() ;
}
function	PREV_HideNow ()
{
	PREV.show = false ;
	PREV_HideDisplay() ;
}
function	PREV_Move (e)
{
	if (! e) e = window.event ;
	PREV.px = e.pageX ? e.pageX : document.body.scrollLeft+e.clientX-document.body.clientLeft ;
	PREV.py = e.pageY ? e.pageY : document.body.scrollTop+e.clientY-document.body.clientTop-1 ;
	if (PREV.ready) PREV_Display(0) ;
}
function	PREV_Show (e, o, env, id)
{
	if (! e) e = window.event ;
	var	UserAgent = navigator.userAgent ;
	var	AppVersion = (((navigator.appVersion.split('; '))[1].split(' '))[1]) ;
	if (UserAgent.indexOf("MSIE") >= 0 && AppVersion < 5) return ;

	PREV.px = e.pageX ? e.pageX : document.body.scrollLeft+e.clientX-document.body.clientLeft ;
	PREV.py = e.pageY ? e.pageY : document.body.scrollTop+e.clientY-document.body.clientTop-1 ;

	if (env==PREV.env && id==PREV.id)
	{
		PREV.show = true ;
		if (PREV.ready) PREV_Display(1) ;
		return ;
	}

	if (! PREV.div)
	{
		PREV.div = document.createElement("div") ;
		PREV.div.style.display = "none", PREV.div.style.position = "absolute" ;
		PREV.div.style.borderWidth = 0, PREV.div.style.zIndex = env.zIndex ? env.zIndex : 1 ;
		if (document.body.firstChild.insertAdjacentElement)
			document.body.firstChild.insertAdjacentElement("BeforeBegin", PREV.div) ;
		else	document.body.appendChild(PREV.div) ;
	}
	else	PREV_HideNow() ;

	PREV.env = env, PREV.id = id ;

	if (PREV.env.mouseontooltip)
		PREV.div.onmouseover = PREV.div.onmousemove = function () { PREV.show = true ; } ;
	else	PREV.div.onmouseover = PREV.div.onmousemove = function (e) { PREV.show = true ; PREV_Move(e) ; } ;
	PREV.div.onmouseout = PREV_HideRequest ;

	if (PREV.env.followMouse) o.onmousemove = PREV_Move ;
	o.onmouseout = PREV_HideRequest ;

	PREV.show = true ;
	PREV_Load(id) ;
}
var	PREV = { div:null, ready:false, show:false, env:0, id:null, px:0, py:0, width:0, Show:PREV_Show, Hide:PREV_HideNow } ;




/**************************************************************************************************
* ½ΊΕ²
**************************************************************************************************/

var preview_skin = {
	type:"id.html", followMouse:true, mouseontooltip:false, delay:0.01, offset:[1,7,7,1], padding:[0,190,0,10], maxWidth:200,
	head:"<table cellspacing=0 cellpadding=0 border=0><tr><td width=411 height=25 bgcolor=f2f2f2 class=lyr_bdr style='padding:5;border:1px solid #dddddd;font-size:9pt' valign=top>",
	tail:"</td><td width=6 class=tran_ie_R nowrap></td></tr><tr><td height=6 class=tran_ie_B nowrap></td><td class=tran_ie_RB nowrap></td></tr></table>"
};

var preview_skin2 = {
	type:"id.html", followMouse:true, mouseontooltip:false, delay:0.01, offset:[1,7,7,1], padding:[0,190,0,10], maxWidth:170,
	head:"<table cellspacing=0 cellpadding=0 border=0><tr><td width=411 height=100 bgcolor=FFFC24 class=lyr_bdr style='padding:5;border:1px solid F6E345;font-size:9pt' valign=top>",
	tail:"</td><td width=6 class=tran_ie_R nowrap></td></tr><tr><td height=6 class=tran_ie_B nowrap></td><td class=tran_ie_RB nowrap></td></tr></table>"
};