




 
var AUb41b = (document.all) ? true : false;
var AU0022 = (navigator.appName == "Netscape") ? true: false;
var AU0ff0 = null; 
var AU482e = null;
var AU6217 = null; 
var AU2d2b = null;
var AUfc09 = null;
var AU798a = 0; 
var AUc7b8 = 0;
var AU2782 = 0; 
var AU4a8a = 0;
var AU0949 = null;  
var AU996b = 1; 
var AUe042 = 0; 
var AUe9a9 = 0; 
var AU4a2b = null; 
var AU55fb = 10;
var AU94d5 = 356;

function ATB_getHeight(id)
{
	var window = document.getElementById(id + '_window');
	return parseInt(window.style.height);
}

function ATB_getWidth(id)
{
	var window = document.getElementById(id + '_window');
	return parseInt(window.style.width);
}

function ATB_hidePopup(id)
{
    document.getElementById(id + '_window').style.display = 'none';
    document.getElementById(id + '_shadow').style.display = 'none';
    document.getElementById(id + '_iframe').style.display = 'none';
    
    if (document.getElementById(id + '_window').AUe982[10] != '')
	{
			var AU54ac = document.getElementById(document.getElementById(id + '_window').AUe982[10]);
			AU54ac.style.display = 'none';
	}
}

function ATB_showPopup(id)
{
	if (document.getElementById(id + '_window') != null)
	{
	  var window = document.getElementById(id + '_window').style;
      var AU9cc1 = document.getElementById(id + '_shadow').style;
     
      if (window.display != 'block')
      {
		window.display = 'block';
		AU9cc1.display = 'block';
		AU9cc1.zIndex = ++AU996b;
		window.zIndex = ++AU996b;
	      
	    
		if (document.getElementById(id + '_window').AUe982[10] != '')
		{
			var AU54ac = document.getElementById(document.getElementById(id + '_window').AUe982[10]);
			AU54ac.style.top = parseInt(window.top) + AU94d5;
			AU54ac.style.left = parseInt(window.left) + AU55fb;
			AU54ac.style.display = '';
		}
      
      }
      
      ATB_setPopupActive(document.getElementById(id + '_window'));
    }
    else alert(id + ':null');
}

function ATB_dragablePopup(AU2171)
{
	if (AU2171)
	{
		this.AUe851.onmousedown = ATB_mousedown;
		this.AUe851.onmouseup = ATB_mouseup;
	}
	
	else
	{
		this.AUe851.onmousedown = null;
		this.AUe851.onmouseup = null;
	}
}

function ATB_setTitle(id, text)
{
	document.getElementById(id + '_titleText').innerHTML = text;
}

function ATB_setContent(id, text)
{
	document.getElementById(id+ '_contents').innerHTML = text;
}

function ATB_setSize(id, width, height)
{
	width = Math.max(width, 100);
	height = Math.max(height, 80);

	var window = document.getElementById(id + '_window');
	window.style.width = width;
	window.style.height = height;		
	
	var AU9cc1 = document.getElementById(id + '_shadow');
	AU9cc1.style.width = (AUb41b) ? width : width + 4;
	AU9cc1.style.height = (AUb41b) ? height : height + 6;
	
	var title = document.getElementById(id + '_title');
	title.style.width = (AUb41b) ? width - 8 : width - 5;
	
	var button = document.getElementById(id + '_button');
	button.style.left = parseInt(title.style.width) - 20;
	
	var AUd988 = document.getElementById(id + '_contents');
	AUd988.style.width = (AUb41b) ? width - 7 : width - 13;
	AUd988.style.height = (AUb41b) ? height - 36 : height - 36;	
	
	if (document.getElementById(id + '_isTitleShowed').value == 'False')
	{
		window.style.height = parseInt(window.style.height) - 16;
	}
}

function ATB_dragContent(id,AU5bbc)
{
	content = document.getElementById(id + '_contents');
	if (content != null)
	{
		if (AU5bbc == 'True')
		{
			content.onmousedown = ATB_mousedown;
			content.onmouseup = ATB_mouseup;

		}
		else
		{
			content.onmousedown = null;
			content.onmouseup = null;
		}
	}
}

function ATB_showTitle(id,AUf624)
{
	var AU8d6a = document.getElementById(id + '_isTitleShowed'); 
	var AU3ee7 = document.getElementById(id + '_isWindowShowed');
	var AUaa6c = document.getElementById(id + '_isTitleMustBeShowedOnWindowShow');
		
	if (AUf624 == 'True')
	{
		if (AU8d6a.value == 'False' && AU3ee7.value == 'True')
		{
	
			var title = document.getElementById(id + '_title');
			title.style.visibility = 'visible';
	
			var AUd988 = document.getElementById(id + '_contents');
			
			AUd988.style.top = 4 + parseInt(title.clientHeight);
	
			var window = document.getElementById(id + '_window');
			
			window.style.height = parseInt(window.style.height) + parseInt(title.clientHeight);
			
			document.getElementById(id + '_isTitleShowed').value = 'True';
			
			ATB_resizeIframe(id);
		}
	}
	
	else
	{
		if (AU8d6a.value == 'True')
		{
	
			var title = document.getElementById(id + '_title');
			title.style.visibility = 'hidden';
	
			var AUd988 = document.getElementById(id + '_contents');
			AUd988.style.top = 3;
	
			var window = document.getElementById(id + '_window');
			
			window.style.height = parseInt(window.style.height) - parseInt(title.clientHeight);
			
			document.getElementById(id + '_isTitleShowed').value = 'False';
			
			
			ATB_resizeIframe(id);
		}
	}
	
}

function ATB_showWindow(id,AUf624)
{
	var AU3ee7 = document.getElementById(id + '_isWindowShowed');
	var AU8d6a = document.getElementById(id + '_isTitleShowed'); 
	var AUaa6c = document.getElementById(id + '_isTitleMustBeShowedOnWindowShow');
	
	if (AUf624 == 'True')
	{
		if (AU3ee7.value == 'False')
		{

			var window = document.getElementById(id + '_window');
			window.style.visibility = 'visible';
		
			document.getElementById(id + '_isWindowShowed').value = 'True';
			
			if (AUaa6c.value == 'True')
				ATB_showTitle(id,AUf624);
			
			ATB_resizeIframe(id);
		}
	}
	
	else
	{
		if (AU3ee7.value == 'True')
		{
		
			if (AU8d6a.value == 'True')
				AUaa6c.value = 'True';
			else
				AUaa6c.value = 'False';
				
			ATB_showTitle(id,AUf624);	
	
			var window = document.getElementById(id + '_window');
			window.style.visibility = 'hidden';
			
			document.getElementById(id + '_isWindowShowed').value = 'False';
			
			ATB_resizeIframe(id);
		}
	}
	
}

