
/*----------------------------------------------------------------------------\
|                            Sortable Table 1.03                              |
|-----------------------------------------------------------------------------|
|                         Created by Erik Arvidsson                           |
|                  (http://webfx.eae.net/contact.html#erik)                   |
|                      For WebFX (http://webfx.eae.net/)                      |
|-----------------------------------------------------------------------------|
| A DOM 1 based script that allows an ordinary HTML table to be sortable.     |
|-----------------------------------------------------------------------------|
|                  Copyright (c) 1998 - 2002 Erik Arvidsson                   |
|-----------------------------------------------------------------------------|
| This software is provided "as is", without warranty of any kind, express or |
| implied, including  but not limited  to the warranties of  merchantability, |
| fitness 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.                                                   |
| - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
| This  software is  available under the  three different licenses  mentioned |
| below.  To use this software you must chose, and qualify, for one of those. |
| - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
| The WebFX Non-Commercial License          http://webfx.eae.net/license.html |
| Permits  anyone the right to use the  software in a  non-commercial context |
| free of charge.                                                             |
| - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
| The WebFX Commercial license           http://webfx.eae.net/commercial.html |
| Permits the  license holder the right to use  the software in a  commercial |
| context. Such license must be specifically obtained, however it's valid for |
| any number of  implementations of the licensed software.                    |
| - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
| GPL - The GNU General Public License    http://www.gnu.org/licenses/gpl.txt |
| Permits anyone the right to use and modify the software without limitations |
| as long as proper  credits are given  and the original  and modified source |
| code are included. Requires  that the final product, software derivate from |
| the original  source or any  software  utilizing a GPL  component, such  as |
| this, is also licensed under the GPL license.                               |
|-----------------------------------------------------------------------------|
| 2003-01-10 | First version                                                  |
| 2003-01-19 | Minor changes to the date parsing                              |
| 2003-01-28 | JScript 5.0 fixes (no support for 'in' operator)               |
| 2003-02-01 | Sloppy typo like error fixed in getInnerText                   |
|-----------------------------------------------------------------------------|
| Created 2003-01-10 | All changes are in the log above. | Updated 2003-02-01 |
\----------------------------------------------------------------------------*/


function SortableTable(oTable, oSortTypes) {

	this.element = oTable;
	this.tHead = oTable.tHead;
	this.tBody = oTable.tBodies[0];
	this.document = oTable.ownerDocument || oTable.document;
	
	this.sortColumn = null;
	this.descending = null;
	
	var oThis = this;
	this._headerOnclick = function (e) {
		oThis.headerOnclick(e);
	};
	
	
	// only IE needs this
	var win = this.document.defaultView || this.document.parentWindow;
	this._onunload = function () {
		oThis.destroy();
	};
	if (win && typeof win.attachEvent != "undefined") {
		win.attachEvent("onunload", this._onunload);
	}
	
	this.initHeader(oSortTypes || []);
}

SortableTable.gecko = navigator.product == "Gecko";
SortableTable.msie = /msie/i.test(navigator.userAgent);
// Mozilla is faster when doing the DOM manipulations on
// an orphaned element. MSIE is not
SortableTable.removeBeforeSort = SortableTable.gecko;

SortableTable.prototype.onsort = function () {};

// adds arrow containers and events
// also binds sort type to the header cells so that reordering columns does
// not break the sort types
SortableTable.prototype.initHeader = function (oSortTypes) {
	var cells = this.tHead.rows[0].cells;
	var l = cells.length;
	var img, c;
	for (var i = 0; i < l; i++) {
		c = cells[i];
		img = this.document.createElement("IMG");
		img.src = ((IsRoot!=null && IsRoot)?'':'../') + "/template/images/blank.png";
		c.appendChild(img);
		if (oSortTypes[i] != null) {
			c._sortType = oSortTypes[i];
		}
		if (typeof c.addEventListener != "undefined")
			c.addEventListener("click", this._headerOnclick, false);
		else if (typeof c.attachEvent != "undefined")		
			c.attachEvent("onclick", this._headerOnclick);
	}
	this.updateHeaderArrows();
};

// remove arrows and events
SortableTable.prototype.uninitHeader = function () {
	var cells = this.tHead.rows[0].cells;
	var l = cells.length;
	var c;
	for (var i = 0; i < l; i++) {
		c = cells[i];
		c.removeChild(c.lastChild);
		if (typeof c.removeEventListener != "undefined")
			c.removeEventListener("click", this._headerOnclick, false);
		else if (typeof c.detachEvent != "undefined")
			c.detachEvent("onclick", this._headerOnclick);
	}
};

SortableTable.prototype.updateHeaderArrows = function () {
	var cells = this.tHead.rows[0].cells;
	var l = cells.length;
	var img;
	for (var i = 0; i < l; i++) {
		img = cells[i].lastChild;
		if (i == this.sortColumn)
			img.className = "sort-arrow " + (this.descending ? "descending" : "ascending");
		else
			img.className = "sort-arrow";			
	}
};

SortableTable.prototype.headerOnclick = function (e) {
	// find TD element
	var el = e.target || e.srcElement;
	while (el.tagName != "TD")
		el = el.parentNode;
	
	this.sort(el.cellIndex);	
};

SortableTable.prototype.getSortType = function (nColumn) {
	var cell = this.tHead.rows[0].cells[nColumn];
	var val = cell._sortType;
	if (val != "")
		return val;
	return "String";
};

// only nColumn is required
// if bDescending is left out the old value is taken into account
// if sSortType is left out the sort type is found from the sortTypes array

