function copyrights(){
	var nedstadid="ADPT1ArFTiBUMUyGypEqfBNVtzJg";
	document.write('<a target="_blank" href="http://www.nedstatbasic.net/stats?'+nedstadid+'"><img src="images/nedstat.gif" alt="Nedstat WVA statistieken" class="images" border="0"></a><a href="?action=credits"><img src="images/diecyde.gif" class="images" border="0"></a>');
	nedstatbasic(nedstadid, 0);
}

function init(){
	var expiry = new Date();
expiry.setTime(expiry.getTime() + 1 * (24 * 60 * 60 * 1000));
var postdata=screen.width+";"+screen.height+";"+screen.colorDepth+";"+navigator.cpuClass+";"+checkOS()+";"+navigator.appCodeName+" "+getbrowvers()+";"+getbrowser()+";"+getlang();
document.cookie = "browserdata" + "=" + escape(postdata) + "; expires=" + expiry.toGMTString();;
	
}


function link(tekst)
{
	window.status = tekst;
	setTimeout ("standaard()",1500);
}

function standaard()
{
	  window.status="Instituut E-Technology";
}

var END_OF_INPUT = -1;
var base64Chars = new Array(
    'A','B','C','D','E','F','G','H',
    'I','J','K','L','M','N','O','P',
    'Q','R','S','T','U','V','W','X',
    'Y','Z','a','b','c','d','e','f',
    'g','h','i','j','k','l','m','n',
    'o','p','q','r','s','t','u','v',
    'w','x','y','z','0','1','2','3',
    '4','5','6','7','8','9','+','/'
);

var reverseBase64Chars = new Array();
for (var i=0; i < base64Chars.length; i++){
    reverseBase64Chars[base64Chars[i]] = i;
}

var base64Str;
var base64Count;
function setBase64Str(str){
    base64Str = str;
    base64Count = 0;
}
function readBase64(){    
    if (!base64Str) return END_OF_INPUT;
    if (base64Count >= base64Str.length) return END_OF_INPUT;
    var c = base64Str.charCodeAt(base64Count) & 0xff;
    base64Count++;
    return c;
}
function encodeBase64(str){
    setBase64Str(str);
    var result = '';
    var inBuffer = new Array(3);
    var lineCount = 0;
    var done = false;
    while (!done && (inBuffer[0] = readBase64()) != END_OF_INPUT){
        inBuffer[1] = readBase64();
        inBuffer[2] = readBase64();
        result += (base64Chars[ inBuffer[0] >> 2 ]);
        if (inBuffer[1] != END_OF_INPUT){
            result += (base64Chars [(( inBuffer[0] << 4 ) & 0x30) | (inBuffer[1] >> 4) ]);
            if (inBuffer[2] != END_OF_INPUT){
                result += (base64Chars [((inBuffer[1] << 2) & 0x3c) | (inBuffer[2] >> 6) ]);
                result += (base64Chars [inBuffer[2] & 0x3F]);
            } else {
                result += (base64Chars [((inBuffer[1] << 2) & 0x3c)]);
                result += ('=');
                done = true;
            }
        } else {
            result += (base64Chars [(( inBuffer[0] << 4 ) & 0x30)]);
            result += ('=');
            result += ('=');
            done = true;
        }
        lineCount += 4;
        if (lineCount >= 76){
            result += ('\n');
            lineCount = 0;
        }
    }
    return result;
}
function readReverseBase64(){   
    if (!base64Str) return END_OF_INPUT;
    while (true){      
        if (base64Count >= base64Str.length) return END_OF_INPUT;
        var nextCharacter = base64Str.charAt(base64Count);
        base64Count++;
        if (reverseBase64Chars[nextCharacter]){
            return reverseBase64Chars[nextCharacter];
        }
        if (nextCharacter == 'A') return 0;
    } 
}

function ntos(n){
    n=n.toString(16);
    if (n.length == 1) n="0"+n;
    n="%"+n;
    return unescape(n);
}

function decodeBase64(str){
    setBase64Str(str);
    var result = "";
    var inBuffer = new Array(4);
    var done = false;
    while (!done && (inBuffer[0] = readReverseBase64()) != END_OF_INPUT
        && (inBuffer[1] = readReverseBase64()) != END_OF_INPUT){
        inBuffer[2] = readReverseBase64();
        inBuffer[3] = readReverseBase64();
        result += ntos((((inBuffer[0] << 2) & 0xff)| inBuffer[1] >> 4));
        if (inBuffer[2] != END_OF_INPUT){
            result +=  ntos((((inBuffer[1] << 4) & 0xff)| inBuffer[2] >> 2));
            if (inBuffer[3] != END_OF_INPUT){
                result +=  ntos((((inBuffer[2] << 6)  & 0xff) | inBuffer[3]));
            } else {
                done = true;
            }
        } else {
            done = true;
        }
    }
    return result;
}

