// JavaScript Document

var m_sm1_loaded;
var m_sm1_tw;
var m_sm1_th;
var m_sm1_cw = 0;
var m_sm1_ch = 0;

var m_sm2_loaded;
var m_sm2_tw;
var m_sm2_th;
var m_sm2_cw = 0;
var m_sm2_ch = 0;

var m_sm3_loaded;
var m_sm3_tw;
var m_sm3_th;
var m_sm3_cw = 0;
var m_sm3_ch = 0;

function m_operation()
{
	if (m_sm1_loaded == 1)
	{
		m_sm1_cw += (m_sm1_tw-m_sm1_cw)/4;
		document.all.m_msk.style.width = Math.round(m_sm1_cw);
		document.all.m_msk.style.left = ((document.body.offsetWidth-750)/2+191);
		m_sm1_ch += (m_sm1_th-m_sm1_ch)/4;
		document.all.m_msk.style.height = Math.round(m_sm1_ch);
	}

	if (m_sm2_loaded == 1)
	{
		m_sm2_cw += (m_sm2_tw-m_sm2_cw)/4;
		document.all.m_usr.style.width = Math.round(m_sm2_cw);
		document.all.m_usr.style.left = ((document.body.offsetWidth-750)/2+191);
		m_sm2_ch += (m_sm2_th-m_sm2_ch)/4;
		document.all.m_usr.style.height = Math.round(m_sm2_ch);
	}

	if (m_sm3_loaded == 1)
	{
		m_sm3_cw += (m_sm3_tw-m_sm3_cw)/4;
		document.all.m_int.style.width = Math.round(m_sm3_cw);
		document.all.m_int.style.left = ((document.body.offsetWidth-750)/2+201);
		//m_sm3_ch += (m_sm3_th-m_sm3_ch)/4;
		//document.all.m_int.style.height = Math.round(m_sm3_ch);
	}

}

setInterval("m_operation();",10);

function m_sm1_open()
{
	m_sm1_loaded = 1;
	document.all.m_msk.style.top = 240;
	m_sm1_tw = 100;
	m_sm1_th = 150;
}

function m_sm1_close()
{
	m_sm1_loaded = 1;
	document.all.m_msk.style.top = 140;
	m_sm1_tw = 0;
	m_sm1_th = 0;
}

function m_sm2_open()
{
	m_sm2_loaded = 1;
	document.all.m_usr.style.top = 340;
	m_sm2_tw = 100;
	m_sm2_th = 150;
}

function m_sm2_close()
{
	m_sm2_loaded = 1;
	document.all.m_usr.style.top = 340;
	m_sm2_tw = 0;
	m_sm2_th = 0;
}

function m_sm3_open()
{
	m_sm3_loaded = 1;
	document.all.m_int.style.top = 165;
	m_sm3_tw = 360;
	document.all.m_int.style.height = 340;
}

function m_sm3_close()
{
	m_sm3_loaded = 1;
	document.all.m_int.style.top = 165;
	m_sm3_tw = 0;
	document.all.m_int.style.height = 340;
}