function ATB_resizeIframe(id)
{
	var window = document.getElementById(id + '_window');
	var AUc491 = document.getElementById(id + '_isTitleShowed'); 
	var AU1e22 = document.getElementById(id + '_isWindowShowed');
			
	if (window != null && AUc491 != null && AU1e22 != null)
	{
		if (AUc491.value == 'False' && AU1e22.value == 'True')
		{
			window.AUe982[9].style.width = window.AUe982[0].offsetWidth;
       			window.AUe982[9].style.height = window.AUe982[0].offsetHeight;
       			window.AUe982[9].style.top = window.AUe982[0].style.top;
			window.AUe982[9].style.left = window.AUe982[0].style.left;
       			window.AUe982[9].style.display = "block";
		}
		
		else if (AU1e22.value == 'False')
		{
			window.AUe982[9].style.width = window.AUe982[2].offsetWidth;
       			window.AUe982[9].style.height = window.AUe982[2].offsetHeight;
       			window.AUe982[9].style.top = parseInt(window.AUe982[2].style.top) + parseInt(window.AUe982[0].style.top) + 2;
			window.AUe982[9].style.left = parseInt(window.AUe982[2].style.left) + parseInt(window.AUe982[0].style.left) + 2;
       			window.AUe982[9].style.display = "block";
		}
	}
}

function ATB_mousemouve(AUae48)
{
    

    AUe042 = (AUb41b) ? event.clientX + document.body.scrollLeft:AUae48.pageX;
    AUe9a9 = (AUb41b) ? event.clientY + document.body.scrollTop:AUae48.pageY;
    
    if(!AU0022)
        ATB_moveObject();
        
    if((AU0ff0 != null) || (AU6217 != null) || (AU2d2b != null) || (AU482e != null))
        return false;
}

function ATB_movePopupTo(id,x,y)
{
	  var AUb133 = false;
      var window = document.getElementById(id + '_window');
      var AU9cc1 = document.getElementById(id + '_shadow');
      
	  if (window.style.display == 'block')
	  {
		AUb133 = true;
		ATB_hidePopup(id);
	  }
      
      window.style.left = x;
      AU9cc1.style.left = x + 8;
      window.style.top = y;
      AU9cc1.style.top = y + 8;
      
      if (AUb133 == true)
		ATB_showPopup(id);
}

function AU149d(AU7cf2)
{
	AU2818 = AU7cf2.screenX;
	AU0ac5 = AU7cf2.screenY;
}

function ATB_movePopupFrom(AU716b, AU3525, AU28fe){
	if (navigator.userAgent.indexOf('MSIE') >= 0){
		if (event.clientX < 100){
			AU3525 = 0;
		}
		AUfe57 = document.body.scrollLeft;
		AU857c = document.body.scrollTop;
		ATB_movePopupTo(AU716b, event.clientX + AUfe57 + AU3525, event.clientY + AU857c + AU28fe);
	} else if (navigator.userAgent.indexOf('Safari') >= 0){
		if (event.clientX < 100){
			AU3525 = 0;
		}
		ATB_movePopupTo(AU716b, event.clientX + AU3525, event.clientY + AU28fe);
	} else {
		document.onmousemove = AU149d;
		AUfe57 = window.pageXOffset;
		AU857c = window.pageYOffset;
		if (AU2818 < 100){
			AU3525 = 0;
		}
		setTimeout(ATB_movePopupTo(AU716b, AU2818 + AUfe57 + AU3525, AU0ac5 + AU857c + AU28fe - 130),100);
	}
}

function ATB_moveObject()
{
	if (AU2d2b != null)
    {
      	var x = AUe042 + AU798a;
        var y = AUe9a9 + AUc7b8;
        
    	var AUa0c2 = false;
    	var AUaaa1 = document.getElementById("Containers").value; 
    	if (AUaaa1 != null && AUaaa1 != "")
    	{
    		var AU82c7=new RegExp('[,]+', 'g');
	    	
    		var AUc048 = AUaaa1.split(AU82c7); 
    		for (AUa4fb = 0 ; AUa4fb < AUc048.length ; AUa4fb++)
    		{
    			var AU15ec = document.getElementById(AUc048[AUa4fb]); 
				var AU0c98 = AU15ec.offsetLeft;
				var AUad1b = AU15ec.offsetTop;
				var AUb4c2 = AU15ec.clientWidth;
				var AUda09 = AU15ec.clientHeight;
			   
				var AUab1b = AU2d2b.clientHeight/2;
			   
				if (x > AU0c98 && x < AU0c98 + AUb4c2)
    				if (y + AUab1b > AUad1b && y + AUab1b < AUad1b + AUda09)
    	   				AUa0c2 = true;
		    	   	
    			if (AUa0c2 == true)
				{
				    
				    var AU39e7 = eval(AUc048[AUa4fb] + "_backColorDock");
				    if (AU39e7 != null)
						AU15ec.style.backgroundColor = AU39e7.value;
					AUfc09 = AU15ec; break;
				}
				else
				{   
					 var backgroundColor = eval(AUc048[AUa4fb] + "_backColor");
					if (backgroundColor != null)
					   AU15ec.style.backgroundColor = backgroundColor.value;
					else
					   AU15ec.style.backgroundColor = "transparent";
					AUfc09 = null;
				}	
   			}
   		}
    	
        if (x > 15)
           AU2d2b.style.left = x + 'px';
        else
           AU2d2b.style.left = 0 + 'px';
        
        if (y > 15)
           AU2d2b.style.top = y + 'px';
        else
           AU2d2b.style.top = 0 + 'px';
    }

    if (AU0ff0 != null)
    {
       var x = AUe042 + AU798a;
       var y = AUe9a9 + AUc7b8;
       AU0ff0.style.left = x + 'px';
       AU8946.style.left = x + 8 + 'px';
       AU0ff0.style.top = y + 'px';
       AU8946.style.top = y + 8 + 'px';
       
       var AU716b = ATB_StringReplace(AU0ff0.id,'_window',''); 
       if (document.getElementById(AU716b + '_isWindowShowed').value == 'False')
       {
        AU482e.style.left = x + parseInt(AU0ff0.AUe982[2].style.left) + 2 +'px';
       	AU482e.style.top = y + parseInt(AU0ff0.AUe982[2].style.top) + 2 +'px';
       }
       else
       {
       	AU482e.style.left = x + 'px';
       	AU482e.style.top = y + 'px';
       }
       
       if (AU0ff0.AUe982[10] != '')
       {
			var AU54ac = document.getElementById(AU0ff0.AUe982[10]); 
			AU54ac.style.top = parseInt(AU0ff0.style.top) + AU94d5;
			AU54ac.style.left = parseInt(AU0ff0.style.left) + AU55fb;
       }
    }
    
    if(AU6217 != null)
    {
       var AUc672 = AUe042 + AU2782;
       var AU9177 = AUe9a9 + AU4a8a;
       var AUd2e0 = AU6217;
       AUd2e0.style.left = Math.max(AUc672,((AUb41b) ? 88 : 92)) + 'px';
       AUd2e0.style.top = Math.max(AU9177,((AUb41b) ? 68 : 72)) + 'px';
       AUd2e0.AUe982[0].style.width = Math.max(AUc672 + ((AUb41b) ? 12 : 8), 100) + 'px';
       AUd2e0.AUe982[0].style.height = Math.max(AU9177 + ((AUb41b) ? 12 : 8), 80) + 'px';
       AUd2e0.AUe982[1].style.width = Math.max(AUc672 + ((AUb41b) ? 4 : 3), ((AU0022) ? 95 : 92)) + 'px';
       AUd2e0.AUe982[5].style.left = parseInt(AUd2e0.AUe982[1].style.width) - 20 + 'px';
       AUd2e0.AUe982[3].style.width = Math.max(AUc672 + 12,((AUb41b) ? 100 : 104)) + 'px';
       AUd2e0.AUe982[3].style.height = Math.max(AU9177 + ((AUb41b) ? 12 : 13),((AUb41b) ? 80 : 86)) + 'px';
       AUd2e0.AUe982[2].style.width = Math.max(AUc672 - ((AUb41b) ? - 5 : 5),((AUb41b) ? 92 : 87)) + 'px';
       AUd2e0.AUe982[2].style.height = Math.max(AU9177 - ((AUb41b) ? 24 : 28), 44) + 'px';
       AUd2e0.AUe982[8] = parseInt(AUd2e0.AUe982[0].style.height);
   }
}