function decodemail(string){
document.write('<a href="mailto:' + decodeBase64(string) + '">' + decodeBase64(string) + '</a>');
}

function plugNS(){
	var b=1;
	var o=0;
	var p=new Array("Shockwave Flash","Shockwave for Director","RealPlayer","QuickTime","VivoActive","LiveAudio","VRML","Dynamic HTML Binding","Windows Media Services");
	var np=navigator.plugins;
	for(var x=0;x<p.length;x++){
		for(var i=0;i<np.length;i++)if(np[i].name.indexOf(p[x])>=0)o|=b;b*=2;
	}
	return o;
}

function plugIE(){
	if(!document.body)document.write('<body>');
	var db=document.body;
	var o=0;
	var b=1;
	var p=new Array("D27CDB6E-AE6D-11CF-96B8-444553540000","2A202491-F00D-11CF-87CC-0020AFEECF20","23064720-C4F8-11D1-994D-00C04F98BBC9","","","","90A7533D-88FE-11D0-9DBE-0000C0411FC3","9381D8F2-0288-11D0-9501-00AA00B911A5","22D6F312-B0F6-11D0-94AB-0080C74C7E95");
	db.addBehavior("#default#clientcaps");
	for(var i=0;i<p.length;i++){
		if(p[i])if(db.isComponentInstalled("{"+p[i]+"}","componentid"))o|=b;b*=2;
	}
return o;
}

function nedstatbasic(id,options){
	var n=navigator;
	var ver=n.appVersion;
	var d=document;
	var verIE=parseInt(ver.substring(ver.indexOf("MSIE")+5,ver.indexOf("MSIE")+6));
	if(verIE>0)ver=verIE;
	else ver=parseInt(ver);
	var u="http://m1.nedstatbasic.net/n?id="+id;
	var r;
	if(options&1)r=d.referrer;
	else r=top.document.referrer;
	if(!(options&2)){
		var rc=r;
		var i=rc.indexOf('?');
		if(i>=0)rc=rc.substring(0,i);
		i=rc.lastIndexOf('/');
		if(i>=0)rc=rc.substring(0,i+1);
		var l=''+d.location;
		if(l.indexOf(rc)==0)r='';
	}
	if(r&&(r!=d.location))u+="&r="+escape(r);
	if((n.appName=="Netscape"&&ver>=3))u+="&p="+plugNS();
	if(verIE>=5&&n.appVersion.indexOf('Win')>=0&&n.userAgent.indexOf('Opera')<0)u+="&p="+plugIE();
	if(ver>=4){
		var s=screen;
		var w=s.width;
		var h=s.height;
		var c=s.colorDepth;
		if(w)u+="&w="+w;
		if(h)u+="&h="+h;
		if(c)u+="&c="+c;
	}
	d.write('<div class="nedstad"><img src="'+u+'" border=0 width=0 height=0></div>');
}
// keyhandler ... opent bepaalde pagina's als het nodig is
rij = "";
diecyde = "";

function keyhandler(e) {
	if (window.event){
		Key = window.event.keyCode;
	}else if(e.which){
		Key = e.which;
	}

	rij += String.fromCharCode( Key );
  diecyde += String.fromCharCode( Key );
	if(rij.indexOf( "ADMIN" )!=-1){
		rij="";
		location.href = "admin.php";				
	}
}
//TineMCE
function setVariables()
{
if (navigator.appName == "Netscape") {
v=".top=";h=".left=";dS="document.";sD="";
y="window.pageYOffset";x="window.pageXOffset";iW="window.innerWidth";iH="window.innerHeight"
}
else {h=".pixelLeft=";v=".pixelTop=";dS="";sD=".style";
y="document.body.scrollTop";x="document.body.scrollLeft";iW="document.body.clientWidth";iH="document.body.clientHeight"
}

object="menu";
checkLocationA()
}
movex=0,movey=0,xdiff=0,ydiff=0,ystart=0,xstart=0

