/* Compressed by the perl version of jsmin. */
/* JavaScript::Minifier 0.01 */

var Prototype={Version:'1.5.0_rc1',ScriptFragment:'(?:<script.*?>)((\n|\r|.)*?)(?:<\/script>)',emptyFunction:function(){},K:function(x){return x}}
var Class={create:function(){return function(){this.initialize.apply(this,arguments);}}}
Object.extend=function(destination,source){for(var property in source){destination[property]=source[property];}
return destination;}
Object.extend(Object,{inspect:function(object){try{if(object==undefined)return'undefined';if(object==null)return'null';return object.inspect?object.inspect():object.toString();}catch(e){if(e instanceof RangeError)return'...';throw e;}},keys:function(object){var keys=[];for(var property in object)
keys.push(property);return keys;},values:function(object){var values=[];for(var property in object)
values.push(object[property]);return values;},clone:function(object){return Object.extend({},object);}});Function.prototype.bind=function(){var __method=this,args=$A(arguments),object=args.shift();return function(){return __method.apply(object,args.concat($A(arguments)));}}
Function.prototype.bindAsEventListener=function(object){var __method=this,args=$A(arguments),object=args.shift();return function(event){return __method.apply(object,[(event||window.event)].concat(args).concat($A(arguments)));}}
Object.extend(Number.prototype,{toColorPart:function(){var digits=this.toString(16);if(this<16)return'0'+digits;return digits;},succ:function(){return this+1;}});var Try={these:function(){var returnValue;for(var i=0;i<arguments.length;i++){var lambda=arguments[i];try{returnValue=lambda();break;}catch(e){}}
return returnValue;}}
Object.extend(String.prototype,{strip:function(){return this.replace(/^\s+/,'').replace(/\s+$/,'');},stripTags:function(){return this.replace(/<\/?[^>]+>/gi,'');},stripScripts:function(){return this.replace(new RegExp(Prototype.ScriptFragment,'img'),'');},extractScripts:function(){var matchAll=new RegExp(Prototype.ScriptFragment,'img');var matchOne=new RegExp(Prototype.ScriptFragment,'im');return(this.match(matchAll)||[]).map(function(scriptTag){return(scriptTag.match(matchOne)||['',''])[1];});},evalScripts:function(){return this.extractScripts().map(function(script){return eval(script)});},escapeHTML:function(){var div=document.createElement('div');var text=document.createTextNode(this);div.appendChild(text);return div.innerHTML;},unescapeHTML:function(){var div=document.createElement('div');div.innerHTML=this.stripTags();return div.childNodes[0]?div.childNodes[0].nodeValue:'';},toQueryParams:function(){var pairs=this.match(/^\??(.*)$/)[1].split('&');return pairs.inject({},function(params,pairString){var pair=pairString.split('=');var value=pair[1]?decodeURIComponent(pair[1]):undefined;params[decodeURIComponent(pair[0])]=value;return params;});},toArray:function(){return this.split('');},camelize:function(){var oStringList=this.split('-');if(oStringList.length==1)return oStringList[0];var camelizedString=this.indexOf('-')==0?oStringList[0].charAt(0).toUpperCase()+oStringList[0].substring(1):oStringList[0];for(var i=1,len=oStringList.length;i<len;i++){var s=oStringList[i];camelizedString+=s.charAt(0).toUpperCase()+s.substring(1);}
return camelizedString;},inspect:function(useDoubleQuotes){var escapedString=this.replace(/\\/g,'\\\\');if(useDoubleQuotes)
return'"'+escapedString.replace(/"/g,'\\"')+'"';else
return"'"+escapedString.replace(/'/g,'\\\'')+"'";}});String.prototype.parseQuery=String.prototype.toQueryParams;var $break=new Object();var $continue=new Object();var Enumerable={each:function(iterator){var index=0;try{this._each(function(value){try{iterator(value,index++);}catch(e){if(e!=$continue)throw e;}});}catch(e){if(e!=$break)throw e;}},all:function(iterator){var result=true;this.each(function(value,index){result=result&&!!(iterator||Prototype.K)(value,index);if(!result)throw $break;});return result;},any:function(iterator){var result=false;this.each(function(value,index){if(result=!!(iterator||Prototype.K)(value,index))
throw $break;});return result;},collect:function(iterator){var results=[];this.each(function(value,index){results.push(iterator(value,index));});return results;},detect:function(iterator){var result;this.each(function(value,index){if(iterator(value,index)){result=value;throw $break;}});return result;},findAll:function(iterator){var results=[];this.each(function(value,index){if(iterator(value,index))
results.push(value);});return results;},grep:function(pattern,iterator){var results=[];this.each(function(value,index){var stringValue=value.toString();if(stringValue.match(pattern))
results.push((iterator||Prototype.K)(value,index));})
return results;},include:function(object){var found=false;this.each(function(value){if(value==object){found=true;throw $break;}});return found;},inject:function(memo,iterator){this.each(function(value,index){memo=iterator(memo,value,index);});return memo;},invoke:function(method){var args=$A(arguments).slice(1);return this.collect(function(value){return value[method].apply(value,args);});},max:function(iterator){var result;this.each(function(value,index){value=(iterator||Prototype.K)(value,index);if(result==undefined||value>=result)
result=value;});return result;},min:function(iterator){var result;this.each(function(value,index){value=(iterator||Prototype.K)(value,index);if(result==undefined||value<result)
result=value;});return result;},partition:function(iterator){var trues=[],falses=[];this.each(function(value,index){((iterator||Prototype.K)(value,index)?trues:falses).push(value);});return[trues,falses];},pluck:function(property){var results=[];this.each(function(value,index){results.push(value[property]);});return results;},reject:function(iterator){var results=[];this.each(function(value,index){if(!iterator(value,index))
results.push(value);});return results;},sortBy:function(iterator){return this.collect(function(value,index){return{value:value,criteria:iterator(value,index)};}).sort(function(left,right){var a=left.criteria,b=right.criteria;return a<b?-1:a>b?1:0;}).pluck('value');},toArray:function(){return this.collect(Prototype.K);},zip:function(){var iterator=Prototype.K,args=$A(arguments);if(typeof args.last()=='function')
iterator=args.pop();var collections=[this].concat(args).map($A);return this.map(function(value,index){return iterator(collections.pluck(index));});},inspect:function(){return'#<Enumerable:'+this.toArray().inspect()+'>';}}
Object.extend(Enumerable,{map:Enumerable.collect,find:Enumerable.detect,select:Enumerable.findAll,member:Enumerable.include,entries:Enumerable.toArray});var $A=Array.from=function(iterable){if(!iterable)return[];if(iterable.toArray){return iterable.toArray();}else{var results=[];for(var i=0;i<iterable.length;i++)
results.push(iterable[i]);return results;}}
Object.extend(Array.prototype,Enumerable);if(!Array.prototype._reverse)
Array.prototype._reverse=Array.prototype.reverse;Object.extend(Array.prototype,{_each:function(iterator){for(var i=0;i<this.length;i++)
iterator(this[i]);},clear:function(){this.length=0;return this;},first:function(){return this[0];},last:function(){return this[this.length-1];},compact:function(){return this.select(function(value){return value!=undefined||value!=null;});},flatten:function(){return this.inject([],function(array,value){return array.concat(value&&value.constructor==Array?value.flatten():[value]);});},without:function(){var values=$A(arguments);return this.select(function(value){return!values.include(value);});},indexOf:function(object){for(var i=0;i<this.length;i++)
if(this[i]==object)return i;return-1;},reverse:function(inline){return(inline!==false?this:this.toArray())._reverse();},reduce:function(){return this.length>1?this:this[0];},uniq:function(){return this.inject([],function(array,value){return array.include(value)?array:array.concat([value]);});},inspect:function(){return'['+this.map(Object.inspect).join(', ')+']';}});var Hash={_each:function(iterator){for(var key in this){var value=this[key];if(typeof value=='function')continue;var pair=[key,value];pair.key=key;pair.value=value;iterator(pair);}},keys:function(){return this.pluck('key');},values:function(){return this.pluck('value');},merge:function(hash){return $H(hash).inject($H(this),function(mergedHash,pair){mergedHash[pair.key]=pair.value;return mergedHash;});},toQueryString:function(){return this.map(function(pair){return pair.map(encodeURIComponent).join('=');}).join('&');},inspect:function(){return'#<Hash:{'+this.map(function(pair){return pair.map(Object.inspect).join(': ');}).join(', ')+'}>';}}
function $H(object){var hash=Object.extend({},object||{});Object.extend(hash,Enumerable);Object.extend(hash,Hash);return hash;}
var Ajax={getTransport:function(){return Try.these(function(){return new XMLHttpRequest()},function(){return new ActiveXObject('Msxml2.XMLHTTP')},function(){return new ActiveXObject('Microsoft.XMLHTTP')})||false;},activeRequestCount:0}
Ajax.Base=function(){};Ajax.Base.prototype={setOptions:function(options){this.options={method:'post',asynchronous:true,contentType:'application/x-www-form-urlencoded',parameters:''}
Object.extend(this.options,options||{});},responseIsSuccess:function(){return this.transport.status==undefined||this.transport.status==0||(this.transport.status>=200&&this.transport.status<300);},responseIsFailure:function(){return!this.responseIsSuccess();}}
Ajax.Request=Class.create();Ajax.Request.Events=['Uninitialized','Loading','Loaded','Interactive','Complete'];Ajax.Request.prototype=Object.extend(new Ajax.Base(),{initialize:function(url,options){this.transport=Ajax.getTransport();this.setOptions(options);this.request(url);},request:function(url){var parameters=this.options.parameters||'';if(parameters.length>0)parameters+='&_=';if(this.options.method!='get'&&this.options.method!='post'){parameters+=(parameters.length>0?'&':'')+'_method='+this.options.method;this.options.method='post';}
try{this.url=url;if(this.options.method=='get'&&parameters.length>0)
this.url+=(this.url.match(/\?/)?'&':'?')+parameters;this.transport.open(this.options.method,this.url,this.options.asynchronous);if(this.options.asynchronous)
setTimeout(function(){this.respondToReadyState(1)}.bind(this),10);this.transport.onreadystatechange=this.onStateChange.bind(this);this.setRequestHeaders();var body=this.options.postBody?this.options.postBody:parameters;this.transport.send(this.options.method=='post'?body:null);if(!this.options.asynchronous&&this.transport.overrideMimeType)
this.onStateChange();}catch(e){this.dispatchException(e);}},setRequestHeaders:function(){var requestHeaders=['X-Requested-With','XMLHttpRequest','X-Prototype-Version',Prototype.Version,'Accept','text/javascript, text/html, application/xml, text/xml, */*'];if(this.options.method=='post'){requestHeaders.push('Content-type',this.options.contentType);if(this.transport.overrideMimeType)
requestHeaders.push('Connection','close');}
if(this.options.requestHeaders)
requestHeaders.push.apply(requestHeaders,this.options.requestHeaders);for(var i=0;i<requestHeaders.length;i+=2)
this.transport.setRequestHeader(requestHeaders[i],requestHeaders[i+1]);},onStateChange:function(){var readyState=this.transport.readyState;if(readyState!=1)
this.respondToReadyState(this.transport.readyState);},header:function(name){try{return this.transport.getResponseHeader(name);}catch(e){}},evalJSON:function(){try{return eval('('+this.header('X-JSON')+')');}catch(e){}},evalResponse:function(){try{return eval(this.transport.responseText);}catch(e){this.dispatchException(e);}},respondToReadyState:function(readyState){var event=Ajax.Request.Events[readyState];var transport=this.transport,json=this.evalJSON();if(event=='Complete'){try{(this.options['on'+this.transport.status]||this.options['on'+(this.responseIsSuccess()?'Success':'Failure')]||Prototype.emptyFunction)(transport,json);}catch(e){this.dispatchException(e);}
if((this.header('Content-type')||'').match(/^text\/javascript/i))
this.evalResponse();}
try{(this.options['on'+event]||Prototype.emptyFunction)(transport,json);}catch(e){this.dispatchException(e);}
if(event=='Complete')
this.transport.onreadystatechange=Prototype.emptyFunction;},dispatchException:function(exception){(this.options.onException||Prototype.emptyFunction)(this,exception);}});function $(){var results=[],element;for(var i=0;i<arguments.length;i++){element=arguments[i];if(typeof element=='string')
element=document.getElementById(element);results.push(Element.extend(element));}
return results.length>1?results:results[0];}
if(!window.Element)
var Element=new Object();Element.extend=function(element){if(!element)return;if(_nativeExtensions||element.nodeType==3)return element;if(!element._extended&&element.tagName&&element!=window){var methods=Object.clone(Element.Methods),cache=Element.extend.cache;if(element.tagName=='FORM')
Object.extend(methods,Form.Methods);if(['INPUT','TEXTAREA','SELECT'].include(element.tagName))
Object.extend(methods,Form.Element.Methods);for(var property in methods){var value=methods[property];if(typeof value=='function')
element[property]=cache.findOrStore(value);}}
element._extended=true;return element;}
Element.extend.cache={findOrStore:function(value){return this[value]=this[value]||function(){return value.apply(null,[this].concat($A(arguments)));}}}
Element.Methods={visible:function(element){return $(element).style.display!='none';},toggle:function(element){element=$(element);Element[Element.visible(element)?'hide':'show'](element);return element;},hide:function(element){$(element).style.display='none';return element;},show:function(element){$(element).style.display='';return element;}}
Object.extend(Element,Element.Methods);var _nativeExtensions=false;if(!window.HTMLElement&&/Konqueror|Safari|KHTML/.test(navigator.userAgent)){var iter=['','Form','Input','TextArea','Select'];for(var i=0;i<iter.length;i++)
{var tag=iter[i];var klass=window['HTML'+tag+'Element']={};klass.prototype=document.createElement(tag?tag.toLowerCase():'div').__proto__;}}
Element.addMethods=function(methods){Object.extend(Element.Methods,methods||{});function copy(methods,destination){var cache=Element.extend.cache;for(var property in methods){var value=methods[property];destination[property]=cache.findOrStore(value);}}
if(typeof HTMLElement!='undefined'){copy(Element.Methods,HTMLElement.prototype);copy(Form.Methods,HTMLFormElement.prototype);var iter=[HTMLInputElement,HTMLTextAreaElement,HTMLSelectElement];for(var i=0;i<iter.length;i++)
{var klass=iter[i];copy(Form.Element.Methods,klass.prototype);}
_nativeExtensions=true;}}
var Form={reset:function(form){$(form).reset();return form;}};Form.Methods={serialize:function(form){var elements=Form.getElements($(form));var queryComponents=new Array();for(var i=0;i<elements.length;i++){var queryComponent=Form.Element.serialize(elements[i]);if(queryComponent)
queryComponents.push(queryComponent);}
return queryComponents.join('&');},getElements:function(form){form=$(form);var elements=new Array();for(var tagName in Form.Element.Serializers){var tagElements=form.getElementsByTagName(tagName);for(var j=0;j<tagElements.length;j++)
elements.push(tagElements[j]);}
return elements;},getInputs:function(form,typeName,name){form=$(form);var inputs=form.getElementsByTagName('input');if(!typeName&&!name)
return inputs;var matchingInputs=new Array();for(var i=0;i<inputs.length;i++){var input=inputs[i];if((typeName&&input.type!=typeName)||(name&&input.name!=name))
continue;matchingInputs.push(input);}
return matchingInputs;},disable:function(form){form=$(form);var elements=Form.getElements(form);for(var i=0;i<elements.length;i++){var element=elements[i];element.blur();element.disabled='true';}
return form;},enable:function(form){form=$(form);var elements=Form.getElements(form);for(var i=0;i<elements.length;i++){var element=elements[i];element.disabled='';}
return form;},findFirstElement:function(form){return Form.getElements(form).find(function(element){return element.type!='hidden'&&!element.disabled&&['input','select','textarea'].include(element.tagName.toLowerCase());});},focusFirstElement:function(form){form=$(form);Field.activate(Form.findFirstElement(form));return form;}}
Object.extend(Form,Form.Methods);Form.Element={focus:function(element){$(element).focus();return element;},select:function(element){$(element).select();return element;}}
Form.Element.Methods={serialize:function(element){element=$(element);var method=element.tagName.toLowerCase();var parameter=Form.Element.Serializers[method](element);if(parameter){var key=encodeURIComponent(parameter[0]);if(key.length==0)return;if(parameter[1].constructor!=Array)
parameter[1]=[parameter[1]];return parameter[1].map(function(value){return key+'='+encodeURIComponent(value);}).join('&');}},getValue:function(element){element=$(element);var method=element.tagName.toLowerCase();var parameter=Form.Element.Serializers[method](element);if(parameter)
return parameter[1];},clear:function(element){$(element).value='';return element;},present:function(element){return $(element).value!='';},activate:function(element){element=$(element);element.focus();if(element.select)
element.select();return element;},disable:function(element){element=$(element);element.disabled='';return element;},enable:function(element){element=$(element);element.blur();element.disabled='true';return element;}}
Object.extend(Form.Element,Form.Element.Methods);var Field=Form.Element;Form.Element.Serializers={input:function(element){switch(element.type.toLowerCase()){case'checkbox':case'radio':return Form.Element.Serializers.inputSelector(element);default:return Form.Element.Serializers.textarea(element);}
return false;},inputSelector:function(element){if(element.checked)
return[element.name,element.value];},textarea:function(element){return[element.name,element.value];},select:function(element){return Form.Element.Serializers[element.type=='select-one'?'selectOne':'selectMany'](element);},selectOne:function(element){var value='',opt,index=element.selectedIndex;if(index>=0){opt=element.options[index];value=opt.value||opt.text;}
return[element.name,value];},selectMany:function(element){var value=[];for(var i=0;i<element.length;i++){var opt=element.options[i];if(opt.selected)
value.push(opt.value||opt.text);}
return[element.name,value];}}
var $F=Form.Element.getValue;if(!window.Event){var Event=new Object();}
Object.extend(Event,{KEY_BACKSPACE:8,KEY_TAB:9,KEY_RETURN:13,KEY_ESC:27,KEY_LEFT:37,KEY_UP:38,KEY_RIGHT:39,KEY_DOWN:40,KEY_DELETE:46,KEY_HOME:36,KEY_END:35,KEY_PAGEUP:33,KEY_PAGEDOWN:34,element:function(event){return event.target||event.srcElement;},isLeftClick:function(event){return(((event.which)&&(event.which==1))||((event.button)&&(event.button==1)));},pointerX:function(event){return event.pageX||(event.clientX+
(document.documentElement.scrollLeft||document.body.scrollLeft));},pointerY:function(event){return event.pageY||(event.clientY+
(document.documentElement.scrollTop||document.body.scrollTop));},stop:function(event){if(event.preventDefault){event.preventDefault();event.stopPropagation();}else{event.returnValue=false;event.cancelBubble=true;}},findElement:function(event,tagName){var element=Event.element(event);while(element.parentNode&&(!element.tagName||(element.tagName.toUpperCase()!=tagName.toUpperCase())))
element=element.parentNode;return element;},observers:false,_observeAndCache:function(element,name,observer,useCapture){if(!this.observers)this.observers=[];if(element.addEventListener){this.observers.push([element,name,observer,useCapture]);element.addEventListener(name,observer,useCapture);}else if(element.attachEvent){this.observers.push([element,name,observer,useCapture]);element.attachEvent('on'+name,observer);}},unloadCache:function(){if(!Event.observers)return;for(var i=0;i<Event.observers.length;i++){Event.stopObserving.apply(this,Event.observers[i]);Event.observers[i][0]=null;}
Event.observers=false;},observe:function(element,name,observer,useCapture){element=$(element);useCapture=useCapture||false;if(name=='keypress'&&(navigator.appVersion.match(/Konqueror|Safari|KHTML/)||element.attachEvent))
name='keydown';Event._observeAndCache(element,name,observer,useCapture);},stopObserving:function(element,name,observer,useCapture){element=$(element);useCapture=useCapture||false;if(name=='keypress'&&(navigator.appVersion.match(/Konqueror|Safari|KHTML/)||element.detachEvent))
name='keydown';if(element.removeEventListener){element.removeEventListener(name,observer,useCapture);}else if(element.detachEvent){try{element.detachEvent('on'+name,observer);}catch(e){}}}});if(navigator.appVersion.match(/\bMSIE\b/))
Event.observe(window,'unload',Event.unloadCache,false);var Builder={NODEMAP:{AREA:'map',CAPTION:'table',COL:'table',COLGROUP:'table',LEGEND:'fieldset',OPTGROUP:'select',OPTION:'select',PARAM:'object',TBODY:'table',TD:'table',TFOOT:'table',TH:'table',THEAD:'table',TR:'table'},node:function(elementName){elementName=elementName.toUpperCase();var parentTag=this.NODEMAP[elementName]||'div';var parentElement=document.createElement(parentTag);try{parentElement.innerHTML="<"+elementName+"></"+elementName+">";}catch(e){}
var element=parentElement.firstChild||null;if(element&&(element.tagName!=elementName))
element=element.getElementsByTagName(elementName)[0];if(!element)element=document.createElement(elementName);if(!element)return;if(arguments[1])
if(this._isStringOrNumber(arguments[1])||(arguments[1]instanceof Array)){this._children(element,arguments[1]);}else{var attrs=this._attributes(arguments[1]);if(attrs.length){try{parentElement.innerHTML="<"+elementName+" "+
attrs+"></"+elementName+">";}catch(e){}
element=parentElement.firstChild||null;if(!element){element=document.createElement(elementName);for(attr in arguments[1])
element[attr=='class'?'className':attr]=arguments[1][attr];}
if(element.tagName!=elementName)
element=parentElement.getElementsByTagName(elementName)[0];}}
if(arguments[2])
this._children(element,arguments[2]);return element;},_text:function(text){return document.createTextNode(text);},_attributes:function(attributes){var attrs=[];for(attribute in attributes)
attrs.push((attribute=='className'?'class':attribute)+'="'+attributes[attribute].toString().escapeHTML()+'"');return attrs.join(" ");},_children:function(element,children){if(typeof children=='object'){children=this.__flatten(children);for(var i=0;i<children.length;i++){var e=children[i];if(typeof e=='object')
element.appendChild(e)
else
if(Builder._isStringOrNumber(e))
element.appendChild(Builder._text(e));}}else
if(Builder._isStringOrNumber(children))
element.appendChild(Builder._text(children));},_isStringOrNumber:function(param){return(typeof param=='string'||typeof param=='number');},__flatten:function(src,dest){if(!dest)dest=new Array();if(src instanceof Array)
for(var i=0;i<src.length;i++)
{if(src[i]instanceof Array)
flatten(src[i],dest);else
dest.push(src[i]);}
else
dest.push[src];return dest;}}
var Binder={initialize:function(obj){obj.doBindings=Binder.doBindings;obj.bindFunction=Binder.bindFunction;obj.unbindFunction=Binder.unbindFunction;obj.bindMultiFunction=Binder.bindMultiFunction;obj.unbindMultiFunction=Binder.unbindMultiFunction;obj.unbindAll=Binder.unbindAll;obj.findBindings=Binder.findBindings;obj.defineBind=Binder.defineBind;obj.defineMultiBind=Binder.defineMultiBind;obj.getBindObject=Binder.getBindObject;obj.getMultiBindObjects=Binder.getMultiBindObjects;obj.getOtherBindObjects=Binder.getOtherBindObjects;obj.isBindDefined=Binder.isBindDefined;obj.isMultiBindDefined=Binder.isMultiBindDefined;obj.findBindObjectFromEvent=Binder.findBindObjectFromEvent;obj.__observers__=new Object();obj.__bindTable__=new Object();obj.__mbindTable__=new Object();obj.__mobservers__=new Object();obj.__otherTable__=new Object();},_mapBind:function(obj,fname,elem){if(!(obj.__otherTable__[fname]instanceof Array))
obj.__otherTable__[fname]=[];obj.__otherTable__[fname].push(elem);},_realFname:function(fname){if(fname&&fname.charAt(0)=='#')fname=fname.substr(1);return fname;},isBindDefined:function(fname){fname=Binder._realFname(fname);return(typeof(this.__bindTable__[fname])=='object');},isMultiBindDefined:function(fname){fname=Binder._realFname(fname);return(typeof(this.__mbindTable__[fname])=='object');},defineBind:function(fname,event,funct,capturePh){fname=Binder._realFname(fname);if(!this.isBindDefined(fname))
{this.__bindTable__[fname]={'event':event,'fname':funct,'capture':capturePh};}
else
{console.debug("Bind already defined: %s",fname);}},defineMultiBind:function(fname,event,funct,capturePh){fname=Binder._realFname(fname);if(!this.isMultiBindDefined(fname))
{this.__mbindTable__[fname]={'event':event,'fname':funct,'capture':capturePh};}
else
{console.debug("MultiBind already defined: %s",fname);}},getBindObject:function(fname){fname=Binder._realFname(fname);try
{return(this.__observers__[fname]['el']);}
catch(err)
{return(null);}},getMultiBindObjects:function(fname){fname=Binder._realFname(fname);try
{return(this.__mobservers__[fname]['el']);}
catch(err)
{return(null);}},getOtherBindObjects:function(fname){fname=Binder._realFname(fname);try
{return(this.__otherTable__[fname]);}
catch(err)
{return(null);}},doBindings:function(elem){var found=this.findBindings(elem);for(var i=0;i<found.length;i++)
{if(this.isBindDefined(found[i]['fn']))
{this.bindFunction(found[i]['fn'],found[i]['el']);}
else if(this.isMultiBindDefined(found[i]['fn']))
{this.bindMultiFunction(found[i]['fn'],found[i]['el']);}
else if(this._bindHandler)
{if(this._bindHandler(Binder._realFname(found[i]['fn']),found[i]['el']))
{Binder._mapBind(this,Binder._realFname(found[i]['fn']),found[i]['el']);}}
else
{Binder._mapBind(this,Binder._realFname(found[i]['fn']),found[i]['el']);}}
delete(found);},bindFunction:function(fname,elem){if(fname.charAt(0)=='#')
{fname=fname.substr(1);elem.style.cursor=_IEhack?'hand':'pointer';}
this.unbindFunction(fname);if(this.__bindTable__[fname])
{this.__observers__[fname]={el:elem,fn:this.__bindTable__[fname]['fname'].bindAsEventListener(this,fname)};Event.observe(this.__observers__[fname]['el'],this.__bindTable__[fname]['event'],this.__observers__[fname]['fn'],this.__bindTable__[fname]['capture']);}
else
{console.debug("Unknown bind: %s",fname);}},unbindFunction:function(fname){fname=Binder._realFname(fname);if(this.__observers__[fname])
{Event.stopObserving(this.__observers__[fname]['el'],this.__bindTable__[fname]['event'],this.__observers__[fname]['fn'],this.__bindTable__[fname]['capture']);if(this.__observers__[fname]['el'].style)
this.__observers__[fname]['el'].style.cursor='';this.__observers__[fname]['el']=null;delete(this.__observers__[fname]['fn']);delete(this.__observers__[fname]);}},bindMultiFunction:function(fname,elem){if(fname.charAt(0)=='#')
{fname=fname.substr(1);elem.style.cursor=_IEhack?'hand':'pointer';}
if(this.__mbindTable__[fname])
{if(!this.__mobservers__[fname])
{this.__mobservers__[fname]={el:[],fn:this.__mbindTable__[fname]['fname'].bindAsEventListener(this,fname)};}
this.__mobservers__[fname]['el'].push(elem);Event.observe(elem,this.__mbindTable__[fname]['event'],this.__mobservers__[fname]['fn'],this.__mbindTable__[fname]['capture']);}
else
{console.debug("Unknown multi bind: %s",fname);}},unbindMultiFunction:function(fname,elem){fname=Binder._realFname(fname);if(this.__mobservers__[fname])
{var arr=this.__mobservers__[fname]['el'];if(arguments.length==2)
{Event.stopObserving(elem,this.__mbindTable__[fname]['event'],this.__mobservers__[fname]['fn'],this.__mbindTable__[fname]['capture']);for(var i=0;i<arr.length;i++)
{if(arr[i]==elem)
{if(elem.style)
elem.style.cursor='';arr.splice(i,1);break;}}}
else
{while(arr.length)
{elem=arr.pop();if(elem.style)
elem.style.cursor='';Event.stopObserving(elem,this.__mbindTable__[fname]['event'],this.__mobservers__[fname]['fn'],this.__mbindTable__[fname]['capture']);}}
if(arr.length==0)
{this.__mobservers__[fname]['el']=null;delete(this.__mobservers__[fname]['fn']);delete(this.__mobservers__[fname]);}}},unbindAll:function(){for(var foo in this.__observers__)
{if(this.__observers__.hasOwnProperty(foo))
this.unbindFunction(foo);}
for(var foo in this.__mobservers__)
{if(this.__mobservers__.hasOwnProperty(foo))
this.unbindMultiFunction(foo);}
this.__otherTable__=new Object();},findBindings:function(elem){var res=[];if(elem.getAttribute('bindto'))
res.push({fn:elem.getAttribute('bindto'),el:elem});var foo=elem.firstChild;while(foo)
{if(foo.nodeType==1)
res=res.concat(this.findBindings(foo));foo=foo.nextSibling;}
return(res);},findBindObjectFromEvent:function(ev,fname){fname=Binder._realFname(fname);var res=Event.element(ev);var cbind=Binder._realFname(res.getAttribute('bindto'));while(res.parentNode&&cbind!=fname)
{res=res.parentNode;cbind=Binder._realFname(res.getAttribute('bindto'));}
return((cbind!=fname)?null:res);}}
var EventBroadcaster={initialize:function(obj){obj.addListener=EventBroadcaster.addListener;obj.delListener=EventBroadcaster.delListener;obj.dispatchEvent=EventBroadcaster.dispatchEvent;obj.__evtq__=new Object();},addListener:function(eventName,target){if(!this.__evtq__[eventName])
{this.__evtq__[eventName]={r:false,a:[],d:[]};}
if(!this.__evtq__[eventName].r)
{this.delListener(eventName,target);this.__evtq__[eventName].a.push(target);}
else
{this.__evtq__[eventName].d.push({a:'a',n:eventName,t:target});}},delListener:function(eventName,target){if(this.__evtq__[eventName])
{if(!this.__evtq__[eventName].r)
{var i,len;len=this.__evtq__[eventName].a.length;for(i=0;i<len;i++)
{if(this.__evtq__[eventName].a[i]==target)
{this.__evtq__[eventName].a.splice(i,1);return;}}}
else
{this.__evtq__[eventName].d.push({a:'d',n:eventName,t:target});}}},dispatchEvent:function(objEvt){if(!objEvt.target)
objEvt.target=this;var q=this.__evtq__[objEvt.type];if(q)
{try
{q.r=true;var i,t,k;k=q.a.length;for(i=0;i<k;i++)
{t=q.a[i];if(typeof(t)=="object")
{if(t.handleEvent)
t.handleEvent(objEvt);else if(t[objEvt.type])
t[objEvt.type](objEvt);}
else
{t.apply(this,[objEvt]);}}}
catch(err)
{throw(err);}
finally
{q.r=false;while(q.d.length)
{var i=q.d.pop();if(i.a=='d')
{this.delListener(i.n,i.t);}
else
{this.addListener(i.n,i.t);}}}}}}
var DataSetHolder=Class.create();DataSetHolder.prototype={initialize:function(options){this._lastURL=null;this._lastParams=null;this._lastMethod=null;this.options={setName:'recordset',rowName:'record',statusAttr:'status',okValue:'ok',errorAttr:'message',randomizeURL:false,importAttrs:false,metaHeader:null,metaExclude:{},orderBy:'__def__',flattenTags:{},autoUpdate:false,autoTime:10*60,autoDecay:2,forceSyncData:false};Object.extend(this.options,options||{});this._AjaxR=null;this._dset=null;this._curView=null;this._curMeta=null;this._timer=null;this._curDecay=1;this._lastDoc=null;this._isRunning=false;this._imKilled=false;EventBroadcaster.initialize(this);Event.observe(window,'unload',this.destroy.bindAsEventListener(this),false);},updateOptions:function(options){Object.extend(this.options,options||{});if(!this.options.autoUpdate)
{clearTimeout(this._timer);this._timer=null;}},setSchema:function(mixed){},destroy:function(){if(this._AjaxR)
delete(this._AjaxR);if(this._timer)
clearTimeout(this._timer);this._imKilled=true;},forceRefresh:function(){if(this._imKilled)
return;this.bindTo(this._lastURL,this._lastParams,this._lastMethod);},_startTimer:function(){if(this._imKilled)
return;if(this.options.autoUpdate)
{this._timer=setTimeout(this._onTimerEvent.bind(this),this._curDecay*this.options.autoTime*1000);}},_onTimerEvent:function(){if(this._imKilled)
return;if(this._isRunning)
{this.dispatchEvent({type:"onDataError",error:this._makeError("Dataset Timer overrun!")});this._startTimer();return;}
this.bindTo(this._lastURL,this._lastParams,this._lastMethod);},_onReqFailure:function(req,json){if(this._imKilled)
return;this._dumpError(req);this.dispatchEvent({type:"onDataError",error:this._makeError("HTTP Error ["+req.status+"]: "+req.statusText)});this._isRunning=false;this._startTimer();},_onReqException:function(aReq,errObj){if(this._imKilled)
return;this._dumpError(errObj);this.dispatchEvent({type:"onDataError",error:this._rethrowError("JS Error: ",errObj)});this._isRunning=false;this._startTimer();},_onReqComplete:function(req){if(this._imKilled)
return;var foo,bar,t,xmlD;var haserr=false;try
{if(req.status>0&&req.status!=200)
{if(this._isRunning)
{throw this._makeError("HTTP Error ["+req.status+"]: "+req.statusText);}
else
{haserr=true;}}
else
{var tempMeta=null;if(this.options.autoUpdate&&this.options.autoDecay)
{this._curDecay=(req.responseText==this._lastDoc?this._curDecay*this.options.autoDecay:1);this._lastDoc=req.responseText;}
xmlD=req.responseXML;if(xmlD)
{this.dispatchEvent({'type':"onRequestComplete",'req':req,'doc':xmlD});}
else
{throw this._makeError("Invalid XML");}
if(this.options.metaHeader)
{bar=this.options.metaHeader.split(":");if(bar.length==2)
{t=this.options.metaHeader;foo=Try.these(function(){return xmlD.getElementsByTagNameNS("*",bar[1]);},function(){return xmlD.getElementsByTagName(t);});foo=foo[0];}
else
{foo=xmlD.getElementsByTagName(this.options.metaHeader)[0];}
if(foo)
{tempMeta=new Object();bar=foo.firstChild;while(bar)
{if(bar.nodeType==1&&typeof(this.options.metaExclude[bar.nodeName])=='undefined')
{tempMeta[bar.nodeName]=this._importChilds(bar,false);}
bar=bar.nextSibling;}}}
if(this.options.forceSyncData)
{this._curMeta=tempMeta;}
bar=this.options.setName.split(":");if(bar.length==2)
{t=this.options.setName;foo=Try.these(function(){return xmlD.getElementsByTagNameNS("*",bar[1]);},function(){return xmlD.getElementsByTagName(t);});}
else
{foo=xmlD.getElementsByTagName(this.options.setName);}
if(foo.length!=1)
throw this._makeError("Dataset malformed: ["+foo.length+"] elements "+this.options.setName+" found.");foo=foo[0];if(!this.options.statusAttr||foo.getAttribute(this.options.statusAttr)==this.options.okValue)
{this._dset=$A();bar=foo.firstChild;while(bar)
{if(bar.nodeType==1&&bar.nodeName==this.options.rowName)
{t=new Object();foo=bar.firstChild;while(foo)
{if(foo.nodeType==1)
{t[foo.nodeName]=this._importChilds(foo,!this.options.importAttrs);}
foo=foo.nextSibling;}
this._dset.push(t);}
bar=bar.nextSibling;}
this.sortOn(this.options.orderBy,false);this._curMeta=tempMeta;this.dispatchEvent({type:"onDataChange",dEvType:"updateAll"});}
else
{throw this._makeError((foo.getAttribute(this.options.errorAttr)?foo.getAttribute(this.options.errorAttr):'No data available'));}}}
catch(err)
{this._dumpError(err);this.dispatchEvent({type:"onDataError",error:this._rethrowError("JS Error: ",err)});haserr=true;}
this._isRunning=false;this.dispatchEvent({'type':"onDataComplete",errstatus:haserr});this._startTimer();},_rethrowError:function(str,err)
{if(err.name=="RecordsetError")
return(err);else
return this._makeError(str+err.message);},_makeError:function(str)
{var er=new Error(str);try
{er.name="RecordsetError";}
catch(dummy){};return(er);},_dumpError:function(err)
{if(_JSDebug||_ISStaging)
{if(_isIE)
{console.debug("Dataset throws error on:\n\turi: %s [%s] (%s)\n\toptions: %s",this._lastURL,this._lastParams,this._lastMethod,this.options);console.debug("Dataset throws error: %s",err.toString());}
else
{console.debug("Dataset throws error on:\n\turi: %s [%s] (%s)\n\toptions: %o",this._lastURL,this._lastParams,this._lastMethod,this.options);console.debug("Dataset throws error: %1.o",err);}}},_flattenChilds:function(node)
{var res=null;if(node.firstChild)
{res='';var foo=node.firstChild;while(foo)
{switch(foo.nodeType)
{case 1:var attrs='';if(foo.attributes.length>0)
{for(var i=0;i<foo.attributes.length;i++)
{attrs+=" "+foo.attributes[i].name+"='"+foo.attributes[i].value+"'";}}
var bar=this._flattenChilds(foo);if(bar!==null)
res+="<"+foo.nodeName+attrs+">"+bar+"</"+foo.nodeName+">";else
res+="<"+foo.nodeName+attrs+"/>";break;case 3:case 4:res+=foo.nodeValue;break;}
foo=foo.nextSibling;}}
return(res);},_importChilds:function(node,textOnly)
{var realName=node.nodeName.split(":")[1];if(!textOnly&&((typeof(this.options.flattenTags[node.nodeName])!='undefined')||(typeof(this.options.flattenTags[realName])!='undefined')))
{return this._flattenChilds(node);}
var res=null;if(node.firstChild)
{var foo=node.firstChild;var foundNode=false;if(textOnly)
res='';else
{res={'_CDATA':''};if(node.attributes.length>0)
{res['_ATTR']={};for(var i=0;i<node.attributes.length;i++)
{res['_ATTR'][node.attributes[i].name]=node.attributes[i].value;}
foundNode=true;}}
while(foo)
{switch(foo.nodeType)
{case 1:if(textOnly)
res+=this._importChilds(foo,true);else
{res[foo.nodeName]=this._importChilds(foo,false);foundNode=true;}
break;case 3:case 4:if(textOnly)
res+=foo.nodeValue;else
res['_CDATA']+=foo.nodeValue;break;}
foo=foo.nextSibling;}
if(!foundNode&&!textOnly)
res=res['_CDATA'];}
else if(!textOnly&&(node.attributes.length>0))
{res={'_ATTR':{}};for(var i=0;i<node.attributes.length;i++)
{res['_ATTR'][node.attributes[i].name]=node.attributes[i].value;}}
return(res);},isPending:function()
{return(this._isRunning);},bindTo:function(urlBind,params,metodo,delay)
{if(this._imKilled)
{throw this._makeError("Dataset was deleted!");return(true);}
if(this._isRunning)
{throw this._makeError("Dataset overrun!");return(true);}
if(this._timer)
{clearTimeout(this._timer);this._timer=null;}
if(this._AjaxR)
{delete(this._AjaxR);}
if(metodo=="__local")
{this._bindToLocal(params);this._startTimer();return;}
var opts={onComplete:this._onReqComplete.bind(this),onFailure:this._onReqFailure.bind(this),onException:this._onReqException.bind(this)};var tmpPar;if(params)
{if(typeof params=='string')
{tmpPar=params.toQueryParams();}
else
{tmpPar=Object.clone(params);}}
else
{tmpPar={};}
if(metodo)
opts['method']=String(metodo).toLowerCase();this._lastURL=urlBind;this._lastParams=tmpPar;this._lastMethod=metodo;if(this.options.randomizeURL)
{tmpPar['__d']=Date.parse(new Date());tmpPar['__r']=Math.random();}
if(Prototype.Version<"1.5.1")
{opts['parameters']=$H(tmpPar).map(function(pair){var key=encodeURIComponent(pair.key);var value=(pair.value!=undefined)?encodeURIComponent(String(pair.value)):'';return key+'='+value;}).join('&');}
else
{opts['parameters']=tmpPar;}
if(delay)
this._startTimer();else
{this._isRunning=true;if(this.options.forceSyncData)
{this._dset=null;this._curView=null;this._curMeta=null;}
this.dispatchEvent({type:"onDataRequest"});this._AjaxR=new Ajax.Request(urlBind,opts);}},getLength:function(){if(this._curView)
return(this._curView.length);else
return(0);},getItemAt:function(id){if(this._curView)
{if(this._curView[id])
return(this._curView[id]);}
return(null);},getMetaData:function(){if(this._curMeta)
{return(this._curMeta);}
return(null);},sortOn:function(campo){switch(campo)
{case'__def__':this._curView=$A(this._dset);break;case'__rnd__':var a=$A(this._dset);this._curView=new Array();var i;while(a.length)
{i=Math.floor(Math.random()*a.length);this._curView.push(a[i]);a.splice(i,1);}
break;default:this._curView=$A(this._dset);break;}
if(arguments[1]!==false)
this.dispatchEvent({type:"onDataChange",dEvType:"updateAll"});},filter:function(rexpr,colarr,limit){var res=new Array();var a=$A(this._dset);for(var i=0;i<a.length&&res.length<limit;i++)
{for(var j=0;j<colarr.length;j++)
{if(rexpr.test(a[i][colarr[j]]))
{res.push(a[i]);break;}}}
return res;},isBinded:function(){return(this._dset!=null);},_bindToLocal:function(lData)
{this._lastURL="";this._lastParams=lData;this._lastMethod="__local";try
{if(lData['meta'])
{this._curMeta=new Object();for(var i in lData['meta'])
{if(typeof(lData['meta'][i])!='function')
this._curMeta[i]=lData['meta'][i];}}
else
{this._curMeta=null;}
this._dset=$A();if(lData['item'])
{var d,i;d=$A(lData['item']);for(i=0;i<d.length;i++)
this._dset.push(d[i]);}
this.sortOn(this.options.orderBy);}
catch(err)
{this._dumpError(err);this.dispatchEvent({type:"onDataError",error:this._rethrowError("JS Error: ",err)});}},getLastBindParams:function()
{return(Object.clone(this._lastParams));}}
function AC_AddExtension(src,ext)
{if(src.indexOf(ext)==-1)
{if(src.indexOf('?')!=-1)
return src.replace(/\?/,ext+'?');else
return src+ext;}
else
return src;}
function AC_Generateobj(objAttrs,params,embedAttrs,nowrite)
{var str='<object ';for(var i in objAttrs)
str+=i+'="'+objAttrs[i]+'" ';str+='>';for(var i in params)
str+='<param name="'+i+'" value="'+params[i]+'" /> ';str+='<embed ';for(var i in embedAttrs)
str+=i+'="'+embedAttrs[i]+'" ';str+=' ></embed></object>';if(nowrite)
return(str);document.write(str);}
function AC_GenerateobjW3C(objAttrs,params,embedAttrs,nowrite)
{var str='<object ';str+='type="'+embedAttrs["type"]+'" ';str+='data="'+params["movie"]+'" ';for(var i in objAttrs)
{if(i=='width'||i=='height')
str+=i+'="'+objAttrs[i]+'" ';}
str+='>';for(var i in params)
str+='<param name="'+i+'" value="'+params[i]+'" /> ';str+='</object>';if(nowrite)
return(str);document.write(str);}
function AC_FL_RunContent(){var ret=AC_GetArgs
(arguments,".swf","movie","clsid:d27cdb6e-ae6d-11cf-96b8-444553540000","application/x-shockwave-flash");AC_Generateobj(ret.objAttrs,ret.params,ret.embedAttrs);}
function AC_FL_ReturnContentW3C(){var ret=AC_GetArgs
(arguments,".swf","movie","clsid:d27cdb6e-ae6d-11cf-96b8-444553540000","application/x-shockwave-flash");return AC_GenerateobjW3C(ret.objAttrs,ret.params,ret.embedAttrs,true);}
function AC_FL_ReturnContent(){var ret=AC_GetArgs
(arguments,".swf","movie","clsid:d27cdb6e-ae6d-11cf-96b8-444553540000","application/x-shockwave-flash");return AC_Generateobj(ret.objAttrs,ret.params,ret.embedAttrs,true);}
function AC_FL_GenerateContentIn(objid,args){var ret=AC_GetArgs
(args,".swf","movie","clsid:d27cdb6e-ae6d-11cf-96b8-444553540000","application/x-shockwave-flash");if(objid.innerHTML!==undefined)
objid.innerHTML=AC_Generateobj(ret.objAttrs,ret.params,ret.embedAttrs,true);}
function AC_FL_GenerateVBS(objid){var res='<SCR'+'IPT event=FSCommand(command,args) for='+objid+'>';res+=objid+'_DoFSCommand(command, args);';res+='</SCR'+'IPT>';return res;}
function AC_SW_RunContent(){var ret=AC_GetArgs
(arguments,".dcr","src","clsid:166B1BCA-3F9C-11CF-8075-444553540000",null);AC_Generateobj(ret.objAttrs,ret.params,ret.embedAttrs);}
function AC_GetArgs(args,ext,srcParamName,classid,mimeType){var ret=new Object();ret.embedAttrs=new Object();ret.params=new Object();ret.objAttrs=new Object();for(var i=0;i<args.length;i=i+2){var currArg=args[i].toLowerCase();switch(currArg){case"classid":break;case"pluginspage":case"swliveconnect":case"name":ret.embedAttrs[args[i]]=args[i+1];break;case"src":case"movie":args[i+1]=AC_AddExtension(args[i+1],ext);ret.embedAttrs["src"]=args[i+1];ret.params[srcParamName]=args[i+1];break;case"onafterupdate":case"onbeforeupdate":case"onblur":case"oncellchange":case"onclick":case"ondblClick":case"ondrag":case"ondragend":case"ondragenter":case"ondragleave":case"ondragover":case"ondrop":case"onfinish":case"onfocus":case"onhelp":case"onmousedown":case"onmouseup":case"onmouseover":case"onmousemove":case"onmouseout":case"onkeypress":case"onkeydown":case"onkeyup":case"onload":case"onlosecapture":case"onpropertychange":case"onreadystatechange":case"onrowsdelete":case"onrowenter":case"onrowexit":case"onrowsinserted":case"onstart":case"onscroll":case"onbeforeeditfocus":case"onactivate":case"onbeforedeactivate":case"ondeactivate":case"type":case"codebase":case"id":ret.objAttrs[args[i]]=args[i+1];break;case"width":case"height":case"align":case"vspace":case"hspace":case"class":case"title":case"accesskey":case"tabindex":ret.embedAttrs[args[i]]=ret.objAttrs[args[i]]=args[i+1];break;default:ret.embedAttrs[args[i]]=ret.params[args[i]]=args[i+1];}}
ret.objAttrs["classid"]=classid;if(mimeType)ret.embedAttrs["type"]=mimeType;return ret;}
function JSGetSwfVerIE()
{var version;var axo;var e;try{axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");version=axo.GetVariable("$version");}catch(e){}
if(!version)
{try{axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");version="WIN 6,0,21,0";axo.AllowScriptAccess="always";version=axo.GetVariable("$version");}catch(e){}}
if(!version)
{try{axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.3");version=axo.GetVariable("$version");}catch(e){}}
if(!version)
{try{axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.3");version="WIN 3,0,18,0";}catch(e){}}
if(!version)
{try{axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");version="WIN 2,0,0,11";}catch(e){version=-1;}}
return version;}
function JSGetSwfVer(){var flashVer=-1;if(navigator.plugins!=null&&navigator.plugins.length>0){if(navigator.plugins["Shockwave Flash 2.0"]||navigator.plugins["Shockwave Flash"]){var swVer2=navigator.plugins["Shockwave Flash 2.0"]?" 2.0":"";var flashDescription=navigator.plugins["Shockwave Flash"+swVer2].description;var descArray=flashDescription.split(" ");var tempArrayMajor=descArray[2].split(".");var versionMajor=tempArrayMajor[0];var versionMinor=tempArrayMajor[1];var versionRevision=descArray[3];if(versionRevision==""){versionRevision=descArray[4];}
if(versionRevision[0]=="d"){versionRevision=versionRevision.substring(1);}else if(versionRevision[0]=="r"){versionRevision=versionRevision.substring(1);if(versionRevision.indexOf("d")>0){versionRevision=versionRevision.substring(0,versionRevision.indexOf("d"));}}
var flashVer=versionMajor+"."+versionMinor+"."+versionRevision;}}
else if(navigator.userAgent.toLowerCase().indexOf("webtv/2.6")!=-1)flashVer=4;else if(navigator.userAgent.toLowerCase().indexOf("webtv/2.5")!=-1)flashVer=3;else if(navigator.userAgent.toLowerCase().indexOf("webtv")!=-1)flashVer=2;return flashVer;}
function DetectFlashVer(reqMajorVer,reqMinorVer,reqRevision)
{var isIE=(navigator.appVersion.indexOf("MSIE")!=-1)?true:false;var isWin=(navigator.appVersion.toLowerCase().indexOf("win")!=-1)?true:false;var isOpera=(navigator.userAgent.indexOf("Opera")!=-1)?true:false;var versionArray,versionStr;if(isIE&&isWin&&!isOpera)
{versionStr=JSGetSwfVerIE();}
else
{versionStr=JSGetSwfVer();}
if(versionStr==-1){return false;}else if(versionStr!=0){if(isIE&&isWin&&!isOpera){var tempArray=versionStr.split(" ");var tempString=tempArray[1];versionArray=tempString.split(",");}else{versionArray=versionStr.split(".");}
var versionMajor=versionArray[0];var versionMinor=versionArray[1];var versionRevision=versionArray[2];if(versionMajor>parseFloat(reqMajorVer)){return true;}else if(versionMajor==parseFloat(reqMajorVer)){if(versionMinor>parseFloat(reqMinorVer))
return true;else if(versionMinor==parseFloat(reqMinorVer)){if(versionRevision>=parseFloat(reqRevision))
return true;}}
return false;}}