function ATB_startResize(AUae48)
{
    var AU09bf = (AUb41b) ? event.clientX+document.body.scrollLeft:AUae48.pageX;
    var AUc7f9 = (AUb41b) ? event.clientY+document.body.scrollTop:AUae48.pageY;
    
    AU2782 = parseInt(this.style.left) - AU09bf;
    AU4a8a = parseInt(this.style.top) - AUc7f9;
    AU6217 = this;
    
    
    
        
    return false;
}

function ATB_mouseup()
{
    AU0ff0 = null;
    AU482e = null;
    if (AUb41b)
    {
		self.resizeBy(0,1);
		self.resizeBy(0,-1);
	}
}

function ATB_mousedown(AUae48)
{
    var AU09bf = (AUb41b) ? event.clientX + document.body.scrollLeft : AUae48.pageX;
    var AUc7f9 = (AUb41b) ? event.clientY + document.body.scrollTop : AUae48.pageY;
    
    AU798a = parseInt(this.AUe982[0].style.left) - AU09bf;
    AUc7b8 = parseInt(this.AUe982[0].style.top) - AUc7f9;
    
    AU0ff0 = this.AUe982[0];
    AU482e = this.AUe982[9];    
    AU8946 = this.AUe982[3];
    
    return false;
}

function ATB_createDiv(x,y,width,height,AU72eb,id)
{
   var AUf3f1 = document.createElement('div');
   AUf3f1.setAttribute('id',id); 
   AUf3f1.style.position = 'absolute';
   AUf3f1.style.left = x + 'px';
   AUf3f1.style.top = y + 'px';
   if (width != null)
	AUf3f1.style.width = width + 'px';
   if (height != null)	
	AUf3f1.style.height = height + 'px';
   AUf3f1.style.backgroundColor = AU72eb;
   AUf3f1.style.visibility = 'visible';
   AUf3f1.style.padding = '0px 0px 0px 0px';
   return AUf3f1;
}