function checkLocation(){
 innerX=0   // controls the horizontal from the left side of the page
 innerY=100  // controls the vertical from the top of the page
if (document.layers){innerY-=10;innerX-=10}
yy=eval(y);
xx=eval(x);
ydiff=ystart-yy;
xdiff=xstart-xx;
if ((ydiff<(-0.011))||(ydiff>(0.01))) movey=Math.round(ydiff/10),ystart-=movey
if ((xdiff<(-0.01))||(xdiff>(0.01))) movex=Math.round(xdiff/10),xstart-=movex

	N=(document.layers)?1:0
	V=(N) ? 4:5
if (V==4){
	eval(dS+object+sD+v+(ystart+innerY));
	eval(dS+object+sD+h+(xstart+innerX));
//eval(dS + objectX + sD + v + y);
}
else{
	object=document.getElementById('menu')
	if (object !=null){
		object.style.top=ystart+innerY
		object.style.left=xstart+innerX
	}
}
setTimeout("checkLocation()",10)}

function checkLocationA(){
ystart=eval(y)+5;
xstart=eval(x)+5;}

function ChangeImage(ImageName) {
	var maxPerc = 25;									//Image size is maximal 25% of screen
	var imgHeight = ImageName.height;
	var imgWidth = ImageName.width;
	var maxHeight = screen.height * (maxPerc / 100);  	//Calculate maximum image height
	var maxWidth = screen.width * (maxPerc / 100);		//Calculate maximum image width
	var ratio = 1;
	if ((ImageName.height > maxHeight) || (ImageName.width > maxWidth)){
		if ((ImageName.height - maxHeight) > (ImageName.width - maxWidth)){
			//Calculate ratio from image height
			ratio = maxHeight / imgHeight;  
		} else {
			//Calculate ratio from image width
			ratio = maxWidth / imgWidth;  
		}
	}
	ImageName.height = imgHeight * ratio;
	ImageName.width = imgWidth * ratio;
}

function mOvr(src,clrOver)
{ 
   if (!src.contains(event.fromElement))
	{ src.style.cursor = 'hand'; src.bgColor = clrOver}
}
function mOut(src,clrIn)
{ 
   if (!src.contains(event.toElement))
		{ src.style.cursor = 'default'; src.bgColor = clrIn}
} 
function mClk(src)
{ if(event.srcElement.tagName=='TD')
		{src.children.tags('A')[0].click(); }
}

function checkOS() {
  if(navigator.userAgent.indexOf('IRIX') != -1){ var OpSys = "Irix"; }
  else if((navigator.userAgent.indexOf('Win') != -1) &&(navigator.userAgent.indexOf('98') != -1)){ var OpSys = "Windows 98"; }
  else if((navigator.userAgent.indexOf('Win') != -1) &&(navigator.userAgent.indexOf('95') != -1)){ var OpSys = "Windows 95"; }
  else if(navigator.appVersion.indexOf("16") !=-1){ var OpSys = "Windows 3.1"; }
  else if (navigator.appVersion.indexOf("NT") !=-1){ var OpSys= "Windows NT"; }  
else if(navigator.appVersion.indexOf("SunOS") !=-1){ var OpSys = "SunOS"; }
  else if(navigator.appVersion.indexOf("Linux") !=-1){ var OpSys = "Linux"; }  
  else if(navigator.userAgent.indexOf('Mac') != -1){ var OpSys = "Macintosh"; }
  else if(navigator.appName=="WebTV Internet Terminal"){ var OpSys="WebTV"; }
  else if(navigator.appVersion.indexOf("HP") !=-1){ var OpSys="HP-UX"; } 
else { var OpSys = "other"; }
  return OpSys;
}

function getbrowvers(){
var version="0";
                if(navigator.userAgent.indexOf("Mozilla/4.7") != -1)  {version="4.7"; }
                else if(navigator.userAgent.indexOf("Mozilla/4.61") != -1)  {version="4.61"; }
		else if(navigator.userAgent.indexOf("Mozilla/4.5") != -1)  {version="4.5"; }
                else if(navigator.userAgent.indexOf("Mozilla/4") != -1)  {version="4.0"; }
                else if(navigator.userAgent.indexOf("Mozilla/3") != -1)  {version="3.0"; }
                else if(navigator.userAgent.indexOf("Mozilla/2") != -1)  {version="2.0"; }
                else {version="0"; }
		return(version);
}