SortableTable.prototype.sort = function (nColumn, bDescending, sSortType) {
	if (sSortType == null)
		sSortType = this.getSortType(nColumn);

	// exit if None	
	if (sSortType == "None")
		return;
	
	if (bDescending == null) {
		if (this.sortColumn != nColumn)
			this.descending = true;
		else
			this.descending = !this.descending;
	}	
	
	this.sortColumn = nColumn;
	
	if (typeof this.onbeforesort == "function")
		this.onbeforesort();
	
	var f = this.getSortFunction(sSortType, nColumn);
	var a = this.getCache(sSortType, nColumn);
	var tBody = this.tBody;
	
	// hacked by ULION for keep last order in this sort
	if (this.descending)
		a.reverse();
	
	a.sort(f);
	
	if (this.descending)
		a.reverse();
	
	if (SortableTable.removeBeforeSort) {
		// remove from doc
		var nextSibling = tBody.nextSibling;
		var p = tBody.parentNode;
		p.removeChild(tBody);
	}
	
	// insert in the new order
	var l = a.length;
	for (var i = 0; i < l; i++)
		tBody.appendChild(a[i].element);
	
	if (SortableTable.removeBeforeSort) {	
		// insert into doc
		p.insertBefore(tBody, nextSibling);
	}
	
	this.updateHeaderArrows();
	
	this.destroyCache(a);
	
	if (typeof this.onsort == "function")
		this.onsort();
};

SortableTable.prototype.asyncSort = function (nColumn, bDescending, sSortType) {
	var oThis = this;
	this._asyncsort = function () {
		oThis.sort(nColumn, bDescending, sSortType);
	};
	window.setTimeout(this._asyncsort, 1);	
};

SortableTable.prototype.getCache = function (sType, nColumn) {
	var rows = this.tBody.rows;
	var l = rows.length;
	var a = new Array(l);
	var r;
	for (var i = 0; i < l; i++) {
		r = rows[i];
		a[i] = {
			value:		this.getRowValue(r, sType, nColumn),
			element:	r
		};
	};
	return a;
};

SortableTable.prototype.destroyCache = function (oArray) {
	var l = oArray.length;
	for (var i = 0; i < l; i++) {
		oArray[i].value = null;
		oArray[i].element = null;
		oArray[i] = null;
	}
}

SortableTable.prototype.getRowValue = function (oRow, sType, nColumn) {
	var s;
	var c = oRow.cells[nColumn];
	if (typeof c.innerText != "undefined")
		s = c.innerText;
	else
		s = SortableTable.getInnerText(c);
	return this.getValueFromString(s, sType);
};

SortableTable.getInnerText = function (oNode) {
	var s = "";	
	var cs = oNode.childNodes;
	var l = cs.length;
	for (var i = 0; i < l; i++) {
		switch (cs[i].nodeType) {
			case 1: //ELEMENT_NODE
				s += SortableTable.getInnerText(cs[i]);
				break;
			case 3:	//TEXT_NODE
				s += cs[i].nodeValue;
				break;
		}
	}
	return s;
}

SortableTable.prototype.getValueFromString = function (sText, sType) {
	switch (sType) {
		case "Number":
			return Number(sText);
		case "CaseInsensitiveString":
			return sText.toUpperCase();
		case "Date":
			var parts = sText.split("-");
			var d = new Date(0);
			d.setFullYear(parts[0]);
			d.setDate(parts[2]);
			d.setMonth(parts[1] - 1);			
			return d.valueOf();		
	}
	return sText;
};

SortableTable.prototype.getSortFunction = function (sType, nColumn) {
	return function compare(n1, n2) {
		if (n1.value < n2.value)
			return -1;
		if (n2.value < n1.value)
			return 1;
		return 0;
	};
};

SortableTable.prototype.destroy = function () {
	this.uninitHeader();
	var win = this.document.parentWindow;
	if (win && typeof win.detachEvent != "undefined") {	// only IE needs this
		win.detachEvent("onunload", this._onunload);
	}	
	this._onunload = null;
	this.element = null;
	this.tHead = null;
	this.tBody = null;
	this.document = null;
	this._headerOnclick = null;
	this.sortTypes = null;
	this._asyncsort = null;
	this.onsort = null;
};

// Title: Tigra Hints
// URL: http://www.softcomplex.com/products/tigra_hints/
// Version: 1.2
// Date: 04/18/2003 (mm/dd/yyyy)
// Feedback: feedback@softcomplex.com (specify product title in the subject)
// Note: Permission given to use this script in ANY kind of applications if
//    header lines are left unchanged.
// About us: Our company provides offshore IT consulting services.
//    Contact us at sales@softcomplex.com if you have any programming task you
//    want to be handled by professionals. Our typical hourly rate is $20.

