//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~		
	// Global Variables
	
	var strLayer = "";
	var abc= "document.all.";
	var def = ".style.visibility"
	var gintWebTreeID ;	
	var strAlias;
	var gintLevel = 0;
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~	
// nid	=	nodeID
// tid	= teaserID
// cid	= containerID
// pid	=	pageID
// vchalias	=	vchAlias
function jWDManageCategory(URL,blnNewWindowFlag,nid,tid,cid,pid,rightid,langid,ctxid1,ctxid2)
{
	var strWindow; 
	var URL;
	if(URL.indexOf("?") == -1)
		URL = URL + "?sid="+ gstrSID + "&UnID=" + Math.random();
	else
		URL = URL + "&sid="+ gstrSID + "&UnID=" + Math.random();

	URL = URL + "&uid=" + gintUID + "&bkey=" + gintSlaveKey + "&nid=" + nid + "&tid=" + tid + "&cid=" + cid + "&pid=" + pid + "&rid=" + rightid  + "&lid=" + langid + "&ctx=" + ctxid1 + "&ctx2=" + ctxid2
	strWindow = "directories=no,location=no,menubar=no,status=no,toolbar=no,scrollbars=yes,width=650,height=500,resizable=yes,titlebar=no,top=0,left=0";
	window.open (URL,"MyWindow",strWindow);
}
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~	
	// Function used to display the menu of the customised tree. (Personalisation)
function jWDCheckKEY(strReference,intXPos,intYPos)
	{
		try
		{
			if(strReference != "")
			{
				intYPos+=document.body.scrollTop
				intXPos+=document.body.scrollLeft
				eval(abc + strReference+ '.filters[0].transition = 23');
				eval(abc + strReference+ '.filters[0].apply()');
				eval(abc + strReference+ '.style.zIndex=100');
				eval(abc + strReference+ '.style.pixelTop =' + intYPos);
				eval(abc + strReference+ '.style.pixelLeft =' + intXPos);
				eval(abc + strReference+ def + "= 'visible'")
				eval(abc + strReference+ '.filters[0].play(.3)');
				strLayer = strReference
			}
		}
	catch(e){}
	}
	
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~	
	// Function used to display the menu of the customised tree. (Personalisation)
function jWDCheckMenuKEY(strReference,intXPos,intYPos)
	{
		
		try
		{
			if(strReference != "")
			{
				intYPos+=document.body.scrollTop
				intXPos+=document.body.scrollLeft
				eval(abc + strReference+ '.filters[0].transition = 23');
				eval(abc + strReference+ '.filters[0].apply()');
				eval(abc + strReference+ '.style.zIndex=100');
				eval(abc + strReference+ '.style.pixelTop =' + intYPos);
				eval(abc + strReference+ '.style.pixelLeft =' + intXPos);
				eval(abc + strReference+ def + "= 'visible'")
				eval(abc + strReference+ '.filters[0].play(.3)');
				strLayer = strReference
			}
		}
	catch(e){}
	}	
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~	
	// Hides the div of custamization /Administration
	
	function jWDHideLayer()
	{
		try
		{
			//jWDTopMouseOut("topMenuLanuage");
			if (strLayer != "")
			{	
				//eval(abc + strLayer+ '.filters[0].transition = 23');
				//eval(abc + strLayer+ '.filters[0].apply()');
				eval(abc + strLayer+ def + "= 'hidden'");
				eval(abc + strLayer+ '.style.zIndex=-1');
				//eval(abc + strLayer+ '.filters[0].play(.3)');
				var objTransition=eval(abc + strLayer+ '.style');
				objTransition.left=0;
				objTransition.top=0;
				strLayer = ""
			}	
			
		}
		catch(e){}
	}
	
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~		

/*New 8th Dec 2005*/
function jWDTopMouseOver(strElementId){
	jWDHideLayer();
	
	var objTopElement=document.getElementById(strElementId)
	
	objTopElement.style.borderLeft="1px solid #18296B";
	objTopElement.style.borderTop="1px solid #18296B";
	objTopElement.style.borderRight="1px solid #18296B";
	objTopElement.style.borderBottom="1px solid #FFFFFF";
	objTopElement.style.backgroundColor="#FFFFFF";
	
	
	jWDCheckMenuKEY('nodeLanguages', window.screen.availWidth - 195, 85);
	
}

function jWDTopMouseOut(strElementId){
	var objTopElement=document.getElementById(strElementId)
	objTopElement.style.borderLeft="1px none red";
	objTopElement.style.borderTop="1px none red";
	objTopElement.style.borderRight="1px none red";
	objTopElement.style.borderBottom="1px none red";	
	objTopElement.style.backgroundColor="transparent";
	
}
	
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~		