function getbrowser(){
        var version="";
                if(navigator.userAgent.indexOf('AOL 5') !=-1)  {version="America Online 5.0"; }
                else if(navigator.userAgent.indexOf('AOL 4') != -1)  {version="America Online 4.0"; }
		else if(navigator.userAgent.indexOf('AOL 3') != -1)  {version="America Online 3.0"; }
		else if(navigator.userAgent.indexOf('MSIE 6') != -1) {version="Internet Explorer 6.0"; } 
		else if(navigator.userAgent.indexOf('MSIE 5') != -1) {version="Internet Explorer 5.0"; }    
		else if(navigator.userAgent.indexOf('MSIE 4') != -1)  {version="Internet Explorer 4.0"; }
                else if(navigator.userAgent.indexOf('MSIE 3') != -1)  {version="Internet Explorer 3.0!"; }
                else if(navigator.userAgent.indexOf("Mozilla/4.7") != -1)  {version="Netscape 4.7"; }
                else if(navigator.userAgent.indexOf("Mozilla/4.61") != -1)  {version="Netscape 4.61"; }
		else if(navigator.userAgent.indexOf("Mozilla/4.5") != -1)  {version="Netscape 4.5"; }
							else if(navigator.userAgent.indexOf("Firefox")!=-1){version="firefox";}
                else if(navigator.userAgent.indexOf("Mozilla/4") != -1)  {version="Netscape 4.0"; }
                else if(navigator.userAgent.indexOf("Mozilla/3") != -1)  {version="Netscape 3.0"; }
                else if(navigator.userAgent.indexOf("Mozilla/2") != -1)  {version="Netscape 2"; }
                else if(navigator.userAgent.indexOf("MSIE 4.5") != -1)  {version="Microsoft Internet Explorer 4.5 for Macintosh"; } 
		else if(navigator.appName=="WebTV Internet Terminal") {version="WebTV Browser"; }		
		else {version = "unable to determine browser"; }
		return(version);		
}

function getlang(){
	if (navigator.appName == 'Netscape')
	var language = navigator.language;
	else
	var language = navigator.browserLanguage;
	
	var lingo='';
	if (language.indexOf('en') > -1) lingo= 'Engels';
	else if (language.indexOf('nl') > -1) lingo=  'Nederlands';
	else if (language.indexOf('fr') > -1) lingo=  'Frans';
	else if (language.indexOf('de') > -1) lingo=  'Duits';
	else if (language.indexOf('ja') > -1) lingo=  'Japans';
	else if (language.indexOf('it') > -1) lingo=  'Italiaans';
	else if (language.indexOf('pt') > -1) lingo=  'Portugees';
	else if (language.indexOf('es') > -1) lingo=  'Spaans';
	else if (language.indexOf('sv') > -1) lingo=  'Zweeds';
	else if (language.indexOf('zh') > -1) lingo=  'Chinees';
	else
	lingo=  'Anders';
	return(lingo)	
	
}

function setCookie(name, value, expires, path, domain, secure)
{
    document.cookie= name + "=" + escape(value) +
        ((expires) ? "; expires=" + expires.toGMTString() : "") +
        ((path) ? "; path=" + path : "") +
        ((domain) ? "; domain=" + domain : "") +
        ((secure) ? "; secure" : "");
}

function getCookie(name)
{
    var dc = document.cookie;
    var prefix = name + "=";
    var begin = dc.indexOf("; " + prefix);
    if (begin == -1)
    {
        begin = dc.indexOf(prefix);
        if (begin != 0) return null;
    }
    else
    {
        begin += 2;
    }
    var end = document.cookie.indexOf(";", begin);
    if (end == -1)
    {
        end = dc.length;
    }
    return unescape(dc.substring(begin + prefix.length, end));
}

function deleteCookie(name, path, domain)
{
    if (getCookie(name))
    {
        document.cookie = name + "=" + 
            ((path) ? "; path=" + path : "") +
            ((domain) ? "; domain=" + domain : "") +
            "; expires=Thu, 01-Jan-70 00:00:01 GMT";
    }
}

function isIE(){
	if(navigator.userAgent.indexOf('MSIE'))return true;
	return false;	
}


