/*
This code developed by Hmong2X.

To let your document's title displays in advances
hope this me be any of your own idea.

Hmong2X
*/
	//<!-- This part for text editor

var sArtPath 	= "art/";
var sRelPath	= "css/";

function checkKey()
{
	var key = window.event.keyCode;
	if (window.event.shiftKey)
	{
		if (key == 65 || key == 97)
		{
			ShowAll();
		}
		else if (key == 67 || key == 99)
		{
			CloseAll();
		}
	}
}

function ShowAll()
{
	for(var i = 0; i < document.all.length; i++)
	{
	   if (document.all(i).className == "collapsed")
	   {
		document.all(i).className = "expanded" ;
	   }
	}
}

function CloseAll()
{
	for(var i = 0; i < document.all.length; i++)
	{
	   if (document.all(i).className == "expanded")
	   {
		document.all(i).className = "collapsed" ;
	   }
	}
}

function outliner()
{
    var child = document.all[event.srcElement.getAttribute("child",false)];
    if (null != child){
		if(child.className == "collapsed")
		{
			child.className = "expanded";
			return;
		}
		if(child.className == "expanded")
		{
			child.className = "collapsed";
			return;
		}
    }
}

function QMOver(oObj)
{
	oObj.style.backgroundColor='#0099CC';
	oObj.style.width='100%';
	oObj.style.height='19';
	oObj.style.color='#000000';
}

function QMOut(oObj)
{
	oObj.style.color='#FFFFFF';
	oObj.style.backgroundColor='#003366';
	oObj.style.width='100%';
	oObj.style.height='19';
}

function CMOver(oObj)
{
	oObj.style.color='#99FF99';
}

function CMOut(oObj)
{
	oObj.style.color='#FFFFFF';
}

function locator(oObj) 
{ 
		var newpath = oObj; 
		window.location.href = newpath; 
}

//-->
