
(function(){var arrLoaded=[];var arrToLoad=[];var ismodal=false;function getExt(name){var dot=name.lastIndexOf(".");if(dot<0)return"";return name.substr(dot+1,name.length)}
window.include=function(name,modal){var url,type,arr;if(ismodal){arrToLoad.push({name:name,modal:modal});return;}
arr=name.split("#");if(arr.length==1){url=arr[0];type=getExt(url);}else{url=arr[1];type=arr[0];}
switch(type){case"js":include_script(url,modal);break;case"css":include_css(url);break;default:}
arrLoaded.push(name);};window.include_script=function(url,modal){if(modal)ismodal=true;var head=document.getElementsByTagName("head")[0];var elem=document.createElement("script");elem.setAttribute('type',"text/javascript");elem.setAttribute('src',url);var done=false;if(modal){elem.onload=elem.onreadystatechange=function(){if(!done&&(!this.readyState||this.readyState=="loaded"||this.readyState=="complete")){done=true;ismodal=false;if(arrToLoad.length>0){do{var param=arrToLoad.shift();include(param.name,param.modal)}while(arrToLoad.length>0&&param.modal!=true);}}};}
head.appendChild(elem);};window.include_css=function(url){var head=document.getElementsByTagName("head")[0];var elem=document.createElement('link');elem.setAttribute('href',url);elem.setAttribute('rel','stylesheet');elem.setAttribute('type','text/css');head.appendChild(elem);};var single="framework/js/init.js";var elems=document.getElementsByTagName('script');for(var i=0;i<elems.length;i++){var src=elems[i].src;if(src.indexOf(single)>0){window.PATH_ROOT=src.substring(0,src.lastIndexOf(single));break;}}
if(document.location.protocol=="file:"){window.PATH_BASE=decodeURIComponent(document.location.pathname.substr(1)).replace(/\\/g,"/");window.PATH_BASEFULL=window.PATH_BASE="file:///"+window.PATH_BASE.substring(0,window.PATH_BASE.lastIndexOf('/')+1);}else{window.PATH_BASE=document.location.pathname.substring(0,document.location.pathname.lastIndexOf("/")+1);window.PATH_BASEFULL=document.location.protocol+"//"+document.location.host+window.PATH_BASE;}})();(function(){var _jQuery=window.jQuery,_$=window.$;var jQuery=window.jQuery=window.$=function(selector,context){return new jQuery.fn.init(selector,context);};var quickExpr=/^[^<]*(<(.|\s)+>)[^>]*$|^#(\w+)$/,isSimple=/^.[^:#\[\.]*$/,undefined;jQuery.fn=jQuery.prototype={init:function(selector,context){selector=selector||document;if(selector.nodeType){this[0]=selector;this.length=1;return this;}
if(typeof selector=="string"){var match=quickExpr.exec(selector);if(match&&(match[1]||!context)){if(match[1])
selector=jQuery.clean([match[1]],context);else{var elem=document.getElementById(match[3]);if(elem){if(elem.id!=match[3])
return jQuery().find(selector);return jQuery(elem);}
selector=[];}}else
return jQuery(context).find(selector);}else if(jQuery.isFunction(selector))
return jQuery(document)[jQuery.fn.ready?"ready":"load"](selector);return this.setArray(jQuery.makeArray(selector));},jquery:"1.2.6",size:function(){return this.length;},length:0,get:function(num){return num==undefined?jQuery.makeArray(this):this[num];},pushStack:function(elems){var ret=jQuery(elems);ret.prevObject=this;return ret;},setArray:function(elems){this.length=0;Array.prototype.push.apply(this,elems);return this;},each:function(callback,args){return jQuery.each(this,callback,args);},index:function(elem){var ret=-1;return jQuery.inArray(elem&&elem.jquery?elem[0]:elem,this);},attr:function(name,value,type){var options=name;if(name.constructor==String)
if(value===undefined)
return this[0]&&jQuery[type||"attr"](this[0],name);else{options={};options[name]=value;}
return this.each(function(i){for(name in options)
jQuery.attr(type?this.style:this,name,jQuery.prop(this,options[name],type,i,name));});},css:function(key,value){if((key=='width'||key=='height')&&parseFloat(value)<0)
value=undefined;return this.attr(key,value,"curCSS");},text:function(text){if(typeof text!="object"&&text!=null)
return this.empty().append((this[0]&&this[0].ownerDocument||document).createTextNode(text));var ret="";jQuery.each(text||this,function(){jQuery.each(this.childNodes,function(){if(this.nodeType!=8)
ret+=this.nodeType!=1?this.nodeValue:jQuery.fn.text([this]);});});return ret;},wrapAll:function(html){if(this[0])
jQuery(html,this[0].ownerDocument).clone().insertBefore(this[0]).map(function(){var elem=this;while(elem.firstChild)
elem=elem.firstChild;return elem;}).append(this);return this;},wrapInner:function(html){return this.each(function(){jQuery(this).contents().wrapAll(html);});},wrap:function(html){return this.each(function(){jQuery(this).wrapAll(html);});},append:function(){return this.domManip(arguments,true,false,function(elem){if(this.nodeType==1)
this.appendChild(elem);});},prepend:function(){return this.domManip(arguments,true,true,function(elem){if(this.nodeType==1)
this.insertBefore(elem,this.firstChild);});},before:function(){return this.domManip(arguments,false,false,function(elem){this.parentNode.insertBefore(elem,this);});},after:function(){return this.domManip(arguments,false,true,function(elem){this.parentNode.insertBefore(elem,this.nextSibling);});},end:function(){return this.prevObject||jQuery([]);},find:function(selector){var elems=jQuery.map(this,function(elem){return jQuery.find(selector,elem);});return this.pushStack(/[^+>] [^+>]/.test(selector)||selector.indexOf("..")>-1?jQuery.unique(elems):elems);},clone:function(events){var ret=this.map(function(){if(jQuery.browser.msie&&!jQuery.isXMLDoc(this)){var clone=this.cloneNode(true),container=document.createElement("div");container.appendChild(clone);return jQuery.clean([container.innerHTML])[0];}else
return this.cloneNode(true);});var clone=ret.find("*").andSelf().each(function(){if(this[expando]!=undefined)
this[expando]=null;});if(events===true)
this.find("*").andSelf().each(function(i){if(this.nodeType==3)
return;var events=jQuery.data(this,"events");for(var type in events)
for(var handler in events[type])
jQuery.event.add(clone[i],type,events[type][handler],events[type][handler].data);});return ret;},filter:function(selector){return this.pushStack(jQuery.isFunction(selector)&&jQuery.grep(this,function(elem,i){return selector.call(elem,i);})||jQuery.multiFilter(selector,this));},not:function(selector){if(selector.constructor==String)
if(isSimple.test(selector))
return this.pushStack(jQuery.multiFilter(selector,this,true));else
selector=jQuery.multiFilter(selector,this);var isArrayLike=selector.length&&selector[selector.length-1]!==undefined&&!selector.nodeType;return this.filter(function(){return isArrayLike?jQuery.inArray(this,selector)<0:this!=selector;});},add:function(selector){return this.pushStack(jQuery.unique(jQuery.merge(this.get(),typeof selector=='string'?jQuery(selector):jQuery.makeArray(selector))));},is:function(selector){return!!selector&&jQuery.multiFilter(selector,this).length>0;},hasClass:function(selector){return this.is("."+selector);},val:function(value){if(value==undefined){if(this.length){var elem=this[0];if(jQuery.nodeName(elem,"select")){var index=elem.selectedIndex,values=[],options=elem.options,one=elem.type=="select-one";if(index<0)
return null;for(var i=one?index:0,max=one?index+1:options.length;i<max;i++){var option=options[i];if(option.selected){value=jQuery.browser.msie&&!option.attributes.value.specified?option.text:option.value;if(one)
return value;values.push(value);}}
return values;}else
return(this[0].value||"").replace(/\r/g,"");}
return undefined;}
if(value.constructor==Number)
value+='';return this.each(function(){if(this.nodeType!=1)
return;if(value.constructor==Array&&/radio|checkbox/.test(this.type))
this.checked=(jQuery.inArray(this.value,value)>=0||jQuery.inArray(this.name,value)>=0);else if(jQuery.nodeName(this,"select")){var values=jQuery.makeArray(value);jQuery("option",this).each(function(){this.selected=(jQuery.inArray(this.value,values)>=0||jQuery.inArray(this.text,values)>=0);});if(!values.length)
this.selectedIndex=-1;}else
this.value=value;});},html:function(value){return value==undefined?(this[0]?this[0].innerHTML:null):this.empty().append(value);},replaceWith:function(value){return this.after(value).remove();},eq:function(i){return this.slice(i,i+1);},slice:function(){return this.pushStack(Array.prototype.slice.apply(this,arguments));},map:function(callback){return this.pushStack(jQuery.map(this,function(elem,i){return callback.call(elem,i,elem);}));},andSelf:function(){return this.add(this.prevObject);},data:function(key,value){var parts=key.split(".");parts[1]=parts[1]?"."+parts[1]:"";if(value===undefined){var data=this.triggerHandler("getData"+parts[1]+"!",[parts[0]]);if(data===undefined&&this.length)
data=jQuery.data(this[0],key);return data===undefined&&parts[1]?this.data(parts[0]):data;}else
return this.trigger("setData"+parts[1]+"!",[parts[0],value]).each(function(){jQuery.data(this,key,value);});},removeData:function(key){return this.each(function(){jQuery.removeData(this,key);});},domManip:function(args,table,reverse,callback){var clone=this.length>1,elems;return this.each(function(){if(!elems){elems=jQuery.clean(args,this.ownerDocument);if(reverse)
elems.reverse();}
var obj=this;if(table&&jQuery.nodeName(this,"table")&&jQuery.nodeName(elems[0],"tr"))
obj=this.getElementsByTagName("tbody")[0]||this.appendChild(this.ownerDocument.createElement("tbody"));var scripts=jQuery([]);jQuery.each(elems,function(){var elem=clone?jQuery(this).clone(true)[0]:this;if(jQuery.nodeName(elem,"script"))
scripts=scripts.add(elem);else{if(elem.nodeType==1)
scripts=scripts.add(jQuery("script",elem).remove());callback.call(obj,elem);}});scripts.each(evalScript);});}};jQuery.fn.init.prototype=jQuery.fn;function evalScript(i,elem){if(elem.src)
jQuery.ajax({url:elem.src,async:false,dataType:"script"});else
jQuery.globalEval(elem.text||elem.textContent||elem.innerHTML||"");if(elem.parentNode)
elem.parentNode.removeChild(elem);}
function now(){return+new Date;}
jQuery.extend=jQuery.fn.extend=function(){var target=arguments[0]||{},i=1,length=arguments.length,deep=false,options;if(target.constructor==Boolean){deep=target;target=arguments[1]||{};i=2;}
if(typeof target!="object"&&typeof target!="function")
target={};if(length==i){target=this;--i;}
for(;i<length;i++)
if((options=arguments[i])!=null)
for(var name in options){var src=target[name],copy=options[name];if(target===copy)
continue;if(deep&&copy&&typeof copy=="object"&&!copy.nodeType)
target[name]=jQuery.extend(deep,src||(copy.length!=null?[]:{}),copy);else if(copy!==undefined)
target[name]=copy;}
return target;};var expando="jQuery"+now(),uuid=0,windowData={},exclude=/z-?index|font-?weight|opacity|zoom|line-?height/i,defaultView=document.defaultView||{};jQuery.extend({noConflict:function(deep){window.$=_$;if(deep)
window.jQuery=_jQuery;return jQuery;},isFunction:function(fn){return!!fn&&typeof fn!="string"&&!fn.nodeName&&fn.constructor!=Array&&/^[\s[]?function/.test(fn+"");},isXMLDoc:function(elem){return elem.documentElement&&!elem.body||elem.tagName&&elem.ownerDocument&&!elem.ownerDocument.body;},globalEval:function(data){data=jQuery.trim(data);if(data){var head=document.getElementsByTagName("head")[0]||document.documentElement,script=document.createElement("script");script.type="text/javascript";if(jQuery.browser.msie)
script.text=data;else
script.appendChild(document.createTextNode(data));head.insertBefore(script,head.firstChild);head.removeChild(script);}},nodeName:function(elem,name){return elem.nodeName&&elem.nodeName.toUpperCase()==name.toUpperCase();},cache:{},data:function(elem,name,data){elem=elem==window?windowData:elem;var id=elem[expando];if(!id)
id=elem[expando]=++uuid;if(name&&!jQuery.cache[id])
jQuery.cache[id]={};if(data!==undefined)
jQuery.cache[id][name]=data;return name?jQuery.cache[id][name]:id;},removeData:function(elem,name){elem=elem==window?windowData:elem;var id=elem[expando];if(name){if(jQuery.cache[id]){delete jQuery.cache[id][name];name="";for(name in jQuery.cache[id])
break;if(!name)
jQuery.removeData(elem);}}else{try{delete elem[expando];}catch(e){if(elem.removeAttribute)
elem.removeAttribute(expando);}
delete jQuery.cache[id];}},each:function(object,callback,args){var name,i=0,length=object.length;if(args){if(length==undefined){for(name in object)
if(callback.apply(object[name],args)===false)
break;}else
for(;i<length;)
if(callback.apply(object[i++],args)===false)
break;}else{if(length==undefined){for(name in object)
if(callback.call(object[name],name,object[name])===false)
break;}else
for(var value=object[0];i<length&&callback.call(value,i,value)!==false;value=object[++i]){}}
return object;},prop:function(elem,value,type,i,name){if(jQuery.isFunction(value))
value=value.call(elem,i);return value&&value.constructor==Number&&type=="curCSS"&&!exclude.test(name)?value+"px":value;},className:{add:function(elem,classNames){jQuery.each((classNames||"").split(/\s+/),function(i,className){if(elem.nodeType==1&&!jQuery.className.has(elem.className,className))
elem.className+=(elem.className?" ":"")+className;});},remove:function(elem,classNames){if(elem.nodeType==1)
elem.className=classNames!=undefined?jQuery.grep(elem.className.split(/\s+/),function(className){return!jQuery.className.has(classNames,className);}).join(" "):"";},has:function(elem,className){return jQuery.inArray(className,(elem.className||elem).toString().split(/\s+/))>-1;}},swap:function(elem,options,callback){var old={};for(var name in options){old[name]=elem.style[name];elem.style[name]=options[name];}
callback.call(elem);for(var name in options)
elem.style[name]=old[name];},css:function(elem,name,force){if(name=="width"||name=="height"){var val,props={position:"absolute",visibility:"hidden",display:"block"},which=name=="width"?["Left","Right"]:["Top","Bottom"];function getWH(){val=name=="width"?elem.offsetWidth:elem.offsetHeight;var padding=0,border=0;jQuery.each(which,function(){padding+=parseFloat(jQuery.curCSS(elem,"padding"+this,true))||0;border+=parseFloat(jQuery.curCSS(elem,"border"+this+"Width",true))||0;});val-=Math.round(padding+border);}
if(jQuery(elem).is(":visible"))
getWH();else
jQuery.swap(elem,props,getWH);return Math.max(0,val);}
return jQuery.curCSS(elem,name,force);},curCSS:function(elem,name,force){var ret,style=elem.style;function color(elem){if(!jQuery.browser.safari)
return false;var ret=defaultView.getComputedStyle(elem,null);return!ret||ret.getPropertyValue("color")=="";}
if(name=="opacity"&&jQuery.browser.msie){ret=jQuery.attr(style,"opacity");return ret==""?"1":ret;}
if(jQuery.browser.opera&&name=="display"){var save=style.outline;style.outline="0 solid black";style.outline=save;}
if(name.match(/float/i))
name=styleFloat;if(!force&&style&&style[name])
ret=style[name];else if(defaultView.getComputedStyle){if(name.match(/float/i))
name="float";name=name.replace(/([A-Z])/g,"-$1").toLowerCase();var computedStyle=defaultView.getComputedStyle(elem,null);if(computedStyle&&!color(elem))
ret=computedStyle.getPropertyValue(name);else{var swap=[],stack=[],a=elem,i=0;for(;a&&color(a);a=a.parentNode)
stack.unshift(a);for(;i<stack.length;i++)
if(color(stack[i])){swap[i]=stack[i].style.display;stack[i].style.display="block";}
ret=name=="display"&&swap[stack.length-1]!=null?"none":(computedStyle&&computedStyle.getPropertyValue(name))||"";for(i=0;i<swap.length;i++)
if(swap[i]!=null)
stack[i].style.display=swap[i];}
if(name=="opacity"&&ret=="")
ret="1";}else if(elem.currentStyle){var camelCase=name.replace(/\-(\w)/g,function(all,letter){return letter.toUpperCase();});ret=elem.currentStyle[name]||elem.currentStyle[camelCase];if(!/^\d+(px)?$/i.test(ret)&&/^\d/.test(ret)){var left=style.left,rsLeft=elem.runtimeStyle.left;elem.runtimeStyle.left=elem.currentStyle.left;style.left=ret||0;ret=style.pixelLeft+"px";style.left=left;elem.runtimeStyle.left=rsLeft;}}
return ret;},clean:function(elems,context){var ret=[];context=context||document;if(typeof context.createElement=='undefined')
context=context.ownerDocument||context[0]&&context[0].ownerDocument||document;jQuery.each(elems,function(i,elem){if(!elem)
return;if(elem.constructor==Number)
elem+='';if(typeof elem=="string"){elem=elem.replace(/(<(\w+)[^>]*?)\/>/g,function(all,front,tag){return tag.match(/^(abbr|br|col|img|input|link|meta|param|hr|area|embed)$/i)?all:front+"></"+tag+">";});var tags=jQuery.trim(elem).toLowerCase(),div=context.createElement("div");var wrap=!tags.indexOf("<opt")&&[1,"<select multiple='multiple'>","</select>"]||!tags.indexOf("<leg")&&[1,"<fieldset>","</fieldset>"]||tags.match(/^<(thead|tbody|tfoot|colg|cap)/)&&[1,"<table>","</table>"]||!tags.indexOf("<tr")&&[2,"<table><tbody>","</tbody></table>"]||(!tags.indexOf("<td")||!tags.indexOf("<th"))&&[3,"<table><tbody><tr>","</tr></tbody></table>"]||!tags.indexOf("<col")&&[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"]||jQuery.browser.msie&&[1,"div<div>","</div>"]||[0,"",""];div.innerHTML=wrap[1]+elem+wrap[2];while(wrap[0]--)
div=div.lastChild;if(jQuery.browser.msie){var tbody=!tags.indexOf("<table")&&tags.indexOf("<tbody")<0?div.firstChild&&div.firstChild.childNodes:wrap[1]=="<table>"&&tags.indexOf("<tbody")<0?div.childNodes:[];for(var j=tbody.length-1;j>=0;--j)
if(jQuery.nodeName(tbody[j],"tbody")&&!tbody[j].childNodes.length)
tbody[j].parentNode.removeChild(tbody[j]);if(/^\s/.test(elem))
div.insertBefore(context.createTextNode(elem.match(/^\s*/)[0]),div.firstChild);}
elem=jQuery.makeArray(div.childNodes);}
if(elem.length===0&&(!jQuery.nodeName(elem,"form")&&!jQuery.nodeName(elem,"select")))
return;if(elem[0]==undefined||jQuery.nodeName(elem,"form")||elem.options)
ret.push(elem);else
ret=jQuery.merge(ret,elem);});return ret;},attr:function(elem,name,value){if(!elem||elem.nodeType==3||elem.nodeType==8)
return undefined;var notxml=!jQuery.isXMLDoc(elem),set=value!==undefined,msie=jQuery.browser.msie;name=notxml&&jQuery.props[name]||name;if(elem.tagName){var special=/href|src|style/.test(name);if(name=="selected"&&jQuery.browser.safari)
elem.parentNode.selectedIndex;if(name in elem&&notxml&&!special){if(set){if(name=="type"&&jQuery.nodeName(elem,"input")&&elem.parentNode)
throw"type property can't be changed";elem[name]=value;}
if(jQuery.nodeName(elem,"form")&&elem.getAttributeNode(name))
return elem.getAttributeNode(name).nodeValue;return elem[name];}
if(msie&&notxml&&name=="style")
return jQuery.attr(elem.style,"cssText",value);if(set)
elem.setAttribute(name,""+value);var attr=msie&&notxml&&special?elem.getAttribute(name,2):elem.getAttribute(name);return attr===null?undefined:attr;}
if(msie&&name=="opacity"){if(set){elem.zoom=1;elem.filter=(elem.filter||"").replace(/alpha\([^)]*\)/,"")+
(parseInt(value)+''=="NaN"?"":"alpha(opacity="+value*100+")");}
return elem.filter&&elem.filter.indexOf("opacity=")>=0?(parseFloat(elem.filter.match(/opacity=([^)]*)/)[1])/100)+'':"";}
name=name.replace(/-([a-z])/ig,function(all,letter){return letter.toUpperCase();});if(set)
elem[name]=value;return elem[name];},trim:function(text){return(text||"").replace(/^\s+|\s+$/g,"");},makeArray:function(array){var ret=[];if(array!=null){var i=array.length;if(i==null||array.split||array.setInterval||array.call)
ret[0]=array;else
while(i)
ret[--i]=array[i];}
return ret;},inArray:function(elem,array){for(var i=0,length=array.length;i<length;i++)
if(array[i]===elem)
return i;return-1;},merge:function(first,second){var i=0,elem,pos=first.length;if(jQuery.browser.msie){while(elem=second[i++])
if(elem.nodeType!=8)
first[pos++]=elem;}else
while(elem=second[i++])
first[pos++]=elem;return first;},unique:function(array){var ret=[],done={};try{for(var i=0,length=array.length;i<length;i++){var id=jQuery.data(array[i]);if(!done[id]){done[id]=true;ret.push(array[i]);}}}catch(e){ret=array;}
return ret;},grep:function(elems,callback,inv){var ret=[];for(var i=0,length=elems.length;i<length;i++)
if(!inv!=!callback(elems[i],i))
ret.push(elems[i]);return ret;},map:function(elems,callback){var ret=[];for(var i=0,length=elems.length;i<length;i++){var value=callback(elems[i],i);if(value!=null)
ret[ret.length]=value;}
return ret.concat.apply([],ret);}});var userAgent=navigator.userAgent.toLowerCase();jQuery.browser={version:(userAgent.match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/)||[])[1],safari:/webkit/.test(userAgent),opera:/opera/.test(userAgent),msie:/msie/.test(userAgent)&&!/opera/.test(userAgent),mozilla:/mozilla/.test(userAgent)&&!/(compatible|webkit)/.test(userAgent)};var styleFloat=jQuery.browser.msie?"styleFloat":"cssFloat";jQuery.extend({boxModel:!jQuery.browser.msie||document.compatMode=="CSS1Compat",props:{"for":"htmlFor","class":"className","float":styleFloat,cssFloat:styleFloat,styleFloat:styleFloat,readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing"}});jQuery.each({parent:function(elem){return elem.parentNode;},parents:function(elem){return jQuery.dir(elem,"parentNode");},next:function(elem){return jQuery.nth(elem,2,"nextSibling");},prev:function(elem){return jQuery.nth(elem,2,"previousSibling");},nextAll:function(elem){return jQuery.dir(elem,"nextSibling");},prevAll:function(elem){return jQuery.dir(elem,"previousSibling");},siblings:function(elem){return jQuery.sibling(elem.parentNode.firstChild,elem);},children:function(elem){return jQuery.sibling(elem.firstChild);},contents:function(elem){return jQuery.nodeName(elem,"iframe")?elem.contentDocument||elem.contentWindow.document:jQuery.makeArray(elem.childNodes);}},function(name,fn){jQuery.fn[name]=function(selector){var ret=jQuery.map(this,fn);if(selector&&typeof selector=="string")
ret=jQuery.multiFilter(selector,ret);return this.pushStack(jQuery.unique(ret));};});jQuery.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(name,original){jQuery.fn[name]=function(){var args=arguments;return this.each(function(){for(var i=0,length=args.length;i<length;i++)
jQuery(args[i])[original](this);});};});jQuery.each({removeAttr:function(name){jQuery.attr(this,name,"");if(this.nodeType==1)
this.removeAttribute(name);},addClass:function(classNames){jQuery.className.add(this,classNames);},removeClass:function(classNames){jQuery.className.remove(this,classNames);},toggleClass:function(classNames){jQuery.className[jQuery.className.has(this,classNames)?"remove":"add"](this,classNames);},remove:function(selector){if(!selector||jQuery.filter(selector,[this]).r.length){jQuery("*",this).add(this).each(function(){jQuery.event.remove(this);jQuery.removeData(this);});if(this.parentNode)
this.parentNode.removeChild(this);}},empty:function(){jQuery(">*",this).remove();while(this.firstChild)
this.removeChild(this.firstChild);}},function(name,fn){jQuery.fn[name]=function(){return this.each(fn,arguments);};});jQuery.each(["Height","Width"],function(i,name){var type=name.toLowerCase();jQuery.fn[type]=function(size){return this[0]==window?jQuery.browser.opera&&document.body["client"+name]||jQuery.browser.safari&&window["inner"+name]||document.compatMode=="CSS1Compat"&&document.documentElement["client"+name]||document.body["client"+name]:this[0]==document?Math.max(Math.max(document.body["scroll"+name],document.documentElement["scroll"+name]),Math.max(document.body["offset"+name],document.documentElement["offset"+name])):size==undefined?(this.length?jQuery.css(this[0],type):null):this.css(type,size.constructor==String?size:size+"px");};});function num(elem,prop){return elem[0]&&parseInt(jQuery.curCSS(elem[0],prop,true),10)||0;}var chars=jQuery.browser.safari&&parseInt(jQuery.browser.version)<417?"(?:[\\w*_-]|\\\\.)":"(?:[\\w\u0128-\uFFFF*_-]|\\\\.)",quickChild=new RegExp("^>\\s*("+chars+"+)"),quickID=new RegExp("^("+chars+"+)(#)("+chars+"+)"),quickClass=new RegExp("^([#.]?)("+chars+"*)");jQuery.extend({expr:{"":function(a,i,m){return m[2]=="*"||jQuery.nodeName(a,m[2]);},"#":function(a,i,m){return a.getAttribute("id")==m[2];},":":{lt:function(a,i,m){return i<m[3]-0;},gt:function(a,i,m){return i>m[3]-0;},nth:function(a,i,m){return m[3]-0==i;},eq:function(a,i,m){return m[3]-0==i;},first:function(a,i){return i==0;},last:function(a,i,m,r){return i==r.length-1;},even:function(a,i){return i%2==0;},odd:function(a,i){return i%2;},"first-child":function(a){return a.parentNode.getElementsByTagName("*")[0]==a;},"last-child":function(a){return jQuery.nth(a.parentNode.lastChild,1,"previousSibling")==a;},"only-child":function(a){return!jQuery.nth(a.parentNode.lastChild,2,"previousSibling");},parent:function(a){return a.firstChild;},empty:function(a){return!a.firstChild;},contains:function(a,i,m){return(a.textContent||a.innerText||jQuery(a).text()||"").indexOf(m[3])>=0;},visible:function(a){return"hidden"!=a.type&&jQuery.css(a,"display")!="none"&&jQuery.css(a,"visibility")!="hidden";},hidden:function(a){return"hidden"==a.type||jQuery.css(a,"display")=="none"||jQuery.css(a,"visibility")=="hidden";},enabled:function(a){return!a.disabled;},disabled:function(a){return a.disabled;},checked:function(a){return a.checked;},selected:function(a){return a.selected||jQuery.attr(a,"selected");},text:function(a){return"text"==a.type;},radio:function(a){return"radio"==a.type;},checkbox:function(a){return"checkbox"==a.type;},file:function(a){return"file"==a.type;},password:function(a){return"password"==a.type;},submit:function(a){return"submit"==a.type;},image:function(a){return"image"==a.type;},reset:function(a){return"reset"==a.type;},button:function(a){return"button"==a.type||jQuery.nodeName(a,"button");},input:function(a){return/input|select|textarea|button/i.test(a.nodeName);},has:function(a,i,m){return jQuery.find(m[3],a).length;},header:function(a){return/h\d/i.test(a.nodeName);},animated:function(a){return jQuery.grep(jQuery.timers,function(fn){return a==fn.elem;}).length;}}},parse:[/^(\[) *@?([\w-]+) *([!*$^~=]*) *('?"?)(.*?)\4 *\]/,/^(:)([\w-]+)\("?'?(.*?(\(.*?\))?[^(]*?)"?'?\)/,new RegExp("^([:.#]*)("+chars+"+)")],multiFilter:function(expr,elems,not){var old,cur=[];while(expr&&expr!=old){old=expr;var f=jQuery.filter(expr,elems,not);expr=f.t.replace(/^\s*,\s*/,"");cur=not?elems=f.r:jQuery.merge(cur,f.r);}
return cur;},find:function(t,context){if(typeof t!="string")
return[t];if(context&&context.nodeType!=1&&context.nodeType!=9)
return[];context=context||document;var ret=[context],done=[],last,nodeName;while(t&&last!=t){var r=[];last=t;t=jQuery.trim(t);var foundToken=false,re=quickChild,m=re.exec(t);if(m){nodeName=m[1].toUpperCase();for(var i=0;ret[i];i++)
for(var c=ret[i].firstChild;c;c=c.nextSibling)
if(c.nodeType==1&&(nodeName=="*"||c.nodeName.toUpperCase()==nodeName))
r.push(c);ret=r;t=t.replace(re,"");if(t.indexOf(" ")==0)continue;foundToken=true;}else{re=/^([>+~])\s*(\w*)/i;if((m=re.exec(t))!=null){r=[];var merge={};nodeName=m[2].toUpperCase();m=m[1];for(var j=0,rl=ret.length;j<rl;j++){var n=m=="~"||m=="+"?ret[j].nextSibling:ret[j].firstChild;for(;n;n=n.nextSibling)
if(n.nodeType==1){var id=jQuery.data(n);if(m=="~"&&merge[id])break;if(!nodeName||n.nodeName.toUpperCase()==nodeName){if(m=="~")merge[id]=true;r.push(n);}
if(m=="+")break;}}
ret=r;t=jQuery.trim(t.replace(re,""));foundToken=true;}}
if(t&&!foundToken){if(!t.indexOf(",")){if(context==ret[0])ret.shift();done=jQuery.merge(done,ret);r=ret=[context];t=" "+t.substr(1,t.length);}else{var re2=quickID;var m=re2.exec(t);if(m){m=[0,m[2],m[3],m[1]];}else{re2=quickClass;m=re2.exec(t);}
m[2]=m[2].replace(/\\/g,"");var elem=ret[ret.length-1];if(m[1]=="#"&&elem&&elem.getElementById&&!jQuery.isXMLDoc(elem)){var oid=elem.getElementById(m[2]);if((jQuery.browser.msie||jQuery.browser.opera)&&oid&&typeof oid.id=="string"&&oid.id!=m[2])
oid=jQuery('[@id="'+m[2]+'"]',elem)[0];ret=r=oid&&(!m[3]||jQuery.nodeName(oid,m[3]))?[oid]:[];}else{for(var i=0;ret[i];i++){var tag=m[1]=="#"&&m[3]?m[3]:m[1]!=""||m[0]==""?"*":m[2];if(tag=="*"&&ret[i].nodeName.toLowerCase()=="object")
tag="param";r=jQuery.merge(r,ret[i].getElementsByTagName(tag));}
if(m[1]==".")
r=jQuery.classFilter(r,m[2]);if(m[1]=="#"){var tmp=[];for(var i=0;r[i];i++)
if(r[i].getAttribute("id")==m[2]){tmp=[r[i]];break;}
r=tmp;}
ret=r;}
t=t.replace(re2,"");}}
if(t){var val=jQuery.filter(t,r);ret=r=val.r;t=jQuery.trim(val.t);}}
if(t)
ret=[];if(ret&&context==ret[0])
ret.shift();done=jQuery.merge(done,ret);return done;},classFilter:function(r,m,not){m=" "+m+" ";var tmp=[];for(var i=0;r[i];i++){var pass=(" "+r[i].className+" ").indexOf(m)>=0;if(!not&&pass||not&&!pass)
tmp.push(r[i]);}
return tmp;},filter:function(t,r,not){var last;while(t&&t!=last){last=t;var p=jQuery.parse,m;for(var i=0;p[i];i++){m=p[i].exec(t);if(m){t=t.substring(m[0].length);m[2]=m[2].replace(/\\/g,"");break;}}
if(!m)
break;if(m[1]==":"&&m[2]=="not")
r=isSimple.test(m[3])?jQuery.filter(m[3],r,true).r:jQuery(r).not(m[3]);else if(m[1]==".")
r=jQuery.classFilter(r,m[2],not);else if(m[1]=="["){var tmp=[],type=m[3];for(var i=0,rl=r.length;i<rl;i++){var a=r[i],z=a[jQuery.props[m[2]]||m[2]];if(z==null||/href|src|selected/.test(m[2]))
z=jQuery.attr(a,m[2])||'';if((type==""&&!!z||type=="="&&z==m[5]||type=="!="&&z!=m[5]||type=="^="&&z&&!z.indexOf(m[5])||type=="$="&&z.substr(z.length-m[5].length)==m[5]||(type=="*="||type=="~=")&&z.indexOf(m[5])>=0)^not)
tmp.push(a);}
r=tmp;}else if(m[1]==":"&&m[2]=="nth-child"){var merge={},tmp=[],test=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(m[3]=="even"&&"2n"||m[3]=="odd"&&"2n+1"||!/\D/.test(m[3])&&"0n+"+m[3]||m[3]),first=(test[1]+(test[2]||1))-0,last=test[3]-0;for(var i=0,rl=r.length;i<rl;i++){var node=r[i],parentNode=node.parentNode,id=jQuery.data(parentNode);if(!merge[id]){var c=1;for(var n=parentNode.firstChild;n;n=n.nextSibling)
if(n.nodeType==1)
n.nodeIndex=c++;merge[id]=true;}
var add=false;if(first==0){if(node.nodeIndex==last)
add=true;}else if((node.nodeIndex-last)%first==0&&(node.nodeIndex-last)/first>=0)
add=true;if(add^not)
tmp.push(node);}
r=tmp;}else{var fn=jQuery.expr[m[1]];if(typeof fn=="object")
fn=fn[m[2]];if(typeof fn=="string")
fn=eval("false||function(a,i){return "+fn+";}");r=jQuery.grep(r,function(elem,i){return fn(elem,i,m,r);},not);}}
return{r:r,t:t};},dir:function(elem,dir){var matched=[],cur=elem[dir];while(cur&&cur!=document){if(cur.nodeType==1)
matched.push(cur);cur=cur[dir];}
return matched;},nth:function(cur,result,dir,elem){result=result||1;var num=0;for(;cur;cur=cur[dir])
if(cur.nodeType==1&&++num==result)
break;return cur;},sibling:function(n,elem){var r=[];for(;n;n=n.nextSibling){if(n.nodeType==1&&n!=elem)
r.push(n);}
return r;}});jQuery.event={add:function(elem,types,handler,data){if(elem.nodeType==3||elem.nodeType==8)
return;if(jQuery.browser.msie&&elem.setInterval)
elem=window;if(!handler.guid)
handler.guid=this.guid++;if(data!=undefined){var fn=handler;handler=this.proxy(fn,function(){return fn.apply(this,arguments);});handler.data=data;}
var events=jQuery.data(elem,"events")||jQuery.data(elem,"events",{}),handle=jQuery.data(elem,"handle")||jQuery.data(elem,"handle",function(){if(typeof jQuery!="undefined"&&!jQuery.event.triggered)
return jQuery.event.handle.apply(arguments.callee.elem,arguments);});handle.elem=elem;jQuery.each(types.split(/\s+/),function(index,type){var parts=type.split(".");type=parts[0];handler.type=parts[1];var handlers=events[type];if(!handlers){handlers=events[type]={};if(!jQuery.event.special[type]||jQuery.event.special[type].setup.call(elem)===false){if(elem.addEventListener)
elem.addEventListener(type,handle,false);else if(elem.attachEvent)
elem.attachEvent("on"+type,handle);}}
handlers[handler.guid]=handler;jQuery.event.global[type]=true;});elem=null;},guid:1,global:{},remove:function(elem,types,handler){if(elem.nodeType==3||elem.nodeType==8)
return;var events=jQuery.data(elem,"events"),ret,index;if(events){if(types==undefined||(typeof types=="string"&&types.charAt(0)=="."))
for(var type in events)
this.remove(elem,type+(types||""));else{if(types.type){handler=types.handler;types=types.type;}
jQuery.each(types.split(/\s+/),function(index,type){var parts=type.split(".");type=parts[0];if(events[type]){if(handler)
delete events[type][handler.guid];else
for(handler in events[type])
if(!parts[1]||events[type][handler].type==parts[1])
delete events[type][handler];for(ret in events[type])break;if(!ret){if(!jQuery.event.special[type]||jQuery.event.special[type].teardown.call(elem)===false){if(elem.removeEventListener)
elem.removeEventListener(type,jQuery.data(elem,"handle"),false);else if(elem.detachEvent)
elem.detachEvent("on"+type,jQuery.data(elem,"handle"));}
ret=null;delete events[type];}}});}
for(ret in events)break;if(!ret){var handle=jQuery.data(elem,"handle");if(handle)handle.elem=null;jQuery.removeData(elem,"events");jQuery.removeData(elem,"handle");}}},trigger:function(type,data,elem,donative,extra){data=jQuery.makeArray(data);if(type.indexOf("!")>=0){type=type.slice(0,-1);var exclusive=true;}
if(!elem){if(this.global[type])
jQuery("*").add([window,document]).trigger(type,data);}else{if(elem.nodeType==3||elem.nodeType==8)
return undefined;var val,ret,fn=jQuery.isFunction(elem[type]||null),event=!data[0]||!data[0].preventDefault;if(event){data.unshift({type:type,target:elem,preventDefault:function(){},stopPropagation:function(){},timeStamp:now()});data[0][expando]=true;}
data[0].type=type;if(exclusive)
data[0].exclusive=true;var handle=jQuery.data(elem,"handle");if(handle)
val=handle.apply(elem,data);if((!fn||(jQuery.nodeName(elem,'a')&&type=="click"))&&elem["on"+type]&&elem["on"+type].apply(elem,data)===false)
val=false;if(event)
data.shift();if(extra&&jQuery.isFunction(extra)){ret=extra.apply(elem,val==null?data:data.concat(val));if(ret!==undefined)
val=ret;}
if(fn&&donative!==false&&val!==false&&!(jQuery.nodeName(elem,'a')&&type=="click")){this.triggered=true;try{elem[type]();}catch(e){}}
this.triggered=false;}
return val;},handle:function(event){var val,ret,namespace,all,handlers;event=arguments[0]=jQuery.event.fix(event||window.event);namespace=event.type.split(".");event.type=namespace[0];namespace=namespace[1];all=!namespace&&!event.exclusive;handlers=(jQuery.data(this,"events")||{})[event.type];for(var j in handlers){var handler=handlers[j];if(all||handler.type==namespace){event.handler=handler;event.data=handler.data;ret=handler.apply(this,arguments);if(val!==false)
val=ret;if(ret===false){event.preventDefault();event.stopPropagation();}}}
return val;},fix:function(event){if(event[expando]==true)
return event;var originalEvent=event;event={originalEvent:originalEvent};var props="altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode metaKey newValue originalTarget pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target timeStamp toElement type view wheelDelta which".split(" ");for(var i=props.length;i;i--)
event[props[i]]=originalEvent[props[i]];event[expando]=true;event.preventDefault=function(){if(originalEvent.preventDefault)
originalEvent.preventDefault();originalEvent.returnValue=false;};event.stopPropagation=function(){if(originalEvent.stopPropagation)
originalEvent.stopPropagation();originalEvent.cancelBubble=true;};event.timeStamp=event.timeStamp||now();if(!event.target)
event.target=event.srcElement||document;if(event.target.nodeType==3)
event.target=event.target.parentNode;if(!event.relatedTarget&&event.fromElement)
event.relatedTarget=event.fromElement==event.target?event.toElement:event.fromElement;if(event.pageX==null&&event.clientX!=null){var doc=document.documentElement,body=document.body;event.pageX=event.clientX+(doc&&doc.scrollLeft||body&&body.scrollLeft||0)-(doc.clientLeft||0);event.pageY=event.clientY+(doc&&doc.scrollTop||body&&body.scrollTop||0)-(doc.clientTop||0);}
if(!event.which&&((event.charCode||event.charCode===0)?event.charCode:event.keyCode))
event.which=event.charCode||event.keyCode;if(!event.metaKey&&event.ctrlKey)
event.metaKey=event.ctrlKey;if(!event.which&&event.button)
event.which=(event.button&1?1:(event.button&2?3:(event.button&4?2:0)));return event;},proxy:function(fn,proxy){proxy.guid=fn.guid=fn.guid||proxy.guid||this.guid++;return proxy;},special:{ready:{setup:function(){bindReady();return;},teardown:function(){return;}},mouseenter:{setup:function(){if(jQuery.browser.msie)return false;jQuery(this).bind("mouseover",jQuery.event.special.mouseenter.handler);return true;},teardown:function(){if(jQuery.browser.msie)return false;jQuery(this).unbind("mouseover",jQuery.event.special.mouseenter.handler);return true;},handler:function(event){if(withinElement(event,this))return true;event.type="mouseenter";return jQuery.event.handle.apply(this,arguments);}},mouseleave:{setup:function(){if(jQuery.browser.msie)return false;jQuery(this).bind("mouseout",jQuery.event.special.mouseleave.handler);return true;},teardown:function(){if(jQuery.browser.msie)return false;jQuery(this).unbind("mouseout",jQuery.event.special.mouseleave.handler);return true;},handler:function(event){if(withinElement(event,this))return true;event.type="mouseleave";return jQuery.event.handle.apply(this,arguments);}}}};jQuery.fn.extend({bind:function(type,data,fn){return type=="unload"?this.one(type,data,fn):this.each(function(){jQuery.event.add(this,type,fn||data,fn&&data);});},one:function(type,data,fn){var one=jQuery.event.proxy(fn||data,function(event){jQuery(this).unbind(event,one);return(fn||data).apply(this,arguments);});return this.each(function(){jQuery.event.add(this,type,one,fn&&data);});},unbind:function(type,fn){return this.each(function(){jQuery.event.remove(this,type,fn);});},trigger:function(type,data,fn){return this.each(function(){jQuery.event.trigger(type,data,this,true,fn);});},triggerHandler:function(type,data,fn){return this[0]&&jQuery.event.trigger(type,data,this[0],false,fn);},toggle:function(fn){var args=arguments,i=1;while(i<args.length)
jQuery.event.proxy(fn,args[i++]);return this.click(jQuery.event.proxy(fn,function(event){this.lastToggle=(this.lastToggle||0)%i;event.preventDefault();return args[this.lastToggle++].apply(this,arguments)||false;}));},hover:function(fnOver,fnOut){return this.bind('mouseenter',fnOver).bind('mouseleave',fnOut);},ready:function(fn){bindReady();if(jQuery.isReady)
fn.call(document,jQuery);else
jQuery.readyList.push(function(){return fn.call(this,jQuery);});return this;}});jQuery.extend({isReady:false,readyList:[],ready:function(){if(!jQuery.isReady){jQuery.isReady=true;if(jQuery.readyList){jQuery.each(jQuery.readyList,function(){this.call(document);});jQuery.readyList=null;}
jQuery(document).triggerHandler("ready");}}});var readyBound=false;function bindReady(){if(readyBound)return;readyBound=true;if(document.addEventListener&&!jQuery.browser.opera)
document.addEventListener("DOMContentLoaded",jQuery.ready,false);if(jQuery.browser.msie&&window==top)(function(){if(jQuery.isReady)return;try{document.documentElement.doScroll("left");}catch(error){setTimeout(arguments.callee,0);return;}
jQuery.ready();})();if(jQuery.browser.opera)
document.addEventListener("DOMContentLoaded",function(){if(jQuery.isReady)return;for(var i=0;i<document.styleSheets.length;i++)
if(document.styleSheets[i].disabled){setTimeout(arguments.callee,0);return;}
jQuery.ready();},false);if(jQuery.browser.safari){var numStyles;(function(){if(jQuery.isReady)return;if(document.readyState!="loaded"&&document.readyState!="complete"){setTimeout(arguments.callee,0);return;}
if(numStyles===undefined)
numStyles=jQuery("style, link[rel=stylesheet]").length;if(document.styleSheets.length!=numStyles){setTimeout(arguments.callee,0);return;}
jQuery.ready();})();}
jQuery.event.add(window,"load",jQuery.ready);}
jQuery.each(("blur,focus,load,resize,scroll,unload,click,dblclick,"+"mousedown,mouseup,mousemove,mouseover,mouseout,change,select,"+"submit,keydown,keypress,keyup,error").split(","),function(i,name){jQuery.fn[name]=function(fn){return fn?this.bind(name,fn):this.trigger(name);};});var withinElement=function(event,elem){var parent=event.relatedTarget;while(parent&&parent!=elem)try{parent=parent.parentNode;}catch(error){parent=elem;}
return parent==elem;};jQuery(window).bind("unload",function(){jQuery("*").add(document).unbind();});jQuery.fn.extend({_load:jQuery.fn.load,load:function(url,params,callback){if(typeof url!='string')
return this._load(url);var off=url.indexOf(" ");if(off>=0){var selector=url.slice(off,url.length);url=url.slice(0,off);}
callback=callback||function(){};var type="GET";if(params)
if(jQuery.isFunction(params)){callback=params;params=null;}else{params=jQuery.param(params);type="POST";}
var self=this;jQuery.ajax({url:url,type:type,dataType:"html",data:params,complete:function(res,status){if(status=="success"||status=="notmodified")
self.html(selector?jQuery("<div/>").append(res.responseText.replace(/<script(.|\s)*?\/script>/g,"")).find(selector):res.responseText);self.each(callback,[res.responseText,status,res]);}});return this;},serialize:function(){return jQuery.param(this.serializeArray());},serializeArray:function(){return this.map(function(){return jQuery.nodeName(this,"form")?jQuery.makeArray(this.elements):this;}).filter(function(){return this.name&&!this.disabled&&(this.checked||/select|textarea/i.test(this.nodeName)||/text|hidden|password/i.test(this.type));}).map(function(i,elem){var val=jQuery(this).val();return val==null?null:val.constructor==Array?jQuery.map(val,function(val,i){return{name:elem.name,value:val};}):{name:elem.name,value:val};}).get();}});jQuery.each("ajaxStart,ajaxStop,ajaxComplete,ajaxError,ajaxSuccess,ajaxSend".split(","),function(i,o){jQuery.fn[o]=function(f){return this.bind(o,f);};});var jsc=now();jQuery.extend({get:function(url,data,callback,type){if(jQuery.isFunction(data)){callback=data;data=null;}
return jQuery.ajax({type:"GET",url:url,data:data,success:callback,dataType:type});},getScript:function(url,callback){return jQuery.get(url,null,callback,"script");},getJSON:function(url,data,callback){return jQuery.get(url,data,callback,"json");},post:function(url,data,callback,type){if(jQuery.isFunction(data)){callback=data;data={};}
return jQuery.ajax({type:"POST",url:url,data:data,success:callback,dataType:type});},ajaxSetup:function(settings){jQuery.extend(jQuery.ajaxSettings,settings);},ajaxSettings:{url:location.href,global:true,type:"GET",timeout:0,contentType:"application/x-www-form-urlencoded",processData:true,async:true,data:null,username:null,password:null,accepts:{xml:"application/xml, text/xml",html:"text/html",script:"text/javascript, application/javascript",json:"application/json, text/javascript",text:"text/plain",_default:"*/*"}},lastModified:{},ajax:function(s){s=jQuery.extend(true,s,jQuery.extend(true,{},jQuery.ajaxSettings,s));var jsonp,jsre=/=\?(&|$)/g,status,data,type=s.type.toUpperCase();if(s.data&&s.processData&&typeof s.data!="string")
s.data=jQuery.param(s.data);if(s.dataType=="jsonp"){if(type=="GET"){if(!s.url.match(jsre))
s.url+=(s.url.match(/\?/)?"&":"?")+(s.jsonp||"callback")+"=?";}else if(!s.data||!s.data.match(jsre))
s.data=(s.data?s.data+"&":"")+(s.jsonp||"callback")+"=?";s.dataType="json";}
if(s.dataType=="json"&&(s.data&&s.data.match(jsre)||s.url.match(jsre))){jsonp="jsonp"+jsc++;if(s.data)
s.data=(s.data+"").replace(jsre,"="+jsonp+"$1");s.url=s.url.replace(jsre,"="+jsonp+"$1");s.dataType="script";window[jsonp]=function(tmp){data=tmp;success();complete();window[jsonp]=undefined;try{delete window[jsonp];}catch(e){}
if(head)
head.removeChild(script);};}
if(s.dataType=="script"&&s.cache==null)
s.cache=false;if(s.cache===false&&type=="GET"){var ts=now();var ret=s.url.replace(/(\?|&)_=.*?(&|$)/,"$1_="+ts+"$2");s.url=ret+((ret==s.url)?(s.url.match(/\?/)?"&":"?")+"_="+ts:"");}
if(s.data&&type=="GET"){s.url+=(s.url.match(/\?/)?"&":"?")+s.data;s.data=null;}
if(s.global&&!jQuery.active++)
jQuery.event.trigger("ajaxStart");var remote=/^(?:\w+:)?\/\/([^\/?#]+)/;if(s.dataType=="script"&&type=="GET"&&remote.test(s.url)&&remote.exec(s.url)[1]!=location.host){var head=document.getElementsByTagName("head")[0];var script=document.createElement("script");script.src=s.url;if(s.scriptCharset)
script.charset=s.scriptCharset;if(!jsonp){var done=false;script.onload=script.onreadystatechange=function(){if(!done&&(!this.readyState||this.readyState=="loaded"||this.readyState=="complete")){done=true;success();complete();head.removeChild(script);}};}
head.appendChild(script);return undefined;}
var requestDone=false;var xhr=window.ActiveXObject?new ActiveXObject("Microsoft.XMLHTTP"):new XMLHttpRequest();if(s.username)
xhr.open(type,s.url,s.async,s.username,s.password);else
xhr.open(type,s.url,s.async);try{if(s.data)
xhr.setRequestHeader("Content-Type",s.contentType);if(s.ifModified)
xhr.setRequestHeader("If-Modified-Since",jQuery.lastModified[s.url]||"Thu, 01 Jan 1970 00:00:00 GMT");xhr.setRequestHeader("X-Requested-With","XMLHttpRequest");xhr.setRequestHeader("Accept",s.dataType&&s.accepts[s.dataType]?s.accepts[s.dataType]+", */*":s.accepts._default);}catch(e){}
if(s.beforeSend&&s.beforeSend(xhr,s)===false){s.global&&jQuery.active--;xhr.abort();return false;}
if(s.global)
jQuery.event.trigger("ajaxSend",[xhr,s]);var onreadystatechange=function(isTimeout){if(!requestDone&&xhr&&(xhr.readyState==4||isTimeout=="timeout")){requestDone=true;if(ival){clearInterval(ival);ival=null;}
status=isTimeout=="timeout"&&"timeout"||!jQuery.httpSuccess(xhr)&&"error"||s.ifModified&&jQuery.httpNotModified(xhr,s.url)&&"notmodified"||"success";if(status=="success"){try{data=jQuery.httpData(xhr,s.dataType,s.dataFilter);}catch(e){status="parsererror";}}
if(status=="success"){var modRes;try{modRes=xhr.getResponseHeader("Last-Modified");}catch(e){}
if(s.ifModified&&modRes)
jQuery.lastModified[s.url]=modRes;if(!jsonp)
success();}else
jQuery.handleError(s,xhr,status);complete();if(s.async)
xhr=null;}};if(s.async){var ival=setInterval(onreadystatechange,13);if(s.timeout>0)
setTimeout(function(){if(xhr){xhr.abort();if(!requestDone)
onreadystatechange("timeout");}},s.timeout);}
try{xhr.send(s.data);}catch(e){jQuery.handleError(s,xhr,null,e);}
if(!s.async)
onreadystatechange();function success(){if(s.success)
s.success(data,status);if(s.global)
jQuery.event.trigger("ajaxSuccess",[xhr,s]);}
function complete(){if(s.complete)
s.complete(xhr,status);if(s.global)
jQuery.event.trigger("ajaxComplete",[xhr,s]);if(s.global&&!--jQuery.active)
jQuery.event.trigger("ajaxStop");}
return xhr;},handleError:function(s,xhr,status,e){if(s.error)s.error(xhr,status,e);if(s.global)
jQuery.event.trigger("ajaxError",[xhr,s,e]);},active:0,httpSuccess:function(xhr){try{return!xhr.status&&location.protocol=="file:"||(xhr.status>=200&&xhr.status<300)||xhr.status==304||xhr.status==1223||jQuery.browser.safari&&xhr.status==undefined;}catch(e){}
return false;},httpNotModified:function(xhr,url){try{var xhrRes=xhr.getResponseHeader("Last-Modified");return xhr.status==304||xhrRes==jQuery.lastModified[url]||jQuery.browser.safari&&xhr.status==undefined;}catch(e){}
return false;},httpData:function(xhr,type,filter){var ct=xhr.getResponseHeader("content-type"),xml=type=="xml"||!type&&ct&&ct.indexOf("xml")>=0,data=xml?xhr.responseXML:xhr.responseText;if(xml&&data.documentElement.tagName=="parsererror")
throw"parsererror";if(filter)
data=filter(data,type);if(type=="script")
jQuery.globalEval(data);if(type=="json")
data=eval("("+data+")");return data;},param:function(a){var s=[];if(a.constructor==Array||a.jquery)
jQuery.each(a,function(){s.push(encodeURIComponent(this.name)+"="+encodeURIComponent(this.value));});else
for(var j in a)
if(a[j]&&a[j].constructor==Array)
jQuery.each(a[j],function(){s.push(encodeURIComponent(j)+"="+encodeURIComponent(this));});else
s.push(encodeURIComponent(j)+"="+encodeURIComponent(jQuery.isFunction(a[j])?a[j]():a[j]));return s.join("&").replace(/%20/g,"+");}});jQuery.fn.extend({show:function(speed,callback){return speed?this.animate({height:"show",width:"show",opacity:"show"},speed,callback):this.filter(":hidden").each(function(){this.style.display=this.oldblock||"";if(jQuery.css(this,"display")=="none"){var elem=jQuery("<"+this.tagName+" />").appendTo("body");this.style.display=elem.css("display");if(this.style.display=="none")
this.style.display="block";elem.remove();}}).end();},hide:function(speed,callback){return speed?this.animate({height:"hide",width:"hide",opacity:"hide"},speed,callback):this.filter(":visible").each(function(){this.oldblock=this.oldblock||jQuery.css(this,"display");this.style.display="none";}).end();},_toggle:jQuery.fn.toggle,toggle:function(fn,fn2){return jQuery.isFunction(fn)&&jQuery.isFunction(fn2)?this._toggle.apply(this,arguments):fn?this.animate({height:"toggle",width:"toggle",opacity:"toggle"},fn,fn2):this.each(function(){jQuery(this)[jQuery(this).is(":hidden")?"show":"hide"]();});},slideDown:function(speed,callback){return this.animate({height:"show"},speed,callback);},slideUp:function(speed,callback){return this.animate({height:"hide"},speed,callback);},slideToggle:function(speed,callback){return this.animate({height:"toggle"},speed,callback);},fadeIn:function(speed,callback){return this.animate({opacity:"show"},speed,callback);},fadeOut:function(speed,callback){return this.animate({opacity:"hide"},speed,callback);},fadeTo:function(speed,to,callback){return this.animate({opacity:to},speed,callback);},animate:function(prop,speed,easing,callback){var optall=jQuery.speed(speed,easing,callback);return this[optall.queue===false?"each":"queue"](function(){if(this.nodeType!=1)
return false;var opt=jQuery.extend({},optall),p,hidden=jQuery(this).is(":hidden"),self=this;for(p in prop){if(prop[p]=="hide"&&hidden||prop[p]=="show"&&!hidden)
return opt.complete.call(this);if(p=="height"||p=="width"){opt.display=jQuery.css(this,"display");opt.overflow=this.style.overflow;}}
if(opt.overflow!=null)
this.style.overflow="hidden";opt.curAnim=jQuery.extend({},prop);jQuery.each(prop,function(name,val){var e=new jQuery.fx(self,opt,name);if(/toggle|show|hide/.test(val))
e[val=="toggle"?hidden?"show":"hide":val](prop);else{var parts=val.toString().match(/^([+-]=)?([\d+-.]+)(.*)$/),start=e.cur(true)||0;if(parts){var end=parseFloat(parts[2]),unit=parts[3]||"px";if(unit!="px"){self.style[name]=(end||1)+unit;start=((end||1)/e.cur(true))*start;self.style[name]=start+unit;}
if(parts[1])
end=((parts[1]=="-="?-1:1)*end)+start;e.custom(start,end,unit);}else
e.custom(start,val,"");}});return true;});},queue:function(type,fn){if(jQuery.isFunction(type)||(type&&type.constructor==Array)){fn=type;type="fx";}
if(!type||(typeof type=="string"&&!fn))
return queue(this[0],type);return this.each(function(){if(fn.constructor==Array)
queue(this,type,fn);else{queue(this,type).push(fn);if(queue(this,type).length==1)
fn.call(this);}});},stop:function(clearQueue,gotoEnd){var timers=jQuery.timers;if(clearQueue)
this.queue([]);this.each(function(){for(var i=timers.length-1;i>=0;i--)
if(timers[i].elem==this){if(gotoEnd)
timers[i](true);timers.splice(i,1);}});if(!gotoEnd)
this.dequeue();return this;}});var queue=function(elem,type,array){if(elem){type=type||"fx";var q=jQuery.data(elem,type+"queue");if(!q||array)
q=jQuery.data(elem,type+"queue",jQuery.makeArray(array));}
return q;};jQuery.fn.dequeue=function(type){type=type||"fx";return this.each(function(){var q=queue(this,type);q.shift();if(q.length)
q[0].call(this);});};jQuery.extend({speed:function(speed,easing,fn){var opt=speed&&speed.constructor==Object?speed:{complete:fn||!fn&&easing||jQuery.isFunction(speed)&&speed,duration:speed,easing:fn&&easing||easing&&easing.constructor!=Function&&easing};opt.duration=(opt.duration&&opt.duration.constructor==Number?opt.duration:jQuery.fx.speeds[opt.duration])||jQuery.fx.speeds.def;opt.old=opt.complete;opt.complete=function(){if(opt.queue!==false)
jQuery(this).dequeue();if(jQuery.isFunction(opt.old))
opt.old.call(this);};return opt;},easing:{linear:function(p,n,firstNum,diff){return firstNum+diff*p;},swing:function(p,n,firstNum,diff){return((-Math.cos(p*Math.PI)/2)+0.5)*diff+firstNum;}},timers:[],timerId:null,fx:function(elem,options,prop){this.options=options;this.elem=elem;this.prop=prop;if(!options.orig)
options.orig={};}});jQuery.fx.prototype={update:function(){if(this.options.step)
this.options.step.call(this.elem,this.now,this);(jQuery.fx.step[this.prop]||jQuery.fx.step._default)(this);if(this.prop=="height"||this.prop=="width")
this.elem.style.display="block";},cur:function(force){if(this.elem[this.prop]!=null&&this.elem.style[this.prop]==null)
return this.elem[this.prop];var r=parseFloat(jQuery.css(this.elem,this.prop,force));return r&&r>-10000?r:parseFloat(jQuery.curCSS(this.elem,this.prop))||0;},custom:function(from,to,unit){this.startTime=now();this.start=from;this.end=to;this.unit=unit||this.unit||"px";this.now=this.start;this.pos=this.state=0;this.update();var self=this;function t(gotoEnd){return self.step(gotoEnd);}
t.elem=this.elem;jQuery.timers.push(t);if(jQuery.timerId==null){jQuery.timerId=setInterval(function(){var timers=jQuery.timers;for(var i=0;i<timers.length;i++)
if(!timers[i]())
timers.splice(i--,1);if(!timers.length){clearInterval(jQuery.timerId);jQuery.timerId=null;}},13);}},show:function(){this.options.orig[this.prop]=jQuery.attr(this.elem.style,this.prop);this.options.show=true;this.custom(0,this.cur());if(this.prop=="width"||this.prop=="height")
this.elem.style[this.prop]="1px";jQuery(this.elem).show();},hide:function(){this.options.orig[this.prop]=jQuery.attr(this.elem.style,this.prop);this.options.hide=true;this.custom(this.cur(),0);},step:function(gotoEnd){var t=now();if(gotoEnd||t>this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;var done=true;for(var i in this.options.curAnim)
if(this.options.curAnim[i]!==true)
done=false;if(done){if(this.options.display!=null){this.elem.style.overflow=this.options.overflow;this.elem.style.display=this.options.display;if(jQuery.css(this.elem,"display")=="none")
this.elem.style.display="block";}
if(this.options.hide)
this.elem.style.display="none";if(this.options.hide||this.options.show)
for(var p in this.options.curAnim)
jQuery.attr(this.elem.style,p,this.options.orig[p]);}
if(done)
this.options.complete.call(this.elem);return false;}else{var n=t-this.startTime;this.state=n/this.options.duration;this.pos=jQuery.easing[this.options.easing||(jQuery.easing.swing?"swing":"linear")](this.state,n,0,1,this.options.duration);this.now=this.start+((this.end-this.start)*this.pos);this.update();}
return true;}};jQuery.extend(jQuery.fx,{speeds:{slow:600,fast:200,def:400},step:{scrollLeft:function(fx){fx.elem.scrollLeft=fx.now;},scrollTop:function(fx){fx.elem.scrollTop=fx.now;},opacity:function(fx){jQuery.attr(fx.elem.style,"opacity",fx.now);},_default:function(fx){fx.elem.style[fx.prop]=fx.now+fx.unit;}}});jQuery.fn.offset=function(){var left=0,top=0,elem=this[0],results;if(elem)with(jQuery.browser){var parent=elem.parentNode,offsetChild=elem,offsetParent=elem.offsetParent,doc=elem.ownerDocument,safari2=safari&&parseInt(version)<522&&!/adobeair/i.test(userAgent),css=jQuery.curCSS,fixed=css(elem,"position")=="fixed";if(elem.getBoundingClientRect){var box=elem.getBoundingClientRect();add(box.left+Math.max(doc.documentElement.scrollLeft,doc.body.scrollLeft),box.top+Math.max(doc.documentElement.scrollTop,doc.body.scrollTop));add(-doc.documentElement.clientLeft,-doc.documentElement.clientTop);}else{add(elem.offsetLeft,elem.offsetTop);while(offsetParent){add(offsetParent.offsetLeft,offsetParent.offsetTop);if(mozilla&&!/^t(able|d|h)$/i.test(offsetParent.tagName)||safari&&!safari2)
border(offsetParent);if(!fixed&&css(offsetParent,"position")=="fixed")
fixed=true;offsetChild=/^body$/i.test(offsetParent.tagName)?offsetChild:offsetParent;offsetParent=offsetParent.offsetParent;}
while(parent&&parent.tagName&&!/^body|html$/i.test(parent.tagName)){if(!/^inline|table.*$/i.test(css(parent,"display")))
add(-parent.scrollLeft,-parent.scrollTop);if(mozilla&&css(parent,"overflow")!="visible")
border(parent);parent=parent.parentNode;}
if((safari2&&(fixed||css(offsetChild,"position")=="absolute"))||(mozilla&&css(offsetChild,"position")!="absolute"))
add(-doc.body.offsetLeft,-doc.body.offsetTop);if(fixed)
add(Math.max(doc.documentElement.scrollLeft,doc.body.scrollLeft),Math.max(doc.documentElement.scrollTop,doc.body.scrollTop));}
results={top:top,left:left};}
function border(elem){add(jQuery.curCSS(elem,"borderLeftWidth",true),jQuery.curCSS(elem,"borderTopWidth",true));}
function add(l,t){left+=parseInt(l,10)||0;top+=parseInt(t,10)||0;}
return results;};jQuery.fn.extend({position:function(){var left=0,top=0,results;if(this[0]){var offsetParent=this.offsetParent(),offset=this.offset(),parentOffset=/^body|html$/i.test(offsetParent[0].tagName)?{top:0,left:0}:offsetParent.offset();offset.top-=num(this,'marginTop');offset.left-=num(this,'marginLeft');parentOffset.top+=num(offsetParent,'borderTopWidth');parentOffset.left+=num(offsetParent,'borderLeftWidth');results={top:offset.top-parentOffset.top,left:offset.left-parentOffset.left};}
return results;},offsetParent:function(){var offsetParent=this[0].offsetParent;while(offsetParent&&(!/^body|html$/i.test(offsetParent.tagName)&&jQuery.css(offsetParent,'position')=='static'))
offsetParent=offsetParent.offsetParent;return jQuery(offsetParent);}});jQuery.each(['Left','Top'],function(i,name){var method='scroll'+name;jQuery.fn[method]=function(val){if(!this[0])return;return val!=undefined?this.each(function(){this==window||this==document?window.scrollTo(!i?val:jQuery(window).scrollLeft(),i?val:jQuery(window).scrollTop()):this[method]=val;}):this[0]==window||this[0]==document?self[i?'pageYOffset':'pageXOffset']||jQuery.boxModel&&document.documentElement[method]||document.body[method]:this[0][method];};});jQuery.each(["Height","Width"],function(i,name){var tl=i?"Left":"Top",br=i?"Right":"Bottom";jQuery.fn["inner"+name]=function(){return this[name.toLowerCase()]()+
num(this,"padding"+tl)+
num(this,"padding"+br);};jQuery.fn["outer"+name]=function(margin){return this["inner"+name]()+
num(this,"border"+tl+"Width")+
num(this,"border"+br+"Width")+
(margin?num(this,"margin"+tl)+num(this,"margin"+br):0);};});})();(function(){var $$=$.errors={log:[],options:{index:"index.php",debug:true},init:function(options){$$.options=$.extend({},$$.options,options||{});if(!$$.options.debug)window.onerror=function(errmsg,errfile,errline){$$._onerror(errmsg,errfile,errline);return true;};else window.onerror=null;},trigger:function(errno,errmsg){if(!errno)errno=$$.UNKNOWN;if(errno==$$.UNKNOWN||!errmsg)errmsg="In the site has occurred error";if(errno==$$.WARNING||errno==$$.NOTICE){var s="Warning!\n\n";s+=errmsg+"\n\n";}else{var s="ERROR!\n\n";s+="[ "+errmsg+" ]\n\n";if(errno==$$.FATAL)s+="Attention - the site will reload.\n";else s+="Attention - the site may work incorrectly.\n";}
alert(s);$$.log.push({errno:errno,errmsg:errmsg});if(errno==$$.FATAL)top.window.location=$$.options.index;},_onerror:function(errmsg,errfile,errline){var s='"'+errmsg+'" in file "'+errfile+'" [line:'+errline+']';$$.trigger($$.PARSE,s)}};$$.UNKNOWN=1;$$.PARSE=2;$$.ERROR=4;$$.FATAL=8;$$.WARNING=16;$$.NOTICE=32;$$.init();})();(function(){$.min=function(){var r=Infinity;for(var i=0;i<arguments.length;i++){var n=arguments[i];if(n&&n<r)r=n;}
return r;}
$.max=function(){var r=-Infinity;for(var i=0;i<arguments.length;i++){var n=arguments[i];if(n&&n>r)r=n;}
return r;}
$.debugalert=function(o){var s="";if(typeof o=="object"){try{for(var i in o){try{s+=i+" : "+o[i]+"\n";}catch(e){s+=i+" : **error**\n";}}}catch(e){s+="\n**error**\n";}}else s=o;alert(s);}
$._trim=$.trim;$.trim_re=new RegExp('^[ \t\n\r]*|[ \t\n\r]*$',"g");$.ltrim_re=new RegExp('^[ \t\n\r]*',"g");$.rtrim_re=new RegExp('[ \t\n\r]*$',"g");$.trim=function(s,chars){s=s||"";if(!chars)return s.replace($.trim_re,"");return $.rtrim($.ltrim(s,chars),chars);}
$.ltrim=function(s,chars){var re;s=s||"";if(!chars)re=$.ltrim_re;else re=new RegExp('^['+chars+']*',"g");return s.replace(re,"");}
$.rtrim=function(s,chars){var re;s=s||"";if(!chars)re=$.rtrim_re;else re=new RegExp('['+chars+']*$',"g");return s.replace(re,"");}
$.addslashes=function(s){s=s||"";s=s.replace(/\'/g,'\\\'');s=s.replace(/\"/g,'\\"');s=s.replace(/\0/g,'\\0');return s;}
$.stripslashes=function(str){s=s||"";s=s.replace(/\\'/g,'\'');s=s.replace(/\\"/g,'"');s=s.replace(/\\0/g,'\0');return s;}
$.dec2hex=function(dec){var h="0123456789ABCDEF";if(dec==null)return"00";dec=parseInt(dec);if(dec==0||isNaN(dec))return"00";dec=Math.max(0,dec);dec=Math.min(dec,255);return h.charAt((dec-dec%16)/16)+h.charAt(dec%16);};$.color2hex=function(color){if(!color){return false;}
if(color.search('rgb')>-1){color=color.substr(4,color.length-5).split(', ');color=$.dec2hex(color[0])+$.dec2hex(color[1])+$.dec2hex(color[2]);}
color=color.replace('#','');if(color.length<6){color=color.substr(0,1)+color.substr(0,1)+color.substr(1,1)+color.substr(1,1)+color.substr(2,1)+color.substr(2,1);}
return color;};$.Utf8_encode=function(str){str=str.replace(/\r\n/g,"\n");var utftext="";for(var n=0;n<str.length;n++){var c=str.charCodeAt(n);if(c<128){utftext+=String.fromCharCode(c);}else if((c>127)&&(c<2048)){utftext+=String.fromCharCode((c>>6)|192);utftext+=String.fromCharCode((c&63)|128);}else{utftext+=String.fromCharCode((c>>12)|224);utftext+=String.fromCharCode(((c>>6)&63)|128);utftext+=String.fromCharCode((c&63)|128);}}
return utftext;};$.Utf8_decode=function(utftext){var str="";var i=0;var c=c1=c2=0;while(i<utftext.length){c=utftext.charCodeAt(i);if(c<128){str+=String.fromCharCode(c);i++;}else if((c>191)&&(c<224)){c2=utftext.charCodeAt(i+1);str+=String.fromCharCode(((c&31)<<6)|(c2&63));i+=2;}else{c2=utftext.charCodeAt(i+1);c3=utftext.charCodeAt(i+2);str+=String.fromCharCode(((c&15)<<12)|((c2&63)<<6)|(c3&63));i+=3;}}
return str;};$.fn.extend({swapClass:function(c1,c2){return this.each(function(){if($(this).is("."+c1))
$(this).removeClass(c1).addClass(c2);else if($(this).is("."+c2))
$(this).removeClass(c2).addClass(c1);});},replaceClass:function(c1,c2){return this.each(function(){if($(this).is("."+c1))
$(this).removeClass(c1).addClass(c2);});},setClass:function(c){return this.each(function(){this.className=c;});}});})();(function(){var $$=$.Timemeter={_arr:[],push:function(){$$._arr.push((new Date()).getTime());},pop:function(){if($$._arr.length==0)return 0;return(new Date()).getTime()-$$._arr.pop();}}})();(function(){var $b=$.browser;$.extend($b,{id:"Unknown",name:"Unknown",langid:"en",version:0.0,url:"about:blank"});var $p=$.platform={id:"Unknown",name:"Unknown",url:"about:blank"};var ua=navigator.userAgent,ve=navigator.vendor,pl=navigator.platform;var bdata=[{url:"http://www.microsoft.com/windows/ie/",id:'msie',name:'Internet Explorer',browser:function(){return/msie/i.test(ua)&&!/opera/i.test(ua)},version:function(){return ua.match(/MSIE (\d+(?:\.\d+)+(?:b\d*)?)/)}},{url:"http://www.opera.com/",name:'Opera',browser:function(){return/opera/i.test(ua)}},{url:"http://www.mozilla.org/",name:"Mozilla",browser:function(){return/mozilla/i.test(ua)&&!/(compatible|webkit)/i.test(ua)}},{url:"http://www.mozilla.com/firefox/",name:'Firefox',browser:function(){return/Firefox/i.test(ua)}},{url:"http://www.apple.com/safari/",name:"Safari",browser:function(){return/Apple/i.test(ve)}},{url:"http://www.icab.de/",name:"iCab",browser:function(){return/iCab/i.test(ve)}},{url:"http://www.konqueror.org/",name:"Konqueror",browser:function(){return/KDE/i.test(ve)}},{url:"http://downloads.channel.aol.com/browser/",id:"aol",name:"AOL Explorer",browser:function(){return/America Online Browser/i.test(ua)},version:function(){return ua.match(/rev(\d+(?:\.\d+)+)/)}},{url:"http://www.flock.com/",name:"Flock",browser:function(){return/Flock/i.test(ua)}},{url:"http://www.caminobrowser.org/",name:"Camino",browser:function(){return/Camino/i.test(ve)}},{url:"http://browser.netscape.com/",name:"Netscape",browser:function(){return/Netscape/i.test(ua)}}];var odata=[{url:"http://www.microsoft.com/windows/",id:"win",name:"Windows",OS:function(){return/Win/i.test(pl)}},{url:"http://www.apple.com/macos/",name:"Mac",OS:function(){return/Mac/i.test(pl)}},{url:"http://www.linux.org/",name:'Linux',OS:function(){return/Linux/i.test(pl)}}];var lang=navigator.language||navigator.userLanguage||"en";lang=lang.match(/([a-z]{2})/);if(lang)$b.langid=lang[1];for(var i=0;i<bdata.length;i++){var id=bdata[i].id?bdata[i].id:bdata[i].name.toLowerCase();$b[id]=false;if(bdata[i].browser()){$b[id]=true;$b.name=bdata[i].name;$b.id=id;$b.url=bdata[i].url;var ver;if(bdata[i].version&&(ver=bdata[i].version())){ver=ver[1];}else{var re=new RegExp(bdata[i].name+'(?:\\s|\\/)(\\d+(?:\\.\\d+)+(?:(?:a|b)\\d*)?)');ver=ua.match(re);if(ver)ver=ver[1]}
if(ver)$b.version=parseFloat(ver);}}
$b.msie6=($.browser.msie&&$.browser.version<7.0);for(var i=0;i<odata.length;i++){var id=odata[i].id?odata[i].id:odata[i].name.toLowerCase();$p[id]=false;if(odata[i].OS()){$p[id]=true;$p.name=odata[i].name;$p.id=id;$p.url=odata[i].url;}}})();(function(){var $$=$.metadata=$.metaData={type:"class",name:"data",single:'metaData',setType:function(type,name,single){$$.type=type;$$.name=name;if(single)$$.single=single;},get:function(elem,opts){var settings=$.extend({},{type:$$.type,name:$$.name,single:$$.single},opts);return $(elem).metaData(settings.type,settings.name,settings.single);}};$.fn.extend({metadata:function(opts){return $.metadata.get(this[0],opts);},metaData:function(index,type,name,single){var _getData=function(s){var sp=s.indexOf("{");var ep=s.lastIndexOf("}");return(sp>=0&&ep>=0)?s.substr(sp,ep-sp+1):"";};if(typeof(index)=="string"){single=name;name=type;type=index;index=0;}
index=index||0;type=type||$$.type;name=name||$$.name;single=single||$$.single;this.each(function(){if(this[single])return;var m,data="";if(type=="class"){data=_getData(this.className);}else if(type=="elem"){m=$($(name,this)[0]).html();if(m)data=_getData(m);}else{m=$(this).attr(name);if(m)data=m;}
if(data.charAt(0)!="{")data="{"+data+"}";this[single]=$.parseJSON(data,{});});return this[index][single];}});})();(function(){var $$=$.URL={getParam:function(pname,url){url=(url||window.location).toString();url=unescape(url.split("#")[0]);var sret=null,n;if((n=url.indexOf("?"))>-1){var ap=(url.substr(n+1)).split("&");for(var i=0;i<ap.length;i++){if(ap[i].substr(0,pname.length)==pname){var a=ap[i].split("=");if(a.length==2)sret=a[1];else sret="";break;}}}
return sret;},addParam:function(url,params){var p=[];for(var i in params){p.push({name:i,value:params[i]});}
var a=url.toString().split("#");a[1]=(a.length==2)?"#"+a[1]:"";return a[0]+((a[0].indexOf("?")>0)?"&":"?")+$.param(p)+a[1];},addUNI:function(url){return $$.addParam(url,{"_UNI_":(new Date()).getTime()});},delHost:function(url,host){if(!host)host=location.protocol+"//"+location.host+"/";return url.replace(host,"");}}})();(function(){var $$=$.Flash=function(a,v){this.attr=$.extend({},$$.attr,a);this.vars=$.extend({},$$.vars,v);};$$.attr={url:"",id:"",width:0,height:0,bgcolor:"#ffffff",menu:false,quality:"high",transparent:false,nocache:false,version:0,expressinstall:false,expressurl:"/framework/media/expressinstall.swf",MMredirectURL:document.location,MMdoctitle:(document.title.slice(0,47)+" - Flash Player Installation")};$$.vars={};$$.skipdetect=$.URL.getParam("detectflash")=="false";$.fn.extend({Flash:function(a,v){return(new $$(a,v)).write(this);}});$$.getVersion=function(){try{try{var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");try{axo.AllowScriptAccess="always";}
catch(e){return[6,0,21];}}catch(e){}
return(new ActiveXObject("ShockwaveFlash.ShockwaveFlash").GetVariable("$version").replace(/\D+/g,",").match(/^,?(.+),?$/)[1]).split(",");}catch(e){try{if(navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin){return((navigator.plugins["Shockwave Flash 2.0"]||navigator.plugins["Shockwave Flash"]).description.replace(/\D+/g,",").match(/^,?(.+),?$/)[1]).split(",");}}catch(e){}}
return[0,0,0];};$$.isValidVersion=function(rv){if(typeof rv!="object")rv=[rv];var cv=$$.getVersion();for(var i=0;i<3;i++){rv[i]=parseInt(rv[i]||0);if(cv[i]<rv[i])return false;if(cv[i]>rv[i])return true;}
return true;};$$.getHTML=function(a,v){var f=new $$(a,v);return f.getHTML();};$$.setVariable=function(fid,name,val){var flash=$.browser.msie?window[fid]:document[fid];try{if(flash&&flash.SetVariable){flash.SetVariable(name,val);}}catch(e){}};$$.prototype={attr:{},vars:{},setAttr:function(name,value){this.attr[name]=value;},getAttr:function(name){return this.attr[name];},setVar:function(name,value){this.vars[name]=value;},getVar:function(name){return this.vars[name];},getVarsString:function(v){v=v||this.vars;var sret="";for(var i in v)sret+=(i+"="+v[i]+"&");sret=$.rtrim(sret,"&");return sret;},getHTML:function(a,v){a=a||this.attr;v=v||this.vars;if(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length){var s='<embed type="application/x-shockwave-flash" pluginspage="http://www.adobe.com/go/getflashplayer" allowScriptAccess="sameDomain" swliveconnect="true" ';s+='id="'+a.id+'" name="'+a.id+'" src="'+a.url+'" ';s+='width="'+a.width+'" height="'+a.height+'" ';s+=(a.bgcolor?'bgcolor="'+a.bgcolor+'" ':'');s+='menu="'+(a.menu?"true":"false")+'" ';s+=(a.transparent?'wmode="transparent" ':'');s+='flashvars="'+this.getVarsString(v)+'" ';s+='quality="'+a.quality+'">';s+='</embed>';}else{var s='<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" ';s+='id="'+a.id+'" name="'+a.id+'" ';s+='width="'+a.width+'" height="'+a.height+'" border="0">\n';s+='<param name="allowScriptAccess" value="sameDomain"/>\n';s+='<param name="movie" value="'+a.url+'"/>\n';s+='<param name="quality" value="'+a.quality+'"/>\n';s+='<param name="menu" value="'+(a.menu?"true":"false")+'"/>\n';s+=(a.bgcolor?'<param name="bgcolor" value="'+a.bgcolor+'"/>\n':'');s+=(a.transparent?'<param name="wmode" value="transparent"/>\n':'');s+='<param name="flashvars" value="'+this.getVarsString(v)+'"/>\n';s+='</object>';}
return s;},write:function(id){var _attr={},_vars={},eiok=false;$.extend(_attr,this.attr);$.extend(_vars,this.vars);if(this.attr.expressinstall&&$$.isValidVersion([6,0,65])&&!$$.isValidVersion(this.attr.version)){eiok=true;_attr.url=this.attr.expressurl;_vars.MMredirectURL=this.attr.MMredirectURL;document.title=this.attr.MMdoctitle;_vars.MMdoctitle=document.title;_vars.MMplayerType=$.browser.msie?"ActiveX":"PlugIn";}
if(this.attr.nocache)_attr.url=$.URL.addUNI(_attr.url);if($$.skipdetect||this.attr.expressinstall&&eiok||$$.isValidVersion(this.attr.version)){var o=(typeof id=="string")?$("#"+id):id;o.html(this.getHTML(_attr,_vars));return true;}
return false;}};if($.browser.msie&&$$.isValidVersion(8)){$$.cleanup=function(){$("OBJECT").each(function(){this.style.display="none";for(var i in this)if(typeof this[i]=='function')this[i]=function(){};});};$$.onUnload=function(){__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){};window.attachEvent("onunload",$$.onUnload);}
window.attachEvent("onbeforeunload",$$.onUnload);}})();(function(){var $$=$.Cookies={enable:false,get:function(name){var sret=null;if(document.cookie){var ac=document.cookie.split(";"),c;name+="=";for(var i=0;i<ac.length;i++){c=$.trim(ac[i]);if(c.indexOf(name)==0){sret=c.substring(name.length,c.length);break;}}}
return sret;},set:function(name,value,options){options=$.extend({expires:1,path:"",domain:false,secure:false},options||{});var expires="";if(options.expires){var today=new Date();today.setTime(today.getTime()+(options.expires*86400000));expires="; expires="+today.toGMTString();}
var path=options.path==""?"; path="+options.path:"";var domain=options.domain?"; domain="+options.domain:"";var secure=options.secure?"; secure":"";document.cookie=name+"="+value+"; "+expires+path+domain+secure;},del:function(name){this.set(name,"",{expires:-1});}};$$.set("testingcookies","yes");if($$.get("testingcookies")=="yes"){$$.enable=true;$$.del("testingcookies");}else $$.enable=false;})();(function(){var $$=$.msiefix={emptygif:"/framework/media/empty1x1.gif",doc:!$.boxModel&&document.documentElement||document.body};$.fn.extend({swapPNG2GIF:function(){this.each(function(){$(this).css({"backgroundImage":$(this).css("backgroundImage").replace(".png",".gif")});});return this;},msiefixPNG:function(options){if($.browser.msie6){options=$.extend({sizing:"crop"},options||{});var reimg=new RegExp("\\.png$","i");var rebg=new RegExp("url\\(\\\"(.+\\.png)\\\"\\)","i");this.each(function(){var name=null;var width,height;if(this.tagName&&this.tagName=="IMG"){if(reimg.test(this.src)){width=$(this).width();height=$(this).height();name=this.src;this.src=$$.emptygif;}}else{if(this.currentStyle){name=rebg.exec(this.currentStyle.backgroundImage);if(name){name=name[1];$(this).css("backgroundImage","none");}}}
if(name){if(width&&height)$(this).css({width:width,height:height});$(this).css({"filter":"progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled='true', sizingMethod='"+options.sizing+"', src='"+name+"')"});}});}
return this;},msiefixOpacity:function(){if($.browser.msie){this.each(function(){if(this.currentStyle.opacity){$(this).css("opacity",this.currentStyle.opacity);};});}
return this;},msiefixFixed:function(){if($.browser.msie6){$._msie6_fixed_left=function(el){var x,ws,elmd=el[$.metaData.single];if(elmd._l!="auto"){x=elmd._l;if(x.indexOf("%")>=0){x=parseInt((elmd._owner.clientWidth*parseInt(x))/100);}else x=parseInt(x);}else{x=elmd._r;ws=elmd._owner.clientWidth;if(x.indexOf("%")>=0){x=parseInt((ws*parseInt(x))/100);}else x=parseInt(x);x=ws-el.offsetWidth-x;}
return x+elmd._owner.scrollLeft+"px";}
$._msie6_fixed_top=function(el){var y,ws,elmd=el[$.metaData.single];if(elmd._t!="auto"){y=elmd._t;if(y.indexOf("%")>=0){y=parseInt((elmd._owner.clientHeight*parseInt(y))/100);}else y=parseInt(y);}else{y=elmd._b;ws=elmd._owner.clientHeight;if(y.indexOf("%")>=0){y=parseInt((ws*parseInt(y))/100);}else y=parseInt(y);y=ws-el.offsetHeight-y;}
return y+elmd._owner.scrollTop+"px";}
this.each(function(){if(this.currentStyle.position=="fixed"){var elmd=$(this).metaData();elmd._fixfixed=true;elmd._t=$(this).css("top");elmd._b=$(this).css("bottom");elmd._l=$(this).css("left");elmd._r=$(this).css("right");elmd._owner=$$.doc;$(this).css("position","absolute");$(this).css("right","auto");$(this).css("bottom","auto");var s=$(this)[0].style;s.setExpression("left","$._msie6_fixed_left(this)");s.setExpression("top","$._msie6_fixed_top(this)");};});}
return this;},msiefix2side:function(){if($.browser.msie6){$._msie6_2side_height=function(el){var s,elmd=el[$.metaData.single];var ws=elmd._owner.clientHeight;s=ws-parseInt(elmd._t)-parseInt(elmd._b);return s+"px";};$._msie6_2side_width=function(el){var s,elmd=el[$.metaData.single];var ws=elmd._owner.clientWidth;s=ws-parseInt(elmd._l)-parseInt(elmd._r);return s+"px";};function _findOwner(t){t=t.parentNode;var owner=$$.doc;while(t.tagName&&t.tagName!="BODY"){var cp=t.currentStyle.position;if(cp=="absolute"||cp=="relative"||cp=="fixed"){owner=t;break;}
t=t.parentNode;}
return owner;};this.each(function(){var a="auto",elmd=$(this).metaData();var t=$(this).css("top");var b=$(this).css("bottom");var l=$(this).css("left");var r=$(this).css("right");if(t!=a&&b!=a){elmd._t=t;elmd._b=b;elmd._owner=_findOwner(this);elmd._fix2sideh=true;$(this).css("bottom",a);var s=$(this)[0].style;s.setExpression("height","$._msie6_2side_height(this)");}
if(l!=a&&r!=a){elmd._l=l;elmd._r=r;elmd._owner=_findOwner(this);elmd._fix2sidew=true;$(this).css("right",a);var s=$(this)[0].style;s.setExpression("width","$._msie6_2side_width(this)");}});}
return this;},msiefixMin:function(){if($.browser.msie6){$._msie6_min=function(e){var el=e.data.el;var s,elmd=el[$.metaData.single];if(elmd._fixminh){if($(elmd._owner).height()<parseInt(elmd._mh))s=elmd._mh;else s=elmd._h;$(el).height(s);}
if(elmd._fixminw){if($(elmd._owner).width()<parseInt(elmd._mw))s=elmd._mw;else s=elmd._w;$(el).width(s);}};function _findOwner(t){t=t.parentNode;var owner=window;if(t.tagName&&t.tagName!="BODY")owner=t;return owner;};this.each(function(){var a="auto",elmd=$(this).metaData();var h=$(this).css("minHeight");var w=$(this).css("min-width");if(h!=a&&h!=undefined){elmd._fixminh=true;elmd._h=$(this)[0].currentStyle.height;elmd._mh=h;elmd._owner=_findOwner(this);}
if(w!=a&&w!=undefined){elmd._fixminw=true;elmd._w=$(this)[0].currentStyle.width;elmd._mw=w;elmd._owner=_findOwner(this);}
if(elmd._fixminh||elmd._fixminw){$(elmd._owner).bind("resize",{el:this},$._msie6_min);$._msie6_min({data:{el:this}});}});}
return this;}});})();(function(){$.fn.extend({setPos:function(x,y){this.each(function(){var elmd=$(this).metaData();if(x!=undefined){if(elmd.fixFixed)elmd.left=x;else $(this).css("left",x);}
if(y!=undefined){if(elmd.fixFixed)elmd.top=y;else $(this).css("top",y);}});return this;}});})();(function(){var $$=$.Hijax={callback:null,init:function(callback){$$.callback=callback;window.dhtmlHistory.create({toJSON:function(o){return $.toJSON(o);},fromJSON:function(s){return $.parseJSON(s);}});window.dhtmlHistory.initialize();window.dhtmlHistory.addListener($$._listener);$$._listener($$.getCurrent(),null);},getCurrent:function(){return window.dhtmlHistory.getCurrentLocation();},checkLocation:function(){var loc=$$.getLocation();if(loc){window.location="http://"+window.location.host+window.location.search+"#"+loc;}},getLocation:function(){return $.file.delStartSlash(window.location.pathname);},load:function(loc,data){window.dhtmlHistory.add(loc,data);$$._listener(loc,data);},_listener:function(loc,data){$$.callback(loc,data);}};})();(function(){var $$=$.FormValid=function(options){this.options=$.extend({},$$.options,options);};$$.options={md_type:"class",md_name:"data",validonblur:true,onsubmit:null,focuserror:true,onlyfirst:true,noerrormessage:{id:"Ok",alt:"ok"},emptymessage:"&nbsp",classerror:"error",errorsingle:"_error",errorcontainer:null,errorsplit:"<br />"};$$.addRules=function(element,rules){$(element).each(function(){var md=$(this).metaData($$.options.md_type,$$.options.md_name);var data=md;if(md.formValid)data=md.formValid;for(var rule in rules){data[rule]=rules[rule];}});};$$.delRules=function(element,rules){$(element).each(function(){var md=$(this).metaData($$.options.md_type,$$.options.md_name);var data=md;if(md.formValid)data=md.formValid;for(var rule in rules){delete data[rule];}});};$$.clearRules=function(element){$(element).each(function(){var md=$(this).metaData($$.options.md_type,$$.options.md_name);var data=md;if(md.formValid)data=md.formValid;data={};});};$.fn.extend({FormValid:function(options){return this.each(function(){if(this.FormValid)return;var _t=new $$(options);_t.elements=$(":input:not(:submit):not(:reset)",this);_t.clearError();if(_t.options.validonblur){_t.elements.blur(function(){_t.validateElement(this);_t.showErrors(this);});}
_t.elements.change(function(){_t.clearError(this);});if($(this).is("form")){_t.form=this;$(this).bind("reset",function(e){_t.clearError();});$(this).bind("submit",function(e){var f=_t.validateForm();if(f&&_t.options.onsubmit)f=_t.options.onsubmit.apply(this);return f;});}
this.FormValid=_t;});}});$$.prototype={form:null,options:{},elements:{},errors:{},validateForm:function(isClear){var _t=this,f=true,e;if(isClear)_t.clearError();for(var i=0;i<_t.elements.length;i++){e=_t.elements[i];if(!_t.validateElement(e)&&f){f=false;if(_t.options.focuserror){if(e.wysiwyg)$.Wysiwyg.Focus(_getId(e));else e.focus();}
if(_t.options.onlyfirst)break;}};setTimeout(function(){_t.showErrors();},100);return f;},validateElement:function(e){var _t=this,f=true,rule,param,method,r;if(e.wysiwyg)_t.clearError(e);var rules=_t.getRules(e);for(var i=0;i<rules.length;i++){rule=rules[i].rule;param=rules[i].param;method=$$.methods[rule];if(method){if(!method.force&&_t.getErrorStatus(e,rule)==true)continue;try{r=method.func(e,param,_t,method);_t.setErrorStatus(e,rule,r.status,r.message,param);if(r.status!=true){f=false;break;}}catch(ee){}}}
return f;},clearError:function(e){var _t=this,elements=[];if(e==undefined){_t.errors={};elements=_t.elements;}else{_t.errors[_getId(e)]={};elements[0]=e;}
if(_t.options.errorcontainer){$(_t.options.errorcontainer).html(_t.options.emptymessage).removeClass(_t.options.classerror);}else{for(var i=0;i<elements.length;i++){var id=_getId(elements[i]);$("#"+id+_t.options.errorsingle,_t.form).html(_t.options.emptymessage).removeClass(_t.options.classerror);}}},isFormValid:function(){var _t=this;for(var i in _t.errors){for(var n in _t.errors[i]){if(_t.errors[i][n].status!=true)return false;}}
return true;},getRules:function(e){var _t=this,data,md=$(e).metaData(_t.options.md_type,_t.options.md_name);var data=md;if(md.formValid)data=md.formValid;var rules=[];for(var rule in data){rules[rules.length]={rule:rule,param:data[rule]};}
return rules;},setErrorStatus:function(e,rule,status,message,param){var _t=this,id=_getId(e);message=message||"";param=param||["",""];message=_t.formatMessage(message,param);if(_t.errors[id]==undefined)_t.errors[id]={};_t.errors[id][rule]={status:status,message:message};},getErrorStatus:function(e,rule){var _t=this,id=_getId(e);var err=_t.errors[id];if(!err||!err[rule])return undefined;return err[rule].status;},showErrors:function(e){var _t=this,s="",elements=[],dest,msgok=_t.formatMessage(_t.options.noerrormessage);if(e==undefined)elements=_t.elements;else elements[0]=e;for(var i=0;i<elements.length;i++){var element=elements[i];if(_t.getRules(element).length==0)continue;var id=_getId(element);var e=_t.errors[id];if(!e)continue;var message=msgok;for(var rule in e){if(e[rule].status==false){message=e[rule].message;break;}}
if(message!=msgok&&_t.options.errorcontainer){s+=message+_t.options.errorsplit;}else{dest=$("#"+id+_t.options.errorsingle,_t.form);if(message==msgok){dest.removeClass(_t.options.classerror);}else{dest.addClass(_t.options.classerror);if(dest.length==0)alert(message);}
dest.html(message);}
if(_t.options.onlyfirst&&message!=msgok)break;}
if(_t.options.errorcontainer){dest=$(_t.options.errorcontainer);if(s==""){s=msgok;dest.removeClass(_t.options.classerror);}else{dest.addClass(_t.options.classerror);}
dest.html(s);}},formatMessage:function(message,param){var _t=this;return $.langs.get(message.id,message.alt,param);}};var _getId=function(element){return(/radio|checkbox/i.test(element.type))?element.name:element.id;};var _getAlt=function(element,message){var alt=$(element).attr("formValid");if(alt)message={id:"",alt:alt};return message;};var _getLength=function(element){switch(element.nodeName.toLowerCase()){case"select":return $("option:selected",element).length;case"input":if(/radio|checkbox/i.test(element.type))
return $("[name="+element.name+"]:checked",element.form||document).length;}
return $(element).val().length;};$$.methods={};$$.addMethod=function(name,func,message,force){$$.methods[name]={name:name,func:func,message:message,force:force};};$$.addMethod("ajaxRequest",function(e,p,v,m){setTimeout(function(){$.ajax({type:"POST",url:p,data:"param="+escape($(e).val()),success:function(msg){if(msg=="true")v.setErrorStatus(e,m.name,true);else v.setErrorStatus(e,m.name,false,_getAlt(e,m.message[1]));v.showErrors();}});},150);return{status:false,message:m.message[0]};},[{id:"TEXT_FormValid_ajaxRequest1",alt:"Processing, wait..."},{id:"TEXT_FormValid_ajaxRequest2",alt:"You can't use this value"}]);$$.addMethod("required",function(e,p,v,m){var f=false;if(e.wysiwyg){if($.Wysiwyg.getContent(_getId(e)).length>0)f=true;}else{if(e.nodeName.toLowerCase()=="select"){var opt=$("option:selected",e);var len=(e.type=="select-one")?1:opt.length;for(var i=0;i<len;i++){if(opt[i].value.length>0){f=true;break;}}}else f=_getLength(e)>0;}
return{status:f,message:f?"":_getAlt(e,m.message)};},{id:"TEXT_FormValid_required",alt:"This field is required"});$$.addMethod("minLength",function(e,p,v,m){var val=$(e).val();var f=val=="";if(!f)f=_getLength(e)>=p;return{status:f,message:f?"":_getAlt(e,m.message)};},{id:"TEXT_FormValid_minLength",alt:"Enter a value of at least {0} characters"});$$.addMethod("maxLength",function(e,p,v,m){var val=$(e).val();var f=val=="";if(!f)f=_getLength(e)<=p;return{status:f,message:f?"":_getAlt(e,m.message)};},{id:"TEXT_FormValid_maxLength",alt:"Enter a value no longer then {0} characters"});$$.addMethod("rangeLength",function(e,p,v,m){var val=$(e).val();var f=val=="";if(!f){var l=_getLength(e);f=l>=p[0]&&l<=p[1];}
return{status:f,message:f?"":_getAlt(e,m.message)};},{id:"TEXT_FormValid_rangeLength",alt:"Enter a value between {0} and {1} characters long"});$$.addMethod("equalLength",function(e,p,v,m){var val=$(e).val();var f=val=="";if(!f)f=_getLength(e)==p;return{status:f,message:f?"":_getAlt(e,m.message)};},{id:"TEXT_FormValid_equalLength",alt:"Enter a value {0} characters long"});$$.addMethod("equalTo",function(e,p,v,m){var f=true;if(v.validateElement($(p)[0]))f=($(e).val()==$(p).val());return{status:f,message:f?"":_getAlt(e,m.message)};},{id:"TEXT_FormValid_equalTo",alt:"Enter the same value again"},true);$$.addMethod("email",function(e,p,v,m){var val=$(e).val();var f=val=="";if(!f)f=/^[\w-\.]+@([\w-]+\.)+[\w-]{2,4}$/i.test(val);return{status:f,message:f?"":_getAlt(e,m.message)};},{id:"TEXT_FormValid_email",alt:"Enter a valid email address"});$$.addMethod("url",function(e,p,v,m){var val=$(e).val();var f=val=="";if(!f)f=/^(https?|ftp):\/\/[A-Z0-9](\.?[A-Z0-9][A-Z0-9_\-]*)*(\/([A-Z0-9][A-Z0-9_\-\.]*)?)*(\?([A-Z0-9][A-Z0-9_\-\.%\+=&]*)?)?$/i.test(val);return{status:f,message:f?"":_getAlt(e,m.message)};},{id:"TEXT_FormValid_url",alt:"Enter a valid URL"});$$.addMethod("digits",function(e,p,v,m){var val=$(e).val();var f=val=="";if(!f)f=/^\d+$/.test(val);return{status:f,message:f?"":_getAlt(e,m.message)};},{id:"TEXT_FormValid_digits",alt:"Enter only digits"});$$.addMethod("float",function(e,p,v,m){var val=$(e).val();var f=val=="";if(!f)f=(new RegExp("^\\d+["+p+"]?\\d+$")).test(val);return{status:f,message:f?"":_getAlt(e,m.message)};},{id:"TEXT_FormValid_float",alt:"Enter a number with \"{0}\""});$$.addMethod("minValue",function(e,p,v,m){var val=Number($(e).val());var f=false;if(val.toString()!="Invalid"&&val.toString()!="NaN")f=val>=p;return{status:f,message:f?"":_getAlt(e,m.message)};},{id:"TEXT_FormValid_minValue",alt:"Enter a number great or equal \"{0}\""});$$.addMethod("maxValue",function(e,p,v,m){var val=Number($(e).val());var f=false;if(val.toString()!="Invalid"&&val.toString()!="NaN")f=val<=p;return{status:f,message:f?"":_getAlt(e,m.message)};},{id:"TEXT_FormValid_maxValue",alt:"Enter a number less or equal \"{0}\""});$$.addMethod("date",function(e,p,v,m){var val=$(e).val();var f=val=="";if(!f)f=!/Invalid|NaN/.test(new Date(val));return{status:f,message:f?"":_getAlt(e,m.message)};},{id:"TEXT_FormValid_date",alt:"Enter a valid date"});$$.addMethod("file",function(e,p,v,m){var val=$(e).val();var f=val=="";if(!f){f=(new RegExp("^[a-z0-9|_]([a-z0-9|_]+|/(?!/)|\\.(?!\\.))+[a-z0-9]$","i")).test(val);if(f&&p!="")f=(new RegExp("\\."+p.replace(/\||,/,"|\\.")+"$","i")).test(val);}
return{status:f,message:f?"":_getAlt(e,m.message)};},{id:"TEXT_FormValid_file",alt:"Enter a file name with type \"{0}\""});$$.addMethod("files",function(e,p,v,m){var val=$(e).val();var f=val=="";if(!f){var arr=val.split(";");for(var i=0;i<arr.length;i++){val=arr[i];f=(new RegExp("^[a-z0-9|_]([a-z0-9|_]+|/(?!/)|\\.(?!\\.))+[a-z0-9]$","i")).test(val);if(f&&p!="")f=(new RegExp("\\."+p.replace(/\||,/,"|\\.")+"$","i")).test(val);if(!f)break;}}
return{status:f,message:f?"":_getAlt(e,m.message)};},{id:"TEXT_FormValid_files",alt:"Enter a file(s) name with type \"{0}\""});$$.addMethod("userfunc",function(e,p,v,m){var func=eval(p);var res=func(e);return{status:res.f,message:res.f?"":_getAlt(e,res.m)};},{},true);$$.addMethod("json",function(e,p,v,m){var val=$(e).val();var f=val=="";if(!f){var v=$.parseJSON(val,null);f=v!=null;}
return{status:f,message:f?"":_getAlt(e,m.message)};},{id:"TEXT_FormValid_json",alt:"Enter a correct json string"});$$.addMethod("regexp",function(e,p,v,m){var re=new RegExp(p);var f=re.test($(e).val());return{status:f,message:f?"":_getAlt(e,m.message)};},{id:"TEXT_FormValid_regexp",alt:"Enter a value like regexp \"{0}\""});})();(function(){$.extend({ajaxFileUpload:function(s){s=jQuery.extend({},jQuery.ajaxSettings,s);if(s.data){if(s.processData&&typeof s.data!="string")
s.data=jQuery.param(s.data);}
s.url+=((s.url.indexOf("?")>-1)?"&":"?")+s.data;var id=new Date().getTime();var hidden='style="position:absolute; top:-1000px; left:-1000px; width:100px; height:100px;"';var frameId='ajaxUploadFrame'+id;var frame=$('<iframe id="'+frameId+'" name="'+frameId+'" '+hidden+' src="javascript:false;document.write(\'\');"></iframe>')[0];$("body").append(frame);var formId='ajaxUploadForm'+id;var fileId='ajaxUploadFile'+id;var form=$('<form name="'+formId+'" id="'+formId+'" '+hidden+' action="'+s.url+'" target="'+frameId+'" method="post" enctype="multipart/form-data"></form>')[0];var oldElement=$('#'+s.fileid);var newElement=$(oldElement).clone();var oldfileId=$(oldElement).attr('id');$(oldElement).attr('id',fileId);$(oldElement).before(newElement);$(oldElement).appendTo(form);$("body").append(form);if(s.global&&!jQuery.active++)jQuery.event.trigger("ajaxStart");var requestDone=false;var xml={};if(s.global)jQuery.event.trigger("ajaxSend",[xml,s]);var uploadCallback=function(isTimeout){$(newElement).before(oldElement);$(oldElement).attr('id',oldfileId);$(newElement).remove();try{if(frame.contentWindow){xml.responseText=frame.contentWindow.document.body?frame.contentWindow.document.body.innerHTML:null;xml.responseXML=frame.contentWindow.document.XMLDocument?frame.contentWindow.document.XMLDocument:frame.contentWindow.document;}else if(frame.contentDocument){xml.responseText=frame.contentDocument.document.body?frame.contentDocument.document.body.innerHTML:null;xml.responseXML=frame.contentDocument.document.XMLDocument?frame.contentDocument.document.XMLDocument:frame.contentDocument.document;}}catch(e){jQuery.handleError(s,xml,null,e);}
if(xml||isTimeout=="timeout"){requestDone=true;var status;try{status=isTimeout!="timeout"?"success":"error";if(status!="error"){var data=jQuery.fileUploadHttpData(xml,s.dataType);if(s.success)s.success(data,status);if(s.global)jQuery.event.trigger("ajaxSuccess",[xml,s]);}else
jQuery.handleError(s,xml,status);}catch(e){status="error";jQuery.handleError(s,xml,status,e);}
if(s.global)jQuery.event.trigger("ajaxComplete",[xml,s]);if(s.global&&!--jQuery.active)jQuery.event.trigger("ajaxStop");if(s.complete)s.complete(xml,status);jQuery(frame).unbind()
setTimeout(function(){try{$(frame).remove();$(form).remove();}catch(e){jQuery.handleError(s,xml,null,e);}},100);xml=null}}
if(s.timeout>0){setTimeout(function(){if(!requestDone)uploadCallback("timeout");},s.timeout);}
$(frame).bind("load",uploadCallback);try{$(form).submit();}catch(e){jQuery.handleError(s,xml,null,e);}
return{abort:function(){}};},fileUploadHttpData:function(r,type){var data=!type;data=type=="xml"||data?r.responseXML:r.responseText;if(type=="script")jQuery.globalEval(data);if(type=="json")data=eval("("+data+")");return data;}});})();(function(){var $$=$.XML={ELEMENT_NODE:1,ATTRIBUTE_NODE:2,TEXT_NODE:3,CDATA_SECTION_NODE:4,ENTITY_REF_NODE:5,ENTITY_NODE:6,PI_NODE:7,COMMENT_NODE:8,DOCUMENT_NODE:9,DOCUMENT_TYPE_NODE:10,DOCUMENT_FRAG_NODE:11,NOTATION_NODE:12,header:true,to:function(str){var doc;try{if(window.ActiveXObject){doc=new ActiveXObject("Microsoft.XMLDOM");doc.async="false";doc.loadXML(str);}
else{var parser=new DOMParser();doc=parser.parseFromString(str,"text/xml");var processor=new XSLTProcessor();var xslt=(new DOMParser()).parseFromString('<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"><xsl:output method="xml" omit-xml-declaration="yes"/><xsl:strip-space elements="*"/><xsl:template match="@*|node()"><xsl:copy><xsl:apply-templates select="@*|node()"/></xsl:copy></xsl:template></xsl:stylesheet>','text/xml');processor.importStylesheet(xslt);doc=processor.transformToDocument(doc);}}
catch(e){$.errors.trigger($.errors.ERROR,"Cannot make DOM from xml string [func: $.XML.to]");}
return(doc);},from:function(dom){function toXML(node){var cont='',type,i,attr;var ret='<'+node.nodeName;for(i=0;i<node.attributes.length;i++){attr=node.attributes[i];ret+=(' '+attr.name+'="'+attr.value+'"');}
if(node.childNodes){for(i=0;i<node.childNodes.length;i++){type=node.childNodes[i].nodeType;if(type==$$.ELEMENT_NODE){cont+=toXML(node.childNodes[i]);}else if(type>$$.ATTRIBUTE_NODE){cont+=node.childNodes[i].nodeValue;}}}
if(cont.length>0){ret+='>'+cont;ret+='</'+node.tagName+'>';}else{ret+=' />';}
return ret;};var ret='';if(dom.documentElement)dom=dom.documentElement;if(typeof XMLSerializer=="function"||typeof XMLSerializer=="object"){var xs=new XMLSerializer();ret=xs.serializeToString(dom);}else{if(dom.xml!==undefined){ret=dom.xml;}else{ret=toXML(dom);}}
return($$.header?'<?xml version="1.0" encoding="UTF-8" ?>':"")+ret;},xpath:function(oNodes,sXPath){var nodes=[];try{if(!$.browser.msie){var oXpe=new XPathEvaluator();var oNsResolver=oXpe.createNSResolver(oNodes.ownerDocument==null?oNodes.documentElement:oNodes.ownerDocument.documentElement);var oResult=oXpe.evaluate(sXPath,oNodes,oNsResolver,0,null);var oRes;while(oRes=oResult.iterateNext()){nodes.push(oRes);}}else{oNodes.setProperty("SelectionLanguage","XPath")
var nodes=oNodes.documentElement.selectNodes(sXPath);}}catch(e){}
return nodes;}}})();$.create=function(tag,attr,child){var elem=document.createElement(tag);if(attr){for(var aname in attr){if(aname=="style"){var o={},a=attr[aname].split(";");for(var i=0;i<a.length;i++){o[a[i].split(":")[0]]=a[i].split(":")[1];}
$(elem).css(o);}else $(elem).attr(aname,attr[aname]);}}
if(child)$(elem).append(child);return $(elem);};(function(){var $$=$.langs={id:"en",errmsg:"Cannot open or parse the lang xml file [func: $.langs.load]",options:{module:null,langid:null,type:'php',php_url:"data.langs.php",path:"framework/langs/",isalt:false},set:function(options){$$.options.langid=$$.id;if(typeof(options)=="object"){$.extend($$.options,$$.options,options);$$.id=options.langid;}else $$.id=options;},load:function(options){$$.options.langid=$$.id;if(typeof(options)=="object"){options=$.extend({},$$.options,options);}else options=$.extend({},$$.options,{module:options});var arrModule=options.module.split(",");var arrToLoad=[];for(var i=0;i<arrModule.length;i++){var module=$.trim(arrModule[i]);var initname="INIT_TEXT_"+module;if(options.isalt)initname+="_"+options.langid;if(window[initname]!=options.langid)arrToLoad.push(module);}
if(arrToLoad.length>0){if(options.type=="php"){var data={action:"getjslang",module:arrToLoad.join(","),langid:options.langid,path:$.file.addEndSlash(options.path),isalt:options.isalt};$.ajax({async:false,type:"POST",dataType:"script",data:data,url:options.php_url,complete:function(xml,status){if(status!="success")$.errors.trigger($.errors.WARNING,$$.errmsg);}});}else if(options.type=="xml"){for(var i=0;i<arrToLoad.length;i++){var module=$.trim(arrToLoad[i]);var url=$.file.addEndSlash(options.path)+options.langid+"/"+module+".xml";$.ajax({async:false,type:"POST",dataType:"xml",url:url,complete:function(xml,status){if(status!="success")$.errors.trigger($.errors.WARNING,$$.errmsg);else{xml=xml.responseXML;var texts=$("text",xml);for(var n=0;n<texts.length;n++){var name="TEXT_"+module+"_"+texts[n].getAttribute("id");if(options.isalt)name+="_"+options.langid;window[name]=texts[n].firstChild.nodeValue;}
var initname="INIT_TEXT_"+module;if(options.isalt)initname+="_"+$$.options.langid;window[initname]=options.langid;}}});}}}},getalt:function(langid,id,alt,param,options){options=$.extend({},$$.options,options);options.langid=langid;options.isalt=true;options.module=$$._getModuleFromId(id);var initname='INIT_TEXT_'+options.module;if(window[initname]==langid){return $.langs.get(id,alt,param);}
if(window[initname+"_"+langid]!=langid){$.langs.load(options);}
return $.langs.get(id+"_"+langid,alt,param);},get:function(id,alt,param){var message=(window[id]||(alt||id))||"";return $$._format(message,param);},str:function(str,alt,param){var ps,pe;var message=alt;if(str.indexOf("<#",0)<0){message=str;}else{ps=str.indexOf("<#"+$$.id+"#>",0);if(ps>=0){pe=str.indexOf("<#",ps+6);if(pe==-1)pe=str.length;message=str.substring(ps+6,pe);}}
return $$._format(message,param);},_getModuleFromId:function(id){return(/^TEXT_([a-zA-Z\d]+)_.*/.exec(id))[1];},_format:function(message,param){if(param!=undefined){if(param.constructor==Array){for(var i=0;i<param.length;i++)
message=message.replace("{"+i+"}",param[i]||"");}else message=message.replace("{0}",param||"");}
return message;}};})();(function(){var $$=$.file={value:null,re_file:new RegExp(".+[\.].+[^\/]$","i"),getExt:function(value){value=$.trim(value);var pos=value.lastIndexOf(".");return pos<0?"":value.substr(pos+1,value.length);},swapExt:function(value,newext){value=$.trim(value);var pos=value.lastIndexOf(".");return pos<0?value:value.substr(0,pos+1)+newext;},addStartSlash:function(value){return"/"+$$.delStartSlash(value);},delStartSlash:function(value){return $.ltrim(value,"/ ");},addEndSlash:function(value){return $$.delEndSlash(value)+"/";},delEndSlash:function(value){return $.rtrim(value,"/ ");},addBoundSlash:function(value){return"/"+$$.delBoundSlash(value)+"/";},delBoundSlash:function(value){return $.trim(value,"/ ");},isFile:function(value){value=$.trim(value);var pos=value.lastIndexOf("/");var str=pos<0?"":value.substr(pos+1,value.length-1);return $$.re_file.test(str);},parentFolder:function(value){value=$.trim(value);if(value=="/")return value;value=$$.delEndSlash(value);var pos=value.lastIndexOf("/");return pos<0?"":value.substr(0,pos+1);},formatPath:function(value){value=$.trim(value);if(!$$.isFile(value))value=$$.addEndSlash(value);return value;},getPath:function(value){value=$.trim(value);if(!$$.isFile(value))return value;var pos=value.lastIndexOf("/");return pos<0?"":value.substr(0,pos+1);},getFile:function(value){value=$.trim(value);if(!$$.isFile(value))return"";var pos=value.lastIndexOf("/");return pos<0?value:value.substr(pos+1);}};})();(function(){var $$=$.interrupt={arr:[],isStop:false,add:function(src,dst){var arrSrc=src.split(",");for(var n=0;n<arrSrc.length;n++){var src=$.trim(arrSrc[n]);$$._add(src,dst);}},_add:function(src,dst){var arr=$$.arr[src];var handler=function(){$$.isStop=false;for(var i=arr.length-1;i>0;i--){var val=arr[i].apply(this,arguments);if($$.isStop)return val;}
return arr[0].apply(this,arguments);};if(!arr){try{arr=$$.arr[src]=[eval(src)];eval(src+" = handler;");}catch(e){return;}}
arr.push(dst);},del:function(src,dst){var arrSrc=src.split(",");for(var n=0;n<arrSrc.length;n++){var src=arrSrc[n];var arr=$$.arr[src];if(arr){for(var i=1;i<arr.length;i++){if(arr[i]==dst){arr.splice(i,1);break;}}
if(arr.length==1){eval(src+" = arr[0];");delete $$.arr[src];}}}},stop:function(){$$.isStop=true;}};})();(function(){JSON=function(){function f(n){return n<10?'0'+n:n;}
Date.prototype.toJSON=function(key){return this.getUTCFullYear()+'-'+
f(this.getUTCMonth()+1)+'-'+
f(this.getUTCDate())+'T'+
f(this.getUTCHours())+':'+
f(this.getUTCMinutes())+':'+
f(this.getUTCSeconds())+'Z';};String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(key){return this.valueOf();}
var cx=new RegExp("/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/","g");var escapeable=new RegExp("/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/","g");var gap,indent,meta={'\b':'\\b','\t':'\\t','\n':'\\n','\f':'\\f','\r':'\\r','"':'\\"','\\':'\\\\'},rep;function quote(string){escapeable.lastIndex=0;return escapeable.test(string)?'"'+string.replace(escapeable,function(a){var c=meta[a];if(typeof c==='string'){return c;}
return'\\u'+('0000'+
(+(a.charCodeAt(0))).toString(16)).slice(-4);})+'"':'"'+string+'"';}
function str(key,holder){var i,k,v,length,mind=gap,partial,value=holder[key];if(value&&typeof value==='object'&&typeof value.toJSON==='function'){value=value.toJSON(key);}
if(typeof rep==='function'){value=rep.call(holder,key,value);}
switch(typeof value){case'string':return quote(value);case'number':return isFinite(value)?String(value):'null';case'boolean':case'null':return String(value);case'object':if(!value){return'null';}
gap+=indent;partial=[];if(typeof value.length==='number'&&!(value.propertyIsEnumerable('length'))){length=value.length;for(i=0;i<length;i+=1){partial[i]=str(i,value)||'null';}
v=partial.length===0?'[]':gap?'[\n'+gap+
partial.join(',\n'+gap)+'\n'+
mind+']':'['+partial.join(',')+']';gap=mind;return v;}
if(rep&&typeof rep==='object'){length=rep.length;for(i=0;i<length;i+=1){k=rep[i];if(typeof k==='string'){v=str(k,value);if(v){partial.push(quote(k)+(gap?': ':':')+v);}}}}else{for(k in value){if(Object.hasOwnProperty.call(value,k)){v=str(k,value);if(v){partial.push(quote(k)+(gap?': ':':')+v);}}}}
v=partial.length===0?'{}':gap?'{\n'+gap+partial.join(',\n'+gap)+'\n'+
mind+'}':'{'+partial.join(',')+'}';gap=mind;return v;}}
return{stringify:function(value,replacer,space){var i;gap='';indent='';if(typeof space==='number'){for(i=0;i<space;i+=1){indent+=' ';}}else if(typeof space==='string'){indent=space;}
rep=replacer;if(replacer&&typeof replacer!=='function'&&(typeof replacer!=='object'||typeof replacer.length!=='number')){throw new Error('JSON.stringify');}
return str('',{'':value});},parse:function(text,reviver){var j;function walk(holder,key){var k,v,value=holder[key];if(value&&typeof value==='object'){for(k in value){if(Object.hasOwnProperty.call(value,k)){v=walk(value,k);if(v!==undefined){value[k]=v;}else{delete value[k];}}}}
return reviver.call(holder,key,value);}
cx.lastIndex=0;if(cx.test(text)){text=text.replace(cx,function(a){return'\\u'+('0000'+
(+(a.charCodeAt(0))).toString(16)).slice(-4);});}
if(/^[\],:{}\s]*$/.test(text.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,'@').replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,']').replace(/(?:^|:|,)(?:\s*\[)+/g,''))){j=eval('('+text+')');return typeof reviver==='function'?walk({'':j},''):j;}
throw new SyntaxError('JSON.parse');}};}();$.toJSON=function(value,replacer,space){if(space==undefined)space="\t";return JSON.stringify(value,replacer,space);};$.parseJSON=function(text,def){var data=def==undefined?null:def;if(text){try{data=eval("("+text+")");}catch(e){}}
return data;};})();(function(){var $$=$.Tooltip=function(options){this.options=$.extend({},$$.options,options);};$$.options={tipboxid:"#tooltip",messageid:".message",shiftx:5,shifty:20,zindex:3000,cursor:"help",speed:false,delay:300,follow:true,attr:"title",killattr:true,onshow:null,onhide:null,onmove:null};$$.prototype={options:{},message:"",pos:null,timeid:null,mouseover:function(e){var _t=e.data._t;_t.pos={x:e.pageX,y:e.pageY};if(!_t.options.onshow||(_t.options.onshow&&_t.options.onshow(_t))){if(_t.options.delay)_t.timeid=setTimeout(function(){_t.show()},_t.options.delay);else _t.show();$().bind("mousemove",{_t:_t},_t.mousemove);}},mousemove:function(e){var _t=e.data._t;if(_t.options.follow){_t.pos={x:e.pageX,y:e.pageY};_t.place();}},mouseout:function(e){var _t=e.data._t;_t.hide();},place:function(){var _t=this;_t.tx=_t.ty=0;$(_t.options.tipboxid+" "+_t.options.messageid).html(_t.message);var ts={w:$(_t.options.tipboxid).outerWidth(),h:$(_t.options.tipboxid).outerHeight()};var ws={w:$(window).width(),h:$(window).height()};var wss={x:$(window).scrollLeft(),y:$(window).scrollTop()};var x=_t.pos.x+_t.options.shiftx;var y=_t.pos.y+_t.options.shifty;if(x+ts.w>ws.w+wss.x-5){x=_t.pos.x-ts.w-_t.options.shiftx;_t.tx=1;}
if(y+ts.h>ws.h+wss.y-5){y=_t.pos.y-ts.h-(_t.options.shifty>>1);_t.ty=1;}
if(_t.options.onmove)_t.options.onmove(_t,_t.tx,_t.ty);$(_t.options.tipboxid).css({left:x,top:y});},show:function(){var _t=this;_t.timeid=null;$(_t.options.tipboxid).show(_t.options.speed);_t.place();_t.isshow=true;},hide:function(){var _t=this;if(_t.timeid){clearTimeout(_t.timeid);_t.timeid=null;}
if(_t.options.onhide)_t.options.onhide(_t);$(_t.options.tipboxid).hide(_t.options.speed);$().unbind("mousemove",_t.mousemove);_t.isshow=false;}};$.fn.extend({Tooltip:function(options){return this.each(function(){if(this.Tooltip)return;var _t=new $$(options);$(_t.options.tipboxid).hide().css({"position":"absolute","zIndex":_t.options.zindex});if($(this).attr(_t.options.attr)){_t.message=$(this).attr(_t.options.attr);_t.tx=_t.ty=0;_t.isshow=false;if(_t.options.killattr)$(this).removeAttr(_t.options.attr);if(_t.options.cursor)$(this).css("cursor",_t.options.cursor);$(this).bind("mouseover",{_t:_t},_t.mouseover).bind("mouseout",{_t:_t},_t.mouseout);this.Tooltip=_t;}});}});})();(function(){var $$=$.treeview={options:{collapsed:true,speed:false,ontoggle:null,isclicknode:false,onclickitem:null},classes:{treeview:"treeview",open:"open",closed:"closed",expandable:"expandable",collapsable:"collapsable",lastCollapsable:"lastCollapsable",lastExpandable:"lastExpandable",last:"last",hitarea:"hitarea"},hitareacss:{height:15,width:15,marginLeft:"-15px",marginRight:"-2px","float":"left",cursor:"pointer",display:"inline"}};$.fn.extend({Treeview:function(options,classes){options=$.extend({},$$.options,options||{});classes=$.extend({},$$.classes,classes||{});return this.each(function(){var list=this;$(list).addClass(classes.treeview);$("li:last-child",list).addClass(classes.last);if($.browser.msie)$.extend($$.hitareacss,{background:"#fff",filter:"alpha(opacity=0)"});function _toggler(){$(this).parent().swapClass(classes.collapsable,classes.expandable).swapClass(classes.lastCollapsable,classes.lastExpandable).find("ul").toggle(options.speed,options.ontoggle?options.ontoggle($(this).parent()[0]):null);}
var li=$("li",list).filter(function(){return $(this).children("ul").length;});li.filter(":has(ul:hidden)").addClass(classes.expandable).replaceClass(classes.last,classes.lastExpandable).end().filter(":has(ul:visible)").addClass(classes.collapsable).replaceClass(classes.last,classes.lastCollapsable).end().prepend("<div class=\""+classes.hitarea+"\"></div>").find("div."+classes.hitarea).css($$.hitareacss).toggle(_toggler,_toggler);if(options.onclickitem){var li=$("li",list).filter(function(){return!($(this).children("ul").length);});li.each(function(){var s=$(this).text();$(this).html("<a class='item' href='#"+s+"'>"+s+"</a>").find("a.item").click(function(){this.blur();var list=$(this).metaData().list;if(list.active)$(list.active).removeClass("active");$(this).addClass("active");list.active=this;options.onclickitem($(this).text(),$(this).parent());return false;}).metaData().list=list;});if(options.isclicknode){li.each(function(){var s=this.childNodes[1].nodeValue;$(this.childNodes[1]).remove();$("<a class='item' href='#"+s+"'>"+s+"</a>").insertBefore(this.childNodes[1]).click(function(){this.blur();var list=$(this).metaData().list;if(list.active)$(list.active).removeClass("active");$(this).addClass("active");list.active=this;options.onclickitem($(this).text(),$(this).parent());return false;}).metaData().list=list;});}}});},TreeviewSetActive:function(id,type,md_type,md_name,md_attr){return this.each(function(){var list=this;if(list.active){$(list.active).removeClass("active");if($.browser.msie)list.active.focus();}
if(type=="metadata"){$("li",list).filter(function(){return($(this).metaData(0,md_type,md_name))[md_attr]==id;}).each(function(){var _this=$(">a.item",this);_this.addClass("active");list.active=_this[0];if($.browser.msie)_this[0].focus();});}else{$("li>a.item",list).filter(function(){return $(this).text()==id;}).each(function(){$(this).addClass("active");list.active=this;if($.browser.msie)this.focus();});}});}});})();(function(){var $$=$.Modal={startZ:1000,currlevel:0,options:{classover:"extModalOver",classdata:"extModalData",csssize:{position:"fixed",left:"0px",top:"0px",width:"100%",height:"100%"},css:{"background-color":"#fff",cursor:"wait",opacity:"0.5"},speed:false},handler:function(e){var classover=$$.options.classover+''+$$.currlevel;var classdata=$$.options.classdata+''+$$.currlevel;if($(e.target).parents('div.'+classdata).length>0)return true;return false;},bind:function(b){$.each(['mousedown','mouseup','keydown','keypress','click'],function(i,o){$()[b?'bind':'unbind'](o,$$.handler);});},arrModal:[]};$.fn.extend({addModal:function(ref,options){options=$.extend({},$$.options,options||{});$$.currlevel++;var currz=$$.startZ+$$.currlevel*3;var classover=options.classover+''+$$.currlevel;var classdata=options.classdata+''+$$.currlevel;var f=($.browser.msie6)?$('<iframe class="'+classover+'" src="javascript:false;document.write(\'\');"></iframe>').css(options.csssize).css({"z-index":currz,"opacity":"0.0"}):$('<div class="'+classover+'" style="display:none"></div>');var w=$('<div class="'+classover+'"></div>').css(options.csssize).css(options.css).css({"z-index":currz+1});var m=$('<div class="'+classover+' '+classdata+'"></div>').css(options.csssize).css({"z-index":currz+2,cursor:options.css.cursor});$([f[0],w[0],m[0]]).appendTo('body');$("."+classover).msiefixFixed();var data=$(ref).css({cursor:"default"})[0];data.parent=$(data).parent()[0];$$.arrModal[$$.currlevel]=data;$('.'+classdata).append(data);options.speed?$(ref,'.'+classdata).msiefixPNG().css({opacity:0}).show().animate({opacity:1.0},options.speed):$(ref,'.'+classdata).msiefixPNG().show();if($$.currlevel==1)setTimeout(function(){$$.bind(true);},20);return this;},removeModal:function(){if($$.currlevel==0)return this;var data=$$.arrModal[$$.currlevel];$(data).hide().appendTo(data.parent);$$.currlevel--;if($$.currlevel==0)$$.bind(false);return this.each(function(){var classover=$$.options.classover+''+($$.currlevel+1);$("."+classover).remove();});}});})();(function(){var $$=$.Wysiwyg={name:null,basePath:"",editor:null,isloaded:false,isloading:false,width:null,height:null,language:null,imagepath:"/",editors:{"fckeditor":{options:{skinpath:"skins/cms/",toolbarset:"CMS01"},load:function(){if($$.isloading||$$.isloaded)return;$$.isloading=true;$.ajax({cache:true,url:$$.basePath+"fckeditor/fckeditor.js",dataType:"script",complete:function(xml,status){$$.isloaded=true;$$.isloading=false;}});},isActive:function(id){return(FCKeditorAPI.GetInstance(id)!=null);},isCanged:function(id){var inst=FCKeditorAPI.GetInstance(id);return false;},setCanged:function(id,flag){},activate:function(id){var inst=new FCKeditor(id,$$.width,$$.height);inst.BasePath=$$.basePath+"fckeditor/";inst.Config['SkinPath']=$$.editor.options.skinpath;inst.ToolbarSet=$$.editor.options.toolbarset;inst.ReplaceTextarea();},deactivate:function(id){var inst=FCKeditorAPI.GetInstance(id);alert("not implement");},Focus:function(id){var inst=FCKeditorAPI.GetInstance(id);inst.Focus();},getContent:function(id){var inst=FCKeditorAPI.GetInstance(id);return inst.GetXHTML(true);},setContent:function(id,cont){var inst=FCKeditorAPI.GetInstance(id);inst.SetHTML(cont);},openFilemanager:function(){alert("not implement");}},"tiny_mce":{options:{mode:"exact",theme:"advanced",language:"en",theme_advanced_toolbar_location:"top",theme_advanced_toolbar_align:"left",theme_advanced_path_location:"bottom",plugins:"contextmenu,paste,preview,table,layer,style,safari",theme_advanced_buttons1:"newdocument,|,cut,copy,paste,pasteword,|,undo,redo,|,bold,italic,underline,|,justifyleft,justifycenter,justifyright,justifyfull,|,formatselect, fontselect,fontsizeselect,forecolor,backcolor,|,removeformat",theme_advanced_buttons2:"bullist,numlist,numlist,|,outdent, indent, |,link,unlink,|,image,|,insertlayer,moveforward,movebackward,absolute,|,styleprops,|,charmap",theme_advanced_buttons3:"table,tablecontrols",plugin_preview_width:"700",plugin_preview_height:"500",theme_advanced_resize_horizontal:false,theme_advanced_resizing:true,theme_advanced_path:false,convert_urls:false,relative_urls:true,document_base_url:$.file.parentFolder(PATH_BASE),file_browser_callback:"$.Wysiwyg.openFilemanager"},load:function(){if($$.isloading||$$.isloaded)return;$$.isloaded=true;var options=$$.editor.options;options.mode="none";options.width=$$.width;options.height=$$.height;options.language=$$.language;tinyMCE.init(options);},isActive:function(id){return tinyMCE.get(id)!=null;},isCanged:function(id){var inst=tinyMCE.get(id);return inst?inst.isDirty():false;},setCanged:function(id,flag){var inst=tinyMCE.get(id);inst.isNotDirty=!flag;},activate:function(id){var options=$$.editor.options;options.elements=id;options.width=$$.width;options.height=$$.height;options.language=$$.language;var inst=tinyMCE.get(id);if(inst){tinyMCE.remove(inst);}
tinyMCE.init(options);tinyMCE.execCommand("mceAddControl",false,id);},deactivate:function(id){tinyMCE.execCommand("mceRemoveControl",false,id);},toggle:function(id){var inst=tinyMCE.get(id);if(inst){$$.editor.deactivate(id);}else{$$.editor.activate(id);}},Focus:function(id){tinyMCE.execCommand("mceFocus",false,id);},getContent:function(id){var inst=tinyMCE.get(id);return inst.getContent();},setContent:function(id,cont){var inst=tinyMCE.get(id);inst.setContent(cont);},openFilemanager:function(field_name,url,type,win){top.filemanager={win:win,url:url,type:type,field:field_name,path:$$.imagepath};window.open("/framework/modules/filemanager/wysiwyg_tiny_mce.php","Filemanager","width=890,height=480,status=no,toolbar=no,menubar=no,titlebar=yes");}}},Setup:function(data){$$.name=data.name;$$.basePath=data.basePath;$$.width=data.width;$$.height=data.height;$$.language=data.language;$$.imagepath=data.imagepath;$$.editor=$$.editors[$$.name];$.extend($$.editor.options,data.options);},Load:function(onLoad){$$.editor.load();var wait=function(){if($$.isloaded){if(onLoad)onLoad();}else setTimeout(wait,10);};wait();},Activate:function(id){var _activate=function(id){if($("#"+id)[0].wysiwyg)return;$$.editor.activate(id);$("#"+id)[0].wysiwyg=true;};if(!$$.isloaded){$$.Load(function(){_activate(id);});}else{_activate(id);}},Deactivate:function(id){if(!$$.isloaded)return;$("textarea"+(id?("#"+id):"")+"[@wysiwyg]").each(function(){$$.editor.deactivate(this.id);this.wysiwyg=null;});},Toggle:function(id){if(!$$.isloaded||id==null)return;$$.editor.toggle(id);},isActive:function(id){return(!$$.isloaded||id==null)?false:$$.editor.isActive(id);},isCanged:function(id){return(!$$.isloaded||id==null)?false:$$.editor.isCanged(id);},setCanged:function(id,flag){if(!$$.isloaded||id==null)return;$$.editor.setCanged(id,flag);},Focus:function(id){if(!$$.isloaded||id==null)return;$$.editor.Focus(id);},getContent:function(id){return $$.isloaded&&$$.isActive(id)?$$.editor.getContent(id):null;},setContent:function(id,cont){if(!$$.isloaded)return;if(!cont){cont=id;id=null;}
if($$.isActive(id))$$.editor.setContent(id,cont);},openFilemanager:function(){if(!$$.isloaded)return;$$.editor.openFilemanager.apply(this,arguments);return false;}}})();(function(){var $$=$.Tabs=function(options){this.options=$.extend({},$$.options,options);};$$.options={start:1,speed:false,onClick:null,callback:null};$$.prototype={options:{},wrapall:null,active:null,getTabname:function(el){return el.href.replace(/^.*#/,'');;},mouseclick:function(e){var _t=e.data._t;var tabname=_t.getTabname(this);this.blur();_t.set(tabname);return false;},set:function(tabname){var _t=this;if(_t.options.onClick&&!_t.options.onClick(tabname))return;$("ul.anchors a",_t.wrapall).removeClass("active").filter("a[@href$="+tabname+"]").addClass("active");$("#"+_t.active,_t.wrapall).hide(_t.options.speed);$("#"+tabname,_t.wrapall).show(_t.options.speed);_t.active=tabname;if(_t.options.callback)_t.options.callback(_t.active);return;}};$.fn.extend({Tabs:function(options){return this.each(function(){var _t=new $$(options);_t.wrapall=this;_t.active=_t.options.start;$("div.fragment:not(#"+_t.active+")",_t.wrapall).hide();$("div#"+_t.active,_t.wrapall).show();$("ul.anchors a[@href$="+_t.active+"]",_t.wrapall).addClass("active");$("ul.anchors a",_t.wrapall).bind("click",{_t:_t},_t.mouseclick);this.Tabs=_t;});}});})();(function(){var $$=$.Sifr=function(options){this.options=$.extend({},$$.options,options);};$$.options={path:"media/sifr/",font:null,color:null,backgroundColor:null,textAlign:null,width:null,height:null,offsetLeft:null,offsetTop:null,link:null,hover:null,underline:null};$$.prototype={options:{},flashparams:{},flashvars:{}};$.fn.extend({Sifr:function(options){return this.each(function(){if(this.Sifr)return;var _t=new $$(options);var $this=$(this);var text=$this.text();if($this.css('textTransform')=='uppercase')text=text.toUpperCase();if($this.css('textTransform')=='lowercase')text=text.toUpperCase();var font=_t.options.font||(/([^\'\",]+)[,]?/.exec($this.css('fontFamily'))||[,])[1];var bgColor=$.color2hex(_t.options.backgroundColor||$this.css('backgroundColor'));_t.flashparams.url=_t.options.path+font+'.swf';_t.flashparams.width=_t.options.width||$this.width();_t.flashparams.height=_t.options.height||$this.height();_t.flashparams.transparent=true;_t.flashvars.w=_t.flashparams.width;_t.flashvars.h=_t.flashparams.height;_t.flashvars.textalign=_t.options.textAlign||$this.css('textAlign')||'left';;_t.flashvars.txt=text;_t.flashvars.textcolor=$.color2hex(_t.options.color||$this.css('color'));if(_t.options.underline||($this.css('textDecoration')=='underline'))_t.flashvars.underline=true;if(bgColor)_t.flashvars.bgColor=bgColor;if(_t.options.link)_t.flashvars.linkColor=s.link;if(_t.options.hover)_t.flashvars.hoverColor=s.hover;if($this.css('textDecoration')=='underline')_t.flashvars.underline=true;if(_t.options.offsetLeft)_t.flashvars.offsetLeft=_t.options.offsetLeft;if(_t.options.offsetTop)_t.flashvars.offsetTop=_t.options.offsetTop;$this.wrapInner('<span style="display:none;"></span>');$this.append($.Flash.getHTML(_t.flashparams,_t.flashvars));this.Sifr=_t;});}});})();(function($){var $$=$._NAME_=function(options){this.options=$.extend({},$$.options,options||{});};$$.options={param1:1,param2:2,param3:3};$$.prototype={options:{},var1:"v1",var2:"v2",func1:function(){var _t=this;return(_t.options.param1);}};$.fn.extend({_NAME_:function(options){return this.each(function(){if(this._NAME_)return;var _t=new $$(options);this._NAME_=_t;});}});})(jQuery);window.dhtmlHistory={isIE:false,isOpera:false,isSafari:false,isKonquerer:false,isGecko:false,isSupported:false,ieBlank:"framework/js/rsh/blank.html",create:function(options){var that=this;var UA=navigator.userAgent.toLowerCase();var platform=navigator.platform.toLowerCase();var vendor=navigator.vendor||"";if(vendor==="KDE"){this.isKonqueror=true;this.isSupported=false;}else if(typeof window.opera!=="undefined"){this.isOpera=true;this.isSupported=true;}else if(typeof document.all!=="undefined"){this.isIE=true;this.isSupported=true;}else if(vendor.indexOf("Apple Computer, Inc.")>-1){this.isSafari=true;this.isSupported=(platform.indexOf("mac")>-1);}else if(UA.indexOf("gecko")!=-1){this.isGecko=true;this.isSupported=true;}
window.historyStorage.setup(options);if(this.isSafari){this.createSafari();}else if(this.isOpera){this.createOpera();}
var initialHash=this.getCurrentLocation();this.currentLocation=initialHash;if(this.isIE){this.createIE(initialHash);}
var unloadHandler=function(){that.firstLoad=null;};this.addEventListener(window,'unload',unloadHandler);if(this.isIE){this.ignoreLocationChange=true;}else{if(!historyStorage.hasKey(this.PAGELOADEDSTRING)){this.ignoreLocationChange=true;this.firstLoad=true;historyStorage.put(this.PAGELOADEDSTRING,true);}else{this.ignoreLocationChange=false;this.fireOnNewListener=true;}}
var locationHandler=function(){that.checkLocation();};setInterval(locationHandler,100);},initialize:function(){if(this.isIE){if(!historyStorage.hasKey(this.PAGELOADEDSTRING)){this.fireOnNewListener=false;this.firstLoad=true;historyStorage.put(this.PAGELOADEDSTRING,true);}
else{this.fireOnNewListener=true;this.firstLoad=false;}}},addListener:function(listener){this.listener=listener;if(this.fireOnNewListener){this.fireHistoryEvent(this.currentLocation);this.fireOnNewListener=false;}},addEventListener:function(o,e,l){if(o.addEventListener){o.addEventListener(e,l,false);}else if(o.attachEvent){o.attachEvent('on'+e,function(){l(window.event);});}},add:function(newLocation,historyData){if(this.isSafari){newLocation=this.removeHash(newLocation);historyStorage.put(newLocation,historyData);this.currentLocation=newLocation;window.location.hash=newLocation;this.putSafariState(newLocation);}else{var that=this;var addImpl=function(){if(that.currentWaitTime>0){that.currentWaitTime=that.currentWaitTime-that.waitTime;}
newLocation=that.removeHash(newLocation);if(document.getElementById(newLocation)&&that.debugMode){var e="Exception: History locations can not have the same value as _any_ IDs that might be in the document,"
+" due to a bug in IE; please ask the developer to choose a history location that does not match any HTML"
+" IDs in this document. The following ID is already taken and cannot be a location: "+newLocation;throw new Error(e);}
historyStorage.put(newLocation,historyData);that.ignoreLocationChange=true;that.ieAtomicLocationChange=true;that.currentLocation=newLocation;window.location.hash=newLocation;if(that.isIE){that.iframe.src=that.ieBlank+"?"+newLocation;}
that.ieAtomicLocationChange=false;};window.setTimeout(addImpl,this.currentWaitTime);this.currentWaitTime=this.currentWaitTime+this.waitTime;}},isFirstLoad:function(){return this.firstLoad;},getVersion:function(){return"0.6";},getCurrentLocation:function(){var r=(this.isSafari?this.getSafariState():this.getCurrentHash());return r;},getCurrentHash:function(){var r=window.location.href;var i=r.indexOf("#");return(i>=0?r.substr(i+1):"");},PAGELOADEDSTRING:"DhtmlHistory_pageLoaded",listener:null,waitTime:200,currentWaitTime:0,currentLocation:null,iframe:null,safariHistoryStartPoint:null,safariStack:null,safariLength:null,ignoreLocationChange:null,fireOnNewListener:null,firstLoad:null,ieAtomicLocationChange:null,createIE:function(initialHash){this.waitTime=400;var styles=(historyStorage.debugMode?'width: 800px;height:80px;border:1px solid black;':historyStorage.hideStyles);var iframeID="rshHistoryFrame";var iframeHTML='<iframe frameborder="0" id="'+iframeID+'" style="'+styles+'" src="'+this.ieBlank+'?'+initialHash+'"></iframe>';$("body").append(iframeHTML);this.iframe=document.getElementById(iframeID);},createOpera:function(){this.waitTime=400;var imgHTML='<img src="javascript:location.href=\'javascript:dhtmlHistory.checkLocation();\';" style="'+historyStorage.hideStyles+'" />';$("body").append(imgHTML);},createSafari:function(){var formID="rshSafariForm";var stackID="rshSafariStack";var lengthID="rshSafariLength";var formStyles=historyStorage.debugMode?historyStorage.showStyles:historyStorage.hideStyles;var inputStyles=(historyStorage.debugMode?'width:800px;height:20px;border:1px solid black;margin:0;padding:0;':historyStorage.hideStyles);var safariHTML='<form id="'+formID+'" style="'+formStyles+'">'
+'<input type="text" style="'+inputStyles+'" id="'+stackID+'" value="[]"/>'
+'<input type="text" style="'+inputStyles+'" id="'+lengthID+'" value=""/>'
+'</form>';$("body").append(safariHTML);this.safariStack=document.getElementById(stackID);this.safariLength=document.getElementById(lengthID);if(!historyStorage.hasKey(this.PAGELOADEDSTRING)){this.safariHistoryStartPoint=history.length;this.safariLength.value=this.safariHistoryStartPoint;}else{this.safariHistoryStartPoint=this.safariLength.value;}},getSafariStack:function(){var r=this.safariStack.value;return historyStorage.fromJSON(r);},getSafariState:function(){var stack=this.getSafariStack();var state=stack[history.length-this.safariHistoryStartPoint-1];return state;},putSafariState:function(newLocation){var stack=this.getSafariStack();stack[history.length-this.safariHistoryStartPoint]=newLocation;this.safariStack.value=historyStorage.toJSON(stack);},fireHistoryEvent:function(newHash){var historyData=historyStorage.get(newHash);this.listener.call(null,newHash,historyData);},checkLocation:function(){if(!this.isIE&&this.ignoreLocationChange){this.ignoreLocationChange=false;return;}
if(!this.isIE&&this.ieAtomicLocationChange){return;}
var hash=this.getCurrentLocation();if(hash==this.currentLocation){return;}
this.ieAtomicLocationChange=true;if(this.isIE&&this.getIframeHash()!=hash){this.iframe.src=this.ieBlank+"?"+hash;}
else if(this.isIE){return;}
this.currentLocation=hash;this.ieAtomicLocationChange=false;this.fireHistoryEvent(hash);},getIframeHash:function(){var doc=this.iframe.contentWindow.document;var hash=String(doc.location.search);if(hash.length==1&&hash.charAt(0)=="?"){hash="";}
else if(hash.length>=2&&hash.charAt(0)=="?"){hash=hash.substring(1);}
return hash;},removeHash:function(hashValue){var r;if(hashValue===null||hashValue===undefined){r=null;}
else if(hashValue===""){r="";}
else if(hashValue.length==1&&hashValue.charAt(0)=="#"){r="";}
else if(hashValue.length>1&&hashValue.charAt(0)=="#"){r=hashValue.substring(1);}
else{r=hashValue;}
return r;},iframeLoaded:function(newLocation){if(this.ignoreLocationChange){this.ignoreLocationChange=false;return;}
var hash=String(newLocation.search);if(hash.length==1&&hash.charAt(0)=="?"){hash="";}
else if(hash.length>=2&&hash.charAt(0)=="?"){hash=hash.substring(1);}
window.location.hash=hash;this.fireHistoryEvent(hash);}};window.historyStorage={setup:function(options){if(typeof options!=="undefined"){if(options.debugMode){this.debugMode=options.debugMode;}
if(options.toJSON){this.toJSON=options.toJSON;}
if(options.fromJSON){this.fromJSON=options.fromJSON;}}
var formID="rshStorageForm";var textareaID="rshStorageField";var formStyles=this.debugMode?historyStorage.showStyles:historyStorage.hideStyles;var textareaStyles=(historyStorage.debugMode?'width: 800px;height:80px;border:1px solid black;':historyStorage.hideStyles);var textareaHTML='<form id="'+formID+'" style="'+formStyles+'">'
+'<textarea id="'+textareaID+'" style="'+textareaStyles+'"></textarea>'
+'</form>';$("body").append(textareaHTML);this.storageField=document.getElementById(textareaID);if(typeof window.opera!=="undefined"){this.storageField.focus();}},put:function(key,value){this.assertValidKey(key);if(this.hasKey(key)){this.remove(key);}
this.storageHash[key]=value;this.saveHashTable();},get:function(key){this.assertValidKey(key);this.loadHashTable();var value=this.storageHash[key];if(value===undefined){value=null;}
return value;},remove:function(key){this.assertValidKey(key);this.loadHashTable();delete this.storageHash[key];this.saveHashTable();},reset:function(){this.storageField.value="";this.storageHash={};},hasKey:function(key){this.assertValidKey(key);this.loadHashTable();return(typeof this.storageHash[key]!=="undefined");},isValidKey:function(key){return(typeof key==="string");},showStyles:'border:0;margin:0;padding:0;',hideStyles:'left:-1000px;top:-1000px;width:1px;height:1px;border:0;position:absolute;',debugMode:false,storageHash:{},hashLoaded:false,storageField:null,assertValidKey:function(key){var isValid=this.isValidKey(key);if(!isValid&&this.debugMode){throw new Error("Please provide a valid key for window.historyStorage. Invalid key = "+key+".");}},loadHashTable:function(){if(!this.hashLoaded){var serializedHashTable=this.storageField.value;if(serializedHashTable!==""&&serializedHashTable!==null){this.storageHash=this.fromJSON(serializedHashTable);this.hashLoaded=true;}}},saveHashTable:function(){this.loadHashTable();var serializedHashTable=this.toJSON(this.storageHash);this.storageField.value=serializedHashTable;},toJSON:function(o){return 1;},fromJSON:function(s){return 1;}};(function(){var $$=$.menu_Tmv1=function(options){this.options=$.extend({},$$.options,options||{});};$$.arrMenus=[];$$._onClickFromFlash=function(arrIdx,divId){var _t=$$.arrMenus[arrIdx];if(_t)_t.onClickItem(divId);};$$.options={type:"xml",db_table:"",xml_url:null,xml_tagname:"",xml_id:"",data_url:null,langid:"",prefix:"",minopenlevel:1,cutlinelevel:1,cutlineid:"cutline",showdir:"height",speed:300,name:"menuitem",subsearch:2,activeId:"",flashparam:[],isFlash:false,isIndent:true,isAutoHide:true,isCutline:true,isCache:false,isGlobal:true,onClickItem:null,onClickNode:null,onMake:null};$$.prototype={arrIdx:0,options:{},place:null,xml_dom:null,xml_node:null,divs:null,isLoading:false,_lastActive:null,load:function(options){var _t=this;_t.isLoading=true;_t.options=$.extend({},_t.options,options||{});_t.options.activeId=$.file.delBoundSlash(_t.options.activeId);$(_t.place).hide();var data={action:"printMenuXml",type:_t.options.type,db_table:_t.options.db_table,xml_url:_t.options.xml_url,xml_tagname:_t.options.xml_tagname,xml_id:_t.options.xml_id,langid:_t.options.langid,prefix:_t.options.prefix};$.ajax({async:true,type:"GET",dataType:"xml",cache:_t.options.isCache,global:_t.options.isGlobal,data:data,url:_t.options.data_url,complete:function(xml,status){_t.isLoading=false;if(status=="success"){_t.xml_dom=xml.responseXML;if(_t.options.xml_id){_t.xml_node=$.XML.xpath(_t.xml_dom,'//*[@id="'+_t.options.xml_id+'"]')[0];}else{_t.xml_node=$(_t.options.xml_tagname,_t.xml_dom)[0];}
_t.make();}else{$.errors.trigger($.errors.ERROR,"Cannot load menu xml [func: $.menu_Tmv1.make]");}}});},make:function(options){var _t=this,md;_t.options=$.extend({},_t.options,options||{});_t.options.activeId=$.file.delBoundSlash(_t.options.activeId);var parseNode=function(node,level,flag){var type,cnode,text,id,parentid,href;for(var i=0;i<node.childNodes.length;i++){cnode=node.childNodes[i];type=cnode.nodeType;if(type==$.XML.ELEMENT_NODE){parseNode(cnode,level+1,cnode.childNodes.length>1);}else if(type>=$.XML.TEXT_NODE&&level>0){text=$.trim(cnode.nodeValue);if(text.length>0){id=$(node).attr("id");parentid=$(node.parentNode).attr("id");href=_t._formatHref(id);$(_t.place).append(_t.getItem(id,parentid,level,text,!flag));}}}};$(_t.place).empty().hide();if(_t.xml_node){parseNode(_t.xml_node,0,false);var level=1;var parentid=_t.xml_tagname;$("div",_t.place).each(function(){md=$(this).metaData("attr","data");if(md.level>_t.options.minopenlevel)$(this).hide();if(!md.iscont&&md.level<_t.options.minopenlevel)$("*",this).replaceClass(_t.options.name+"_open",_t.options.name+"_close");if(_t.options.isCutline&&md.level<level&&md.level<=_t.options.cutlinelevel){var cut=$(this).before(_t.getItem(_t.options.cutlineid,parentid,level," ",true)).prev();if(level>_t.options.minopenlevel)cut.hide();}
level=md.level;parentid=md.parentid;});}
_t.setChanges();if(_t.options.speed){$(_t.place).slideDown(_t.options.speed);}else{$(_t.place).show();}
if(_t.options.onMake)_t.options.onMake();},setChanges:function(){var _t=this;_t.divs=$("div",_t.place);$("div a",_t.place).bind("click",{_t:_t},_t._onClickA);},onClickItem:function(id){var _t=this,res,tmp,md,isShow,isHide,arrShow=[],arrHide=[];if(_t.isLoading)return;res=_t.findDivById(id);if(res==null)return;if(res.md.iscont&&_t.options.onClickItem){return _t.options.onClickItem(res.md.id,res.md);}else{_t.divs.each(function(){isShow=false;isHide=false;md=$(this).metaData("attr","data");if(md.level==1)return;if(md.parentid==res.md.id){if($(this).is(":visible"))isHide=true;else isShow=true;}else{if(_t.options.isAutoHide){isHide=(md.level>=(res.md.level+1));}else{tmp=md;do{tmp=_t.findDivById(tmp.parentid);if(!tmp)break;tmp=tmp.md;if(res.md.id==tmp.id){isHide=true;break;}}while(true);}}
if(isHide&&md.level>_t.options.minopenlevel){arrHide.push(this);}else if(isShow){arrShow.push(this);}});_t.animate(arrShow,arrHide);if(_t.options.onClickNode)return _t.options.onClickNode(res.md.id,res.md);}},setCurrItem:function(id){var _t=this,res,md,is,arr=[],arrHide=[],arrShow=[];if(_t.isLoading)return false;res=_t.findDivById(id);if(!res){id=$.file.getPath(id);for(var i=0;i<_t.options.subsearch;i++){res=_t.findDivById(id);if(res)break;id=$.file.parentFolder(id);}
if(!res){_t.closeAllItems();return false;}}
var ares=res;do{arr.push(res);res=_t.findDivById(res.md.parentid);}while(res!=null);_t.divs.each(function(){md=$(this).metaData("attr","data");if(md.level==1)return;is=false;for(var i=0;i<arr.length;i++){if(arr[i].md.parentid==md.parentid){is=true;break;}}
if(is){arrShow.push(this);}else{if(_t.options.isAutoHide&&md.level>_t.options.minopenlevel)arrHide.push(this);}});_t.animate(arrShow,arrHide);_t.delActive();_t.setActive(ares);return true;},clickFirstItem:function(){var _t=this,md;md=$(_t.divs[0]).metaData("attr","data");setTimeout(function(){_t.onClickItem(md.id,md);},50);},closeAllItems:function(level){var _t=this,md,arrShow=[],arrHide=[];if(_t.isLoading)return;level=level||_t.options.minopenlevel;_t.divs.each(function(){md=$(this).metaData("attr","data");if(md.level>level)arrHide.push(this);});_t.delActive();_t.animate(arrShow,arrHide);},animate:function(arrShow,arrHide){var _t=this,md,res;if(_t.options.speed){var hide={},show={};hide[_t.options.showdir]="hide";show[_t.options.showdir]="show";$(arrHide).animate(hide,_t.options.speed);$(arrShow).animate(show,_t.options.speed);}else{$(arrHide).hide();$(arrShow).show();}
$(arrShow).each(function(){md=$(this).metaData("attr","data");res=_t.findDivById(md.parentid);if(res)$("*",res.div).replaceClass(_t.options.name+"_open",_t.options.name+"_close");});$(arrHide).each(function(){md=$(this).metaData("attr","data");res=_t.findDivById(md.parentid);if(res)$("*",res.div).replaceClass(_t.options.name+"_close",_t.options.name+"_open");});},setActive:function(res){var _t=this;if(_t.options.isFlash){setTimeout(function(){$.Flash.setVariable(_t._formatFlashId(res.md.id),"active","true");},300);}else{$("a",res.div).addClass(_t.options.name+"_active").addClass(_t.options.name+"_active"+res.md.level);}
_t._lastActive=res;},delActive:function(res){var _t=this;if(!res){res=_t._lastActive;_t._lastActive=null;}
if(res){if(_t.options.isFlash){setTimeout(function(){$.Flash.setVariable(_t._formatFlashId(res.md.id),"active","false");},300);}else{$("a",res.div).removeClass(_t.options.name+"_active").removeClass(_t.options.name+"_active"+res.md.level);}}},isActive:function(id){var _t=this;return _t._lastActive?_t._lastActive.md.id==id:false;},findDivById:function(id){var _t=this,seek="";if(id){id=$.file.delBoundSlash(id);seek=$.file.isFile(id)?"fullid":"pathid";for(var i=0;i<_t.divs.length;i++){if(_t.divs[i][seek]==id){return{div:_t.divs[i],md:$(_t.divs[i]).metaData("attr","data")};}}}
return null;},findDivByIndex:function(i){var _t=this;return i>=_t.divs.length?null:{div:_t.divs[i],md:$(_t.divs[i]).metaData("attr","data")};},findNodeById:function(id){var _t=this;return $("[id="+id+"]",_t.xml_node)[0];},getItem:function(id,parentid,level,text,iscont,isclose){var _t=this,div,md,s,ss="",iscut=(id==_t.options.cutlineid),isactive;if(!iscut){id=_t._formatId(id);parentid=_t._formatId(parentid);}
div=$.create("div",{"class":_t.options.name+(iscut?"_cutline":"_div")})[0];md=$(div).metaData("attr","data");md.id=id;div.fullid=id;div.pathid=$.file.delEndSlash($.file.getPath(id));md.level=level;md.parentid=parentid;md.text=text;md.iscont=iscont;isactive=_t.options.activeId==($.file.isFile(_t.options.activeId)?div.fullid:div.pathid);if(!iscut){if(_t.options.isFlash){var url="media/"+_t.options.name;var fp=_t.options.flashparam[level];if(fp){url+=level;}else{fp=_t.options.flashparam[0];url+=0;}
fp.url=url+".swf";fp.id=_t._formatFlashId(id);s=$.Flash.getHTML(fp,{text:$.langs.str(text),level:level,arrIdx:_t.arrIdx,divId:id,callback:"$.menu_Tmv1._onClickFromFlash",active:isactive?"true":"false"});}else{if(_t.options.isIndent){for(var i=0;i<level;i++)ss+="&nbsp;&nbsp;&nbsp;&nbsp;"}
if(!iscont&&level<_t.options.minopenlevel){s='<span class="'+_t.options.name+' '+_t.options.name+level+' '+(iscont?"":_t.options.name+(isclose?'_close':'_open'))+'">'+ss+$.langs.str(text)+'</span>';}else{s='<a href="'+_t._formatHref(id)+'" class="'+_t.options.name+' '+_t.options.name+level+' '+(iscont?"":_t.options.name+(isclose?'_close':'_open'))+'">'+ss+$.langs.str(text)+'</a>';}}}else{s="&nbsp;"}
$(div).append(s);if(isactive)_t.setActive({div:div,md:md});return div;},_onClickA:function(e){var _t=e.data._t;this.blur();if(_t.isLoading)return false;var md=$(this).parent("div").metaData("attr","data");return _t.onClickItem(md.id)==true?true:false;},_formatId:function(id){var _t=this;if(_t.options.prefix)id=$.file.addEndSlash(_t.options.prefix)+$.file.delBoundSlash(id);return id;},_formatHref:function(id){var _t=this,id=$.file.addStartSlash(id);if(!$.file.isFile(id))id=$.file.addEndSlash(id);return id;},_formatFlashId:function(id){var _t=this;id=$.file.delEndSlash($.file.getPath(id));id=id.replace(/\//gi,"_");return _t.options.name+"_swf_"+id;}};$.fn.extend({menu_Tmv1:function(options,isNotLoad){return this.each(function(){if(this.menu_Tmv1)return;var _t=new $$(options);$$.arrMenus.push(_t);_t.arrIdx=$$.arrMenus.length-1;_t.place=this;if(!isNotLoad)_t.load();this.menu_Tmv1=_t;});}});})();$.errors.debug=false;if(!top.Kernel){(function(){(function(){$.ajaxSetup({type:"POST"});var $$=Kernel=top.Kernel={isloading:false,arrUnits:[],onload:function(){Kernel.Config.init($$.init);},init:function(){$("#loading").ajaxStart(function(){$$.isloading=true;$(this).show();$("#lay_content").css({opacity:0.4});}).ajaxStop(function(){$$.isloading=false;$(this).hide();$("#lay_content").animate({opacity:1.0},350);}).css({position:"fixed"});$("#loading, #loading *, #tooltip *, #viewer *").msiefixPNG().msiefixFixed();$.extend($.Modal.options,{css:{"background-color":"#222",cursor:"wait",opacity:"0.5"}});for(var i=0;i<$$.arrUnits.length;i++){var func=$$.arrUnits[i].init;if(func)func();}
$$.addHandlers();$.interrupt.add("Kernel.MainMenu.onClickItem, Kernel.Viewer.open, Kernel.Header.onClickLang",function(){if($$.isloading)$.interrupt.stop();});$.interrupt.add("Kernel.Content.onLoad",function(id){Kernel.Feature.next();Kernel.MainMenu.setCurrItem(id);});$("#lay_site").show();},addUnit:function(ref){$$.arrUnits.push(ref);},delUnit:function(ref){for(var i=0;i<$$.arrUnits.length;i++){if(ref==$$.arrUnits[i]){$$.arrUnits.splice(i,1);break;}}},addHandlers:function(id){if(!id)id="body";$(id+" *").msiefixOpacity();$(id+" img").msiefixPNG();$(id+" .btn").hover(function(){$(this).addClass("btnover");},function(){$(this).removeClass("btnover");}).click(function(){this.blur();});$(id+" .fld").focus(function(){$(this).addClass("fldfocus");}).blur(function(){$(this).removeClass("fldfocus");});if(Kernel.Config.isAjax){$(id+" a.menulink").click(function(){this.blur();Kernel.Content.load(this.pathname);return false;});}
$(id+" input.menulink").click(function(){this.blur();var url=$(this).attr("href");if(Kernel.Config.isAjax){Kernel.Content.load(url);}else{window.location=url;}
return false;});$(id+" a.popuplink").click(function(){this.blur();var id=this.href;if(window.pageTracker)pageTracker._trackPageview(id);var win=window.open(id,"");return false;});$(id+" .tooltiped").Tooltip({tipboxid:"#tooltip",shiftx:-25,shifty:15,cursor:false,onshow:function(_t){return!Kernel.isloading;},onmove:function(_t){$("#tooltip .bg").setClass("bg bg_pos_"+_t.tx+""+_t.ty);$("#tooltip .message").setClass("message message_pos_"+_t.tx+""+_t.ty);}});$(id+" a[href^=mailto]").each(function(){var arr,src,email="";if(this.href.indexOf("@")>1)return;arr=this.href.split(":")[1].split("..");if(arr.length!=2)return;src=arr[1].split(".");while(src.length>0)email+=src.pop()+".";email=$.rtrim(email,"\.")+"@";src=arr[0].split(".");while(src.length>0)email+=src.pop()+".";email=$.rtrim(email,"\.");this.href="mailto:"+email;});}};})();(function(){var $$=Kernel.Config={langid:"ru",langs:["ru"],isAjax:true,isHijax:true,isFlash:false,init:function(onInit){if($.browser.msie6&&$$.isFlash)$$.isHijax=false;if(top.jsProxy&&top.jsProxy.langid&&top.jsProxy.langs){$$._initLang(top.jsProxy.langid,top.jsProxy.langs);if(onInit)onInit();}else{var data={action:"getlangid"};$.ajax({type:"POST",dataType:"html",data:data,url:"data.langs.php",complete:function(xml,status){var res={error:"true",langid:$$.langid,langs:$$.langs};if(status=="success")res=$.parseJSON(xml.responseText,res);$$._initLang(res.langid,res.langs);if(onInit)onInit();}});}},_initLang:function(langid,langs){if(langs&&langs.constructor==Array)$$.langs=langs;for(var i=0;i<$$.langs.length;i++){if($$.langs[i]==langid){$$.langid=langid;break;}}
$.langs.set({langid:$$.langid,type:"php",php_url:"data.langs.php",path:"langs/"});},setLang:function(langid){if($$.langid==langid)return;for(var i=0;i<$$.langs.length;i++){if($$.langs[i]==langid){var data={action:"setlangid",langid:langid};$.ajax({type:"POST",dataType:"html",data:data,url:"data.langs.php",complete:function(xml,status){if(status=="success"){$$.langid=langid;$.langs.set({langid:$$.langid});$(".langs>div").hide();$(".langs>div."+Kernel.Config.langid).show();for(var i=0;i<Kernel.arrUnits.length;i++){var func=Kernel.arrUnits[i].setLang;if(func)func();}}}});break;}}}};})();(function(){var $$=Kernel.Header={init:function(){$("#lay_header .html").hide();$("#lay_header").Flash({url:"media/header.swf",id:"header_swf",width:"970px",height:"101px",bgcolor:"#0B2751",transparent:true});},_onClickLang:function(e){this.blur();var md=$(this).metaData(0,"attr","data");$$.onClickLang(md.langid);return false;},onClickMenu:function(id){var lid=Kernel.Config.langid+"/";var arr=[null,Kernel.Content.getStart()];var cid=arr[id];Kernel.MainMenu.onClickItem(cid);},onClickLang:function(langid){Kernel.Config.setLang(langid);},setLang:function(){}};Kernel.addUnit($$);})();(function(){var $$=Kernel.MainMenu={lay_id:"lay_menu",ref:null,menu:null,init:function(){$$.ref=$("#"+$$.lay_id)[0];$($$.ref).menu_Tmv1({xml_url:"admin/menu_site.xml",xml_tagname:"mainmenu",name:"mainmenuitem",data_url:"/data.menu.php",langid:Kernel.Config.langid,prefix:Kernel.Config.langid,speed:Kernel.Config.isFlash?false:300,onClickItem:$$.onClickItem,subsearch:3,activeId:Kernel.Content.getCurrent(),flashparam:[{width:"204px",height:"21px",bgcolor:"#29496E"},{width:"204px",height:"29px",bgcolor:"#203B60"}],isFlash:Kernel.Config.isFlash,onMake:$$.onMake});$$.menu=$$.ref.menu_Tmv1;},onClickItem:function(id,md){if(Kernel.Config.isAjax)Kernel.Content.load(id);else return true;},setCurrItem:function(id){$$.menu.setCurrItem(id);},closeAllItems:function(){$$.menu.closeAllItems();},onMake:function(){$$.menu.setCurrItem(Kernel.Content.getCurrent());},setLang:function(){$$.menu.make({langid:Kernel.Config.langid,prefix:Kernel.Config.langid});}}
Kernel.addUnit($$);})();(function(){var $$=Kernel.Content={lay_id:"#lay_content",start:"home",current:"",isloading:false,init:function(){if(Kernel.Config.isAjax){$.Hijax.checkLocation();if(Kernel.Config.isHijax){$.Hijax.init($$._load);}else{$$.load($.Hijax.getCurrent());}}else{$$._firstLoad($.Hijax.getLocation());}},getStart:function(){if(top.jsProxy&&top.jsProxy.homepage)$$.start=top.jsProxy.homepage;return Kernel.Config.langid+$.file.addStartSlash($$.start);},getCurrent:function(){var tmp=Kernel.Config.isAjax?$.Hijax.getCurrent():$.Hijax.getLocation();return tmp?tmp:($$.current?$$.current:$$.getStart());},load:function(id){if(Kernel.Content.isloading)return;if(!id)id=$$.getStart();id=$.file.delStartSlash(id);if(!$.file.isFile(id))id=$.file.addEndSlash(id);if(Kernel.Config.isHijax){$.Hijax.load(id);}else{$$._load(id);}},_load:function(id){if(Kernel.Content.isloading)return;if(!id)id=$$.getStart();if(window.pageTracker)pageTracker._trackPageview(id);if($$.current==""&&id==$$.getStart()){$$._firstLoad(id);return;}
$$.current=id;var data={forajax:"true",content:id};var url=$.file.addStartSlash(id);if(!$.file.isFile(id))url=$.file.addEndSlash(id);Kernel.Content.isloading=true;$$.onLoad(id);$.ajax({type:"POST",dataType:"html",data:data,url:url,complete:function(xml,status){Kernel.Content.isloading=false;if(status=="success"){$($$.lay_id).css({opacity:0}).show();$$.scrollTop();$($$.lay_id).html(xml.responseText);$$.parse_tags(xml.responseText);Kernel.addHandlers($$.lay_id);}else{$($$.lay_id).html($.langs.str("Loading Error!","Loading Error!"));}
$$.onAfterLoad(id);}});},_firstLoad:function(id){$($$.lay_id).css({opacity:0}).show().animate({opacity:1.0},450);$$.current=id;Kernel.addHandlers($$.lay_id);$$.onAfterLoad(id);},parse_tags:function(cont){var tag_0='<tag_title>';var tag_1='<\\/tag_title>';var re=new RegExp("(.*"+tag_0+")(.*)("+tag_1+".*)");var matches=re.exec(cont);if(matches&&matches[2])window.document.title=matches[2];},onLoad:function(id){},onAfterLoad:function(){},scrollTop:function(v){$(window).scrollTop(v||0);},setLang:function(){var arr=$.file.delBoundSlash($$.getCurrent()).split("/");arr.shift();var newid="/"+Kernel.Config.langid+"/"+arr.join("/");if(!$.file.isFile(newid))newid=$.file.addEndSlash(newid);$$.load(newid);}};Kernel.addUnit($$);})();(function(){var $$=Kernel.Login={lay_id:"#lay_login",init:function(){$$.initForm();},load:function(){var data={};$.ajax({type:"POST",dataType:"html",data:data,url:"data.login.php",complete:function(xml,status){if(status=="success"){$($$.lay_id).html(xml.responseText);setTimeout(function(){$$.initForm();},100)}else{$($$.lay_id).html($.langs.str("Loading Error.","Loading Error!"));}}});},initForm:function(){$.langs.load({module:"FormValid",path:"framework/langs/"});Kernel.addHandlers($$.lay_id);$("#form_login",$$.lay_id).FormValid({validonblur:false,onsubmit:function(){var f=this;var url=$.file.addStartSlash($.URL.delHost($(f).attr("action")));f.reset();Kernel.Content.load(url);return false;}});},setLang:function(){$$.load();}};Kernel.addUnit($$);})();(function(){var $$=Kernel.Feature={index:0,quant:3,init:function(){$$.load();},load:function(){var data={index:$$.index,quant:$$.quant};var url="data.feature.php";$.ajax({type:"POST",dataType:"html",data:data,url:url,complete:function(xml,status){if(status=="success"){$("#lay_feature").animate({opacity:0.0},400,function(){$("#lay_feature").html(xml.responseText);$("#lay_feature").animate({opacity:1.0},400);Kernel.addHandlers("#lay_feature");});}else{$("#lay_feature").html($.langs.str("Loading Error!","Loading Error!"));}}});},next:function(){$$.index+=$$.quant;$$.load();},setLang:function(){$$.load();}};Kernel.addUnit($$);})();(function(){var $$=Kernel.Contact={lay_id:"#lay_footer_contact",speed:600,init:function(){if(Kernel.Config.isFlash){$(".html",$$.lay_id).hide();$($$.lay_id).Flash({url:"/media/contact.swf",id:"contact_swf",width:"318px",height:"113px",bgcolor:"#8090A0",expressinstall:false},{langid:Kernel.Config.langid});}else{$(".icq",$$.lay_id).click(function(e){return false;});}},setLang:function(){if(Kernel.Config.isFlash){$($$.lay_id).Flash({url:"/media/contact.swf",id:"contact_swf",width:"318px",height:"113px",bgcolor:"#8090A0",expressinstall:false},{langid:Kernel.Config.langid});}else{}}};Kernel.addUnit($$);})();(function(){var $$=Kernel.Clients={lay_id:"#lay_footer_clients",index:0,data:[],timeid:null,quant:5,init:function(){if(top.jsProxy&&top.jsProxy.feature_clients){$$._init(top.jsProxy.feature_clients);}else{var data={action:"getdata"};$.ajax({type:"POST",dataType:"html",data:data,url:"data.clients.php",complete:function(xml,status){var res={error:"true"};if(status=="success"){var res=$.parseJSON(xml.responseText,res);$$._init(res);}}});}},_init:function(res){if(res&&res.error=="false"){$$.data=res.data;$$.show();}
Kernel.addHandlers($$.lay_id);},show:function(){for(var n=$$.index;n<$$.index+$$.quant;n++){$$.swap((n%$$.quant),n%$$.data.length);}
$$.timeid=setTimeout(function(){$$.next()},15000);},next:function(){$$.index=($$.index+=$$.quant)%$$.data.length;$$.show();},swap:function(i,n){setTimeout(function(){$(".client"+i,$$.lay_id).animate({opacity:0.0},500,function(){$(".client"+i,$$.lay_id).html('<img src="media/clients/'+$$.data[n].image+'" />');var tooltip=$(".client"+i+"_hitzone",$$.lay_id)[0].Tooltip;if(tooltip){if(tooltip.isshow)tooltip.hide();$$.setTooltip(i,n);}
$(".client"+i,$$.lay_id).animate({opacity:1.0},500);});},150*i);},setTooltip:function(i,n){var str="";str+='<h2>'+$.langs.str($$.data[n].name)+($$.data[n].slogan?' ':'')+'</h2>';str+='<h2 class="decor">'+$$.data[n].slogan+'</h2><br />';str+='<div class="cutline_h" style="margin-top:5px;margin-bottom:4px;">&nbsp;</div>';str+=$.langs.str($$.data[n].descr);$(".client"+i+"_hitzone",$$.lay_id)[0].Tooltip.message=str;},setLang:function(){for(var n=$$.index;n<$$.index+$$.quant;n++){$$.setTooltip(n%$$.quant,n%$$.data.length);}}};Kernel.addUnit($$);})();(function(){var $$=Votings=top.Votings={lay_id:"#lay_votings",form_id:"#form_votings",init:function(){$$.initForm();},load:function(data,cont){var data=data||{};$($$.lay_id).animate({opacity:0.3},300);$.ajax({type:"POST",dataType:"html",data:data,url:"data.votings.php",complete:function(xml,status){if(status=="success"){$($$.lay_id).html(xml.responseText);if(cont)Kernel.Content.load(cont);setTimeout(function(){$$.initForm();},100)}else{$($$.lay_id).html($.langs.str("Loading Error.","Loading Error!"));}
$($$.lay_id).animate({opacity:1.0},350);}});},initForm:function(){$.langs.load({module:"FormValid",path:"framework/langs/"});Kernel.addHandlers($$.lay_id);$($$.form_id).FormValid({onsubmit:function(){if(Kernel.isloading)return false;setTimeout(function(){$$.submitForm();},50);return false;}});},submitForm:function(){var f=$($$.form_id);var data=f.serialize();var cont=$("#uri",f).val()+$("#question_id",f).val()+"/"+$("#uri_file",f).val();$$.load(data,cont);f[0].reset();},setLang:function(){$$.load();}};Kernel.addUnit($$);})();(function(){var $$=Kernel.Viewer={isopen:false,arrimg:[],index:0,isfullsize:false,isloading:false,init:function(){$("#viewer a.btn_full").click(function(e){this.blur();$$.fullsize();return false;});$("#viewer a.btn_close").click(function(e){this.blur();$$.close();return false;});$("#viewer a.btn_next").click(function(e){this.blur();$$.next();return false;});$("#viewer a.btn_prev").click(function(e){this.blur();$$.prev();return false;});$("#viewer .scroll").mousemove($$.scrollImage);},setImages:function(imgs){$$.arrimg=imgs.split(";");},open:function(index){if(index==null)index=0;$$.isfullsize=false;$("#viewer .place").empty();switch($.file.getExt($$.arrimg[index])){case"html":var win=window.open($$.arrimg[index],"","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1");return;case"swf":var data={action:"getswfsize",filename:$$.arrimg[index]};var url="data.viewer.php";$.ajax({type:"POST",dataType:"html",data:data,url:url,complete:function(xml,status){if(status=="success"){try{var data=eval("("+xml.responseText+")");if(!data.error){var win=window.open("","","width="+(data.width+60)+",height="+(data.height+60)+",toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0");s='<head><title>CREATIVE ZONE Studio - popup</title></head>';s+='<body onerror="return true" style="background-color:#171717; margin:0px; padding:10px;">';s+='<div style="border:#fff 10px solid; background-color:#183967; padding:10px">';s+=$.Flash.getHTML({url:$.file.addStartSlash($$.arrimg[index]),id:"myid",width:data.width,height:data.height,bgcolor:"222222"});s+='</div>';s+="</body>";win.document.write(s);}}catch(e){}}else{}}});return;case"flv":$("a.btn_full, a.btn_next, a.btn_prev","#viewer").hide();break
case"jpg":$("a.btn_full","#viewer").show();$$.arrimg.length==1?$("a.btn_next, a.btn_prev","#viewer").hide():$("a.btn_next, a.btn_prev","#viewer").show();$("#viewer .place").append($.create("img"));$("#viewer .place img").load(function(e){$("#viewer .imgwrap").scrollLeft(0).scrollTop(0);$$.setLoading(false);});break;}
$().addModal("#viewer");$$.index=index;$$.showImage($$.index);$$.isopen=true;$(document).bind("keydown",$$.onKeyDown);},close:function(){$().removeModal();$("#viewer .place").empty();$$.isopen=false;$(document).unbind("keydown",$$.onKeyDown);},onKeyDown:function(e){if($$.isopen){if(e.keyCode==27)$$.close();if(e.keyCode==37)$$.prev();if(e.keyCode==39)$$.next();if(e.keyCode==32)$$.fullsize();}
return false;},showImage:function(index){index=index==undefined?$$.index:index;switch($.file.getExt($$.arrimg[index])){case"html":case"swf":break;case"flv":$("#viewer .place").Flash({url:"/media/videoPlayer.swf",id:"videoPlayer",width:"520px",height:"440px",bgcolor:"000000",expressinstall:false},{filename:$.file.addStartSlash($$.arrimg[index])});break;case"jpg":var param="action="+($$.isfullsize?"full":"preview");param+="&width="+$("#viewer .imgwrap").width();param+="&height="+$("#viewer .imgwrap").height();param+="&image="+escape($$.arrimg[index]);$$.setLoading(true);$("#viewer .imgwrap img").attr("src","data.viewer.php?"+param);break;}},next:function(){if($("#viewer a.btn_next").is(":visible")){$$.index++;if($$.index>=$$.arrimg.length)$$.index=0;$$.showImage($$.index);}},prev:function(){if($("#viewer a.btn_prev").is(":visible")){$$.index--;if($$.index<0)$$.index=$$.arrimg.length-1;$$.showImage($$.index);}},fullsize:function(){if($("#viewer a.btn_full").is(":visible")){if($$.isfullsize){$("#viewer .imgwrap").css({overflow:"hidden"});}else{$("#viewer .imgwrap").css({overflow:"auto"});}
$$.isfullsize=!$$.isfullsize;$$.showImage();}},save:function(){var param="action="+($$.isfullsize?"full":"preview");param+="&width="+$("#viewer .imgwrap").width();param+="&height="+$("#viewer .imgwrap").height();param+="&image="+escape($$.arrimg[$$.index]);var win=window.open("data.viewer.php?"+param,"","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1");s='<head><title>Creative Zone Studio - popup</title></head>';s+='<body onerror="return true" style="background-color:#171717; margin:0px; padding:10px;">';s+='<img src="data.viewer.php?'+param+'">';s+="</body>";},scrollImage:function(e){if(!$$.isfullsize||$$.isloading)return;var x=e.pageX-$("#viewer .scroll").offset().left;var y=e.pageY-$("#viewer .scroll").offset().top;var sw=$("#viewer .scroll").width();var sh=$("#viewer .scroll").height();var iw=$("#viewer .imgwrap img").width();var ih=$("#viewer .imgwrap img").height();$("#viewer .imgwrap").scrollLeft((x/sw)*(iw-sw+30)).scrollTop((y/sh)*(ih-sh+30));},setLoading:function(flag){if(flag){$("#viewer .imgwrap img").css({opacity:0.4});$("#viewer .loading").show();}else{$("#viewer .loading").hide();$("#viewer .imgwrap img").css({opacity:1});}
$$.isloading=flag;},setLang:function(){}};Kernel.addUnit($$);})();$(function(){Kernel.onload();});})();}
Kernel=top.Kernel;