//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~		
	// 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,ctxid)
{
	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=" + ctxid
	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
		{
			if (strLayer != "")
			{	
				//eval(abc + strLayer+ '.filters[0].transition = 23');
				//eval(abc + strLayer+ '.filters[0].apply()');
				eval(abc + strLayer+ def + "= 'hidden'");
				//eval(abc + strLayer+ '.filters[0].play(.0)');
				eval(abc + strLayer+ '.style.zIndex=-1');
				var objTransition=eval(abc + strLayer+ '.style');
				objTransition.left=0;
				objTransition.top=0;
				strLayer = "";
			}	
			
		}
		catch(e){
			alert(e.description);	}
	}
	
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~		


	function jWDWriteFlashObjekt(lstrBkStyle, lintflashWidth, lstrFlashPath){
		document.getElementById("flsback").style.background='url("' + lstrBkStyle + '")'; 
		document.write('<object id="flashStrip" width="' + lintflashWidth + '" height="111" type="application/x-shockwave-flash" data="' + lstrFlashPath + '">');
		document.write('<param name="movie" value="' + lstrFlashPath + '">');
		document.write('<param name="wmode" value="transparent" />');
		document.write('</object>');
	}
	