// root@azeri.net,faiq@anadoluweb.net
// lutfen kodlarla oynamayin! bir degisiklik calismamasina sebep ola bilir.
if (typeof(AFR)=='undefined')AFR = {};
AFR.poweredby ='[faiq agayev(info@afrmedia.com)]';
AFR.namespaces = function()
{
	//alert(AFR.decode("af"));
	//if(eval(this.decode("QUZSLnBvd2VyZWRieQ",2)) && eval(this.decode("QUZSLnBvd2VyZWRieQ",2))==this.decode("W2ZhaXEgYWdheWV2KGluZm9AYWZybWVkaWEuY29tKV0",1))alert(this.decode('f'));
	//else eval(this.decode("bG9jYXRpb24uaHJlZj0iaHR0cDovL3d3dy5hZnJtZWRpYS5jb20i"));
	var A=arguments,E=null,C,B,D;
	for(C=0;C<A.length;C=C+1)
	{
		D=A[C].split(".");
		E=AFR;
		for(B=(D[0]=="AFR")?1:0;B<D.length;B=B+1)
		{
			E[D[B]]=E[D[B]]||{};
			E=E[D[B]];
		}
	}
}
AFR.namespaces("AFR.config");
AFR.get_path = function(x){if(this.config.web_path){return this.config.web_path + x;}else{return x;}}
AFR.namespaces("AFR.Event");

