eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('w L=17(){w b=n.18.I();w c={u:(b.t("M")>-1)?{b:k}:4,N:(n.S)?{b:n.S.I().t("u")}:4,C:(b.t("C")>-1)?{b:k}:4,D:n.J!=y&&n.J.I().t("D")>-1,5:(b.t("5")>-1)?{b:k}:4,B:(b.t("B")>-1)?{b:k}:4,O:E.T!=y&&E.T.t("O")>-1,f:k,g:k,z:4};c.F=c.u||c.D;c.r=(!c.u&&n.J!=y&&n.J.I()=="r")?{b:k}:4;l(c.r){c.r.19=A G(b.m(/.*r\\/(\\d{8}).*/)[1]);c.r.q=A G(b.m(/.*r\\/(\\d{8}).*/)[1]);c.H=(b.t("H")>-1)?{b:k}:4;l(c.H){c.H.q=b.m(/.* H\\/(\\d+) */)[1]}}l(c.5){c.5.q=A G(b.m(/.*5(\\s|\\/)(\\d+\\.\\d+)/)[2])}l(!c.5&&P.5){c.5=k;c.C=4;c.v=4;c.r=4;c.5.q=P.5.q()}c.v=(b.t("U")>-1&&!c.5&&!c.F&&!c.r)?{b:k}:4;c.o=c.v&&b.m(/.*F.*/)!=y;l(c.v||(c.5&&c.5.q<7.6)){c.g=4}l(c.v){c.v.q=b.m(/.* U ([*0-9]\\.[*0-9])*/)[1]}l(c.u){c.u.q=A G(b.m(/.*M\\/(\\d+).*/)[1])}l(c.C){c.C.q=A G(b.m(/.*M\\/(\\d+).*/)[1])}l(c.B){c.B.q=b.m(/.*B V (\\d+)W(\\d+).*/)[1]+"."+b.m(/.*B V (\\d+)W(\\d+).*/)[2]}l(n.Q&&n.Q["X/x-Y-z"]&&n.Q["X/x-Y-z"].1a&&(!c.v||c.o)){w d=(n.Z["11 R 2.0"]||n.Z["11 R"]).1b;c.z={b:k};c.z.q=1c(d.m(/.* R (\\d+).*/)[1],10)}1d{w f=4;12{w x=A 13("K.K");1e(w i=3;x!=y;i++){x=A 13("K.K."+i);f=i}}14(e){}l(f)c.z={b:k};c.z.q=(f)?f:4}l(b.m(/.*(1f|F).*/)==y||c.o||c.D||(c.5&&(b.m(/.*F.*/)!=y||c.i<7.6))||(c.N&&c.h<7)||(!c.N&&c.u&&c.15<1g)||(c.r&&c.j<1h)){c.f=4}l(!c.o&&!c.r&&E.16){12{E.16(a,"i").1i=""}14(e){c.O=k}}c.p=c.D||(c.u&&c.15<1j)||c.v;1k c};E.L=P.L();',62,83,'||||false|opera|||||||||||||||true|if|match|navigator|||version|gecko||indexOf|apple|ie|var||null|flash|new|iphone|webkit|konqueror|document|mac|Number|firefox|toLowerCase|product|ShockwaveFlash|agent|applewebkit|safari|xml|window|mimeTypes|Flash|vendor|contentType|msie|os|_|application|shockwave|plugins||Shockwave|try|ActiveXObject|catch|appleversion|createElementNS|function|userAgent|date|enabledPlugin|description|parseInt|else|for|windows|124|20020523|innerHTML|312|return'.split('|'),0,{}));

$.fn.extend({
	later: function(_s, _m){	
		var that = this, 
			args = Array.prototype.slice.apply(arguments, [2]);
		if (typeof _m === 'string') 
			_m = that[_m];
		time = setTimeout(function(){
			_m.apply(that, args);
		}, _s);
		return this;
	}
});

function extend(subClass, superClass) {
  var F = function() {};
  F.prototype = superClass.prototype;
  subClass.prototype = new F();
  subClass.prototype.constructor = subClass;

	subClass.superclass = superClass.prototype;
	if(superClass.prototype.constructor == Object.prototype.constructor) {
		superClass.prototype.constructor = superClass;
  }
}