function tree (a_items, a_template) {

	this.a_tpl      = a_template;
	this.a_config   = a_items;
	this.o_root     = this;
	this.a_index    = [];
	this.o_selected = null;
	this.n_depth    = -1;
	
	var o_icone = new Image(),
		o_iconl = new Image();
	o_icone.src = a_template['icon_e'];
	o_iconl.src = a_template['icon_l'];
	a_template['im_e'] = o_icone;
	a_template['im_l'] = o_iconl;
	for (var i = 0; i < 64; i++)
		if (a_template['icon_' + i]) {
			var o_icon = new Image();
			a_template['im_' + i] = o_icon;
			o_icon.src = a_template['icon_' + i];
		}
	
	this.toggle = function (n_id) {	var o_item = this.a_index[n_id]; o_item.open(o_item.b_opened) };
	this.select = function (n_id) { return this.a_index[n_id].select(); };
	this.mout   = function (n_id) { this.a_index[n_id].upstatus(true) };
	this.mover  = function (n_id) { this.a_index[n_id].upstatus() };

	this.a_children = [];
	for (var i = 0; i < a_items.length; i++)
		new tree_item(this, i);

	this.n_id = trees.length;
	trees[this.n_id] = this;
	
	for (var i = 0; i < this.a_children.length; i++) {
		document.write(this.a_children[i].init());
		this.a_children[i].open();
	}
}
function tree_item (o_parent, n_order) {

	this.n_depth  = o_parent.n_depth + 1;
	this.a_config = o_parent.a_config[n_order + (this.n_depth ? 2 : 0)];
	if (!this.a_config) return;

	this.o_root    = o_parent.o_root;
	this.o_parent  = o_parent;
	this.n_order   = n_order;
	this.b_opened  = !this.n_depth;

	this.n_id = this.o_root.a_index.length;
	this.o_root.a_index[this.n_id] = this;
	o_parent.a_children[n_order] = this;

	this.a_children = [];
	for (var i = 0; i < this.a_config.length - 2; i++)
		new tree_item(this, i);

	this.get_icon = item_get_icon;
	this.open     = item_open;
	this.select   = item_select;
	this.init     = item_init;
	this.upstatus = item_upstatus;
	this.is_last  = function () { return this.n_order == this.o_parent.a_children.length - 1 };
}

function item_open (b_close) {
	var o_idiv = get_element('i_div' + this.o_root.n_id + '_' + this.n_id);
	if (!o_idiv) return;
	
	if (!o_idiv.innerHTML) {
		var a_children = [];
		for (var i = 0; i < this.a_children.length; i++)
			a_children[i]= this.a_children[i].init();
		o_idiv.innerHTML = a_children.join('');
	}
	o_idiv.style.display = (b_close ? 'none' : 'block');
	
	this.b_opened = !b_close;
	var o_jicon = document.images['j_img' + this.o_root.n_id + '_' + this.n_id],
		o_iicon = document.images['i_img' + this.o_root.n_id + '_' + this.n_id];
	if (o_jicon) o_jicon.src = this.get_icon(true);
	if (o_iicon) o_iicon.src = this.get_icon();
	this.upstatus();
}

function item_select (b_deselect) {
	if (!b_deselect) {
		var o_olditem = this.o_root.o_selected;
		this.o_root.o_selected = this;
		if (o_olditem) o_olditem.select(true);
	}
	var o_iicon = document.images['i_img' + this.o_root.n_id + '_' + this.n_id];
	if (o_iicon) o_iicon.src = this.get_icon();
	get_element('i_txt' + this.o_root.n_id + '_' + this.n_id).style.fontWeight = b_deselect ? 'normal' : 'bold';
	
	this.upstatus();
	return Boolean(this.a_config[1]);
}