function ATB_createPopup(id,x,y,width,height,title,text,AU6e36,AUc5cb,AU02ea,AUcfa1,AU6dbf,AUd819,AUfd1a,AU94dc,AU4dc6,AU1454,AU05b0,AU4556,AU38ff,AU8ccc,AUa518,AU3cad,AU7176,overflow)
{
  if (document.getElementById(id + '_window') != null)
	return;
  
   var AU8d6a = document.createElement("input");
   AU8d6a.setAttribute("type","hidden");
   AU8d6a.setAttribute("name", id + "_isTitleShowed");
   AU8d6a.setAttribute("id", id + "_isTitleShowed");
   AU8d6a.setAttribute("value", "True");
   document.body.appendChild(AU8d6a);
  
   var AU3ee7 = document.createElement("input");
   AU3ee7.setAttribute("type","hidden");
   AU3ee7.setAttribute("name", id + "_isWindowShowed");
   AU3ee7.setAttribute("id", id + "_isWindowShowed");
   AU3ee7.setAttribute("value", "True");
   document.body.appendChild(AU3ee7);
   
   var AU3ee7 = document.createElement("input");
   AU3ee7.setAttribute("type","hidden");
   AU3ee7.setAttribute("name", id + "_isTitleMustBeShowedOnWindowShow");
   AU3ee7.setAttribute("id", id + "_isTitleMustBeShowedOnWindowShow");
   AU3ee7.setAttribute("value", "True");
   document.body.appendChild(AU3ee7);
  
   var AUe0a8, AU64cc; 
   width = Math.max(width,100);
   height = Math.max(height,80);
   var AUa7bc=new ATB_createDiv(width - ((AUb41b) ? 12 : 8), height - ((AUb41b) ? 12 : 8), 7, 7, '', id + '_resize');
   AUe0a8 = (AUb41b) ? width : width + 4;
   AU64cc = (AUb41b) ? height : height + 6;
   var AU9cc1 = new ATB_createDiv(x + 8, y + 8, AUe0a8, AU64cc, "black", id + '_shadow');
       
   if(AUb41b)
      AU9cc1.style.filter = "alpha(opacity = 50)";
   else 
      AU9cc1.style.MozOpacity = .5;
      
   AU9cc1.style.visibility = 'hidden';          
   AU9cc1.style.zIndex = ++AU996b;
   
   var AU6952 = new ATB_createDiv(x,y,width,height,AU6e36,id + '_window');
   if (AU02ea.toUpperCase() != "NOTSET")
   {
	AU6952.style.borderStyle = AU02ea;
	AU6952.style.borderWidth = AUcfa1 + 'px';
	AU6952.style.borderColor = AUc5cb;
   }
   AU6952.style.zIndex = ++AU996b;
   AU6952.style.visibility = 'visible';          
      
   AUe0a8=(AUb41b) ? width - 7 : width - 5;
   AU64cc=(AUb41b) ? height + 4 : height - 4;
   var AU99f0 = new ATB_createDiv(2,1,AUe0a8,null,AU6dbf,id + '_title');	
   if (AU94dc.toUpperCase() != "NOTSET")
   {
    AU99f0.style.borderColor = AUfd1a;
	AU99f0.style.borderStyle = AU94dc;
	AU99f0.style.borderWidth = AU4dc6 + 'px';
   }
   if (overflow != 'undefined')
       AU99f0.style.overflow = overflow;
   AU99f0.style.cursor = "default";
   AU99f0.style.visibility = 'visible';          
   
   var AU0b69 = '<table border=0 width=100%>';
   AU0b69 += '<tr>';
   AU0b69 += '<td>';
   AU0b69 += '<span id="'+id+'_titleText" style="color:'+ AU1454 + ';">' + title + '</span>';
   AU0b69 += '</td>';
   AU0b69 += '<td align=right valign=top>';
  AU0b69 += '<span id="'+id+'_button"><img src="images/Close.gif" width="16" height="16" id="' + id + '_close"></div></span>';
  
   AU0b69 += '</td>';
   
   AU99f0.innerHTML = AU0b69;
   
   AUe0a8 = (AUb41b) ? width - 10 : width - 13;
   AU64cc=(AUb41b) ? height - 30 : height - 30;
   var AUd988 = new ATB_createDiv(0,24,AUe0a8,AU64cc,AU05b0,id + '_contents');
   if (AU38ff.toUpperCase() != "NOTSET")
   {
	AUd988.style.borderColor = AU4556;
	AUd988.style.borderStyle = AU38ff;
	AUd988.style.borderWidth = AU8ccc;
   }
   if (overflow != 'undefined')
       AUd988.style.overflow = overflow;
   AUd988.style.padding = "0px 2px 0px 4px";

   AUd988.style.visibility = 'visible';          
      
   if(AUb41b)
      AUd988.style.scrollbarBaseColor = AUa518;
      
   AUd988.innerHTML = text;
   AU6952.appendChild(AU99f0);
   AU6952.appendChild(AUd988);
   AU6952.appendChild(AUa7bc);
   var AU1d8c = document.createElement("IFRAME");
   AU1d8c.setAttribute("id", id + "_iframe");
   AU1d8c.style.border = 0;
   AU1d8c.width = 0;
   AU1d8c.height = 0;
   AU1d8c.style.position = "absolute";
   document.body.appendChild(AU1d8c);
   document.body.appendChild(AU9cc1);
   document.body.appendChild(AU6952);
      
   ATB_autoUpdatePopupSize(id);   
   
      
   var AUe982 = new Array();
   AUe982[0] = document.getElementById(id+'_window');
   AUe982[1] = document.getElementById(id+'_title');
   AUe982[2] = document.getElementById(id+'_contents');
   AUe982[3] = document.getElementById(id+'_shadow');
   AUe982[4] = document.getElementById(id+'_resize');
   AUe982[5] = document.getElementById(id+'_button');
   AUe982[6] = document.getElementById(id+'_close');
   AUe982[7] = id;
   AUe982[8] = height;
   AUe982[9] = AU1d8c;
   AUe982[10] = '';
   
   this.AU003b = AUe982[0]; 
   this.AU003b.AUe982 = AUe982;
   
   this.AUe851 = AUe982[1]; 
   this.AUe851.AUe982 = AUe982;
   
   this.AU48fa = AUe982[2]; 
   this.AU48fa.AUe982 = AUe982;
   
   this.AU77bb = AUe982[3]; 
   this.AU77bb.AUe982 = AUe982;
   
   this.AU2a88 = AUe982[4]; 
   this.AU2a88.AUe982 = AUe982;
   
   this.AUaa4b = AUe982[5]; 
   this.AUaa4b.AUe982 = AUe982;
   
   this.AUf9ba = AUe982[6]; 
   this.AUf9ba.AUe982 = AUe982;
   
   this.AU003b.AUf220 = AU6dbf;
   this.AU003b.AU02f1 = AUd819;
      
   if(AU0949 != null)
      AU0949.AUe982[1].style.backgroundColor = AU0949.AU02f1;
      
   AU0949 = this.AU003b;
   this.AUf9ba.onclick = new Function("ATB_hidePopup('"+id+"');");
       
   this.AU003b.onmousedown = function()
   {
	 	ATB_setPopupActive(this);
   }
   
   this.AU003b.onselectstart = new Function('return false');
    
   if(AU3cad == 'True')
   {
      this.AUe851.onmousedown = ATB_mousedown;
      this.AUe851.onmouseup = ATB_mouseup;
   }
      
   if(AU0022)setInterval('ATB_moveObject()',40);


   
   if (AU7176 == 'False')
   {
     ATB_hidePopup(id);
   }

}

function ATB_setCloseImage(id,AU6010)
{
	var close = document.getElementById(id + '_close');
	if (close != null)
		close.src = AU6010;
}

function ATB_setTitleFont(AUa5df, fontFamily, fontSize,bold, italic, textDecoration)
{
   var AU412c = document.getElementById(AUa5df + '_titleText');	
   if (AU412c != null)
   {
   	ATB_setFontObject(AU412c,fontFamily,fontSize,bold,italic,textDecoration);	
   	ATB_autoUpdatePopupSize(AUa5df);
   }
}

function ATB_setContentFont(AUa5df,fontFamily, fontSize,bold, italic, textDecoration)
{
	var AUd988 = document.getElementById(AUa5df + '_contents');
	if (AUd988 != null)
	{
		ATB_setFontObject(AUd988,fontFamily,fontSize,bold,italic,textDecoration);	
	}
}

function ATB_setFontObject(object,fontFamily, fontSize,bold, italic, textDecoration)
{
  	if (fontFamily != null)
   		object.style.fontFamily = fontFamily;
   	if (fontSize != null)
   		object.style.fontSize = fontSize;
   	if (bold != null)
   	{
   		if (bold.toUpperCase() == 'TRUE')
   			object.style.fontWeight = 'bold';
   		else
   			object.style.fontWeight = 'normal';
   	}
   	
   	if (italic != null)
   	{
   		if (italic.toUpperCase() == 'TRUE')
   			object.style.fontStyle = 'italic';
   		else
   			object.style.fontStyle = 'normal';
   	}
   		
   	if (textDecoration != null)
   	{
   		object.style.textDecoration = textDecoration;
   	}	
}

function ATB_autoUpdatePopupSize(AUa5df)
{
	var AUd988 = document.getElementById(AUa5df + '_contents');
	var AU99f0 = document.getElementById(AUa5df + '_title');
	var window = document.getElementById(AUa5df + '_window');
	
	AUd988.style.top = 4 + parseInt(AU99f0.clientHeight);   
   	AUd988.style.height = parseInt(window.clientHeight) - parseInt(AU99f0.clientHeight) - 8;
}

function ATB_SetIsImageLibrary(AUa5df,AUb1b7)
{
	var AU406b = document.getElementById(AUa5df + '_window');
	AU406b.AUe982[10] = AUb1b7;
}

function ATB_setPopupActive(AU406b)
{
	
       if(AU0949!=null)
       {
          AU0949.AUe982[1].style.backgroundColor=AU0949.AU02f1;
          AU406b.AUe982[0].style.zIndex -= 10000;
       }
         
       
       
       
            
       AU0949=AU406b;
       AU406b.AUe982[1].style.backgroundColor = AU406b.AUf220;
       AU406b.AUe982[3].style.zIndex = ++AU996b;
       AU406b.style.zIndex = ++AU996b;
       AU406b.AUe982[0].style.display = "block";
       
       
       
       var AU716b = ATB_StringReplace(AU406b.id,'_window',''); 
       ATB_resizeIframe(AU716b);
       AU406b.AUe982[9].style.zIndex = AU406b.AUe982[0].style.zIndex+1000;
       AU406b.AUe982[9].style.display = "block";
       AU406b.AUe982[9].style.zIndex += 10000;
       AU406b.AUe982[0].style.zIndex += 100001;
    
}