AFR.Event.loading = function(oDiv)
{
	if(!$(oDiv))return;
	h=oDiv.offsetHeight;
	w=oDiv.offsetWidth;
	var html='';
	html += '		<table width="'+ w +'" border="0" cellspacing="0" cellpadding="0">';
	html += '            <tr>';
	html += '              <td height="'+ h +'" width="'+ w +'" align="center" style="font-family:Tahoma;font-size:11px;"><img src="'+ AFR.get_path('images/loading_2.gif') +'"><br>Yükleniyor...</td>';
	html += '            </tr>';
	html += '          </table>';
	return html;
}
AFR.Event.addEvent = function(M,N,L,K)
{
	if(typeof(K)=='undefined')K=true;
	M=$(M);
	if(window.addEventListener)
	{
		M.addEventListener(N,L,K);
	}
	else if(window.attachEvent)
	{
		M.attachEvent("on"+N,L);
	}
}
AFR.Event.removeEvent = function(M,N,L,K)
{
	if(typeof(K)=='undefined')K=true;
	M=$(M);
	if(window.removeEventListener)
	{
		M.removeEventListener(N,L,K);
	}
	else if(window.detachEvent)
	{
		M.detachEvent("on"+N,L);
	}
}
AFR.decode = function(input,eq){var keyStr = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";var output = "";var chr1, chr2, chr3 = "";var enc1, enc2, enc3, enc4 = "";var i = 0;if(eq!="" && eq>0)for(j=0;j<eq;j++)input+="=";input = input.replace(/[^A-Za-z0-9\+\/\=]/g, "");	do {enc1 = keyStr.indexOf(input.charAt(i++));enc2 = keyStr.indexOf(input.charAt(i++));      enc3 = keyStr.indexOf(input.charAt(i++));enc4 = keyStr.indexOf(input.charAt(i++));chr1 = (enc1 << 2) | (enc2 >> 4);chr2 = ((enc2 & 15) << 4) | (enc3 >> 2);chr3 = ((enc3 & 3) << 6) | enc4;output = output + String.fromCharCode(chr1);if (enc3 != 64) {output = output + String.fromCharCode(chr2);}if (enc4 != 64) {output = output + String.fromCharCode(chr3);}chr1 = chr2 = chr3 = "";enc1 = enc2 = enc3 = enc4 = "";} while (i < input.length);return output;}
AFR.loadIMG = function()
{
	var args = AFR.loadIMG.arguments; 
	var arr = new Array();
	for(var i=0; i<args.length; i++)
	{
		arr[args[i]] = new Image();
		arr[args[i]].src = AFR.get_path(args[i]);
	}
}
function GetElementByName(xml,start,end)
{
	startpos = xml.indexOf(start);
	if (startpos == -1)return false;
	startpos = startpos + start.length;
	endpos =  xml.indexOf(end);	
	tag = xml.substring(startpos, endpos);
	return trim(tag);
}
function XPathValue(XPath,node)
{
	list = XPath.split('/');
	for (i=0;i < list.length;i++)
	{
		node = GetElementByName(node, '<'+ list[i] +'>', '</'+ list[i] +'>');
	}
	return node;
}
function defaultHomepage(x)
{
	x.style.behavior='url(#default#homepage)';
	x.setHomePage(AFR.config.web_path);
}
function $(oId)
{
	if(typeof(oId)=="string" && document.getElementById(oId))return document.getElementById(oId);
	else if(typeof(oId)=="object")return oId;
	else return false;
}
//window.onload=fixImage;
function Browser()
{
	d=document;
	this.agt=navigator.userAgent.toLowerCase();
	this.major=parseInt(navigator.appVersion);
	this.dom=(d.getElementById);
	this.ns=(d.layers);
	this.ns4up=(this.ns && this.major>=4);
	this.ns6=(this.dom&&navigator.appName=="Netscape");
	this.op=(window.opera);
	if(d.all)this.ie=1;else this.ie=0;
	this.ie4=(d.all&&!this.dom);
	this.ie4up=(this.ie&&this.major>=4);
	this.ie5=(d.all&&this.dom);
	this.ie6=(d.nodeType);
	this.sf=(this.agt.indexOf("safari")!=-1);
	this.win=((this.agt.indexOf("win")!=-1)||(this.agt.indexOf("16bit")!=-1));
	this.winme=(this.agt.indexOf("win 9x 4.90")!=-1);
	this.xpsp2=(this.agt.indexOf("sv1")!=-1);
	this.mac=(this.agt.indexOf("mac")!=-1);
}

AFR.browser = new Browser();
AFR.setAlpha = function(oId,opacity)
{
	var elem=$(oId);
	if(!elem)return;
	if(!elem.style)return;
	
	if(opacity > 1)opacity = opacity / 100;
	elem.style['opacity'] = opacity;
	elem.style['-moz-opacity'] = opacity;
	elem.style['filter'] = 'alpha(opacity='+opacity*100+')';
}
AFR.setStyle = function(oId,style,value)
{
	var elem=$(oId);
	if(!elem)return;
	if(!elem.style)return;
	elem.style[style] = value;
}
function ltrim(str)
{
   var whitespace = new String(" \t\n\r");
   var s = new String(str);
   if (whitespace.indexOf(s.charAt(0)) != -1) {
      var j=0, i = s.length;
      while (j < i && whitespace.indexOf(s.charAt(j)) != -1)
         j++;
      s = s.substring(j, i);
   }
   return s;
}

//RTrim(string) : Returns a copy of a string without trailing spaces.
function rtrim(str)
{
   var whitespace = new String(" \t\n\r");
   var s = new String(str);
   if (whitespace.indexOf(s.charAt(s.length-1)) != -1) {
      var i = s.length - 1;       // Get length of string
      while (i >= 0 && whitespace.indexOf(s.charAt(i)) != -1)
         i--;
      s = s.substring(0, i+1);
   }
   return s;
}
function trim(str)
{
   str=ltrim(str);
   str=rtrim(str);
   while(str.indexOf("  ")!=-1)
	{
	 str=str.replace("  "," ");
	}
   return str;
}
// Trim(string) : Returns a copy of a string without leading or trailing spaces
AFR.str_replace = function(str_search,str_rpl,str)
{
	if(typeof(str_search)=='undefined' || typeof(str_rpl)=='undefined' || typeof(str)=='undefined')return;
	if(typeof(str_search)=='object'){ for(i=0;i<str_search.length;i++){ while(str.indexOf(str_search[i])!=-1) {str=str.replace(str_search[i],str_rpl[i]);} } }
	else
	{	
        while(str.indexOf(str_search)!=-1)
		{
			str=str.replace(str_search,str_rpl);
		}
	}
	
	return str;
}
AFR.namespaces("AFR.Validator");
AFR.Validator.string = function(char,t)
{
	var status=true;
	var str = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789';
	if(typeof(t)!='undefined')str=str+t;
	for (i=0;i<char.length;i++)
 	{
  		var e = char.substring(i, i + 1);
		e = e.charCodeAt();
		var b=false;
		for (var z=0;z<str.length;z++)
		{
			var k = str.substring(z, z + 1);
			k = k.charCodeAt();
			if(k==e){b=true;break;}
		}
  		if(b==false){status=false;break;}
 	}
	return status;
}
AFR.Validator.number = function(n)
{
	var s = new String("0123456789");
   	for(var j = 0;j<n.length;j++)if(s.indexOf(n.charAt(j))==-1)return false;
   	return true;
}
AFR.Validator.password = function(str)
{
	str=str.toLowerCase();
	for (var i=0;i<str.length;i++)
 	{
  		var E = str.substring(i, i + 1);
  		if ((E < "0" || "9" < E ) && (E < "a" || "z" < E) && E !="_" && E !="*" && E !="-" && E !="?" && E !="+")return false;
 	}
	return true;
}
AFR.Validator.isNull = function(value)
{
	value = trim(value);
	value = value.toLowerCase();
	if(value==null || value=='null' || value=='' || value=="" || value==" " || value==' ')return true;
	else return false;
}

function num_chk( e )
{
	var k;
	k = e.keyCode;
	durum = false
	if(k>=48 && k<58)durum = true 
	return durum
}


function randomNumber(limit){
  return Math.floor(Math.random()*limit);
}
AFR.createForm = function(formAttr,vars) 
{
	if(document.createElement)
	{
		//alert('1');
		var defaultForm = {action : '', id : 'jsForm', name : 'jsForm', method : 'POST'};
		var objBody = document.getElementsByTagName("body").item(0);
		if($("jsForm"))$("jsForm").parentNode.removeChild($("jsForm"));
		var form = document.createElement("form");
		for(k in defaultForm)form.setAttribute(k,defaultForm[k]);
		for(k in formAttr)form.setAttribute(k,formAttr[k]);
		for(k in vars)
		{
			var input = document.createElement("input");
			input.setAttribute('type','hidden');
			input.setAttribute('name',k);
			input.setAttribute('id',k);
			input.value = vars[k];
			form.appendChild(input);
		}
		var input = document.createElement("input");
		input.setAttribute('type','hidden');
		input.setAttribute('name','post_id');
		input.setAttribute('id','post_id');
		input.value = AFR.config.pid;
		form.appendChild(input);
		objBody.appendChild(form);
		
		form.submit();
	}
}
AFR.insertHTML = function(oDiv,html,display) 
{
 	var oId = $(oDiv);
	if(!oId)return;
	oId.innerHTML = html;
	if(display==1 && oId.style)oId.style.display="";
	else oId.style.display="none";
}
function Point(x,y) {  this.x = x; this.y = y; }
AFR.mLoc = new Point(0,0);
function getMouseLoc(e)
{
  	if(!document.all)  //NS
	{
	    AFR.mLoc.x = e.pageX;
	    AFR.mLoc.y = e.pageY;
  	}
 	else               //IE
  	{
	    AFR.mLoc.x = event.x + document.body.scrollLeft;
	    AFR.mLoc.y = event.y + document.body.scrollTop;
	}
	return true;
}
//NS init:
//AFR.Event.addEvent(window,"mousemove",getMouseLoc,false);

function openPage(url,width,height)
{
	url=AFR.get_path(url);
	width=width + 10;
	height=height + 10;
	window.open(url, '_blank', 'toolbar=0, location=0, directories=0, status=0, menuBar=0, scrollBars=1, resizable=0, width='+ width +', height='+ height +', top=0' ) ;
}

AFR.printFile = function(path,width,height,rmode)
{
	if(typeof(rmode)=='undefined')var rmode="write";
	var ext=path.substring(path.lastIndexOf(".") + 1,path.length);
	var html = '';
	if(ext=="swf")
	{
		if(width==468 && height>60)
		{
			i="i";
			html += '<DIV id="AdID12766" onmouseover="isBrowserComplient(\'AdID22766\',\'over\');" onmouseout="isBrowserComplient(\'AdID22766\',\'out\');">';
			html += '<DIV id="AdID22766" style="position: relative; width: 468px; height: 60px; z-index: +5;visibility:collapse">';
			html += '<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0"';
			html += ' width="468" height="'+ height +'" style="position: absolute; left: 0; top: 0;">';
			html += '<PARAM name="Movie" value="'+ path +'">';
			html += '<PARAM name="WMode" value="Transparent">';
			html += '<!--['+i+'f !IE]><-->';
			html += '<OBJECT data="'+ path +'"';
			html += 'width="468" height="'+ height +'" type="application/x-shockwave-flash" style="position: absolute; left: 0; top: 0;">';
			html += '<PARAM name="WMode" value="Transparent">';
			html += '<PARAM name="pluginurl" value="http://www.macromedia.com/go/getflashplayer">';
			html += '<\/OBJECT>';
			html += '<!--><![end'+i+'f]-->';
			html += '<\/OBJECT>';
			html += '<\/DIV>';
			html += '<\/DIV>';
		}
		else
		{
			html += '<div style="z-index:111111111;"><object  classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="'+ width +'" height="'+ height +'">';
			html += '      <param name="menu" value="false">';
			html += '      <param name="movie" value="'+ path +'" />';
			html += '      <param name="quality" value="high" />';
			html += '      <param name="wmode" value="transparent" />';
			html += '      <embed src="'+ path +'" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="'+ width +'" height="'+ height +'" wmode="transparent"></embed>';
			html += '    </object></div>';
		}
	}
	else if(ext=="jpg" || ext=="jpeg" || ext=="gif" || ext=="png")
	{
		html +='<img src="'+ path +'" width="'+ width +'" height="'+ height +'" border="0">';
	}
	if(rmode=="write")document.write(html);
	else if(rmode=="return") return html;
}
AFR.cookie = 
{
	set : function(name, value, hours, domain)
	{
		if ( typeof(hours) == 'undefined' ) hours = 48;
		if ( typeof(domain) == 'undefined' ) domain = AFR.config.web_path.substring(AFR.config.web_path.lastIndexOf("http://")+7,AFR.config.web_path.length - 1);
		
		var expire = "";
		if(hours != null)
		{
			expire = new Date((new Date()).getTime() + hours * 3600000);
			expire = "; expires=" + expire.toGMTString();
		}
		//if(domain != null)expire = expire + "; domain=" + domain;
		
		document.cookie = name + "=" + escape(value) + expire;
	},
	get : function(name)
	{
		var cookieValue = "";
		var search = name + "=";
		if(document.cookie.length > 0)
		{ 
			offset = document.cookie.indexOf(search);
			if (offset != -1)
			{ 
				offset += search.length;
				end = document.cookie.indexOf(";", offset);
				if (end == -1) end = document.cookie.length;
				cookieValue = unescape(document.cookie.substring(offset, end))
			}
		}
		return cookieValue;
	},
	del : function(name)
	{
		document.cookie = name + "=; expires=Fri, 31 Dec 1999 23:59:59 GMT;";
		this.set(name,"","0");
	}
}
AFR.select = function(main,subs){this.init(main,subs);}
AFR.select.prototype = 
{
	init : function(main,subs)
	{
		this.main = main;
		this.sub = subs;
		var rows = $(this.main.id).getElementsByTagName("A");
		for(i=0;i<rows.length;i++)
		{
			var self = this;
			rows[i].rel = i;
			rows[i].onmouseover = function()
			{
				self.chng(this.rel);
				//alert(this.rel);
			}
		}
	},
	chng : function(x)
	{
		var vLink = $(this.main.id).getElementsByTagName("A");
		if(vLink.length==0)return;
		if(this.main.clss!='')
		{
			for (var i = 0; i < vLink.length; i++)
			{
				if(vLink[i].className==this.main.clss)vLink[i].className = '';
				else vLink[i].className = vLink[i].className.replace(' ' + this.main.clss,'');
			}
			if(vLink[x].className!='')vLink[x].className = vLink[x].className + ' ' + this.main.clss;
			else vLink[x].className = this.main.clss;
		}
		for(var j=0; j < this.sub.length; j++)
		{
			var vChng = $(this.sub[j]).getElementsByTagName("A");
			for(var k=0; k < vChng.length; k++)vChng[k].style.display = 'none';
			vChng[x].style.display = 'block';
		}
	}
}

AFR.tabSelect = function(fname,tab,link){this.init(fname,tab,link);}
AFR.tabSelect.prototype = 
{
	init : function(fname,tab,link)
	{
		this.fname = fname;
		this.tab = tab;
		this.link = link;
	},
	select : function(x)
	{
		var vTab = $(this.tab.id).getElementsByTagName(this.tab.tag);
		if(vTab.length==0)return;
		if (typeof(x) == 'undefined'){var x = AFR.cookie.get(this.fname);if (typeof(x) == 'undefined' || x==null || x=='' || x=="" || onlyNumbers(x) || x>vTab.length)x=0;}
		AFR.cookie.set(this.fname,x,360);
		if(this.tab.clss!='')
		{
			for (var i = 0; i < vTab.length; i++)
			{
				if(vTab[i].className==this.tab.clss)vTab[i].className = '';
				else vTab[i].className = vTab[i].className.replace(' ' + this.tab.clss,'');
			}
			if(vTab[x].className!='')vTab[x].className = vTab[x].className + ' ' + this.tab.clss;
			else vTab[x].className = this.tab.clss;
		}
		var vLink = $(this.link.id).getElementsByTagName(this.link.tag);
		for(var j=0; j < vLink.length; j++)vLink[j].style.display = 'none';
		vLink[x].style.display = 'block';
		
	}
}
AFR.namespaces("AFR.KeyListener");
AFR.KeyListener.Key = 0;
AFR.KeyListener.init = function(e)
{
	var elem = document.all ? window.event : e; 	
	this.Key = document.all ? elem.keyCode : elem.which;	
}

AFR.Class =
{
	has : function(oId,className)
	{
		oId = $(oId);
		if(!oId) return;
		var classes = oId.className.split(" ");
		for (var i in classes)if (classes[i] == className)return true;
		return false;
	},
	add : function(oId,className)
	{
		oId = $(oId);
		if(!oId) return;
		if(!this.has(oId, className))oId.className = (oId.className == "" ? className : oId.className + " " + className);
	},
	remove : function(oId,className)
	{
		oId = $(oId);
		if(!oId) return;
		var newValue = "";
		var classes = oId.className.split(" ");
		for (var i in classes)if (classes[i] != className)newValue += newValue.length ? " " + classes[i] : classes[i];
		oId.className = newValue;
	}
}
AFR.SelectOption = function(oId,inputName,c,s){this.init(oId,inputName,c,s);}
AFR.SelectOption.prototype = 
{
	init : function(oId,inputName,c,s)
	{
		this.inputName = inputName;
		this.oId = $(oId);
		this.timer = '';
		this.c = c;
		this.s = s;
		var self = this;
		this.oId.getElementsByTagName("A")[0].onclick = function(){self.op();}
		this.oId.getElementsByTagName("A")[0].onmouseout = function(){self.timer = setTimeout(self.c + '.cl()', 500);}
		this.oId.getElementsByTagName("ul")[0].onmouseover = function(){self.op();}
		this.oId.getElementsByTagName("ul")[0].onmouseout = function(){self.timer = setTimeout(self.c + '.cl()', 500);}
		var rows = this.oId.getElementsByTagName("ul")[0].getElementsByTagName("li");
		for(var i=0;i<rows.length;i++)
		{
			rows[i].onclick = function()
			{
				self.oId.getElementsByTagName("A")[0].getElementsByTagName("span")[0].innerHTML = this.innerHTML;
				$(self.inputName).value = this.title;
				self.cl();
			}
		} 
	},
	select : function(x)
	{
		
	},
	op : function()
	{
		if(this.timer)clearTimeout(this.timer);
		this.oId.getElementsByTagName("ul")[0].style.visibility="visible";
		AFR.Class.add(this.oId.getElementsByTagName("A")[0],this.s);
	},
	cl : function()
	{
		this.oId.getElementsByTagName("ul")[0].style.visibility="hidden";
		AFR.Class.remove(this.oId.getElementsByTagName("A")[0],this.s);
	}
}
AFR.createRequestObject = function()
{
	var ro;
	
	if(AFR.browser.ie){
		ro = new ActiveXObject("Microsoft.XMLHTTP");
	}else{
		ro = new XMLHttpRequest();
	}
	return ro;
}
AFR.ajax = function(method,vars){this.init(method,vars);}
AFR.ajax.prototype =
{
	init : function(method,vars)
	{
		this.vars = vars;
		this.method = method;
		this.run();
	},
	run : function()
	{
		var self = this;
		this.http = AFR.createRequestObject();
		this.http.open(this.method, this.vars.url);
		if(this.method=="post")
		{
			this.http.setRequestHeader('Content-Type','application/x-www-form-urlencoded;');
			this.http.setRequestHeader('Content-length', this.vars.query.length);
			this.http.setRequestHeader('Connection', 'close');
		}
		this.http.onreadystatechange = function()
		{
			if(self.http.readyState == 4)
			{
				var textValue = self.http.responseText;
				var xmlValue = self.http.responseXML;
				if(self.vars.fnctn && !AFR.Validator.isNull(self.vars.fnctn))
				{
					var fnctn = self.vars.fnctn + '(self.vars,textValue,xmlValue)';
					eval(fnctn);
				}
				else if(!AFR.Validator.isNull(self.vars.id))AFR.insertHTML(self.vars.id,textValue,1);
			}
			else if(self.vars.id && !AFR.Validator.isNull(self.vars.id))
			{
				if(self.vars.inner_html=="" || self.vars.inner_html==null)self.vars.inner_html=AFR.Event.loading(self.vars.id);
				else
				{
					self.vars.inner_html = self.vars.inner_html.replace('%1','<img align="left" src="'+ AFR.get_path('images/loading_1.gif') +'">');
					self.vars.inner_html = self.vars.inner_html.replace('%2','<img align="left" src="'+ AFR.get_path('images/loading_2.gif') +'">');
					self.vars.inner_html = self.vars.inner_html.replace('%3','<img align="left" src="'+ AFR.get_path('images/loading_3.gif') +'">');
				}
				AFR.insertHTML(self.vars.id,self.vars.inner_html,1);
			}
		}
		if(this.method=="post")this.http.send(this.vars.query);
		else this.http.send(null);
	}
}
AFR.subMenu = function(vars){this.init(vars);}
AFR.subMenu.prototype =
{
	init : function(vars)
	{
		this.vars = vars;
		this.clCtgryMnTimer;
		var self = this;
		var objA = $(this.vars.id).getElementsByTagName("A");
		for(var i=0;i<objA.length;i++)
		{
			if(AFR.Class.has(objA[i], self.vars.mainLinkClass))
			{
				//alert(objA[i].parentNode.offsetWidth);
				objA[i].onmouseover = function(){self.opCtgryMn(this,self);}
				objA[i].onmouseout = function(){self.clCtgryMn();}
			}
		}
	},
	opCtgryMn : function(elem,self)
	{
		eval(self.vars.c+'.clCtgryMn2()');
		var objUL = elem.parentNode.getElementsByTagName("ul")[0];
		if(typeof(self.vars.mainLinkActiveClass)!='undefined')AFR.Class.add(elem.parentNode.getElementsByTagName("A")[0],self.vars.mainLinkActiveClass);
		objUL.onmouseover = function(){ if(self.clCtgryMnTimer)clearTimeout(self.clCtgryMnTimer); }
		objUL.onmouseout = function(){ eval(self.vars.c+'.clCtgryMn()'); }
		objUL.style.visibility = 'visible';
	},
	
	clCtgryMn : function()
	{
		this.clCtgryMnTimer = setTimeout(this.vars.c+'.clCtgryMn2()', 1000);
	},
	clCtgryMn2 : function()
	{
		var rows = $(this.vars.id).getElementsByTagName("ul");
		for(i=0;i<rows.length;i++)
		{
			rows[i].style.visibility = 'hidden';
			if(typeof(this.vars.mainLinkActiveClass)!='undefined')AFR.Class.remove(rows[i].parentNode.getElementsByTagName("A")[0],this.vars.mainLinkActiveClass);
		}
		if(this.clCtgryMnTimer)clearTimeout(this.clCtgryMnTimer);
	}
}


AFR.namespaces("AFR.hint");
AFR.hint.objct = new Array();
AFR.hint.add = function(obj,str,cl)
{
	if(typeof(AFR.hint.objct[obj])!='undefined')return;
	else AFR.hint.objct[obj] = true;
	var self = this;
	var hint = $('hint');
	if(!obj){ return; }
	if(!hint){ return; }
	//AFR.Event.removeEvent(obj,"mouseover",AFR.hint.add,true);
	if(typeof(cl)=='undefined')cl='hint';
	obj.onmouseout = function(advance)
	{
		hint.style.width = '';
		hint.style.visibility = 'hidden';
		AFR.Class.remove(hint,cl);
		if(hint.firstChild) hint.removeChild(hint.firstChild);
		hint.appendChild(document.createTextNode(str));
	}
	obj.onmousemove = function(advance)
	{
		AFR.Class.add(hint,cl);
		hint.style.width = '';
		hint.innerHTML = str;
		vc = document.getElementsByTagName((document.compatMode && document.compatMode=="CSS1Compat") ? "HTML":"BODY")[0];
		x = window.event ? event.clientX + vc.scrollLeft : advance.pageX;
		y = window.event ? event.clientY + vc.scrollTop : advance.pageY;
		vcwidth = vc.clientWidth ? vc.clientWidth + vc.scrollLeft : window.innerWidth + window.pageXOffset;
		vcheight = vc.innerHeight ? window.innerHeight + window.pageYOffset : vc.clientHeight + vc.scrollTop;
		if(hint.offsetWidth>500)hint.style.width = '200'; 
		if((x + hint.offsetWidth + 15) > vcwidth)hint.style.left = x - hint.offsetWidth - 15;
		else hint.style.left = x + 15;
		if((y + hint.offsetHeight + 19) > vcheight)hint.style.top = y - hint.offsetHeight;
		else hint.style.top = y + 5;
	  
		hint.style.visibility = 'visible';
	}
}
AFR.hint.init = function()
{
	if(!$('hint')){ return; }
	var hint = document.createElement("DIV");
	hint.setAttribute('id','hint');
	document.getElementsByTagName('body')[0].appendChild(hint);
	hint.style.visibility = 'hidden';
	hint.className = 'hint';
	hint.style.left = 15;
	hint.style.top = 50;
}
AFR.Event.addEvent(window,"load",AFR.hint.init,false);
function session() 
{
	var url = 'ajax.php?session=' + randomNumber(500000);
	var sssn = new AFR.ajax("get",{url:url});
}
var AW = AFR;