function THints (o_cfg, items) {
	this.top = o_cfg.top ? o_cfg.top : 0;
	this.left = o_cfg.left ? o_cfg.left : 0;
	this.n_dl_show = o_cfg.show_delay;
	this.n_dl_hide = o_cfg.hide_delay;
	this.b_wise = o_cfg.wise;
	this.b_follow = o_cfg.follow;
	this.out_delay = o_cfg.out_delay;
	this.x = 0;
	this.y = 0;
	this.divs = [];
	this.show  = TTipShow;
	this.showD = TTipShowD;
	this.hide = TTipHide;
	this.hideD = TTipHideD;
	this.move = TTipMove;
	this.items = items;
	if (document.layers) return;
	this.b_IE = navigator.userAgent.indexOf('MSIE') > -1 && !window.opera,
	s_tag = ['<div id="TTip%name%" style="visibility:hidden;position:absolute;top:0px;left:0px;',   this.b_IE ? 'width:1px;height:1px;' : '', o_cfg['z-index'] != null ? 'z-index:' + o_cfg['z-index'] : '', '" onMouseOver="myHint.show();" onMouseOut="myHint.hide(' + o_cfg.out2_delay + ');"><table cellpadding="0" cellspacing="0" border="0"><tr><td id="ToolTip%name%" class="', o_cfg.css, '" nowrap>%text%</td></tr></table></div>'].join('');


	this.getElem = 
		function (id) { return document.all ? document.all[id] : document.getElementById(id); };
	this.showElem = 
		function (id, hide) { this.divs[id].o_css.visibility = hide ? 'hidden' : 'visible'; };
	this.getWinSz = window.innerHeight != null 
		? function (b_hight) { return b_hight ? innerHeight : innerWidth; }
		: function (b_hight) { return document.body[b_hight ? 'clientHeight' : 'clientWidth']; };	
	this.getWinSc = window.innerHeight != null 
		? function (b_hight) { return b_hight ? pageYOffset : pageXOffset; }
		: function (b_hight) { return document.body[b_hight ? 'scrollTop' : 'scrollLeft']; };	
	if (document.all) {
		document.onclick = function (e) {
      whichIt = event.srcElement;
  		while (whichIt != myHint.divs[0].o_obj) {
	  		whichIt = whichIt.parentElement;
		  	if (whichIt == null){
    		  myHint.hide(0);
		  	  return true;
		  	}
		  }
		  return true;
		};
	}
	if (window.opera) {
		this.getSize = function (id, b_hight) { 
			return this.divs[id].o_css[b_hight ? 'pixelHeight' : 'pixelWidth']
		};
		document.onmousemove = function () {
			myHint.x = event.clientX;
			myHint.y = event.clientY;
			if (myHint.b_follow && myHint.visible!=null) myHint.move(0);
			return true;
		};
	}
	else {
		this.getSize = function (id, b_hight) { 
			return this.divs[id].o_obj[b_hight ? 'offsetHeight' : 'offsetWidth'] 
		};
		if(!document.all){
		window.onmousedown = function (evt) {
      whichIt = evt.target;
  		while (whichIt != myHint.divs[0].o_obj) {
	  		whichIt = whichIt.parentNode;
		  	if (whichIt == null){
    		  myHint.hide(0);
		  	  return true;
		  	}
		  }
		  return true;
		};
		}
		document.onmousemove = this.b_IE
		? function () {
			myHint.x = event.clientX + document.body.scrollLeft;
			myHint.y = event.clientY + document.body.scrollTop;
			if (myHint.b_follow && myHint.visible!=null) myHint.move(0)
			return true;
		} 
		: function (e) {
			myHint.x = e.pageX;
			myHint.y = e.pageY;
			if (myHint.b_follow && myHint.visible!=null) myHint.move(0)
			return true;
		};
	}
	document.write (s_tag.replace(/%text%/g, '').replace(/%name%/g, 0));
	this.divs[0] = { 'o_obj' : this.getElem('TTip' + 0), 'o_content' : this.getElem('ToolTip' + 0) };
	this.divs[0].o_css = this.divs[0].o_obj.style;
/*	for (i in items) {
		document.write (s_tag.replace(/%text%/, items[i]).replace(/%name%/, i));
		this.divs[i] = { 'o_obj' : this.getElem('TTip' + i) };
		this.divs[i].o_css = this.divs[i].o_obj.style;
	}*/
}

function TTipShow (id) {
	if (document.layers) return;
  if (this.timer2) clearTimeout(this.timer2);
  if (id==null){
//    if (this.divs[0].timer) clearTimeout(this.divs[0].timer);
    return;
  }
	if (this.visible!=null && this.visible==id){
	  return;
	}
 	this.hide(0);
	if (this.divs[0] && this.items[id]) {
		if (this.n_dl_show) this.divs[0].timer = setTimeout("myHint.showD(" + id + ")", this.n_dl_show);
		else this.showD(id);
	}
}

function TTipShowD (id) {
  this.divs[0].o_content.innerHTML = this.items[id];
  init_btchina(this.divs[0].o_content);
	if((this.move(0)&2)!=0 && this.b_IE){
  	var mySels = document.getElementsByTagName('select');
    for (var i = 0; i < mySels.length; i++){
  	  var e = mySels[i];
  	  var t=e.offsetTop;  
  	  var l=e.offsetLeft;  
  while(e=e.offsetParent){  
    t+=e.offsetTop;  
    l+=e.offsetLeft; 
    }
    var obj = this.divs[0].o_obj;
  	  if(obj.offsetTop<t+mySels[i].offsetHeight 
  	  && obj.offsetTop + obj.offsetHeight>=t
  	  && obj.offsetLeft<l+mySels[i].offsetWidth
  	  && obj.offsetLeft + obj.offsetWidth>=l){
  	    mySels[i].style.display='none';
  	  }
  	}
	}
	this.showElem(0);
	if (this.n_dl_hide) this.timer = setTimeout("myHint.hide(0)", this.n_dl_hide);
	this.visible = id;
}