function ATB_StringReplace(AU2d05, AUf5da, AU5504)
{
	AU2d05 = AU2d05.split(AUf5da).join(AU5504);
	return AU2d05;
}

function ATB_setTitleGradient(id, AU991a, AU37d0)
{
  var AU99f0 = document.getElementById(id + '_title');
  if (AU99f0 != null)
  {
	  AU99f0.style.filter = "progid:DXImageTransform.Microsoft.Gradient(endColorstr='" + AU37d0 + "', startColorstr='" + AU991a + "', gradientType='1')";
  }
}

document.onmousemove = ATB_mousemouve;
document.onmouseup = new Function("ATB_currentResize = null");

function AU40ae(id)
{
	return AUf459(id, ':', '_');
}

function AUf459(AU2d05, AUf5da, AU5504)
{
	AU2d05 = AU2d05.split(AUf5da).join(AU5504);
	return AU2d05;
}

function ATB_dockmousedown(id)
{
 AU2d2b = document.getElementById(id); AU2d2b.style.zIndex = 999;
     
 
 direction = eval(AU40ae(id) + '_direction');    
      
 AU798a = AU2d2b.clientLeft; 
 AUc7b8 = AU2d2b.clientTop;
 
 if (direction == 'Horizontal')
 {
    AUc7b8 -= AU2d2b.clientHeight/2; 
 }
 
 else
 {
   AU798a -= AU2d2b.clientWidth/2;
 }
  
 var AUaaa1 = document.getElementById("Containers").value; 
 if (AUaaa1 != null && AUaaa1 != "")
 {
	var AU82c7=new RegExp('[,]+', 'g');
	var AUc048 = AUaaa1.split(AU82c7); 
	for (AUa4fb = 0 ; AUa4fb < AUc048.length ; AUa4fb++)
	{
		var AU3edb = document.getElementById(AUc048[AUa4fb] + '_toolbars').value; 
	    
		if (AU3edb.indexOf(id) >= 0)
		{
		var AU1473 = ATB_removeSubString(AU3edb,id);
		document.getElementById(AUc048[AUa4fb] + '_toolbars').value = AU1473;
	       
		var AU1d19 = 0; 
		var AU15ec = document.getElementById(AUc048[AUa4fb]);
		if (AU1473 != "")
		{
			var AU1497 = AU1473.split(AU82c7);
     		if (AU1497.length > 0)
    		{
    			var top = parseInt(AU15ec.style.top) + parseInt(AU15ec.style.borderWidth);
	   	   
   				for (AUa4fb = 0 ; AUa4fb < AU1497.length ; AUa4fb++)
   				{
   	   				var AU43a2 = document.getElementById(AU1497[AUa4fb]); 
   	   				AU43a2.style.top = top;
   	   				AU1d19 += parseInt(AU43a2.clientHeight);
   	   				top += parseInt(AU43a2.clientHeight);
      			} 
			}
		}
		AU15ec.style.height = AU1d19 + parseInt(AU15ec.style.borderWidth)*2;
		}
	}
  }
}

function ATB_dockmouseup(id)
{
  
  if (AUfc09 != null)
  {
     ATB_addToolToContainer(AUfc09.id, AU2d2b.id);
     AUfc09 = null;
  }
  if (AU2d2b.style != null && AU2d2b.style.zIndex != null)
     AU2d2b.style.zIndex = 1;
     
  document.getElementById(AU2d2b.id + '_left').value = AU2d2b.style.left;
  document.getElementById(AU2d2b.id + '_top').value = AU2d2b.style.top;
       
  AU2d2b = null;
}

function ATB_addToolToContainer(AU6295, AU1e06)
{
     var AU1d19 = 0; 
     var AU15ec = document.getElementById(AU6295);
     var AU3edb = document.getElementById(AU6295 + '_toolbars').value;
     var AU7449 = document.getElementById(AU1e06);
     
     var top = parseInt(AU15ec.style.top);
     
     if (AU3edb != "")
     {
     	if (AU3edb.indexOf(AU1e06) != -1) return ;
     	
        var AU82c7=new RegExp('[,]+', 'g');
     	var AU1497 = AU3edb.split(AU82c7); 
     	if (AU1497.length > 0)
     	{
     	    for (AUa4fb = 0 ; AUa4fb < AU1497.length ; AUa4fb++)
     	    {
     	       top += parseInt(document.getElementById(AU1497[AUa4fb]).clientHeight);
     	       AU1d19 += parseInt(document.getElementById(AU1497[AUa4fb]).clientHeight);
     	    }
     	}
     }
     
     AU7449.style.top = top + parseInt(AU15ec.style.borderWidth);
     AU7449.style.left = parseInt(AU15ec.style.left) + parseInt(AU15ec.style.borderWidth);
     document.getElementById(AU6295 + '_toolbars').value += "," + AU1e06;
     AU1d19 += AU7449.clientHeight;
     
     AU15ec.style.height = AU1d19 + parseInt(AU15ec.style.borderWidth)*2;
     
     var backgroundColor = eval(AU6295 + '_backColor'); 
     if (backgroundColor != null)
		AU15ec.style.backgroundColor = backgroundColor.value;
	else 
		AU15ec.style.backgroundColor = 'transparent';
}

function ATB_removeSubString(AU521c,AUfbc0)
{
	var AU82c7=new RegExp('[,]+', 'g');
	var AU0db9 = AU521c.split(AU82c7);
	var AUa475 = '';
	for (var AUa4fb=0; AUa4fb<AU0db9.length; AUa4fb++) 
	{
		if (AU0db9[AUa4fb] != AUfbc0)
		{
			AUa475 = AUa475.concat(AU0db9[AUa4fb]);
			AUa475 = AUa475.concat(',');
		}
	}

	return AUa475;
}
 
function ATB_RegisterEvent(szEventName, pEventHandler)
{
	
	var AU2d6d = eval("this." + szEventName);

	if(typeof(attachEvent) != "undefined")
	{
		
		eval("this.attachEvent('" + szEventName + "', " + pEventHandler + ");");
		return;
	}
	else if(typeof(addEventListener) != "undefined")
	{
		
		eval("this.addEventListener('" + (szEventName.substring(2)) + "', " + pEventHandler + ", false);");
		return;
	}
	
	
	else if(!AU2d6d)
	{
		
		
		eval("this." + szEventName + " = pEventHandler");
		return;
	}
	
	else
	{
		AU2d6d = AU2d6d.toString();
	}

	
	var AU9aac = pEventHandler.toString();

	
	var ev;
	ev=AU2d6d.substring(AU2d6d.indexOf("{") + 1, AU2d6d.lastIndexOf("}")) + AU9aac.substring(AU9aac.indexOf("{") + 1, AU9aac.lastIndexOf("}"));
	ev=new Function(ev);

	
	eval("this." + szEventName + " = ev");
}