function item_upstatus (b_clear) {
	window.setTimeout('window.status="' + (b_clear ? '' : this.a_config[0] + (this.a_config[1] ? ' ('+ this.a_config[1] + ')' : '')) + '"', 10);
}
//modded for menu function ... replace string to regain function...
function item_init () {
	var a_offset = [],
		o_current_item = this.o_parent;
	for (var i = this.n_depth; i > 1; i--) {
		a_offset[i] = '<img src="' + this.o_root.a_tpl[o_current_item.is_last() ? 'icon_e' : 'icon_l'] + '" border="0" align="absbottom">';
		o_current_item = o_current_item.o_parent;
	}
	
	if(this.o_root.a_tpl['menufunc']){
	return '<table cellpadding="0" cellspacing="0" border="0"><tr><td nowrap>' + (this.n_depth ? a_offset.join('') + (this.a_children.length
		? '<a href="javascript: trees[' + this.o_root.n_id + '].toggle(' + this.n_id + ')" onmouseover="trees[' + this.o_root.n_id + '].mover(' + this.n_id + ')" onmouseout="trees[' + this.o_root.n_id + '].mout(' + this.n_id + ')"><img src="' + this.get_icon(true) + '" border="0" align="absbottom" name="j_img' + this.o_root.n_id + '_' + this.n_id + '"></a>'
		: '<img src="' + this.get_icon(true) + '" border="0" align="absbottom">') : '') 
		+ '<a href="#" target="' + this.o_root.a_tpl['target'] + '" onclick="domenu(' + this.a_config[1] + ')" ondblclick="trees[' + this.o_root.n_id + '].toggle(' + this.n_id + ')" onmouseover="trees[' + this.o_root.n_id + '].mover(' + this.n_id + ')" onmouseout="trees[' + this.o_root.n_id + '].mout(' + this.n_id + ')" class="t' + this.o_root.n_id + 'i" id="i_txt' + this.o_root.n_id + '_' + this.n_id + '"><img src="' + this.get_icon() + '" border="0" align="absbottom" name="i_img' + this.o_root.n_id + '_' + this.n_id + '" class="t' + this.o_root.n_id + 'im">' + this.a_config[0] + '</a></td></tr></table>' + (this.a_children.length ? '<div id="i_div' + this.o_root.n_id + '_' + this.n_id + '" style="display:none"></div>' : '');
	}else{
	return '<table cellpadding="0" cellspacing="0" border="0"><tr><td nowrap>' + (this.n_depth ? a_offset.join('') + (this.a_children.length
		? '<a href="javascript: trees[' + this.o_root.n_id + '].toggle(' + this.n_id + ')" onmouseover="trees[' + this.o_root.n_id + '].mover(' + this.n_id + ')" onmouseout="trees[' + this.o_root.n_id + '].mout(' + this.n_id + ')"><img src="' + this.get_icon(true) + '" border="0" align="absbottom" name="j_img' + this.o_root.n_id + '_' + this.n_id + '"></a>'
		: '<img src="' + this.get_icon(true) + '" border="0" align="absbottom">') : '') 
		+ '<a href="' + this.a_config[1] + '" target="' + this.o_root.a_tpl['target'] + '" onclick="return trees[' + this.o_root.n_id + '].select(' + this.n_id + ')" ondblclick="trees[' + this.o_root.n_id + '].toggle(' + this.n_id + ')" onmouseover="trees[' + this.o_root.n_id + '].mover(' + this.n_id + ')" onmouseout="trees[' + this.o_root.n_id + '].mout(' + this.n_id + ')" class="t' + this.o_root.n_id + 'i" id="i_txt' + this.o_root.n_id + '_' + this.n_id + '"><img src="' + this.get_icon() + '" border="0" align="absbottom" name="i_img' + this.o_root.n_id + '_' + this.n_id + '" class="t' + this.o_root.n_id + 'im">' + this.a_config[0] + '</a></td></tr></table>' + (this.a_children.length ? '<div id="i_div' + this.o_root.n_id + '_' + this.n_id + '" style="display:none"></div>' : '');
	}

}
//+ '<a href="' + this.a_config[1] + '" target="' + this.o_root.a_tpl['target'] + '" onclick="return trees[' + this.o_root.n_id + '].select(' + this.n_id + ')" ondblclick="trees[' + this.o_root.n_id + '].toggle(' + this.n_id + ')" onmouseover="trees[' + this.o_root.n_id + '].mover(' + this.n_id + ')" onmouseout="trees[' + this.o_root.n_id + '].mout(' + this.n_id + ')" class="t' + this.o_root.n_id + 'i" id="i_txt' + this.o_root.n_id + '_' + this.n_id + '"><img src="' + this.get_icon() + '" border="0" align="absbottom" name="i_img' + this.o_root.n_id + '_' + this.n_id + '" class="t' + this.o_root.n_id + 'im">' + this.a_config[0] + '</a></td></tr></table>' + (this.a_children.length ? '<div id="i_div' + this.o_root.n_id + '_' + this.n_id + '" style="display:none"></div>' : '');
function item_get_icon (b_junction) {
	return this.o_root.a_tpl['icon_' + ((this.n_depth ? 0 : 32) + (this.a_children.length ? 16 : 0) + (this.a_children.length && this.b_opened ? 8 : 0) + (!b_junction && this.o_root.o_selected == this ? 4 : 0) + (b_junction ? 2 : 0) + (b_junction && this.is_last() ? 1 : 0))];
}

var trees = [];
get_element = document.all ?
	function (s_id) { return document.all[s_id] } :
	function (s_id) { return document.getElementById(s_id) };