function TTipMove (id, onlyx) {
	var n_x = this.x + this.left, n_y = this.y + this.top;
	if(window.opera){
		n_x += this.getWinSc();
		n_y += this.getWinSc(true);
	}
	var ret = 0;
	if (this.b_wise!=0) {
		var n_w = this.getSize(id), n_h = this.getSize(id, true),
		n_win_w = this.getWinSz(), n_win_h = this.getWinSz(true),
		n_win_l = this.getWinSc(), n_win_t = this.getWinSc(true);
		if (n_x + n_w > n_win_w + n_win_l) n_x = n_win_w + n_win_l - n_w;
		if (n_x < n_win_l) n_x = n_win_l;
		if (n_x != this.x + this.left) ret++;
		if (this.b_wise==2 || n_x > this.x){
  		if (n_y + n_h > n_win_h + n_win_t) n_y = n_win_h + n_win_t - n_h;
	  	if (n_y < n_win_t) n_y = n_win_t;
	  	if (n_y != this.y + this.top) ret+=2;
	  }
	}
	if(null==onlyx || !onlyx){
	  this.divs[id].o_css.left = n_x;
		this.divs[id].o_css.top = n_y;
	}
	else if(n_x<parseInt(this.divs[id].o_css.left)){
	  this.divs[id].o_css.left = n_x;
	}
  else{
	  ret &= ~2;
	}
	return ret;
}

function TTipHide (delay) {
	if (this.timer) clearTimeout(this.timer);
  if (this.divs[0].timer) clearTimeout(this.divs[0].timer);
	if (this.visible != null) {
		if(delay==null){
		  delay = this.out_delay;
		}
		if(delay){
			this.timer2 = setTimeout("myHint.hideD()", delay);
		}
		else{
		  this.hideD();
		}
	}
}

function TTipHideD () {
  myHint.showElem(0, true);
	this.visible = null;
	if(this.b_IE){
	  var mySels = document.getElementsByTagName('select');
    for (var i = 0; i < mySels.length; i++)
      mySels[i].style.display='';
 	}
}

var btchina_text_color = '#000000';

var btchina_link_colors = new Array('#ffff66','#a0ffff','#99ff99','#ff9999','#ff66ff');

function init_btchina(container){
	if(btchina_query!=null && btchina_query!=''){
		go_btchina(btchina_query,container);
		return;
	}
/*
	var url_parts = document.location.href.split('?');
	if (url_parts[1]){ 
		var url_args = url_parts[1].split('&');
		for(var i=0; i<url_args.length; i++){
			var keyval = url_args[i].split('=');
			if (keyval[0] == 'query'){
				var query = decode_url(keyval[1]);
				if(query!=''){
					go_btchina(decode_url(keyval[1]),container);
					return;
				}
			}
		}
	}
*/
}

function decode_url(url){
	return unescape(url.replace(/\+/g,' '));
}