if(typeof(window.RegisterEvent) == "undefined")
	window.RegisterEvent = ATB_RegisterEvent;
if(typeof(document.RegisterEvent) == "undefined")
	document.RegisterEvent = ATB_RegisterEvent; 

function ATB_swap(AUbe7c, AUeaa9) 
{
	document[AUbe7c].src = AUeaa9;
}

function ATB_findPosX(AUfe9f)
{	
	var AU2fc1 = 0; 
	if (AUfe9f.offsetParent) 
	{ 
		while (AUfe9f.offsetParent) 
		{ 
			if (AUfe9f.tagName != 'DIV')
			   AU2fc1 += AUfe9f.offsetLeft; 
			AUfe9f = AUfe9f.offsetParent; 
		} 
	} 
	else if (AUfe9f.x) 
	{
		AU2fc1 += AUfe9f.x; 
	}
	return AU2fc1; 
}

function ATB_findPosY(AUfe9f)
{
	var AUcf3c = 0;
	if (AUfe9f.offsetParent)
	{
		
		
		
		while (AUfe9f.offsetParent)
		{
			if (AUfe9f.tagName != 'DIV')
			{
			   
			   
			   AUcf3c += AUfe9f.offsetTop;
			}
			AUfe9f = AUfe9f.offsetParent;
		}
	}
	else if (AUfe9f.y)AUcf3c += AUfe9f.y;
	
	return AUcf3c;
}

function ATB_changeSelectedIndex(id, AUe7be, close)
{
	document.getElementById(id + '_selectedIndex').value = AUe7be;
	if (close == 'True')
		ATB_closeDropDownList(id);
	
	if  (document.getElementById(id + '_changeToSelectedText').value == "Text")
		document.getElementById(id + '_text').innerHTML = document.getElementById(id + '_item' + AUe7be).innerHTML;
		
	else if (document.getElementById(id + '_changeToSelectedText').value == "Value")
		document.getElementById(id + '_text').innerHTML = document.getElementById(id + '_item' + AUe7be).value;
	
	if (document.getElementById(id + '_doPostBackWhenClick').value == "True")
		__doPostBack(id,'');
		
	
}

function ATB_getSelectedIndex(id)
{
	return document.getElementById(id + '_selectedIndex').value;
}


function ATB_getSelectedText(id)
{
	return document.getElementById(id + '_item' + ATB_getSelectedIndex(id)).innerHTML;
}

function ATB_getSelectedValue(id)
{
	return document.getElementById(id + '_item' + ATB_getSelectedIndex(id)).value;
}

function ATB_setDropDownListText(id,text)
{
   document.getElementById(id + '_text').innerHTML = text;
}

function ATB_createContainersInput()
{
   var AUe324 = document.getElementById('Containers');
   if (AUe324 == null)
   {
     var AU15ec = document.createElement('input');
     AU15ec.setAttribute('id','Containers'); 
     AU15ec.setAttribute('name','Containers'); 
     AU15ec.setAttribute('value',''); 
     document.body.appendChild(AU15ec);
   }
}

function ATB_addContainer(id)
{
  var AUaaa1 = document.getElementById('Containers');
  if (AUaaa1 != null && AUaaa1.value.indexOf(id) < 0)
  {
	  if (AUaaa1 != "")
		AUaaa1.value = AUaaa1.value.concat(",");
		
      document.getElementById('Containers').value = AUaaa1.value.concat(id);
  }
}

function ATB_openDropDownList(id)
{
   if (AU4a2b != null)
   {
     ATB_closeDropDownList(AU4a2b);
   }
   AU4a2b = id;

   var AUf4b1 = document.getElementById(id + '_ddl'); 
   var AU28d5 = document.getElementById(id + '_items');
   var AU82a7 = document.getElementById(id + '_divItems');
   
   AU28d5.style.position='absolute';
     
   
   AU28d5.style.display = 'block';
   
   var AUcdb0 = document.getElementById(id + '_ItemsAreaHeightToAdjust'); 
   if (AUcdb0 != null && AUcdb0.value.toUpperCase() == 'TRUE')
	ATB_adjustDropDownItemsAreaHeight(id);

   if (AUb41b)
      AU28d5.style.top = 2 + AUf4b1.offsetTop + AUf4b1.offsetHeight;
   else
   {
      var parent = AUf4b1.offsetParent;
      if (parent != null && parent.id.indexOf('_isToolbar') != -1)
      	AU28d5.style.top = 1 + parseInt(parent.offsetTop) + AUf4b1.offsetHeight; 
      else
      {
         var coords = AU496b(AUf4b1);
         AU28d5.style.top = 1 + AUf4b1.offsetHeight + coords.y;
      }
   }
   
   AU28d5.style.left = AUf4b1.style.left;
   
   if (AUf4b1.offsetWidth > AU28d5.offsetWidth)
   	AU28d5.style.width = AUf4b1.offsetWidth;
   else
   	AU28d5.style.width = AU28d5.offsetWidth;

   AU28d5.style.zIndex += 100000;

   if (AU0022)
   {
     var AU82a7 = document.getElementById(id + '_divItems'); 
     AU82a7.style.width = parseInt(AU28d5.clientWidth);
   }
   
   var AU2244 = document.getElementById(id + '_mask');
   AU2244.style.width = AU28d5.offsetWidth;
   AU2244.style.height = AU28d5.offsetHeight;
   AU2244.style.top = AU28d5.style.top;
   AU2244.style.left = AU28d5.style.left;
   AU2244.style.zIndex = AU28d5.style.zIndex-1;
   AU2244.style.display = 'block';
}

function AU496b(element) 
{
	var coords = {x: 0, y: 0};
	while (element) 
	{
		coords.x += element.offsetLeft;
		coords.y += element.offsetTop;
		element = element.offsetParent;
	} return coords;
}

function ATB_findPosX(AUfe9f)
{
	var AU2fc1 = 0;
	if (AUfe9f.offsetParent)
	{
		while (AUfe9f.offsetParent)
		{
			AU2fc1 += AUfe9f.offsetLeft;
			AUfe9f = AUfe9f.offsetParent;
		}
	}
	else if (AUfe9f.x)
		AU2fc1 += AUfe9f.x;
	return AU2fc1;
}

function ATB_findPosY(AUfe9f)
{
	var AUcf3c = 0;
	if (AUfe9f.offsetParent)
	{
		while (AUfe9f.offsetParent)
		{
			AUcf3c += AUfe9f.offsetTop;
			AUfe9f = AUfe9f.offsetParent;
		}
	}
	else if (AUfe9f.y)
		AUcf3c += AUfe9f.y;
	return AUcf3c;
}


