 
function $(v) {
	switch(v.substr(0,1)) {
		case "#":return document.getElementById(v.substr(1));
		case "<":if (o=document.getElementById(v.substr(1))) return o.parentNode; else return false;
		default:return citysam.DOM.getElementsByClass(v.substr(1));
	}
}
var clientPC = navigator.userAgent.toLowerCase();
var is_gecko = ((clientPC.indexOf('gecko')!=-1) && (clientPC.indexOf('spoofer')==-1)
                && (clientPC.indexOf('khtml') == -1) && (clientPC.indexOf('netscape/7.0')==-1));
var is_safari = ((clientPC.indexOf('AppleWebKit')!=-1) && (clientPC.indexOf('spoofer')==-1));
var is_khtml = (navigator.vendor == 'KDE' || ( document.childNodes && !document.all && !navigator.taintEnabled ));
if (clientPC.indexOf('opera') != -1) {
	var is_opera = true;
	var is_opera_preseven = (window.opera && !document.childNodes);
	var is_opera_seven = (window.opera && document.childNodes);
}
var mouse_pos_x = 0;
var mouse_pos_y = 0;
var screen_x = 0;
var screen_y = 0; 
var docEl = (typeof document.compatMode != "undefined" && document.compatMode != "BackCompat") ? "documentElement" : "body";