jQuery.log = function(message) {
  if(window.console) {
     console.debug(message);
  } else {
     alert(message);
  }
};

$.fn.extend({
	target: function(){
		return this[0].target || this[0].srcElement;
	},
	stopPropagation: function() {
		if (this[0].stopPropagation) {
		  this[0].stopPropagation();
		} 
		else {
		  this[0].cancelBubble = true;
		}
	},
	preventDefault: function() {
		if (this[0].preventDefault) {
		  this[0].preventDefault();
		} 
		else {
		  this[0].returnValue = false;
		}
	},
	stop: function() {
		this.stopPropagation(this[0]);
		this.preventDefault(this[0]);
	}, 	
	
	pointerX: function() {
		return this[0].pageX || (this[0].clientX +
		  (document.documentElement.scrollLeft || document.body.scrollLeft));
	},
	pointerY: function() {
		return this[0].pageY || (this[0].clientY +
		  (document.documentElement.scrollTop || document.body.scrollTop));
	}
});

function purge(d) {
    var a = d.attributes, i, l, n;
    if (a) {
        l = a.length;
        for (i = 0; i < l; i += 1) {
            n = a[i].name;
            if (typeof d[n] === 'function') {
                d[n] = null;
            }
        }
    }
    a = d.childNodes;
    if (a) {
        l = a.length;
        for (i = 0; i < l; i += 1) {
            purge(d.childNodes[i]);
        }
    }
}


jQuery.cookie = {
	set: function(name, value, expires, path, domain, secure) {
		var now = new Date();	
		var base = new Date(0);
		var skew = base.getTime();
		if (skew > 0)
			date.setTime(date.getTime() - skew);		
		
		now.setTime(now.getTime() + expires);
		var curCookie = name + "=" + escape(value) +
			((expires) ? "; expires=" + now.toGMTString() : "") +
			((path) ? "; path=" + path : "") +
			((domain) ? "; domain=" + domain : "") +
			((secure) ? "; secure" : "");
		document.cookie = curCookie;
	},
	get: function(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));
	},
	del: function(name, path, domain) {
		if (this.get(name)) {
			document.cookie = [name,"=",((path) ? "; path=" + path : ""),((domain) ? "; domain=" + domain : ""),"; expires=Thu, 01-Jan-70 00:00:01 GMT"].join('');
		}
	}
};

function trim(str, chars) {
    return ltrim(rtrim(str, chars), chars);
}

function ltrim(str, chars) {
    chars = chars || "\\s";
    return str.replace(new RegExp("^[" + chars + "]+", "g"), "");
}

function rtrim(str, chars) {
    chars = chars || "\\s";
    return str.replace(new RegExp("[" + chars + "]+$", "g"), "");
}