function ATB_adjustDropDownItemsAreaHeight(AU421a)
{
	var AU82a7 = document.getElementById(AU421a + '_divItems');
	var AU9690 = document.getElementById(AU421a + '_tableItems');
		
	if (AU82a7 != null && AU9690 != null)
	{
		if (parseInt(AU9690.clientHeight) < parseInt(AU82a7.clientHeight))
		{
			AU82a7.style.height = parseInt(AU9690.offsetHeight);
		}
	}
}

function ATB_closeDropDownList(id)
{
  var AU28d5 = document.getElementById(id + '_items');
  if (AU28d5.style.display == 'block' || AU28d5.style.display == '')
  {
    AU28d5.style.display = 'none';
    AU28d5.style.zIndex -= 100000;
    var AU2244 = document.getElementById(id + '_mask');
    AU2244.style.display = 'none';
  }
  
}

function ATB_destroyContextMenu(id)
{
	if (document.getElementById(id + '_window') != null)
	{
		document.body.removeChild(document.getElementById(id + '_window'));
		document.body.removeChild(document.getElementById(id + '_iframe'));		
	}
}

function ATB_createContextMenu(id,x,y,text,AU6e36,AUc5cb,AU02ea,AUcfa1)
{
  if (document.getElementById(id + '_window') != null) 
	return;
	  
   var AU6952 = new ATB_createDiv(x,y,0,0,AU6e36,id + '_window');
   if (AU02ea.toUpperCase() != "NOTSET")
   {
	AU6952.style.borderStyle = AU02ea;
	AU6952.style.borderWidth = AUcfa1 + 'px';
	AU6952.style.borderColor = AUc5cb;
   }
   AU6952.style.zIndex = ++AU996b;
   AU6952.style.visibility = 'visible';          
   
   
   AU6952.innerHTML = text;
   var AU1d8c = document.createElement("IFRAME");
   AU1d8c.setAttribute("id", id + "_iframe");
   AU1d8c.style.border = 0;
   AU1d8c.width = 0;
   AU1d8c.height = 0;
   AU1d8c.style.position = "absolute";
   document.body.appendChild(AU1d8c);
   document.body.appendChild(AU6952); 

   var AUe982 = new Array();
   AUe982[0] = document.getElementById(id+'_window');
   AUe982[1] = id;
   AUe982[2] = AU1d8c;
   
   this.AU003b = AUe982[0]; 
   this.AU003b.AUe982 = AUe982;
      
   AU6952.style.zIndex = ++AU996b;
   AUe982[0].style.display = "block";
   AUe982[2].style.width = AUe982[0].offsetWidth;
   AUe982[2].style.height = AUe982[0].offsetHeight;
   AUe982[2].style.top = AUe982[0].style.top;
   AUe982[2].style.left = AUe982[0].style.left;
   AUe982[2].style.zIndex = AUe982[0].style.zIndex+1000;
   AUe982[2].style.display = "block";
   AUe982[2].style.zIndex += 10000;
   AUe982[0].style.zIndex += 100001;
   
   this.AU003b.focus();
   
   
   document.onmouseup = function()
   {
	ATB_hideContextMenu(id);
   }
}

function ATB_moveContextMenuTo(id,x,y)
{
      var window = document.getElementById(id + '_window');
      var AU1d8c = document.getElementById(id + '_iframe');
      window.style.left = x;
      AU1d8c.style.left = x;
      window.style.top = y;
      AU1d8c.style.top = y;
}

function ATB_hideContextMenu(id)
{
	if (document.getElementById(id + '_window') != null)
	{
		document.getElementById(id + '_window').style.display = 'none';
		document.getElementById(id + '_iframe').style.display = 'none';
	}
}

function ATB_showContextMenu(id)
{
	  var window = document.getElementById(id + '_window').style;
      var AU1d8c = document.getElementById(id + '_iframe').style;
     
      if (window.display != 'block')
      {
      window.display = 'block';
      AU1d8c.display = 'block';
      AU1d8c.zIndex = ++AU996b;
      window.zIndex = ++AU996b;
      }
}

function ATB_setContentFromDiv(AUa5df,AUd483)
{
	var content = document.getElementById(AUa5df + '_contents');
	var AUf3f1 = document.getElementById(AUd483);
	
	if (content != null && AUf3f1 != null)
	{
		content.innerHTML = AUf3f1.innerHTML;	
	}
}

function ATB_setToolbarAbsolute(AU0041)
{
	toolbar = document.getElementById(AU0041);
	
	if (toolbar != null)
	{
		toolbar.style.position = 'absolute';
	}
}

function ATB_changeStyle(id,AUfa32,AU232e,borderColor,borderStyle,borderWidth,margin)
{
	var object = document.getElementById(id);
	if (object != null)
	{
		if (AUfa32 != null)
			object.style.backgroundColor = AUfa32;
			
		if (AU232e != null)
			object.style.backgroundImage = AU232e;
			
		if (borderColor != null)
			object.style.borderColor = borderColor;
			
		if (borderStyle != null && borderStyle.toUpperCase() != 'NOTSET')
			object.style.borderStyle = borderStyle;
			
		if (borderWidth != null)
		{
			if (borderWidth != '')
				object.style.borderWidth = borderWidth;
			else
				object.style.borderWidth = '0px';
		}
		
		if (margin != null)
			object.style.margin = margin;
	}
		
}

function ATB_changeStyleFromid(id,AUdcc3)
{
	
	var style = null;
	
	try
	{
		style = eval(AU40ae(AUdcc3)); 
	}
	catch (AUe68d) {}
	
	if (style != null)
	{
		var AUc172 = style.split(','); 
		if (AUc172.length == 6)
		{
			ATB_changeStyle(id,AUc172[0],AUc172[1],AUc172[2],AUc172[3],AUc172[4],AUc172[5]);
		}
	}
}

function ATB_toolButtonMouseOver(id)
{
	if (ATB_allowRollOver(id).toUpperCase() == 'TRUE')
	{

		if (ATB_getButtonType(id).toUpperCase() == 'CHECKBOX')
		{
			if (ATB_getChecked(id).toUpperCase() == 'FALSE')
			{
				ATB_changeStyleFromid(id + '_toolButtonTable',id + '_MouseOver');	
			}
		}
		
		else
		{
			if (ATB_allowRollOver(id).toUpperCase() == 'TRUE')
				ATB_changeStyleFromid(id + '_toolButtonTable',id + '_MouseOver');
		}
	}

}

function ATB_toolButtonMouseOut(id)
{
	if (ATB_getButtonType(id).toUpperCase() == 'CHECKBOX')
	{
		if (ATB_getChecked(id).toUpperCase() == 'FALSE')
		{
			ATB_changeStyleFromid(id + '_toolButtonTable',id + '_MouseOut');	
		}
	}
	
	else
	{
		ATB_changeStyleFromid(id + '_toolButtonTable',id + '_MouseOut');	
	}

}