function go_btchina(terms,container){
	terms = terms.replace(/([*\"]| and | or | not )/g," ");
	var terms_split = terms.split(/^-[ -]*| [ -]*/);
	var c = 0;
	for(var i=0; i<terms_split.length; i++){
		highlight_btchina(terms_split[i], container==null?document.body:container,btchina_link_colors[c]);
		c = (c == btchina_link_colors.length-1)?0:c+1;
	}
}

function highlight_btchina(term, container, color){
	if(term.length==0){
		return;
	}
	var term_low = term.toLowerCase();

	for(var i=0; i<container.childNodes.length; i++){
		var node = container.childNodes[i];

		if (node.nodeType == 3){
			var data = node.data;
			var data_low = data.toLowerCase();
			if (data_low.indexOf(term_low) != -1){
				//term found!
				var new_node = document.createElement('SPAN');
				node.parentNode.replaceChild(new_node,node);
				var result;
				while((result = data_low.indexOf(term_low)) != -1){
					new_node.appendChild(document.createTextNode(data.substr(0,result)));
					new_node.appendChild(create_node_btchina(document.createTextNode(data.substr(result,term.length)),color));
					data = data.substr(result + term.length);
					data_low = data_low.substr(result + term.length);
				}
				new_node.appendChild(document.createTextNode(data));
			}
		}else{
			//recurse
			highlight_btchina(term, node, color);
		}
	}
}

function create_node_btchina(child, color){
	var node = document.createElement('SPAN');
	node.style.backgroundColor = color;
	node.style.color = btchina_text_color;
	node.appendChild(child);
	return node;
}

if(top.location === self.location){
var TMenu_path_to_space_image = '/home/template/images/space.gif';
var menus=[],TMg,TM09=['click','mouseout','mouseover','mousedown'];function TM0A(TM0B){for(var i in menus){if(TM0B&&menus[i].TM0C&&!menus[i].TMc)menus[i].TM0C.TM0D.menus[i].TM0E();menus[i].TM0E();menus[i].TM0F=true}this.TM0G=true}function TM0H(TM0I){var TM0J;if(this.width!=(TM0J=this.TM0K(window))){this.width=TM0J;TM0B=TM0I=true}if(this.height!=(TM0J=this.TM0L(window))){this.height=TM0J;TM0B=TM0I=true}if(this.TM0M!=(TM0J=this.TM0N(window))){this.TM0M=TM0J;TM0I=true}if(this.TM0O!=(TM0J=this.TM0P(window))){this.TM0O=TM0J;TM0I=true}if(TM0I){this.TM0G=false;this.TM0E(TM0B)}}function menu(TM0Q,TM0R,TM0S){this.TM0Q=TM0Q;this.TM0R=TM0R;this.TMi=[];this.TM0T=[];this.TMT=[];this.exec=TM0U;this.hide=TM0V;this.on=[];this.onclick=TM0W;this.onmouseout=TM0X;this.onmouseover=TM0Y;this.onmousedown=TM0Z;this.TM0E=TM0a;this.TM0b=TMN;this.TM0c=this.TMd=this.TMQ=0;this.TM08=function(){};if(TM0S){this.TMQ=TM0S.zIndex||0;this.TM05=TM0S.onexpand&&typeof(TM0S.onexpand)=='function'?TM0S.onexpand:null;this.TM0d=TM0S.oncollapse&&typeof(TM0S.oncollapse)=='function'?TM0S.oncollapse:null;this.TMc=Boolean(TM0S.frames);this.TMd=TM0S.popup?-1:0;this.TM0e=Boolean(TM0S.showroot);var TM0f=TM0S.frames;if(this.TMd){this.TM03=TMy;this.expand=TM04;this.TM07=function(){}}if(TM0S.forms){this.TMK=TM0S.forms;this.TM08=TMG}}this.TM0g={'width':100,'height':20,'block_top':null,'block_left':null,'vertical':false,'expd_delay':0,'hide_delay':100,'table':[0,0,0],'css':{'table':'','inner':'','outer':''}};this.TMR=-1;this.TMh=this;this.TMV=function(TM0h){return this.TM0g[TM0h]};if(!TMg){TMg=new TM0();TMg.TM0i=TMg.TM0j=0;TMg.TM0k=navigator.userAgent.indexOf('Gecko')>-1;TMg.TMn=TMenu_path_to_space_image;if(!TMg.TM0l)TMg.TM0l='onload';TMg.TM0K=window.innerWidth!=null?function(w){return w.innerWidth}:function(w){return w.document.body.offsetWidth};TMg.TM0L=window.innerHeight!=null?function(w){return w.innerHeight}:window.frameElement!=null?function(w){return w.frameElement.offsetHeight}:function(w){return w.document.body.offsetHeight};TMg.TM0N=window.pageXOffset!=null?function(w){return w.pageXOffset}:function(w){return w.document.body.scrollLeft};TMg.TM0P=window.pageYOffset!=null?function(w){return w.pageYOffset}:function(w){return w.document.body.scrollTop};TMg.TM0E=TM0A;TMg.TM0m=TM0H}this.id=TM0S&&TM0S.key?TM0S.key:menus.length;menus[this.id]=this;this.TMY=[];this.TMt=this.TM0Q.length;this.TM0n=Boolean(this.TM0R[0].block_top==null&&this.TM0R[0].block_left==null);for(var i=0;i<this.TMt;i++)new TM0o(i,this,this,i);this.TM0b(1);this.TMe=this.TMf;if(TMg.TM0p){document.write('<div id="p',this.id,'" class="mlyrh"></div>');TMg.TM0q=TMg.TM3('p'+this.id)}for(i=0;i<this.TMT.length;i++)this.TMT[i].TM0r();if(top!=window){if(!top.TM0s){top.TM0s={'TM0u':[],'f_refresh':function(){for(var TM0t in this.TM0u){if(this.TM0u[TM0t].TM0v<2){this.TM0u[TM0t].TM0w[0].TM0C=null;return this.TM0u[TM0t].TM0f[0].setInterval('TMg.TM0m()',500)}for(var TM0x in this.TM0u[TM0t].TM0f)if(this.TM0u[TM0t].TM0f[TM0x])this.TM0u[TM0t].TM0f[TM0x].TMg.TM0m()}setTimeout('top.TM0s.f_refresh()',1000)},'TM18':function(TM0y,TM0z,TM10){var TM0w=this.TM0u[TM0y].TM0w;for(var TM0t in TM0w)if(TM0w[TM0t]&&!TM0w[TM0t].TM0T[TM0z])return setTimeout('top.TM0s.TM18("'+TM0y+'","'+TM0z+'",'+TM10+')',100);for(TM0t in TM0w)if(TM0w[TM0t])TM0w[TM0t]['on'+TM09[TM10]](TM0z)}};var TM11,TMb=TMg.TMF[TMg.TM0l]?new String(TMg.TMF[TMg.TM0l]):'';if((TM11=TMb.indexOf('{'))>-1)TMb=TMb.substring(TM11+1,TMb.lastIndexOf('}')-1)+';';TMg.TMF[TMg.TM0l]=Function(TMb+'top.TM0s.f_refresh()')}if(!top.TM0s.TM0u[this.id])top.TM0s.TM0u[this.id]={'TM0v':0,'TM0f':[],'TM13':[],'TM0w':[]};var TM12=this.TM0C=top.TM0s.TM0u[this.id];if(TM12.TM13[name]==null){TM12.TM13[name]=TM12.TM0v;TM12.TM0v++}TM12.TM0f[TM12.TM13[name]]=window;TM12.TM0w[TM12.TM13[name]]=this;if(this.TMc){TM12.TM0D=window;this.TM0f=[];for(i in TM0f){this.TM0f[i]=[];for(var j in TM0f[i])this.TM0f[i][j]=eval('top.'+TM0f[i][j])}}window.onunload=function(){for(var TM0t in menus){if(menus[TM0t].TM0C){menus[TM0t].TM0C.TM0f[menus[TM0t].TM0C.TM13[name]]=menus[TM0t].TM0C.TM0w[menus[TM0t].TM0C.TM13[name]]=null}}}}else setInterval('TMg.TM0m()',500)}function TM0a(){if(this.TM0C){this.TM0f=this.TM0C.TM0D.menus[this.id].TM0f;if(this.TMc){var TM14=0,TM15;this.TM0C.TM16=[];for(i in this.TM0f){TM15=0;for(j in this.TM0f[i]){if(!this.TM0C.TM16[this.TM0f[i][j].name])this.TM0C.TM16[this.TM0f[i][j].name]={'x':TM15,'y':TM14};TM15+=TMg.TM0K(this.TM0f[i][j])}TM14+=TMg.TM0L(this.TM0f[i][j])}this.TM0C.TMe=TMg.TM4(this.TMe,this.TM0C.TM16[window.name].x-TMg.TM0N(window),this.TM0C.TM16[window.name].y-TMg.TM0P(window))}else{TMg.TMB(this.TMe,{'x':this.TM0C.TMe.x-this.TM0C.TM16[window.name].x+TMg.TM0N(window),'y':this.TM0C.TMe.y-this.TM0C.TM16[window.name].y+TMg.TM0P(window)});if(this.TM0e)TMg.TM8(this.TMe,1)}}if(document.layers)for(var TM0t=0;TM0t<this.TMt;TM0t++)this.TMT[TM0t].TM00(0);else if(TM17)for(var TM0t=0;TM0t<this.TMt;TM0t++)this.TMT[TM0t].TM07()}function TM0U(id,TM10){if(!TMg.TM0G)return;if(this.TM0C&&TM10)top.TM0s.TM18(this.id,id,TM10);else return menus[this.id]['on'+TM09[TM10]](id)}function TM0V(){if(this.TM0c>0||!this.TM19)return;if(this.TMJ)this.TMJ.TM03(this.TMd);this.TMJ=null;if(this.TM0d)this.TM0d();if(!TMg.TM2&&!TMg.TM0k)this.TM08(true)}function TM0W(id){var TM1A=Boolean(this.TM0T[id].TMq[1]);if(TM1A&&this.TM0C)for(var i in this.TM0C.TM0f)this.TM0C.TM0f[i].menus[this.id].TMJ.TM03(0);return TM1A}function TM0X(id){this.TM0c--;this.TM0T[id].TM00(0);if(this.TM1B)clearTimeout(this.TM1B);this.TM19=setTimeout('menus["'+this.id+'"].hide()',this.TM0T[id].TMV('hide_delay'));if(this.TM0T[id].TMi.sb!=null)top.status='';if(this.TM0T[id].TMi.oo!=null)this.TM0T[id].TMi.oo(id)}function TM0Y(id){if((TMg.TM0k||window.opera)&&this.TM0T[id].TMx==1)return;this.TM0c++;for(var TM1C=this.TM0T[id];TM1C.elements;TM1C=TM1C.TMs)TM1C.TM00(1);var TM1C=this.TM0T[id];clearTimeout(this.TM19);this.TM19=null;if(TM1C.TMi.sb!=null)setTimeout('menus["'+this.id+'"].TM0T["'+id+'"].TM1H()',10);this.TM02=TM1C;if(TM1C.TMi.oh!=null)TM1C.TMi.oh(id);if(TM1C.TMs.TMT[0].TM1D<0)return;if(TM1C.TMs.TMT[0].TM1D)this.TM1B=setTimeout('menus["'+this.id+'"].TM0T["'+id+'"].expand()',TM1C.TMs.TMT[0].TM1D);else TM1C.expand()}function TM0Z(id){this.TM0T[id].TM00(2);if(this.TM0T[id].TMs.TMT[0].TM1D<0)this.TM0T[id].expand()}function TM0o(TM1E,TMs,TMh,TM1F){this.id=this.TM1E=new String(TM1E);this.TMs=TMs;this.TMh=TMh;this.TMr=this.TM1E.split('_');this.TMR=this.TMr.length-1;var TM1G='';for(var i=0;i<=this.TMR;i++)TM1G+='['+(Number(this.TMr[i])+(i?3:0))+']';eval('this.TMq = this.TMh.TM0Q'+TM1G);if(!this.TMq)return;this.TMi=this.TMq[2]?this.TMq[2]:[];this.TMh.TM0T[this.id]=this;TMs.TMT[TMs.TMT.length]=this;this.TM00=TMw;this.TM1H=TM1I;this.TM07=TM1J;this.TM0b=TMp;this.TMV=TM1K;this.TMX=TM1L;this.TM0r=TMv;this.TM03=TMy;this.expand=TM04;if(!TM1F){this.TM1M=this.TMs.TMi.bt||this.TMV('block_top');this.TM1N=this.TMs.TMi.bl||this.TMV('block_left');this.TM1O=this.TMV('top')<0;this.TM1P=this.TMV('left')<0;this.TM1Q=this.TMV('width');this.TM1R=this.TMV('height');this.TMu=this.TMV('vertical');this.TM1S=this.TMV('wise_pos');this.TM1D=this.TMV('expd_delay')}var TM1T=this.TMs.TMT[0].TM1Q,TM1U=this.TMs.TMT[0].TM1R;if(this.TMs.TMT[0].TMu){if(this.TMs.TMi.bw!=null)TM1T=this.TMs.TMi.bw;if(this.TMi.sh!=null)TM1U=this.TMi.sh}else{if(this.TMs.TMi.bh!=null)TM1U=this.TMs.TMi.bh;if(this.TMi.sw!=null)TM1T=this.TMi.sw}this.TMs.TMY[TM1F]=this.TM0b(TM1T,TM1U);this.TMt=this.TMq.length-3;if(this.TMt>0){this.TMT=[];this.TM1V=TMN;this.TM06=TM1W;if(TM17&&!document.layers){this.TM06();this.TM1X=this.TMR==0&&this.TMh.TM0n}}}function TM1W(){this.TMY=[];for(var i=0;i<this.TMt;i++)if(this.TMq[3+i])new TM0o(this.TM1E+'_'+i,this,this.TMh,i);else this.TMt--;this.TM1V();for(i in this.TMT)this.TMT[i].TM0r()}function TM1I(){top.status=this.TMi.sb}function TM1K(TM0h){var TM1Y=null,TM1Z=this.TMh.TM0R[this.TMR];if(TM1Z)TM1Y=TM1Z[TM0h];return(TM1Y==null?this.TMs.TMV(TM0h):TM1Y)}function TM1L(TM1a,TM1b){var TM1c=this.TMV('css'),TM1d=TM1c[TM1a];if(typeof(TM1d)=='string')return TM1d;for(var TM1e=TM1b;TM1e>=0;TM1e--)if(TM1d[TM1e])return TM1d[TM1e]}function TM1J(TMC,value){if(this.TMt>0){if(TMg.TM0p){TMg.TMB(TMg.TM0q,{'x':0,'y':0});var TM1f=TMg.TM4(TMg.TM0q,0,0);TMg.TM0i=TM1f.x;TMg.TM0j=TM1f.y;TMg.TM0p=0}var TM1g=this.TMT[0],TM1f=TMg.TM4(this.elements[0],(this.TMi.bl?this.TMi.bl:TM1g.TM1N)-TMg.TM0i,(this.TMi.bt?this.TMi.bt:TM1g.TM1M)-TMg.TM0j,this.TM1X);if(TM1g.TM1P)TM1f.x-=TMg.TMD(this.TMf);if(TM1g.TM1O)TM1f.y-=TMg.TMD(this.TMf,1);if(TM1g.TM1S&&!this.TMh.TM0C){var wise=TM1g.TM1S,TM1h=TMg.TMD(this.TMf,0),TM1i=TMg.TMD(this.TMf,1),TM1j=TMg.TM0K(window),TM1k=TMg.TM0L(window),TM1l=TMg.TM0N(window),TM1m=TMg.TM0P(window);if(TM1f.x+TM1h>TM1j+TM1l)TM1f.x=(wise==1?TM1j+TM1l:TM1f.x)-TM1h;if(TM1f.y+TM1i>TM1k+TM1m)TM1f.y=(wise==1?TM1k+TM1l:TM1f.y)-TM1i;if(TM1f.x<TM1l)TM1f.x=TM1l;if(TM1f.y<TM1m)TM1f.y=TM1m}TMg.TMB(this.TMf,TM1f);if(this.TMo)TMg.TMB(this.TMo,TM1f);if(TM17&&!document.layers)for(var TM0t=0;TM0t<this.TMt;TM0t++)this.TMT[TM0t].TM07()}}var TM1n=navigator.appVersion.match(/MSIE [0-9.]+/),TM17=window.opera||!TM1n||!TM1n[0]||TM1n[0].replace('MSIE ','')<4.99||(navigator.appVersion.indexOf('Mac')>-1&&navigator.appVersion.indexOf('MSIE')>-1)||navigator.userAgent.indexOf('Konqueror')>-1;
if(!document.layers&&!TM17)document.write('<style>.mlyri{position:absolute;left:0;top:0}.mlyrh{width:1;height:1;position:absolute;left:0;top:0;visibility:hidden}</style>');function TM0(){this.TM1=navigator.userAgent.indexOf('MSIE')>-1;this.TM2=navigator.userAgent.indexOf('MSIE 6')>-1;this.TM3=document.all?function(i){return document.all[i]}:function(i){return document.getElementById(i)};this.TM4=function(n,TM5,TM6){var TM7={'x':TM5,'y':TM6};for(;n;n=n.offsetParent){TM7.x+=n.offsetLeft;TM7.y+=n.offsetTop}return TM7};this.TM8=function(TM9,TMA){TM9.style.visibility=TMA?'visible':'hidden'};this.TMB=function(TM9,TMC){TM9.style.left=TMC.x+'px';TM9.style.top=TMC.y+'px'};this.TMD=function(TM9,TME){return TM9[TME?'offsetHeight':'offsetWidth']};this.TMF=top.document.body}function TMG(TMH){var TMI=false;for(var i in menus)if(menus[i].TMJ!=null)TMI=true;if(TMI&&TMH)return;for(i in this.TMK)if(document.forms[i]){var TML=document.forms[i];for(var j=0;j<TML.elements.length;j++){var TMM=TML.elements[j];if(TMM.type.indexOf('select-')>-1)TMM.style.visibility=TMM.style.overflow=TMH?'visible':'hidden'}}}function TMN(TMO){var TMP=this.TMQ+(this.TMR+1)*3,TMS=this.TMT[0],TMU=TMS.TMV('table'),TMW=['<table cellpadding="',TMU[0],'" cellspacing="',TMU[1],'" border="',TMU[2],'" class="',TMS.TMX('table'),'"><tr>',this.TMY.join(''),'</tr></table>'].join('');if(TMO){var TMZ=TMS.TMV('block_top'),TMa=TMS.TMV('block_left'),TMb='';if(TMZ!=null||TMa!=null)TMb=';top:'+TMZ+';left:'+TMa;if(top!=window&&!this.TMc||this.TMd)TMb+=';visibility:hidden';document.write('<div',TMb?' style="z-index:'+TMP+TMb+'" class=mlyri':'',' id="m',this.id,'c">',TMW,'</div>');this.TMe=this.TMf=TMg.TM3('m'+this.TMh.id+'c')}else{this.TMf=document.createElement('div');document.body.appendChild(this.TMf);this.TMf.className='mlyrh';this.TMf.style.zIndex=TMP;this.TMf.innerHTML=TMW}if(document.body.style.filter!=null){var filter='';if(t=this.TMi.be||TMS.TMV('transition')){if(this.TMj=t[0]!=null)filter+=t[0];if(t[1]!=null){filter+=' '+t[1];this.TMk=this.TMj?1:0}}if(TMl=TMS.TMV('shadow'))filter+=' progid:DXImageTransform.Microsoft.Shadow(strength=3,direction='+Math.atan2(TMl.offY,-TMl.offX)/Math.PI*180+',color='+TMl.color+')';if(TMm=TMS.TMV('opacity'))filter+=' alpha(opacity='+TMm+')';if(filter)this.TMf.style.filter=filter}if(TMg.TM2&&(!TMO||TMb)){document.body.insertAdjacentHTML("afterBegin",['<iframe style="position:absolute;filter:alpha(opacity=0);z-index:',TMP-1,';width:',this.TMf.offsetWidth+(TMS.TMl?TMS.TMl.offX:0),';height:',this.TMf.offsetHeight+(TMS.TMl?TMS.TMl.offY:0),'" id="m',this.TMh.id,'if',this.id,'" src="',TMg.TMn,'"></iframe>'].join(''));this.TMo=document.getElementById('m'+this.TMh.id+'if'+this.id)}}function TMp(w,h){return['<td style="position:relative" width="',w,'" nowrap><table cellpadding="0" cellspacing="0" border="0" width="100%" height="',h,'" class="',this.TMX('outer',0),'" id="m',this.TMh.id,'tb',this.id,'"><tr><td><div class="',this.TMX('inner',0),'" id="m',this.TMh.id,'td',this.id,'" style="width:',w,'">',typeof(this.TMq[0])=='object'?this.TMq[0][0]:this.TMq[0],'</div></td></tr></table><div class=mlyrh id="m',this.TMh.id,'i',this.id,'"><table cellpadding="0" cellspacing="0" border="0" width="',w,'" height="',h,'" class="',this.TMX('outer',1),'"><tr><td class="',this.TMX('inner',1),'">',typeof(this.TMq[0])=='object'?this.TMq[0][1]:this.TMq[0],'</td></tr></table></div><div class=mlyri><a href="',this.TMq[1]?this.TMq[1]:'javascript:','"',this.TMi.tw?' target="'+this.TMi.tw+'"':'',' onclick="return menus[\'',this.TMh.id,'\'].exec(\'',this.id,'\',0)" onmouseout="menus[\'',this.TMh.id,'\'].exec(\'',this.id,'\',1)" onmouseover="menus[\'',this.TMh.id,'\'].exec(\'',this.id,'\',2)" onmousedown="menus[\'',this.TMh.id,'\'].exec(\'',this.id,'\',3)"><img src="',TMg.TMn,'" width="',w,'" height="',h,'" border="0"',this.TMi.tt?' alt="'+this.TMi.tt+'"':'','></a></div></td>',this.TMr[this.TMR]!=this.TMs.TMt-1&&this.TMs.TMT[0].TMu?'</tr><tr>':''].join('')}function TMv(){this.elements=[TMg.TM3(['m',this.TMh.id,'tb',this.id].join('')),TMg.TM3(['m',this.TMh.id,'td',this.id].join('')),TMg.TM3(['m',this.TMh.id,'i',this.id].join(''))]}function TMw(TMx){if(TMx==this.TMx)return;if(this.TMx==1)this.elements[2].style.visibility='hidden';else if(this.TMx==2){if(typeof(this.TMq[0])=='object')this.elements[1].innerHTML=this.TMq[0][0];this.elements[0].className=this.TMX('outer',0);this.elements[1].className=this.TMX('inner',0)}if(TMx==1)this.elements[2].style.visibility='visible';else if(TMx==2){if(typeof(this.TMq[0])=='object')this.elements[1].innerHTML=this.TMq[0][2];this.elements[0].className=this.TMX('outer',2);this.elements[1].className=this.TMX('inner',2)}this.TMx=TMx}function TMy(TMz){if(this.TMf){for(var i in this.TMT)this.TMT[i].TM00(0);if(this.TMo)TMg.TM8(this.TMo);if(this.TMh.TM01)try{this.TMh.TM01.stop()}catch(e){};if(this.TMk!=null)try{this.TMh.TM01=this.TMf.filters[this.TMk];this.TMf.filters[this.TMk].apply()}catch(e){};TMg.TM8(this.TMf);if(this.TMk!=null)try{this.TMf.filters[this.TMk].play()}catch(e){}}if(TMz>=this.TMR){if(this!=this.TMh.TM02&&this.TM00)this.TM00(0)}else this.TMs.TM03(TMz)}function TM04(){if(this.TMh.TM05&&!this.TMh.TMJ)this.TMh.TM05();if(this.TMh.TMJ&&this.TMR<=this.TMh.TMJ.TMR)this.TMh.TMJ.TM03((this.TMh.TMJ.TMs==this)*1+this.TMR);this.TMh.TMJ=this;if(this.TMt>0){if(this.TMh.TM01)try{this.TMh.TM01.stop()}catch(e){};if(!this.TMf&&this.TMt>0)this.TM06();this.TM07();if(this.TMj)try{this.TMh.TM01=this.TMf.filters[0];this.TMf.filters[0].apply()}catch(e){};if(!TMg.TM2)this.TMh.TM08();TMg.TM8(this.TMf,true);if(this.TMj)try{this.TMf.filters[0].play()}catch(e){};if(this.TMo)TMg.TM8(this.TMo,true)}}
}