if ((typeof citysam) != "object") {
	var citysam = {};
	citysam.getBrowser = function() {
		var check=[["window.postMessage","window.XMLHttpRequest&&(document.postMessage||window.external)","document.compatMode","(document.detachEvent||document.contentType)"],
				   ["window.execScript","window.pkcs11","window.opera","window.navigator&&window.navigator.vendor"],
				   [[{b:"IE",v:8},{b:"FF",v:3},{b:"OP",v:9.5},{b:"KDE",v:0}],[{b:"IE",v:7},{b:"FF",v:2},{b:"OP",v:9},{b:"KDE",v:0}],[{b:"IE",v:6},{b:"FF",v:1.5},{b:"OP",v:8},{b:"SAF",v:3}],[{b:"IE",v:5},{b:"NN",v:7},{b:"OP",v:7},{b:"KON",v:3}]]];
		var j,b,i;
		for(i=0;i<check[1].length;i++){if(!eval(check[1][i])==0)b=i;}
		for(i=check[0].length;i>-1;i--){if(!eval(check[0][i])==0)j=i;}
		return ((j>-1&&b>-1)?check[2][j][b]:{b:"U",v:0});
	};
	citysam.DOM = (function() {
		return {
			bindEvent : function(m,o,f,id,co) {
				if (typeof o.cF=="undefined" || typeof o.cF[m]=="undefined") {
					var oldf=o[m];
					if (typeof o.cF=="undefined") o.cF=[]; 
					o.cF[m]=[];
					o[m]=(function() {
						var o2=o;
						var m2=m;
						return function(e) {
							var r;
							for(i in o2.cF[m2]) {
								var p=o2.cF[m2][i].apply(o2,[e]);
								if (r!==false || p===false) {
									r=p;
								}
							}
							return r;
						}
					}());
					if (typeof oldf=="function") {
						o.cF[m][0]=oldf;
					}
				}
				if(co){
					var _f=f,
					f=function(e){
						return _f.apply(co,[e]);
					};
				}
				if (!id) {
					o.cF[m].push(f);
				} else {
					o.cF[m][id]=f;
				}
			},
			deleteEvents : function(m,o,id) {
				if (typeof o.cF=="undefined" || typeof o.cF[m]=="undefined") return;
				if (!id) {
					o.cF[m]=[];
				} else {
					delete(o.cF[m][id]);
				}
			},
			getElementsByClass : function(klasse,knoten,tag) {
				var classElements = new Array();
				if ( knoten == null )
					knoten = document;
				if ( tag == null )
					tag = '*';
				var el = knoten.getElementsByTagName(tag);
				var elLen = el.length;
				var pattern = new RegExp("(^|\\s)" + klasse + "(\\s|$)");
				for (i = 0, j = 0; i < elLen; i++) {
					if ( pattern.test(el[i].className) ) {
						classElements[j] = el[i];
						j++;
					}
				}
				return classElements;
			},
			getElementPos : function(el,d) {
				var coords = {x: 0, y: 0};
				var i=0;			  
				var element = (typeof el!="object")?document.getElementById(el):el;
				while (element) {
					coords.x += element.offsetLeft;
					coords.y += element.offsetTop;
					element = element.offsetParent;
					if (typeof d && ++i>=d) break;				  
				}
				return coords;
			},
			isChild : function(p,c) {
				while(c) {
					if (p===c) {
						return true;
					}
					c=c.parentNode;
				}
				return false;
			},
			getCookie : function(n) {
				var v="";
				if(document.cookie != "") {
					var s=document.cookie.indexOf(n+"=");
					if(s >= 0) {
						s=s+n.length+1;
						var l=document.cookie.indexOf(";", s);
						if(l < 0)l=document.cookie.length;
						v=document.cookie.substring(s, l);
						v=unescape(v);
					}
				}
				return v;
			},
			setCookie : function(n,v,ex) {
				var ed=new Date();
				ed.setDate(ed.getDate()+ex);
				document.cookie=n+"="+escape(v)+";expires="+ed.toGMTString()+";path=/";
			},
			getSCoo : function(n) {
				var c=citysam.DOM.getCookie("kfu4zh");
				if (!c) return false;
				var sp=c.split("|");
				n+="=";
				var v=false;
				for(i in sp) {
					if (sp[i].substr(0,n.length)==n) {
						v=sp[i].substr(n.length);
						break;
					}
				}
				return v;
			},
			setSCoo : function(n,v) {
				var c=citysam.DOM.getCookie("kfu4zh");
				var sp=c.split("|");
				n+="=";
				var nrv="";
				for(i in sp) {
					if (!sp[i]) continue;
					if (sp[i].substr(0,n.length)!=n) {
						nrv+=sp[i]+"|";
					}
				}
				nrv+=n+v;
				citysam.DOM.setCookie("kfu4zh",nrv,365);
			}
		}
	})();
	citysam.gui = (function() {
		var selSt=new Array(),winScrW=0;
		return {
			hintText : function(t,o,c,x,y) {
				var h = document.createElement("div");
				h.innerHTML=t;
				h.className=c;
				h.style.position="absolute";
				if (!x) x=o.offsetLeft+20;
				if (!y) y=o.offsetTop-20;
				h.style.left=x + "px";
				h.style.top=y + "px";
				h.style.zIndex="999";
				f = (function() {
					var obj=o;
					var dh=h;
					var id="i"+x;
					return function() {
						dh.parentNode.removeChild(dh);
						citysam.DOM.deleteEvents("onmouseout", obj);
						citysam.gui.showSel(id);
					}
				})();
				o.parentNode.appendChild(h);
				citysam.gui.hideSelP("i"+x, h);
				citysam.DOM.bindEvent("onmouseout",o,f);
			},
			showD : function(n) {
				if (o=document.getElementById(n)) { 
					o.style.display="block";
					o.style.opacity=1.0;
					o.style.filter="Alpha(opacity=100, finishopacity=100, style=2)";
					if (o.timeout) {
						window.clearTimeout(o.timeout);
					}
				}
			},
			showE : function(o) {
				if (o) { 
					o.style.display="block";
					if (o.timeout) {
						window.clearTimeout(o.timeout);
					}
				}
			},
			hideD : function(n) {
				var o=false;
				if (o=document.getElementById(n)) {
					var f=function() {
						o.style.display="none";
					};
					var t=window.setTimeout(f, 10);
					o.timeout=t;
				}
			},
			hideE : function(o) {
				if (o) {
					var f=function() {
						o.style.display="none";
					};
					var t=window.setTimeout(f, 10);
					o.timeout=t;
				}
			},
			hideSel : function(id) {
				if (!document.all) return false;
				if (selSt[id]) return false;
				selSt[id]=true;
				var t;
				for(i=0;i<document.getElementsByTagName("select").length;i++) {
					var sel=document.getElementsByTagName("select")[i];
					if (typeof sel == "object") {
						if (sel.style) {
							t=sel.style.visibility;
						} else {
							t="visible";
						}
						if (typeof sel.tvsbl=="undefined") {
							sel.tvsbl=t;
						}
						sel.style.visibility="hidden";
					}
				}
			},
			getEPosWH : function(o) {
				var p=citysam.DOM.getElementPos(o);
				return {x:p.x,y:p.y,w:o.offsetWidth,h:o.offsetHeight};
			},
			getEWH : function(o) {
				return {w:o.offsetWidth,h:o.offsetHeight};
			},
			pInArea : function(a,x,y) {
				return (x>=a.x && x<=a.x+a.w && y>=a.y && y<=a.y+a.h);
			},
			liXArea : function(a,y1,y2,x1,x2) {
				return (((a.y<=y1 && a.y+a.h>=y1) || (a.y<=y2 && a.y+a.h>=y2)) && x1<a.x && x2>a.x+a.w);
			},
			cInArea : function(a,p) {
				return (a.x<=p.x && a.x+a.w>=p.x+p.w && a.y<=p.y && a.y+a.h>=p.y+p.h);
			},
			oInArea : function(a,o) {
				var p=citysam.gui.getEPosWH(o);
				return (citysam.gui.pInArea(a,p.x,p.y) || citysam.gui.pInArea(a,p.x+p.w,p.y) || citysam.gui.pInArea(a,p.x,p.y+p.h) || citysam.gui.pInArea(a,p.x+p.w,p.y+p.h) || citysam.gui.liXArea(a,p.y,p.y+p.h,p.x,p.x+p.w));
			},
			getWinDim : function() {
				if (document.all) {
					return {x:document.body.scrollLeft,y:document.body.scrollTop,w:document.body.clientWidth,h:document.body.clientHeight};
				} else {
					return {x:window.pageXOffset,y:window.pageYOffset,w:window.innerWidth-citysam.gui.getWinScrW(),h:window.innerHeight};
				}
			},
			getWinScrW : function() {
				return 17;
				//if(!winScrW)try{
				//	document.body.style.overflow="hidden";
				//	var w=document.body.clientWidth;
				//	document.body.style.overflow="scroll";
				//	w-=document.body.clientWidth;
				//	if(!w)w=document.body.offsetWidth-document.body.clientWidth;
				//	document.body.style.overflow="";
				//	winScrW=w;
				//}catch(e){};
				//return winScrW;
			},
			hideSelP : function(id, o) {
				if (!document.all) return false;
				if (selSt[id]) return false;
				selSt[id]=true;
				var op=citysam.gui.getEPosWH(o);
				var t,i;
				for(i=0;i<document.getElementsByTagName("select").length;i++) {
					var sel=document.getElementsByTagName("select")[i];
					if (typeof sel.tvsbl=="undefined") {
						if (sel.style) {
							t=sel.style.visibility;
						} else {
							t="visible";
						}
						sel.tvsbl=t;
					}
					if (citysam.gui.oInArea(op,sel) && !citysam.DOM.isChild(o,sel)) {
						sel.style.visibility="hidden";
					}
				}
			},
			showSel : function(id) {
				if (!document.all) return false;
				if (!selSt[id]) return true;
				selSt[id]=false;
				for (i in selSt) {
					if (selSt[i]) return false;
				}
				for(i=0;i<document.getElementsByTagName("select").length;i++) {
					sel=document.getElementsByTagName("select")[i];
					if (typeof sel.tvsbl!="undefined" && sel.style) {
						sel.style.visibility=sel.tvsbl;
					}
				}
			},
			updateMousePos : function(e) {
				if (self.pageYOffset) {
					screen_x = self.pageXOffset;
					screen_y = self.pageYOffset;
				}
				else if (document.documentElement && document.documentElement.scrollTop) {
					screen_x = document.documentElement.scrollLeft;
					screen_y = document.documentElement.scrollTop;
				}
				else if (document.body) {
					screen_x = document.body.scrollLeft;
					screen_y = document.body.scrollTop;
				}

				if (document.all) {
					mouse_pos_x = window.event.clientX + document[docEl].scrollLeft;
					mouse_pos_y = window.event.clientY + document[docEl].scrollTop;
				} else {
					mouse_pos_x = e.pageX;
					mouse_pos_y = e.pageY;
				}
			},
			popImg : function(o,im,c,a,t,ta) {
				if (o.cImg) {
					if (o.cITi) window.clearTimeout(o.cITi);
					return;
				}
				var d=document.createElement("div");
				d.className=c;
				d.style.position="absolute";
				var p=citysam.gui.getEPosWH(a?a:o);
				d.style.left=(p.x+(p.w / 3 * 2)) + "px";
				d.style.top=(p.y+(p.h / 3 * 2)) + "px";
				var i=document.createElement("img");
				i.src=im;
				citysam.DOM.bindEvent("onload", i, function() {citysam.gui.posImg(a?a:o,d);if((e=o.getElementsByTagName("span")) && e[0]) { e[0].style.width=i.width + "px";}});
				d.appendChild(i);
				if (t) {
					var s=document.createElement("span");
					s.innerHTML=t;
					if (l=s.getElementsByTagName("a")) {
						var target = ta?ta:"_blank";
						for (var j=0; j<l.length;j++) {
							citysam.DOM.bindEvent("onclick", l[j], function(){window.open(this.href, target);});
						}
					}
					d.appendChild(s);
				}
				o.appendChild(d);
				o.cImg=d;
				citysam.gui.posImg(a?a:o,d);
				if((e=o.getElementsByTagName("span")) && e[0]) { e[0].style.width=i.width + "px";}
			},
			posImg : function(o,d) {
				var p=citysam.gui.getEPosWH(d);
				var b=citysam.gui.getWinDim();
				if (citysam.gui.cInArea(b,p)) return;
				var po=citysam.gui.getEPosWH(o);
				var m={x:po.x+po.w/2,y:po.y+po.h/2};
				var yu=(b.y+b.h>=m.y+p.h);
				var yo=(b.y<=m.y-p.h);
				var xl=(b.x<=m.x-p.w);
				var xr=(b.x+b.w>=m.x+p.w);
				var n;
				if (yu&&xr) {
					n={x:m.x,y:m.y};
				} else if(yu&&xl) {
					n={x:m.x-p.w,y:m.y};
				} else if (yo&&xr) {
					n={x:m.x,y:m.y-p.h};
				} else if (yo&&xl) {
					n={x:m.x-p.w,y:m.y-p.h};
				} else {
					n={x:b.x+5,y:b.y+5};
					if (yo) n.y=m.y-p.h;
					if (yu) n.y=m.y;
					if (xl) n.x=m.x-p.w;
					if (xr) n.x=m.x;
				}
				d.style.left=n.x+"px";
				d.style.top=n.y+"px";
			},
			shImg : function(o) {
				if (o.cITi) window.clearTimeout(o.cITi);
				o.cITi=window.setTimeout(function() {citysam.gui.hImg(o);},10);
			},
			hImg : function(o) {
				if (!o.cImg) return;
				o.removeChild(o.cImg);
				o.cImg=false;
			},
			fade : function(o, cb, a) {
				if (!a) 
					o.fadeStatus = "fadeIn";
					if (!o.style.opacity) o.style.opacity=1.0;
				
				if (o.fadeStatus != "fadeIn") return true;
				o.style.opacity-=0.05;
				if (document.all) {var v=o.style.opacity*100; o.style.filter="Alpha(opacity="+v+", finishopacity="+v+", style=2)";}
				if (o.style.opacity<=0) {
					o.style.display="none";
					if (typeof cb=="function") cb(o);
					return true;
				}
				var f=(function() {
					var oo=o;
					var ocb=cb;
					return function() {
						citysam.gui.fade(oo,ocb,1);
					}
				})();
				window.setTimeout(f, 50);
				return false;
			},
			fadeIn : function(o, cb, a) {
				if (!a) 
					o.fadeStatus = "fadeOut";
					if (o.style.display == "none") { o.style.display=""; } 
					if (typeof o.style.opacity == "undefined" || o.style.opacity == "") o.style.opacity=0;
				
				if (o.fadeStatus != "fadeOut") return true;
				o.style.opacity= parseFloat(o.style.opacity) + 0.05;
				if (document.all) {var v=o.style.opacity*100; o.style.filter="Alpha(opacity="+v+", finishopacity="+v+", style=2)";}
				if (o.style.opacity>=1) {
					if (typeof cb=="function") cb(o);
					return true;
				}
				var f=(function() {
					var oo=o;
					var ocb=cb;
					return function() {
						citysam.gui.fadeIn(oo,ocb,1);
					}
				})();
				window.setTimeout(f, 50);
				return false;
			},
			alignByO : function(d, o, x, y) {
				var p=citysam.gui.getEPosWH(o);
				d.style.position="absolute";
				d.style.left=(parseInt(p.x)+parseInt(x))+"px";
				d.style.top=(parseInt(p.y)+parseInt(y))+"px";
			},
			addShadow : function(o,v,z,o2) {
				if (typeof o.csShdw!="undefined" && o.csShdw!="") return;
				if (!v) v=5;
				var p=citysam.gui.getEPosWH(o);
				var s=document.createElement("div");
				s.style.width=p.w+"px";
				s.style.height=p.h+"px";
				s.style.opacity=0.3;
				if (z) s.style.zIndex=z;
				if (document.all) s.style.filter="Alpha(opacity=30, finishopacity=30, style=2)";
				s.style.backgroundColor="#000000";
				citysam.gui.alignByO(s,o,v,v);
				o.csShdw=s;
				if (!o2)
					document[docEl].insertBefore(s,document[docEl].firstChild);
				else o2.insertBefore(s,o2.firstChild)
			},
			rmShadow : function(o) {
				if (typeof o.csShdw=="undefined" || o.csShdw=="") return;
				document[docEl].removeChild(o.csShdw);
				o.csShdw = "";
			},
			rzShadow : function(o,v) {
				if (typeof o.csShdw=="undefined" || o.csShdw=="") return;
				if (!v) v=5;
				var p=citysam.gui.getEPosWH(o);
				o.csShdw.style.width=p.w+"px";
				o.csShdw.style.height=p.h+"px";
				citysam.gui.alignByO(o.csShdw,o,v,v);
			},
			toggle : function(v) {
				var o = $(v);
				if (typeof o=="undefined") return;
				if (v.substr(0,1)=="#"||v.substr(0,1)=="<") {
					if (o.style.display == "none") o.style.display = "";
					else o.style.display = "none";
				}
				else {
					for (var i=0; i<o.length; i++) {
						if (o[i].style.display == "none") o[i].style.display = "";
						else o[i].style.display = "none";
					}
				}
			},
			rePos : function(m,c,k,p,q) {
				var ro,ri,lo,li,to,ti,bo,bi,roX,riX,loX,liX,toY,tiY,boY,biY,x,y,b;
				if(k.w-m.R>c.w+p){ro=true;roX=m.R-q;}
				if(k.w-m.L>c.w+p){ri=true;riX=m.L;}
				if(m.L>c.w+p){lo=true;loX=m.L-c.w+q;}
				if(m.R>c.w+p){li=true;liX=m.R-c.w;}
				if(m.T>c.h+p){to=true;toY=m.T-c.h+q;}
				if(m.B>c.h+p){ti=true;tiY=m.B-c.h;}
				if(k.h-m.B>c.h+p){bo=true;boY=m.B-q;}
				if(k.h-m.T>c.h+p){bi=true;biY=m.T;}
				if     (ro&&(ti||bi)){x=roX;y=bi?biY:tiY;b=2;}
				else if(ri&&(to||bo)){x=riX;y=bo?boY:toY;b=bo?3:1;}
				else if(lo&&(ti||bi)){x=loX;y=bi?biY:tiY;b=4;}
				else if(li&&(to||bo)){x=liX;y=bo?boY:toY;b=bo?3:1;}
				else {
					x=(k.w-m.R>m.L)?m.R-q:m.L-c.w+q;
					y=(m.B>k.h-m.T)?m.B-c.h:m.T;
					b=(k.w-m.R>m.L)?2:4;
				}
				return {x:x,y:y,b:b};
			},
			mt : {
				
				i : function(a,ai,ca,cz,cp) {
					
					var hb=document.getElementsByName(a);
					var i,d,id,c;
					for(i=0;i<hb.length;i++) {
						d=$("#"+hb[i].id+"d");
						id=hb[i].id.substr(ai.length);
						citysam.DOM.bindEvent("onclick",hb[i].parentNode,(function() {
							var _d=d;var _i=id;var _ca=ca;var _cz=cz;var _cp=cp;
							return function() {
								citysam.gui.mt.s(this,_d,_i,_ca,_cz,_cp);
							}
						})());
						citysam.DOM.bindEvent("mtS",hb[i],(function() {
							var _d=d;var _i=id;var _ca=ca;var _cz=cz;var _cp=cp;
							return function(v) {
								citysam.gui.mt.s(this.parentNode,_d,_i,_ca,_cz,_cp,v);
							}
						})());
						c=citysam.DOM.getSCoo("6"+cp+id);
						if (c!==false) citysam.gui.mt.s(hb[i].parentNode,d,id,ca,cz,cp,((c!=0)?true:false));
					}
				},
				s : function(h,d,id,ca,cz,cp,f) {
					var v;
					if (f===true||((typeof f!="boolean") && d.style.display=="none")) {
						d.style.display="";
						h.className=ca;
						v=1;
					} else {
						d.style.display="none";
						h.className=cz;
						v=0;
					}
					citysam.DOM.setSCoo("6"+cp+id,v);
				}
			},
			stt : (function() {
				return {
					add : function(o,t,xr,xl,c,ir,il,y,fl) {
						citysam.DOM.bindEvent("onmouseover",o,(function(){
							var _o=o;
							var _t=t;
							var _xr=xr;
							var _xl=xl;
							var _c=c;
							var _ir=ir;
							var _il=il;
							var _y=y;
							var _fl=fl;
							return function() {
								citysam.gui.stt.shw(_o,_t,_xr,_xl,_c,_ir,_il,_y,_fl);
							}
						})());
						citysam.DOM.bindEvent("onmouseout",o,(function(){
							var _o=o;
							return function() {
								citysam.gui.stt.rm(_o);
							}
						})());
					}, 
					shw : function(_o,_t,_xr,_xl,_c,_ir,_il,_y,_fl) {
						if (_o.sttD&&_o.sttD.style.display=="block") {
							if (_o.sttT) window.clearTimeout(_o.sttT);
							return;
						}
						_o.sttT=window.setTimeout((function() {
							var o,t,xr,xl,c,ir,il,y,fl;
							o=_o,t=_t,xr=_xr,xl=_xl,c=_c,ir=_ir,il=_il,y=_y,fl=_fl;
							return function() {
								var d,p,h,g,q,l,m,i,f,k;
								if (!o.sttD) {
									d=document.createElement("div");
									d.innerHTML=t?t:"&nbsp;";
									if (c) d.className=c;
									d.style.visibility="hidden";
									d.style.zIndex="3";
									d.style.position="absolute";
									o.appendChild(d);
								} else {
									d=o.sttD;
									d.style.visibility="hidden";
									d.style.display="block";
									d.style.position="absolute";
								}
								if (xr) d.style.left=xr+"px";
								p=citysam.gui.getEPosWH(d);
								h=23;
								if (ir&&p.h<h) {
									if (!document.all) {
										g=citysam.gui.cssBorPad(d);
										if (g&&g.h) h-=g.h;
									}
									d.style.height=h+"px";
								}
								p=citysam.gui.getEPosWH(o);
								if (!xr) d.style.left=(p.x+p.w+(ir?20:2))+"px";
								d.style.top=(p.y+p.h/2-13+(y?y:0))+"px";
								q=citysam.gui.getEPosWH(d);
								l,m;
								if (fl||(q.x+q.w+21>citysam.gui.getWinDim().w)) {
									d.style.left=(((!xl)?p.x:xl)-q.w-(ir?17:2))+"px";
									l=q.w-2;
									i=il;
									k=19;
								} else {
									l=-17;
									i=ir;
									k=17;
								}
								if (ir) {
									o.sttF=document.createElement("div");
									d.appendChild(o.sttF);
									o.sttF.style.cssText="background-image:url("+i+");width:"+k+"px;height:30px;position:absolute;top:-2px;left:"+l+"px;background-repeat:no-repeat;";
									if (document.all) o.sttF.className="dhv8x";
								}
								o.sttD=d;
								d.style.visibility="visible";
								d.style.display="block";
								citysam.gui.addShadow(d,4,2);
								citysam.gui.hideSelP(o.id?o.id:"-",d);
							}
						})(), 10);
					},
					rm : function(o) {
						if (o.sttT) window.clearTimeout(o.sttT);
						if (!o.sttD) return;
						o.sttT=window.setTimeout((function() {
							var _o=o;
							return function() {
								citysam.gui.showSel(_o.id?_o.id:"-");
								citysam.gui.rmShadow(_o.sttD);
								_o.sttD.style.display="none";
								if (_o.sttF){_o.sttD.removeChild(_o.sttF);_o.sttF=false;}
								_o.sttT=false;
							}
						})(), 10);
					},
					ma : function (n,a,t,xr,xl,c,ir,il,y) {
						var i,o;
						for(i=1;i<a;i++) {
							if (o=$("#"+n+a)) citysam.gui.stt.add(o,t,xr,xl,c,ir,il,y);
						}
					}
				}
			})(),
			cssProp : function(v,pn) {
				var c="."+((typeof v=="object")?v.className:v);
				var i,j,r;
				r=(document.all)?"rules":"cssRules";
				var fc=false;
				Sty:for(i=0;i<document.styleSheets.length;i++){
					if(!document.styleSheets[i][r]||!document.styleSheets[i][r].length)continue;
					for(j=0;j<document.styleSheets[i][r].length;j++){
						if (document.styleSheets[i][r][j].selectorText==c) {
							fc=document.styleSheets[i][r][j];
							break Sty;
						}
					}
				}
				if (fc) {
					return (!pn)?fc.style:(fc.style[pn])?fc.style[pn]:"";
				}
			},
			cssBorPad : function(o) {
				var s,r,i,j,p,v;
				s=citysam.gui.cssProp(o);
				r={w:0,h:0};
				p={w:["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"],h:["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"]};
				for(i in p) {
					for(j=0;j<p[i].length;j++){
						if(s[p[i][j]]&&s[p[i][j]].substr(s[p[i][j]].length-2)=="px") {
							v=parseInt(s[p[i][j]].substr(0,s[p[i][j]].length-2));
							if (v)r[i]+=v;
						} else if (s[p[i][j]]) {
							return false;
						}
					}
				}
				return r;
			},
			btnPressed : function(b,e) {
				var br,a;
				if (!e) e=window.event;
				br=citysam.getBrowser();
				if (br.b=="IE"||br.b=="KON"){
					return b==e.button;
				}else{
					a=(br.b=="OP"&&br.v<8)?{1:1,2:2,4:3}:{1:0,2:2,4:1};
					return a[b]==e.button;
				}
			},
			addBookmark : function(u,t) {
				if(!u)u=document.location.href;
				if(!t)t=document.title;
				if(window.sidebar){
					window.sidebar.addPanel(t,u,"");
				}else if(window.external){
					window.external.addFavorite(u,t);
				}else if(window.opera&&window.print){
					return true;
				}
			},
			showWI : function() {
				if (!$("#wicb1a")) {
					var wi = document.createElement("img");
					wi.src = "/aa1/fr57w.gif";
					wi.id = "wicb1a";
					wi.style.zIndex = 10000;
					wi.style.position = "absolute";
					document.getElementsByTagName("body")[0].appendChild(wi);
				}
				$("#wicb1a").style.top = (mouse_pos_y - 16) + "px";
				$("#wicb1a").style.left = (mouse_pos_x - 16) + "px";
				$("#wicb1a").style.display = "";
			},
			hideWI : function() {
				$("#wicb1a").style.display = "none";
			}
		}
	})();
	citysam.usep = (function() {
		var cooN="cb1ahev2";
		var cooE=365;
		return {
			chkC : function(cb) {
				if (!cb) return false; 
				var sc=citysam.DOM.getCookie("PHPSESSID");
				if (!sc) return cb(0);
				var cv=citysam.DOM.getCookie(cooN);
				if (cv) { 
					var sp=cv.split("-");
					if (sp[1] == "gh34h") {
						cv=sp[0];
					} else { 
						cv=false;
					}
				}
				if (cv) {
					cb(cv);
				} else {
					var tcb = function(d) {
						var td=d.getElementsByTagName("c").item(0);
						var tcv=parseInt(td.attributes.getNamedItem("v").value);
						cb(tcv);
					};
					var tAj=new csAjax(false);
					tAj.getData("/a/beajf3.htm", "", tcb);
				}
				return false; 
			}
		}
	})();
	citysam.script={
		data:{},
		load:function(url,id,cb,c){
			var script=document.createElement("script");
			script.type="text/javascript";
			script.src=url;
			script.id=id;
			if(c)cb=(function(){var _cb=cb,_c=c;return function(){_cb.apply(_c,arguments);};})();
			script._cb=cb;
			document.getElementsByTagName("head")[0].appendChild(script);
			return true;
		},
		remove:function(id){
			var o;
			if(o=$("#"+id))o.parentNode.removeChild(o);
		},
		loaded:function(id){
			if(o=$("#"+id))var cb=o._cb;
			if(citysam.getBrowser().b!="IE")citysam.script.remove(id);
			cb(citysam.script.data[id], id);
			delete citysam.script.data[id];
		}
	},
	citysam.language={},
	citysam.vars={}
}


function pwWnd(url) {
	window.open(url, "new", "width=600,height=150,left=300,top=100");
	return false;
}


function cb1apopup(url) {
	window.open(url, "popup", "height=600,width=600,status=no,toolbar=no,scrollbars=yes");
	return false;
}

citysam.DOM.bindEvent("onmousemove", document, citysam.gui.updateMousePos)