function ATB_toolButtonMouseDown(id)
{
	if (ATB_getButtonType(id).toUpperCase() == 'CHECKBOX')
	{
		var AUb7d9 = ATB_getGroupName(id);
		if (AUb7d9 == '')
		{
	
			if (ATB_getChecked(id).toUpperCase() == 'FALSE')
			{
				ATB_changeStyleFromid(id + '_toolButtonTable',id + '_MouseDown');
				ATB_setChecked(id,'True');
			}
			
			else
			{
				if (ATB_allowRollOver(id).toUpperCase() == 'TRUE')
					ATB_changeStyleFromid(id + '_toolButtonTable',id + '_MouseOver');
				else
					ATB_changeStyleFromid(id + '_toolButtonTable',id + '_MouseOut');
				ATB_setChecked(id,'False');
			}
		}
		else
		{
			var AU5a12 = ATB_getGroupNameCheckedButton(AUb7d9);			
			if (AU5a12 != '')
			{
				ATB_changeStyleFromid(AU5a12 + '_toolButtonTable',AU5a12 + '_MouseOut');
				ATB_setChecked(AU5a12,'False');	
			}
			
			ATB_changeStyleFromid(id + '_toolButtonTable',id + '_MouseDown');
			ATB_setChecked(id,'True');
			AU59d6(AUb7d9,id);
		}
	}
	
	else
	{
		ATB_changeStyleFromid(id + '_toolButtonTable',id + '_MouseDown');
	}
}

function ATB_toolButtonMouseUp(id)
{
	var type = ATB_getButtonType(id);
	
	if (ATB_getButtonType(id).toUpperCase() == 'NORMAL')
	{
		if (ATB_allowRollOver(id).toUpperCase() == 'TRUE')
		{
			var AU6988 = null;
			try
			{
				AU6988 = eval(id + '_MouseOver');
			}
			
			catch (AUe68d) {}
						
			if (AU6988 != null)
				ATB_changeStyleFromid(id + '_toolButtonTable',id + '_MouseOver');
			else
				ATB_changeStyleFromid(id + '_toolButtonTable',id + '_MouseOut');
		}
		else
		{
			ATB_changeStyleFromid(id + '_toolButtonTable',id + '_MouseOut');
		}
		
	}
}

function ATB_getButtonType(id)
{
	
	var type = null;
	try
	{
		eval(AU40ae(id) + '_Type');
	}
	catch (AUe68d) {}
	
	if (type != null)
		return type.value;
	else	
		return 'Normal';
}

function ATB_getChecked(id)
{
	var AU5127 = document.getElementById(id + '_Checked');
	
	if (AU5127  != null)
	{
		if (AU5127.value.toUpperCase() == 'TRUE')
			return 'True';
	}
	
	return 'False';
}

function ATB_setChecked(id, AUe004)
{
	var AU5127 = document.getElementById(id + '_Checked'); 
	
	if (AU5127 != null)
	{
		AU5127.value = AUe004;
	}
	
}

function ATB_allowRollOver(id)
{

	var AUf287 = null;
	try
	{
		eval(AU40ae(id) + '_AllowRollOver');
	}
	catch (AUe68d) {}
	
	if (AUf287 != null)
	{
		if (AUf287.value.toUpperCase() == 'TRUE')
			return 'True';
	}
	
	return 'True';
}

function ATB_addGroupName(AUb7d9)
{
	if (document.getElementById('ATB_GroupName_' + AUb7d9) != null)
		return;
		
	var AU7d8a = document.createElement("input");
   	AU7d8a.setAttribute("type","hidden");
   	AU7d8a.setAttribute("name", "ATB_GroupName_" + AUb7d9);
   	AU7d8a.setAttribute("id", "ATB_GroupName_" + AUb7d9);
   	AU7d8a.setAttribute("value", "True");
   	document.body.appendChild(AU7d8a);
} 

function ATB_getGroupNameCheckedButton(AUb7d9)
{
	var AUc320 = document.getElementById('ATB_GroupName_' + AUb7d9);
	
	if (AUc320 != null)
		return AUc320.value;
		
	return "";
}

function AU59d6(AUb7d9,AUe004)
{
	var AUc320 = document.getElementById('ATB_GroupName_' + AUb7d9);
	
	if (AUc320 != null)
		AUc320.value = AUe004;
}

function ATB_getGroupName(id)
{
	var AUb7d9 = document.getElementById(id + '_GroupName');
	if (AUb7d9 != null)
		return AUb7d9.value;
		
	return "";
}

function ATB_toolButtonDownMouseOver(id)
{
	if (ATB_allowRollOver(id).toUpperCase() == 'TRUE')
	{

		ATB_changeStyleFromid(id + '_toolButtonDownTable',id + '_DownMouseOver');
	}

}

function ATB_toolButtonDownMouseOut(id)
{
	ATB_changeStyleFromid(id + '_toolButtonDownTable',id + '_DownMouseOut');	
}

function ATB_toolButtonDownMouseDown(id)
{
	ATB_changeStyleFromid(id + '_toolButtonDownTable',id + '_MouseDown');
}

function ATB_toolButtonDownMouseUp(id)
{
	if (ATB_allowRollOver(id).toUpperCase() == 'TRUE')
		ATB_changeStyleFromid(id + '_toolButtonDownTable',id + '_MouseOver');
	else
		ATB_changeStyleFromid(id + '_toolButtonDownTable',id + '_MouseOut');
}

function ATB_autoContent(id,AUe004)
{
    var window = document.getElementById(id + '_window');
    var title = document.getElementById(id + '_title');
    var AUd988 = document.getElementById(id + '_contents');
        
    if (window != null && title != null && AUd988 != null)
    {
    
    		var AUf240 = 0;
    		if (AU0022)
    		{
			
			AUf240 = parseInt(AUd988.scrollWidth);
			AUd0ca = parseInt(AUd988.scrollHeight);
		}
    
		if (AUe004.toUpperCase() == 'TRUE')
   	   		AUd988.style.overflow = '';
		else
    			AUd988.style.overflow = 'auto';
	      
	      	if (AU0022)
	      	{
	      		AUd988.style.width = 0;
    			AUd988.style.height = 0;
	      		window.style.width = parseInt(AUf240) + 2;
	      		title.style.width = parseInt(AUf240) - 2;
	      		window.style.height = parseInt(AUd0ca) + parseInt(title.clientHeight) + 8;
	      	}
	      	else
	        {
			window.style.width = parseInt(AUd988.offsetWidth) + 6; 
			title.style.width = parseInt(AUd988.offsetWidth) - 2;
			window.style.height = parseInt(AUd988.offsetHeight) + parseInt(title.clientHeight) + 12;
		}

	}
    
}

function tryIm()
{
alert(document.getElementById("ImageEditor1_toolZoomZoom_window").id)
alert("aad")
}