var Site = function(){
	
	// menu for ie<7	
	
	function menu (_selector){
		$(_selector).hover(function(){
			$(this).addClass('hover');
		},function(){
			$(this).removeClass('hover');
		});
	}	
	
	$(document).ready(function(){ Site.init(); });
	
	var noflash = !document.agent.flash || parseInt(document.agent.flash.version,10)<8;
	var ie6 = (document.agent.ie && parseInt(document.agent.ie.version,10)<7) || false;
	
	// private
	function font(_class)
	{
		if( noflash )return false;
				
		$('.'+_class).each(function(i,s){

			var _size = parseInt($(s).eq(0).css('font-size'),10);

			var uppercase = $(s).eq(0).css('text-transform'); 
				uppercase = (uppercase=='none')?false:uppercase;


			if(jQuery.browser.msie){
				var _color = $(s).eq(0).css('color');			
			} else {		
				var _c_Dec = $(s).eq(0).css('color').match(/(\d{1,3}), (\d{1,3}), (\d{1,3}).*/);
				var _color = ['#',
					parseInt(_c_Dec[1],10).toString(16),
					parseInt(_c_Dec[2],10).toString(16),
					parseInt(_c_Dec[3],10).toString(16)	].join('');
			}

			var _orig = s.innerHTML;
			var _row = Math.round(eval(s.offsetHeight / 20))
			
			var url = $(s).eq(0).attr('href') || $(s).eq(0).find('a').attr('href') || false;
			var text = $(s).eq(0).find('a').html() || $(s).eq(0).html() || false;

			var width = (jQuery.browser.msie)?s.offsetWidth-parseInt($(s).eq(0).css('paddingLeft'),10)+parseInt($(s).eq(0).css('paddingRight'),10):s.offsetWidth;

			s.innerHTML = [
			'<embed src="swf/font_',
			_class,
			'.swf" quality="high"',
			' scale="noscale" salign="lt" wmode="transparent"',
			' bgcolor="#ffffff" width="',
			width,
			'" height="',
			eval( ( _row * 18 ) + 16 ) ,
			'" name="customFontInstance'+i+'" id="customFontInstance'+i+'" align="left" allowScriptAccess="sameDomain"',
			' type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"',
			' flashvars="txt=<font color=\'',
			_color,
			'\' size=\'',
			_size,
			'\'>',
			stringFlashCorrect(text),
			'</font>',
			(!uppercase)?'':'&amp;fupp=true',
			(!url)?'':'&amp;furl=',
			(!url)?'':url,
			'&amp;objectID=customFontInstance'+i,
			'" title="',
			text,
			'" />'].join("");		
			
		});
	}

	function clearButtons()
	{
		$('input[type=submit],input[type=button],button').val('');
	}

	function stringFlashCorrect(str)
	{
		var str1 = str.replace( /\%/i, "%25");	
		var str2 = str1.replace( /\&amp;/i, "%26" );		
		var str3 = str2.replace( /\"/i,	"%22" );
		var str5 = str3.replace( /\+/i, "%2B" );
		return str5;
	}	
	

	
	return {
		init: function(){
			try{ font('neotech'); }catch(e){}
			if (ie6) {
				menu('ul#Menu > li, ul#Menu li ul > li ');
				try { document.execCommand("BackgroundImageCache", false, true); } catch (e) {}
			}
			clearButtons();
			$('a.new').attr('target','_blank');	// new in new window

			try{
				
				
				$('div.selector form').submit(function(e){
					this.action='/adsl/'+segment+'/kereses/';
					this.submit()
					return false;
				}).find('a.details').click(function(e){
					$(e).stop();
					$('div.selector form').submit();
				})
				
			}catch(e){}

			try{
				this.indexPromos();
			}catch(e){}
			
			
			
			
			
			
			$('input[type=file]').each(function(i) {
				Site.inputfile(this);
			});

			$('select').each(function(i) {
				Site.selectoption(this);
			});	
			
			$(".form2 li a.info").each(function(){ 
				var ib = $(this).parent().find("div.infobox");
				if (ib.length) {
					$(this).hover(
						function(){
							ib.css({zIndex: 2, left: $(this).position().left-ib.outerWidth()+10+'px'});
							$("div.subcontent").css({zIndex: 1});
							ib.show();
						},
						function(){
							ib.hide();
							$("div.subcontent").css({zIndex: 10});
						}
					);
				} else {
					$(this).replaceWith('<span class="noinfo"></span>');
				}
			});
			
			var styleInputs = FileUI;
			styleInputs.imgPath = 'i/button_browse_hu.gif';
			styleInputs.init();
			
			

		},
		
		inputfile: function(obj) {
			$(obj).change(function() {
				$(this).parents('div.file').find('input[type=text]').attr('value', this.value.split('/').pop().split('\\').pop());
			});
		},

		selectoption: function(obj) {
			$(obj).parents('div.select').find('input[type=text]').attr('value', obj.options[obj.selectedIndex].text);
			$(obj).parents('div.select').find('input').focus(function() {
				$(this).parents('div.select').find('select').focus();
			});
			$(obj).keypress(function() {
				$(this).parents('div.select').find('input[type=text]').attr('value', this.options[this.selectedIndex].text);
			});
			$(obj).change(function() {
				$(this).parents('div.select').find('input[type=text]').attr('value', this.options[this.selectedIndex].text);
			});
		},		
		
		
		indexPromos: function(){

			if(  Site.noflash )return false;
			/*
			 * main index promo rotator, takes parameters from replacable html content
			 */

			var so = new SWFObject("swf/enternet_promobox_v1.swf", "MainPromoSWF",  586, 343, "8", "#ffffff");
				so.addParam("quality", "high");
				so.addParam("wmode", "transparent");
				so.addParam("salign", "lt");
				so.addParam("base", "/swf/");
				so.addParam("AllowScriptAccess","always");
				
				if (location.toString().indexOf('/uzleti') != -1) {
					so.addVariable("sitetype", 1);
				} else {
					so.addVariable("sitetype", 0);
				}

				so.write($('div#IndexTop .large')[0]);
			
		}	
						
	};
	
}();




function Select(_id, _width){
	this.id = _id;
	this.select = $('select#'+_id);
	this.select.after(['<div class="custom-value" id="Custom',_id,'"><span></span><ul></ul></div>'].join(''));
	this.custom = $('div#Custom'+_id+' ul');
	this.active = $('div#Custom'+_id+' span');
	this.init();
}

Select.prototype = {
	init: function() {
		this.select.find('option').each(function(i,s){
			$('div#Custom'+this.parentNode.id).find('ul').append('<li class="'+this.value+'">'+this.innerHTML+'</li>')
		});
		this.custom.find('li').css('width',this.active.css('width')) 
		this.active.html(this.select.find('option').eq(0).html());
		this.custom.find('li').mouseover(function(){
			$(this).siblings().removeClass('selected').end()
				.addClass('selected');
		});
		this.custom.find('li').click(this.selectClick);
		$('div#Custom'+this.id)[0].that = this;
		this.active.click(function(e){	
			$(e).stop();
			this.parentNode.that.click(e)
		});
	},
	selectClick: function(){
		this.parentNode.parentNode.that.select
			.find('option').removeAttr('selected').end()
			.find('option[value='+this.className.replace(' selected','')+']').attr('selected','selected');
	
		this.parentNode.parentNode.that.active
			.html(this.innerHTML);
		this.parentNode.parentNode.that.custom
			.hide();
			
		$('body')[0].onclick = function(e){
			return true;
		}			
	},
	click: function(e) {
		$('.custom-value ul').hide();
		this.custom.focus();
		this.custom.toggle();
		if ( this.custom.css('display') == 'block' ) {
			$('body')[0].onclick = function(e){
				$('.custom-value ul').hide();
				$(e).stop();
				$('body')[0].onclick = function(e){
					return true;
				}
			}
		} else {
			$('body')[0].onclick = function(e){
				return true;
			}			
		}
	}

}

var ZipSearch = {
	xml: null, 
	load: function(){
		$.ajax({
			   type: "GET",
   				url: '/xml/adslkereso.xml',
   				data: "",
   				success: ZipSearch.onSuccess
		});
		$('input#zipNumber').blur(function(){
			ZipSearch.displayData(this.value);
		});
		$('form#zipForm').submit(function(e) { 
			ZipSearch.displayData($('input#zipNumber').val());
			
			$(e).stop(); 
			return false; 
		});		
	},				
	onSuccess: function(request) {
		ZipSearch.xml = request;
	},
	getRow: function(zipCode) {
		_zips = ZipSearch.xml.getElementsByTagName('ISZ');
		_telco = '';
		for(var i=0;i<_zips.length;i++) {
			if ( _zips[i].firstChild.data == zipCode ) {
				_parent = _zips[i].parentNode;
				if( _parent.getElementsByTagName('TELCO')[0].firstChild )
					_telco = _parent.getElementsByTagName('TELCO')[0].firstChild.data; 
			}
		}
		_telco = (_telco == '')?'Ezen a területen nincs ADSL szolgáltatás, vagy nincs ilyen irányítószám':_telco;
		return _telco;
	},
	clearData: function() {
		while ($('label#zipResult').firstChild) {
		  $('label#zipResult').removeChild($('zipResult').firstChild);
		}						
	},
	displayData: function(zipCode) {
		ZipSearch.clearData();
		_data = ZipSearch.getRow(zipCode);		
		$('label#zipResult').html('<strong>'+_data+'</strong>');
	}
}
	

var ADSLSearch = {
	//url: '/json.txt',
	//url: 'http://www.enternet.hu/servlet/adslsearch',
	url: '/servlet/adslsearch',
	load: function(){

//http://www.enternet.hu/servlet/adslsearch?zipcode=1126&street=n

		$('input#zipNumber').blur(function(){
			ADSLSearch.city.send();
		});
		
		$('input#zipNumber').keyup(function(){
			ADSLSearch.city.send();
		})
		
		$('form#zipForm').submit(function(e) { 
			//$(e).stop(); 
			//return false; 
		});	
		$('input#streetName').focus(function(event){
			$(event).stop();
		});
		$('input#streetName').keyup(function(event){
			ADSLSearch.street.send(event);
		});
		
		$('fieldset#ADSLproviderZone input').each(function(i,s){
			
			s.defaultValue = s.value;
			$(s).focus(function(){
				if(this.value == this.defaultValue)
					this.value = '';
			});
			$(s).blur(function(){
				if(this.value.length < 1 )
					this.value = this.defaultValue;
			});
			
		});
                
                $('fieldset#ADSLSearchForm input').each(function(i,s){
			
			s.defaultValue = s.value;
			$(s).focus(function(){
				if(this.value == this.defaultValue)
					this.value = '';
			});
			$(s).blur(function(){
				if(this.value.length < 1 )
					this.value = this.defaultValue;
			});
			
		});
	},
	city: {
		zip: null,
		send: function( ){		
			if ($('input#zipNumber').val().length == 4) {
				if(this.zip != $('input#zipNumber').val()){
					this.zip = $('input#zipNumber').val();
					$.ajax({
							type: "GET",
			   				url: ADSLSearch.url,
			   				data: {zipcode: $('input#zipNumber').val() },
							dataType: 'json',
			   				success: ADSLSearch.city.show
					});
				}			
			}
		},
		show: function( data ){
				$('label#zipResult').animate({opacity: 0 }, 'fast', function(){
					$('label#zipResult').css({display: 'none'});
				});

				$('input#cityName').css({
					visibility: 'visible'
				}).animate({
					opacity: 1
				}, 'fast', function(){
					$('input#streetName').css({
						visibility: 'visible'
					}).animate({
						opacity: 1
					}, 'fast', function(){
						$('input#streetNumber').css({
							visibility: 'visible'
						}).animate({
							opacity: 1
						}, 'fast', function(){
							
							$('input[type=image]').css({
								visibility: 'visible'
							}).animate({
								opacity: 1
							}, 'fast');
							
							$('input#streetNumber,input#streetName').each(function(i,s){
								s.value = s.defaultValue;
							});
						});	
					});	
				}).val(data.city);
		}
	},
	street: {
		send: function(event){
			if ($('input#streetName').val().length > 1) {
				if (event.keyCode != 40 && event.keyCode != 38) {				
					$.ajax({
						type: "GET",
						url: ADSLSearch.url,
						data: {
							zipcode: $('input#zipNumber').val(),
							street: $('input#streetName').val(),
							ts: (new Date()).getTime()
						},
						dataType: 'json',
						success: ADSLSearch.street.show
					});
				} else {
					$(event).stop();
					//this.listElement.select(0);
				}						
			}			
		},
		show: function( data ){
			ADSLSearch.street.list(data.streets);
		},
		listElement: false,
		list: function(data){
			if (data.length > 0) {					
				if( !this.listElement ) {
					this.listElement = new StreetList('fieldset#ADSLproviderZone');
                                        this.listElement = new StreetList('fieldset#ADSLSearchForm');
				}
				this.listElement.load(data);
				this.listElement.selectCallback = function(){ 
					ADSLSearch.street.select($(this).html());
				};
				this.listElement.show()
			}
		},
		select: function( name ){
			$('input#streetName').val(name);		
		},
		hidelist: function(){
			if(ADSLSearch.street.listOn) {
				ADSLSearch.street.listElement.hide();
			}
		}
	}
}



var StreetList = function( _parent ){
	$( _parent).append('<ul id="StreetList"></ul>');	
	this.element = $('ul#StreetList');	
	this.shown = false;
	this.selected = -1;
	this.selectCallback = null;
}
StreetList.prototype.load = function(_data){
	var that = this;
	this.element.html('');	
	for (var k in _data) {
		this.element.append('<li>' + _data[k] + '</li>');
		this.element.find('li:last-child')[0].indexNum = k;
	}
	document.onkeydown = null;
	document.onkeydown = function(e){
		if(typeof e != 'undefined'){ event=e; }
		
		if(that.shown && ((event.keyCode == 38) || (event.keyCode == 40) || (event.keyCode == 13))){
			$(event).stop();
			switch(event.keyCode) {
				case 38:
					that.focus( -1 );
					break;
				case 40:
					that.focus( 1 );
					break;
				case 13:				
					that.select(that.element.children().eq(that.selected));
					that.hide();
					break;
			}			
		}
	};	
	this.hover();	
}
StreetList.prototype.hover = function(){
	var that = this;
	this.element.find('li').hover(function(){
		that.selected = this.indexNum; 
		$(this).parent().children().removeClass('selected').end().end().addClass('selected');
	}, function(){
		$(this).removeClass('selected');
	}).click(function(){
		that.selectCallback.call(this);
		that.hide();
	});
}
StreetList.prototype.select = function( obj ){
	this.selectCallback.call(obj);	
}
StreetList.prototype.hide = function(){
	var that = this;
	this.element.animate({opacity:0},'fast', function(){ that.element.css('display','none');  });
	this.shown = false;	
	this.selected = -1;
}
StreetList.prototype.show = function( ){
	this.element.css({display: 'block', opacity: 1});
	this.shown = true;	
}
StreetList.prototype.focus = function( _i ){
	switch(_i){
		case -1:
			if (this.selected > 0) {
				this.selected--;
				this.element.children().removeClass('selected').eq(this.selected).addClass('selected');
			}		
			break;
		case 1:
			if (this.selected < this.element.children().length-1) {
				this.selected++;
				this.element.children().removeClass('selected').eq(this.selected).addClass('selected');
			}
			break;
		case 0:
			this.selected = 0;
			this.element.children().removeClass('selected').eq(0).addClass('selected');
			break;		
	}
	
	if(this.element.children().eq(this.selected)[0].offsetTop > this.element[0].offsetHeight){
		this.element[0].scrollTop = this.element[0].scrollTop + 20 
	} else if( this.element.children().eq(this.selected)[0].offsetTop < this.element[0].scrollTop) {
		this.element[0].scrollTop = this.element[0].scrollTop - 20 
	}
}





var path = path ? path : null;

var FileUI = 
{
	disableText : false,
	imgPath : path+'browse.gif',
	imgPathOver : null,
	textOnly : null,
	spanClass : 'file',
	
	init : function () 
	{
		var spans = document.getElementsByTagName('span');
		for (var i = 0; i < spans.length; i++)
		{
			if (spans[i].className.indexOf(this.spanClass) != -1)
			{
				this.style( spans[i], spans[i].getElementsByTagName('input')[0] );
			}
		}
	},
	style : function (span, input)
	{
		setStyle = (navigator.appVersion.indexOf("MSIE")!=-1) ? 'cssText' : 'style';
		this.setStyle(span, 'position:relative;border:0px solid transparent;');
		this.setStyle(input, 'width:350px;position:absolute;top:0;left:0;z-index:5;-moz-opacity:0;filter:alpha(opacity:0);opacity:0;');
		
		var txtInput = document.createElement('input');
		txtInputWidth = 262;
		txtInput.type = 'text';
		txtInput.className = 'dummy';
		input.onchange = function () {	txtInput.value = input.value;  }
		txtInput.disabled = 'disabled';
		span.appendChild(txtInput);
		
		var link = document.createElement('a');
		linkLeft = txtInputWidth + 8;
		this.setStyle(link, 'position:absolute;top:0px;left:' + linkLeft + 'px;');
		if (this.textOnly === null) {
			var img = document.createElement('img');
			img.src = this.imgPath;
			img.width = 80;
			link.appendChild(img);
			if (this.imgPathOver != null) {
				input.onmouseover = function () { img.src = FileUI.imgPathOver; }
				input.onmouseout = function () { img.src = FileUI.imgPath; }
			}
		} else {
			link.innerHTML = this.textOnly;
			link.href = "#";
			link.onclick = function () { return false; }
			input.onmouseover = function () { link.className = 'over'; }
			input.onmouseout = function () { link.className = ''; }
		}
		span.appendChild(link);
	},
	setStyle : function (object, styleText) { 
		if( object.style.setAttribute ) { object.style.setAttribute("cssText", styleText ); } 
		else { object.setAttribute("style", styleText ); } 
	}
}