//v1.7
// Flash Player Version Detection
// Detect Client Browser type
// Copyright 2005-2007 Adobe Systems Incorporated.All rights reserved.
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;function ControlVersion()
{
var version;var axo;var e;// NOTE : new ActiveXObject(strFoo) throws an exception if strFoo isn't in the registry
try {
// version will be set for 7.X or greater players
axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");version = axo.GetVariable("$version");} catch (e) {
}
if (!version)
{
try {
// version will be set for 6.X players only
axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");// installed player is some revision of 6.0
// GetVariable("$version") crashes for versions 6.0.22 through 6.0.29,
// so we have to be careful. 
// default to the first public version
version = "WIN 6,0,21,0";// throws if AllowScripAccess does not exist (introduced in 6.0r47)
axo.AllowScriptAccess = "always";// safe to call for 6.0r47 or greater
version = axo.GetVariable("$version");} catch (e) {
}
}
if (!version)
{
try {
// version will be set for 4.X or 5.X player
axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.3");version = axo.GetVariable("$version");} catch (e) {
}
}
if (!version)
{
try {
// version will be set for 3.X player
axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.3");version = "WIN 3,0,18,0";} catch (e) {
}
}
if (!version)
{
try {
// version will be set for 2.X player
axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash");version = "WIN 2,0,0,11";} catch (e) {
version = -1;}
}
return version;}
// JavaScript helper required to detect Flash Player PlugIn version information
function GetSwfVer(){
// NS/Opera version >= 3 check for Flash plugin in plugin array
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;}
}
// MSN/WebTV 2.6 supports Flash 4
else if (navigator.userAgent.toLowerCase().indexOf("webtv/2.6") != -1) flashVer = 4;// WebTV 2.5 supports Flash 3
else if (navigator.userAgent.toLowerCase().indexOf("webtv/2.5") != -1) flashVer = 3;// older WebTV supports Flash 2
else if (navigator.userAgent.toLowerCase().indexOf("webtv") != -1) flashVer = 2;else if ( isIE && isWin && !isOpera ) {
flashVer = ControlVersion();}
return flashVer;}
// When called with reqMajorVer, reqMinorVer, reqRevision returns true if that version or greater is available
function DetectFlashVer(reqMajorVer, reqMinorVer, reqRevision)
{
versionStr = GetSwfVer();if (versionStr == -1 ) {
return false;} else if (versionStr != 0) {
if(isIE && isWin && !isOpera) {
// Given "WIN 2,0,0,11"
tempArray = versionStr.split(" "); // ["WIN", "2,0,0,11"]
tempString= tempArray[1];// "2,0,0,11"
versionArray= tempString.split(",");// ['2', '0', '0', '11']
} else {
versionArray= versionStr.split(".");}
var versionMajor= versionArray[0];var versionMinor= versionArray[1];var versionRevision = versionArray[2];// is the major.revision >= requested major.revision AND the minor version >= requested minor
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;}
}
function AC_AddExtension(src, ext)
{
if (src.indexOf('?') != -1)
return src.replace(/\?/, ext+'?'); 
else
return src + ext;}
function AC_Generateobj(objAttrs, params, embedAttrs) 
{ 
var str = '';if (isIE && isWin && !isOpera)
{
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 += '</object>';}
else
{
str += '<embed ';for (var i in embedAttrs)
{
str += i + '="' + embedAttrs[i] + '" ';}
str += '> </embed>';}
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_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":
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 "name":
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;}

var MooTools = {
version: '1.11'
};


function $defined(obj){
return (obj != undefined);};

function $type(obj){
if (!$defined(obj)) return false;if (obj.htmlElement) return 'element';var type = typeof obj;if (type == 'object' && obj.nodeName){
switch(obj.nodeType){
case 1: return 'element';case 3: return (/\S/).test(obj.nodeValue) ? 'textnode' : 'whitespace';}
}
if (type == 'object' || type == 'function'){
switch(obj.constructor){
case Array: return 'array';case RegExp: return 'regexp';case Class: return 'class';}
if (typeof obj.length == 'number'){
if (obj.item) return 'collection';if (obj.callee) return 'arguments';}
}
return type;};

function $merge(){
var mix = {};for (var i = 0; i < arguments.length; i++){
for (var property in arguments[i]){
var ap = arguments[i][property];var mp = mix[property];if (mp && $type(ap) == 'object' && $type(mp) == 'object') mix[property] = $merge(mp, ap);else mix[property] = ap;}
}
return mix;};

var $extend = function(){
var args = arguments;if (!args[1]) args = [this, args[0]];for (var property in args[1]) args[0][property] = args[1][property];return args[0];};

var $native = function(){
for (var i = 0, l = arguments.length; i < l; i++){
arguments[i].extend = function(props){
for (var prop in props){
if (!this.prototype[prop]) this.prototype[prop] = props[prop];if (!this[prop]) this[prop] = $native.generic(prop);}
};}
};
$native.generic = function(prop){
return function(bind){
return this.prototype[prop].apply(bind, Array.prototype.slice.call(arguments, 1));};};
$native(Function, Array, String, Number);

function $chk(obj){
return !!(obj || obj === 0);};

function $pick(obj, picked){
return $defined(obj) ? obj : picked;};

function $random(min, max){
return Math.floor(Math.random() * (max - min + 1) + min);};

function $time(){
return new Date().getTime();};

function $clear(timer){
clearTimeout(timer);clearInterval(timer);return null;};

var Abstract = function(obj){
obj = obj || {};obj.extend = $extend;return obj;};
//window, document
var Window = new Abstract(window);var Document = new Abstract(document);document.head = document.getElementsByTagName('head')[0];

window.xpath = !!(document.evaluate);if (window.ActiveXObject) window.ie = window[window.XMLHttpRequest ? 'ie7' : 'ie6'] = true;else if (document.childNodes && !document.all && !navigator.taintEnabled) window.webkit = window[window.xpath ? 'webkit420' : 'webkit419'] = true;else if (document.getBoxObjectFor != null) window.gecko = true;

window.khtml = window.webkit;
Object.extend = $extend;

//htmlelement
if (typeof HTMLElement == 'undefined'){
var HTMLElement = function(){};if (window.webkit) document.createElement("iframe"); //fixes safari
HTMLElement.prototype = (window.webkit) ? window["[[DOMElement.prototype]]"] : {};}
HTMLElement.prototype.htmlElement = function(){};
//enables background image cache for internet explorer 6
if (window.ie6) try {document.execCommand("BackgroundImageCache", false, true);} catch(e){};


var Class = function(properties){
var klass = function(){
return (arguments[0] !== null && this.initialize && $type(this.initialize) == 'function') ? this.initialize.apply(this, arguments) : this;};$extend(klass, this);klass.prototype = properties;klass.constructor = Class;return klass;};

Class.empty = function(){};
Class.prototype = {

extend: function(properties){
var proto = new this(null);for (var property in properties){
var pp = proto[property];proto[property] = Class.Merge(pp, properties[property]);}
return new Class(proto);},

implement: function(){
for (var i = 0, l = arguments.length; i < l; i++) $extend(this.prototype, arguments[i]);}
};
//internal
Class.Merge = function(previous, current){
if (previous && previous != current){
var type = $type(current);if (type != $type(previous)) return current;switch(type){
case 'function':
var merged = function(){
this.parent = arguments.callee.parent;return current.apply(this, arguments);};merged.parent = previous;return merged;case 'object': return $merge(previous, current);}
}
return current;};


var Chain = new Class({

chain: function(fn){
this.chains = this.chains || [];this.chains.push(fn);return this;},

callChain: function(){
if (this.chains && this.chains.length) this.chains.shift().delay(10, this);},

clearChain: function(){
this.chains = [];}
});

var Events = new Class({

addEvent: function(type, fn){
if (fn != Class.empty){
this.$events = this.$events || {};this.$events[type] = this.$events[type] || [];this.$events[type].include(fn);}
return this;},

fireEvent: function(type, args, delay){
if (this.$events && this.$events[type]){
this.$events[type].each(function(fn){
fn.create({'bind': this, 'delay': delay, 'arguments': args})();}, this);}
return this;},

removeEvent: function(type, fn){
if (this.$events && this.$events[type]) this.$events[type].remove(fn);return this;}
});

var Options = new Class({

setOptions: function(){
this.options = $merge.apply(null, [this.options].extend(arguments));if (this.addEvent){
for (var option in this.options){
if ($type(this.options[option] == 'function') && (/^on[A-Z]/).test(option)) this.addEvent(option, this.options[option]);}
}
return this;}
});


//custom methods
Array.extend({

forEach: function(fn, bind){
for (var i = 0, j = this.length; i < j; i++) fn.call(bind, this[i], i, this);},

filter: function(fn, bind){
var results = [];for (var i = 0, j = this.length; i < j; i++){
if (fn.call(bind, this[i], i, this)) results.push(this[i]);}
return results;},

map: function(fn, bind){
var results = [];for (var i = 0, j = this.length; i < j; i++) results[i] = fn.call(bind, this[i], i, this);return results;},

every: function(fn, bind){
for (var i = 0, j = this.length; i < j; i++){
if (!fn.call(bind, this[i], i, this)) return false;}
return true;},

some: function(fn, bind){
for (var i = 0, j = this.length; i < j; i++){
if (fn.call(bind, this[i], i, this)) return true;}
return false;},

indexOf: function(item, from){
var len = this.length;for (var i = (from < 0) ? Math.max(0, len + from) : from || 0; i < len; i++){
if (this[i] === item) return i;}
return -1;},


copy: function(start, length){
start = start || 0;if (start < 0) start = this.length + start;length = length || (this.length - start);var newArray = [];for (var i = 0; i < length; i++) newArray[i] = this[start++];return newArray;},

remove: function(item){
var i = 0;var len = this.length;while (i < len){
if (this[i] === item){
this.splice(i, 1);len--;} else {
i++;}
}
return this;},

contains: function(item, from){
return this.indexOf(item, from) != -1;},

associate: function(keys){
var obj = {}, length = Math.min(this.length, keys.length);for (var i = 0; i < length; i++) obj[keys[i]] = this[i];return obj;},

extend: function(array){
for (var i = 0, j = array.length; i < j; i++) this.push(array[i]);return this;},

merge: function(array){
for (var i = 0, l = array.length; i < l; i++) this.include(array[i]);return this;},

include: function(item){
if (!this.contains(item)) this.push(item);return this;},

getRandom: function(){
return this[$random(0, this.length - 1)] || null;},

getLast: function(){
return this[this.length - 1] || null;}
});
//copies
Array.prototype.each = Array.prototype.forEach;Array.each = Array.forEach;


function $A(array){
return Array.copy(array);};

function $each(iterable, fn, bind){
if (iterable && typeof iterable.length == 'number' && $type(iterable) != 'object'){
Array.forEach(iterable, fn, bind);} else {
 for (var name in iterable) fn.call(bind || iterable, iterable[name], name);}
};

Array.prototype.test = Array.prototype.contains;



String.extend({

test: function(regex, params){
return (($type(regex) == 'string') ? new RegExp(regex, params) : regex).test(this);},

toInt: function(){
return parseInt(this, 10);},

toFloat: function(){
return parseFloat(this);},

camelCase: function(){
return this.replace(/-\D/g, function(match){
return match.charAt(1).toUpperCase();});},

hyphenate: function(){
return this.replace(/\w[A-Z]/g, function(match){
return (match.charAt(0) + '-' + match.charAt(1).toLowerCase());});},

capitalize: function(){
return this.replace(/\b[a-z]/g, function(match){
return match.toUpperCase();});},

trim: function(){
return this.replace(/^\s+|\s+$/g, '');},

clean: function(){
return this.replace(/\s{2,}/g, ' ').trim();},

rgbToHex: function(array){
var rgb = this.match(/\d{1,3}/g);return (rgb) ? rgb.rgbToHex(array) : false;},

hexToRgb: function(array){
var hex = this.match(/^#?(\w{1,2})(\w{1,2})(\w{1,2})$/);return (hex) ? hex.slice(1).hexToRgb(array) : false;},

contains: function(string, s){
return (s) ? (s + this + s).indexOf(s + string + s) > -1 : this.indexOf(string) > -1;},

escapeRegExp: function(){
return this.replace(/([.*+?^${}()|[\]\/\\])/g, '\\$1');}
});
Array.extend({

rgbToHex: function(array){
if (this.length < 3) return false;if (this.length == 4 && this[3] == 0 && !array) return 'transparent';var hex = [];for (var i = 0; i < 3; i++){
var bit = (this[i] - 0).toString(16);hex.push((bit.length == 1) ? '0' + bit : bit);}
return array ? hex : '#' + hex.join('');},

hexToRgb: function(array){
if (this.length != 3) return false;var rgb = [];for (var i = 0; i < 3; i++){
rgb.push(parseInt((this[i].length == 1) ? this[i] + this[i] : this[i], 16));}
return array ? rgb : 'rgb(' + rgb.join(',') + ')';}
});


Function.extend({

create: function(options){
var fn = this;options = $merge({
'bind': fn,
'event': false,
'arguments': null,
'delay': false,
'periodical': false,
'attempt': false
}, options);if ($chk(options.arguments) && $type(options.arguments) != 'array') options.arguments = [options.arguments];return function(event){
var args;if (options.event){
event = event || window.event;args = [(options.event === true) ? event : new options.event(event)];if (options.arguments) args.extend(options.arguments);}
else args = options.arguments || arguments;var returns = function(){
return fn.apply($pick(options.bind, fn), args);};if (options.delay) return setTimeout(returns, options.delay);if (options.periodical) return setInterval(returns, options.periodical);if (options.attempt) try {return returns();} catch(err){return false;};return returns();};},

pass: function(args, bind){
return this.create({'arguments': args, 'bind': bind});},

attempt: function(args, bind){
return this.create({'arguments': args, 'bind': bind, 'attempt': true})();},

bind: function(bind, args){
return this.create({'bind': bind, 'arguments': args});},

bindAsEventListener: function(bind, args){
return this.create({'bind': bind, 'event': true, 'arguments': args});},

delay: function(delay, bind, args){
return this.create({'delay': delay, 'bind': bind, 'arguments': args})();},

periodical: function(interval, bind, args){
return this.create({'periodical': interval, 'bind': bind, 'arguments': args})();}
});


Number.extend({

toInt: function(){
return parseInt(this);},

toFloat: function(){
return parseFloat(this);},

limit: function(min, max){
return Math.min(max, Math.max(min, this));},

round: function(precision){
precision = Math.pow(10, precision || 0);return Math.round(this * precision) / precision;},

times: function(fn){
for (var i = 0; i < this; i++) fn(i);}
});


var Element = new Class({

initialize: function(el, props){
if ($type(el) == 'string'){
if (window.ie && props && (props.name || props.type)){
var name = (props.name) ? ' name="' + props.name + '"' : '';var type = (props.type) ? ' type="' + props.type + '"' : '';delete props.name;delete props.type;el = '<' + el + name + type + '>';}
el = document.createElement(el);}
el = $(el);return (!props || !el) ? el : el.set(props);}
});

var Elements = new Class({
initialize: function(elements){
return (elements) ? $extend(elements, this) : this;}
});
Elements.extend = function(props){
for (var prop in props){
this.prototype[prop] = props[prop];this[prop] = $native.generic(prop);}
};

function $(el){
if (!el) return null;if (el.htmlElement) return Garbage.collect(el);if ([window, document].contains(el)) return el;var type = $type(el);if (type == 'string'){
el = document.getElementById(el);type = (el) ? 'element' : false;}
if (type != 'element') return null;if (el.htmlElement) return Garbage.collect(el);if (['object', 'embed'].contains(el.tagName.toLowerCase())) return el;$extend(el, Element.prototype);el.htmlElement = function(){};return Garbage.collect(el);};

document.getElementsBySelector = document.getElementsByTagName;
function $$(){
var elements = [];for (var i = 0, j = arguments.length; i < j; i++){
var selector = arguments[i];switch($type(selector)){
case 'element': elements.push(selector);case 'boolean': break;case false: break;case 'string': selector = document.getElementsBySelector(selector, true);default: elements.extend(selector);}
}
return $$.unique(elements);};
$$.unique = function(array){
var elements = [];for (var i = 0, l = array.length; i < l; i++){
if (array[i].$included) continue;var element = $(array[i]);if (element && !element.$included){
element.$included = true;elements.push(element);}
}
for (var n = 0, d = elements.length; n < d; n++) elements[n].$included = null;return new Elements(elements);};
Elements.Multi = function(property){
return function(){
var args = arguments;var items = [];var elements = true;for (var i = 0, j = this.length, returns; i < j; i++){
returns = this[i][property].apply(this[i], args);if ($type(returns) != 'element') elements = false;items.push(returns);};return (elements) ? $$.unique(items) : items;};};
Element.extend = function(properties){
for (var property in properties){
HTMLElement.prototype[property] = properties[property];Element.prototype[property] = properties[property];Element[property] = $native.generic(property);var elementsProperty = (Array.prototype[property]) ? property + 'Elements' : property;Elements.prototype[elementsProperty] = Elements.Multi(property);}
};

Element.extend({

set: function(props){
for (var prop in props){
var val = props[prop];switch(prop){
case 'styles': this.setStyles(val); break;case 'events': if (this.addEvents) this.addEvents(val); break;case 'properties': this.setProperties(val); break;default: this.setProperty(prop, val);}
}
return this;},
inject: function(el, where){
el = $(el);switch(where){
case 'before': el.parentNode.insertBefore(this, el); break;case 'after':
var next = el.getNext();if (!next) el.parentNode.appendChild(this);else el.parentNode.insertBefore(this, next);break;case 'top':
var first = el.firstChild;if (first){
el.insertBefore(this, first);break;}
default: el.appendChild(this);}
return this;},

injectBefore: function(el){
return this.inject(el, 'before');},

injectAfter: function(el){
return this.inject(el, 'after');},

injectInside: function(el){
return this.inject(el, 'bottom');},

injectTop: function(el){
return this.inject(el, 'top');},

adopt: function(){
var elements = [];$each(arguments, function(argument){
elements = elements.concat(argument);});$$(elements).inject(this);return this;},

remove: function(){
return this.parentNode.removeChild(this);},

clone: function(contents){
var el = $(this.cloneNode(contents !== false));if (!el.$events) return el;el.$events = {};for (var type in this.$events) el.$events[type] = {
'keys': $A(this.$events[type].keys),
'values': $A(this.$events[type].values)
};return el.removeEvents();},

replaceWith: function(el){
el = $(el);this.parentNode.replaceChild(el, this);return el;},

appendText: function(text){
this.appendChild(document.createTextNode(text));return this;},

hasClass: function(className){
return this.className.contains(className, ' ');},

addClass: function(className){
if (!this.hasClass(className)) this.className = (this.className + ' ' + className).clean();return this;},

removeClass: function(className){
this.className = this.className.replace(new RegExp('(^|\\s)' + className + '(?:\\s|$)'), '$1').clean();return this;},

toggleClass: function(className){
return this.hasClass(className) ? this.removeClass(className) : this.addClass(className);},

setStyle: function(property, value){
switch(property){
case 'opacity': return this.setOpacity(parseFloat(value));case 'float': property = (window.ie) ? 'styleFloat' : 'cssFloat';}
property = property.camelCase();switch($type(value)){
case 'number': if (!['zIndex', 'zoom'].contains(property)) value += 'px'; break;case 'array': value = 'rgb(' + value.join(',') + ')';}
this.style[property] = value;return this;},

setStyles: function(source){
switch($type(source)){
case 'object': Element.setMany(this, 'setStyle', source); break;case 'string': this.style.cssText = source;}
return this;},

setOpacity: function(opacity){
if (opacity == 0){
if (this.style.visibility != "hidden") this.style.visibility = "hidden";} else {
if (this.style.visibility != "visible") this.style.visibility = "visible";}
if (!this.currentStyle || !this.currentStyle.hasLayout) this.style.zoom = 1;if (window.ie) this.style.filter = (opacity == 1) ? '' : "alpha(opacity=" + opacity * 100 + ")";this.style.opacity = this.$tmp.opacity = opacity;return this;},

getStyle: function(property){
property = property.camelCase();var result = this.style[property];if (!$chk(result)){
if (property == 'opacity') return this.$tmp.opacity;result = [];for (var style in Element.Styles){
if (property == style){
Element.Styles[style].each(function(s){
var style = this.getStyle(s);result.push(parseInt(style) ? style : '0px');}, this);if (property == 'border'){
var every = result.every(function(bit){
return (bit == result[0]);});return (every) ? result[0] : false;}
return result.join(' ');}
}
if (property.contains('border')){
if (Element.Styles.border.contains(property)){
return ['Width', 'Style', 'Color'].map(function(p){
return this.getStyle(property + p);}, this).join(' ');} else if (Element.borderShort.contains(property)){
return ['Top', 'Right', 'Bottom', 'Left'].map(function(p){
return this.getStyle('border' + p + property.replace('border', ''));}, this).join(' ');}
}
if (document.defaultView) result = document.defaultView.getComputedStyle(this, null).getPropertyValue(property.hyphenate());else if (this.currentStyle) result = this.currentStyle[property];}
if (window.ie) result = Element.fixStyle(property, result, this);if (result && property.test(/color/i) && result.contains('rgb')){
return result.split('rgb').splice(1,4).map(function(color){
return color.rgbToHex();}).join(' ');}
return result;},

getStyles: function(){
return Element.getMany(this, 'getStyle', arguments);},
walk: function(brother, start){
brother += 'Sibling';var el = (start) ? this[start] : this[brother];while (el && $type(el) != 'element') el = el[brother];return $(el);},

getPrevious: function(){
return this.walk('previous');},

getNext: function(){
return this.walk('next');},

getFirst: function(){
return this.walk('next', 'firstChild');},

getLast: function(){
return this.walk('previous', 'lastChild');},

getParent: function(){
return $(this.parentNode);},

getChildren: function(){
return $$(this.childNodes);},

hasChild: function(el){
return !!$A(this.getElementsByTagName('*')).contains(el);},

getProperty: function(property){
var index = Element.Properties[property];if (index) return this[index];var flag = Element.PropertiesIFlag[property] || 0;if (!window.ie || flag) return this.getAttribute(property, flag);var node = this.attributes[property];return (node) ? node.nodeValue : null;},

removeProperty: function(property){
var index = Element.Properties[property];if (index) this[index] = '';else this.removeAttribute(property);return this;},

getProperties: function(){
return Element.getMany(this, 'getProperty', arguments);},

setProperty: function(property, value){
var index = Element.Properties[property];if (index) this[index] = value;else this.setAttribute(property, value);return this;},

setProperties: function(source){
return Element.setMany(this, 'setProperty', source);},

setHTML: function(){
this.innerHTML = $A(arguments).join('');return this;},

setText: function(text){
var tag = this.getTag();if (['style', 'script'].contains(tag)){
if (window.ie){
if (tag == 'style') this.styleSheet.cssText = text;else if (tag =='script') this.setProperty('text', text);return this;} else {
this.removeChild(this.firstChild);return this.appendText(text);}
}
this[$defined(this.innerText) ? 'innerText' : 'textContent'] = text;return this;},

getText: function(){
var tag = this.getTag();if (['style', 'script'].contains(tag)){
if (window.ie){
if (tag == 'style') return this.styleSheet.cssText;else if (tag =='script') return this.getProperty('text');} else {
return this.innerHTML;}
}
return ($pick(this.innerText, this.textContent));},

getTag: function(){
return this.tagName.toLowerCase();},

empty: function(){
Garbage.trash(this.getElementsByTagName('*'));return this.setHTML('');}
});
Element.fixStyle = function(property, result, element){
if ($chk(parseInt(result))) return result;if (['height', 'width'].contains(property)){
var values = (property == 'width') ? ['left', 'right'] : ['top', 'bottom'];var size = 0;values.each(function(value){
size += element.getStyle('border-' + value + '-width').toInt() + element.getStyle('padding-' + value).toInt();});return element['offset' + property.capitalize()] - size + 'px';} else if (property.test(/border(.+)Width|margin|padding/)){
return '0px';}
return result;};
Element.Styles = {'border': [], 'padding': [], 'margin': []};['Top', 'Right', 'Bottom', 'Left'].each(function(direction){
for (var style in Element.Styles) Element.Styles[style].push(style + direction);});
Element.borderShort = ['borderWidth', 'borderStyle', 'borderColor'];
Element.getMany = function(el, method, keys){
var result = {};$each(keys, function(key){
result[key] = el[method](key);});return result;};
Element.setMany = function(el, method, pairs){
for (var key in pairs) el[method](key, pairs[key]);return el;};
Element.Properties = new Abstract({
'class': 'className', 'for': 'htmlFor', 'colspan': 'colSpan', 'rowspan': 'rowSpan',
'accesskey': 'accessKey', 'tabindex': 'tabIndex', 'maxlength': 'maxLength',
'readonly': 'readOnly', 'frameborder': 'frameBorder', 'value': 'value',
'disabled': 'disabled', 'checked': 'checked', 'multiple': 'multiple', 'selected': 'selected'
});Element.PropertiesIFlag = {
'href': 2, 'src': 2
};
Element.Methods = {
Listeners: {
addListener: function(type, fn){
if (this.addEventListener) this.addEventListener(type, fn, false);else this.attachEvent('on' + type, fn);return this;},
removeListener: function(type, fn){
if (this.removeEventListener) this.removeEventListener(type, fn, false);else this.detachEvent('on' + type, fn);return this;}
}
};
window.extend(Element.Methods.Listeners);document.extend(Element.Methods.Listeners);Element.extend(Element.Methods.Listeners);
var Garbage = {
elements: [],
collect: function(el){
if (!el.$tmp){
Garbage.elements.push(el);el.$tmp = {'opacity': 1};}
return el;},
trash: function(elements){
for (var i = 0, j = elements.length, el; i < j; i++){
if (!(el = elements[i]) || !el.$tmp) continue;if (el.$events) el.fireEvent('trash').removeEvents();for (var p in el.$tmp) el.$tmp[p] = null;for (var d in Element.prototype) el[d] = null;Garbage.elements[Garbage.elements.indexOf(el)] = null;el.htmlElement = el.$tmp = el = null;}
Garbage.elements.remove(null);},
empty: function(){
Garbage.collect(window);Garbage.collect(document);Garbage.trash(Garbage.elements);}
};
window.addListener('beforeunload', function(){
window.addListener('unload', Garbage.empty);if (window.ie) window.addListener('unload', CollectGarbage);});


var Event = new Class({
initialize: function(event){
if (event && event.$extended) return event;this.$extended = true;event = event || window.event;this.event = event;this.type = event.type;this.target = event.target || event.srcElement;if (this.target.nodeType == 3) this.target = this.target.parentNode;this.shift = event.shiftKey;this.control = event.ctrlKey;this.alt = event.altKey;this.meta = event.metaKey;if (['DOMMouseScroll', 'mousewheel'].contains(this.type)){
this.wheel = (event.wheelDelta) ? event.wheelDelta / 120 : -(event.detail || 0) / 3;} else if (this.type.contains('key')){
this.code = event.which || event.keyCode;for (var name in Event.keys){
if (Event.keys[name] == this.code){
this.key = name;break;}
}
if (this.type == 'keydown'){
var fKey = this.code - 111;if (fKey > 0 && fKey < 13) this.key = 'f' + fKey;}
this.key = this.key || String.fromCharCode(this.code).toLowerCase();} else if (this.type.test(/(click|mouse|menu)/)){
this.page = {
'x': event.pageX || event.clientX + document.documentElement.scrollLeft,
'y': event.pageY || event.clientY + document.documentElement.scrollTop
};this.client = {
'x': event.pageX ? event.pageX - window.pageXOffset : event.clientX,
'y': event.pageY ? event.pageY - window.pageYOffset : event.clientY
};this.rightClick = (event.which == 3) || (event.button == 2);switch(this.type){
case 'mouseover': this.relatedTarget = event.relatedTarget || event.fromElement; break;case 'mouseout': this.relatedTarget = event.relatedTarget || event.toElement;}
this.fixRelatedTarget();}
return this;},

stop: function(){
return this.stopPropagation().preventDefault();},

stopPropagation: function(){
if (this.event.stopPropagation) this.event.stopPropagation();else this.event.cancelBubble = true;return this;},

preventDefault: function(){
if (this.event.preventDefault) this.event.preventDefault();else this.event.returnValue = false;return this;}
});
Event.fix = {
relatedTarget: function(){
if (this.relatedTarget && this.relatedTarget.nodeType == 3) this.relatedTarget = this.relatedTarget.parentNode;},
relatedTargetGecko: function(){
try {Event.fix.relatedTarget.call(this);} catch(e){this.relatedTarget = this.target;}
}
};
Event.prototype.fixRelatedTarget = (window.gecko) ? Event.fix.relatedTargetGecko : Event.fix.relatedTarget;

Event.keys = new Abstract({
'enter': 13,
'up': 38,
'down': 40,
'left': 37,
'right': 39,
'esc': 27,
'space': 32,
'backspace': 8,
'tab': 9,
'delete': 46
});

Element.Methods.Events = {

addEvent: function(type, fn){
this.$events = this.$events || {};this.$events[type] = this.$events[type] || {'keys': [], 'values': []};if (this.$events[type].keys.contains(fn)) return this;this.$events[type].keys.push(fn);var realType = type;var custom = Element.Events[type];if (custom){
if (custom.add) custom.add.call(this, fn);if (custom.map) fn = custom.map;if (custom.type) realType = custom.type;}
if (!this.addEventListener) fn = fn.create({'bind': this, 'event': true});this.$events[type].values.push(fn);return (Element.NativeEvents.contains(realType)) ? this.addListener(realType, fn) : this;},

removeEvent: function(type, fn){
if (!this.$events || !this.$events[type]) return this;var pos = this.$events[type].keys.indexOf(fn);if (pos == -1) return this;var key = this.$events[type].keys.splice(pos,1)[0];var value = this.$events[type].values.splice(pos,1)[0];var custom = Element.Events[type];if (custom){
if (custom.remove) custom.remove.call(this, fn);if (custom.type) type = custom.type;}
return (Element.NativeEvents.contains(type)) ? this.removeListener(type, value) : this;},

addEvents: function(source){
return Element.setMany(this, 'addEvent', source);},

removeEvents: function(type){
if (!this.$events) return this;if (!type){
for (var evType in this.$events) this.removeEvents(evType);this.$events = null;} else if (this.$events[type]){
this.$events[type].keys.each(function(fn){
this.removeEvent(type, fn);}, this);this.$events[type] = null;}
return this;},

fireEvent: function(type, args, delay){
if (this.$events && this.$events[type]){
this.$events[type].keys.each(function(fn){
fn.create({'bind': this, 'delay': delay, 'arguments': args})();}, this);}
return this;},

cloneEvents: function(from, type){
if (!from.$events) return this;if (!type){
for (var evType in from.$events) this.cloneEvents(from, evType);} else if (from.$events[type]){
from.$events[type].keys.each(function(fn){
this.addEvent(type, fn);}, this);}
return this;}
};
window.extend(Element.Methods.Events);document.extend(Element.Methods.Events);Element.extend(Element.Methods.Events);

Element.Events = new Abstract({

'mouseenter': {
type: 'mouseover',
map: function(event){
event = new Event(event);if (event.relatedTarget != this && !this.hasChild(event.relatedTarget)) this.fireEvent('mouseenter', event);}
},

'mouseleave': {
type: 'mouseout',
map: function(event){
event = new Event(event);if (event.relatedTarget != this && !this.hasChild(event.relatedTarget)) this.fireEvent('mouseleave', event);}
},
'mousewheel': {
type: (window.gecko) ? 'DOMMouseScroll' : 'mousewheel'
}
});
Element.NativeEvents = [
'click', 'dblclick', 'mouseup', 'mousedown', //mouse buttons
'mousewheel', 'DOMMouseScroll', //mouse wheel
'mouseover', 'mouseout', 'mousemove', //mouse movement
'keydown', 'keypress', 'keyup', //keys
'load', 'unload', 'beforeunload', 'resize', 'move', //window
'focus', 'blur', 'change', 'submit', 'reset', 'select', //forms elements
'error', 'abort', 'contextmenu', 'scroll' //misc
];

Function.extend({

bindWithEvent: function(bind, args){
return this.create({'bind': bind, 'arguments': args, 'event': Event});}
});


Elements.extend({

filterByTag: function(tag){
return new Elements(this.filter(function(el){
return (Element.getTag(el) == tag);}));},

filterByClass: function(className, nocash){
var elements = this.filter(function(el){
return (el.className && el.className.contains(className, ' '));});return (nocash) ? elements : new Elements(elements);},

filterById: function(id, nocash){
var elements = this.filter(function(el){
return (el.id == id);});return (nocash) ? elements : new Elements(elements);},

filterByAttribute: function(name, operator, value, nocash){
var elements = this.filter(function(el){
var current = Element.getProperty(el, name);if (!current) return false;if (!operator) return true;switch(operator){
case '=': return (current == value);case '*=': return (current.contains(value));case '^=': return (current.substr(0, value.length) == value);case '$=': return (current.substr(current.length - value.length) == value);case '!=': return (current != value);case '~=': return current.contains(value, ' ');}
return false;});return (nocash) ? elements : new Elements(elements);}
});



function $E(selector, filter){
return ($(filter) || document).getElement(selector);};

function $ES(selector, filter){
return ($(filter) || document).getElementsBySelector(selector);};
$$.shared = {
'regexp': /^(\w*|\*)(?:#([\w-]+)|\.([\w-]+))?(?:\[(\w+)(?:([!*^$]?=)["']?([^"'\]]*)["']?)?])?$/,
'xpath': {
getParam: function(items, context, param, i){
var temp = [context.namespaceURI ? 'xhtml:' : '', param[1]];if (param[2]) temp.push('[@id="', param[2], '"]');if (param[3]) temp.push('[contains(concat(" ", @class, " "), " ', param[3], ' ")]');if (param[4]){
if (param[5] && param[6]){
switch(param[5]){
case '*=': temp.push('[contains(@', param[4], ', "', param[6], '")]'); break;case '^=': temp.push('[starts-with(@', param[4], ', "', param[6], '")]'); break;case '$=': temp.push('[substring(@', param[4], ', string-length(@', param[4], ') - ', param[6].length, ' + 1) = "', param[6], '"]'); break;case '=': temp.push('[@', param[4], '="', param[6], '"]'); break;case '!=': temp.push('[@', param[4], '!="', param[6], '"]');}
} else {
temp.push('[@', param[4], ']');}
}
items.push(temp.join(''));return items;},
getItems: function(items, context, nocash){
var elements = [];var xpath = document.evaluate('.//' + items.join('//'), context, $$.shared.resolver, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);for (var i = 0, j = xpath.snapshotLength; i < j; i++) elements.push(xpath.snapshotItem(i));return (nocash) ? elements : new Elements(elements.map($));}
},
'normal': {
getParam: function(items, context, param, i){
if (i == 0){
if (param[2]){
var el = context.getElementById(param[2]);if (!el || ((param[1] != '*') && (Element.getTag(el) != param[1]))) return false;items = [el];} else {
items = $A(context.getElementsByTagName(param[1]));}
} else {
items = $$.shared.getElementsByTagName(items, param[1]);if (param[2]) items = Elements.filterById(items, param[2], true);}
if (param[3]) items = Elements.filterByClass(items, param[3], true);if (param[4]) items = Elements.filterByAttribute(items, param[4], param[5], param[6], true);return items;},
getItems: function(items, context, nocash){
return (nocash) ? items : $$.unique(items);}
},
resolver: function(prefix){
return (prefix == 'xhtml') ? 'http://www.w3.org/1999/xhtml' : false;},
getElementsByTagName: function(context, tagName){
var found = [];for (var i = 0, j = context.length; i < j; i++) found.extend(context[i].getElementsByTagName(tagName));return found;}
};
$$.shared.method = (window.xpath) ? 'xpath' : 'normal';

Element.Methods.Dom = {

getElements: function(selector, nocash){
var items = [];selector = selector.trim().split(' ');for (var i = 0, j = selector.length; i < j; i++){
var sel = selector[i];var param = sel.match($$.shared.regexp);if (!param) break;param[1] = param[1] || '*';var temp = $$.shared[$$.shared.method].getParam(items, this, param, i);if (!temp) break;items = temp;}
return $$.shared[$$.shared.method].getItems(items, this, nocash);},

getElement: function(selector){
return $(this.getElements(selector, true)[0] || false);},

getElementsBySelector: function(selector, nocash){
var elements = [];selector = selector.split(',');for (var i = 0, j = selector.length; i < j; i++) elements = elements.concat(this.getElements(selector[i], true));return (nocash) ? elements : $$.unique(elements);}
};
Element.extend({

getElementById: function(id){
var el = document.getElementById(id);if (!el) return false;for (var parent = el.parentNode; parent != this; parent = parent.parentNode){
if (!parent) return false;}
return el;},
getElementsByClassName: function(className){ 
return this.getElements('.' + className); 
}

});
document.extend(Element.Methods.Dom);Element.extend(Element.Methods.Dom);


Element.extend({

getValue: function(){
switch(this.getTag()){
case 'select':
var values = [];$each(this.options, function(option){
if (option.selected) values.push($pick(option.value, option.text));});return (this.multiple) ? values : values[0];case 'input': if (!(this.checked && ['checkbox', 'radio'].contains(this.type)) && !['hidden', 'text', 'password'].contains(this.type)) break;case 'textarea': return this.value;}
return false;},
getFormElements: function(){
return $$(this.getElementsByTagName('input'), this.getElementsByTagName('select'), this.getElementsByTagName('textarea'));},

toQueryString: function(){
var queryString = [];this.getFormElements().each(function(el){
var name = el.name;var value = el.getValue();if (value === false || !name || el.disabled) return;var qs = function(val){
queryString.push(name + '=' + encodeURIComponent(val));};if ($type(value) == 'array') value.each(qs);else qs(value);});return queryString.join('&');}
});


Element.extend({

scrollTo: function(x, y){
this.scrollLeft = x;this.scrollTop = y;},

getSize: function(){
return {
'scroll': {'x': this.scrollLeft, 'y': this.scrollTop},
'size': {'x': this.offsetWidth, 'y': this.offsetHeight},
'scrollSize': {'x': this.scrollWidth, 'y': this.scrollHeight}
};},

getPosition: function(overflown){
overflown = overflown || [];var el = this, left = 0, top = 0;do {
left += el.offsetLeft || 0;top += el.offsetTop || 0;el = el.offsetParent;} while (el);overflown.each(function(element){
left -= element.scrollLeft || 0;top -= element.scrollTop || 0;});return {'x': left, 'y': top};},

getTop: function(overflown){
return this.getPosition(overflown).y;},

getLeft: function(overflown){
return this.getPosition(overflown).x;},

getCoordinates: function(overflown){
var position = this.getPosition(overflown);var obj = {
'width': this.offsetWidth,
'height': this.offsetHeight,
'left': position.x,
'top': position.y
};obj.right = obj.left + obj.width;obj.bottom = obj.top + obj.height;return obj;}
});



Element.Events.domready = {
add: function(fn){
if (window.loaded){
fn.call(this);return;}
var domReady = function(){
if (window.loaded) return;window.loaded = true;window.timer = $clear(window.timer);this.fireEvent('domready');}.bind(this);if (document.readyState && window.webkit){
window.timer = function(){
if (['loaded','complete'].contains(document.readyState)) domReady();}.periodical(50);} else if (document.readyState && window.ie){
if (!$('ie_ready')){
var src = (window.location.protocol == 'https:') ? '://0' : 'javascript:void(0)';document.write('<script id="ie_ready" defer src="' + src + '"><\/script>');$('ie_ready').onreadystatechange = function(){
if (this.readyState == 'complete') domReady();};}
} else {
window.addListener("load", domReady);document.addListener("DOMContentLoaded", domReady);}
}
};

window.onDomReady = function(fn){ 
return this.addEvent('domready', fn); 
};



window.extend({

getWidth: function(){
if (this.webkit419) return this.innerWidth;if (this.opera) return document.body.clientWidth;return document.documentElement.clientWidth;},

getHeight: function(){
if (this.webkit419) return this.innerHeight;if (this.opera) return document.body.clientHeight;return document.documentElement.clientHeight;},

getScrollWidth: function(){
if (this.ie) return Math.max(document.documentElement.offsetWidth, document.documentElement.scrollWidth);if (this.webkit) return document.body.scrollWidth;return document.documentElement.scrollWidth;},

getScrollHeight: function(){
if (this.ie) return Math.max(document.documentElement.offsetHeight, document.documentElement.scrollHeight);if (this.webkit) return document.body.scrollHeight;return document.documentElement.scrollHeight;},

getScrollLeft: function(){
return this.pageXOffset || document.documentElement.scrollLeft;},

getScrollTop: function(){
return this.pageYOffset || document.documentElement.scrollTop;},

getSize: function(){
return {
'size': {'x': this.getWidth(), 'y': this.getHeight()},
'scrollSize': {'x': this.getScrollWidth(), 'y': this.getScrollHeight()},
'scroll': {'x': this.getScrollLeft(), 'y': this.getScrollTop()}
};},
//ignore
getPosition: function(){return {'x': 0, 'y': 0};}
});

var Fx = {};

Fx.Base = new Class({
options: {
onStart: Class.empty,
onComplete: Class.empty,
onCancel: Class.empty,
transition: function(p){
return -(Math.cos(Math.PI * p) - 1) / 2;},
duration: 500,
unit: 'px',
wait: true,
fps: 50
},
initialize: function(options){
this.element = this.element || null;this.setOptions(options);if (this.options.initialize) this.options.initialize.call(this);},
step: function(){
var time = $time();if (time < this.time + this.options.duration){
this.delta = this.options.transition((time - this.time) / this.options.duration);this.setNow();this.increase();} else {
this.stop(true);this.set(this.to);this.fireEvent('onComplete', this.element, 10);this.callChain();}
},

set: function(to){
this.now = to;this.increase();return this;},
setNow: function(){
this.now = this.compute(this.from, this.to);},
compute: function(from, to){
return (to - from) * this.delta + from;},

start: function(from, to){
if (!this.options.wait) this.stop();else if (this.timer) return this;this.from = from;this.to = to;this.change = this.to - this.from;this.time = $time();this.timer = this.step.periodical(Math.round(1000 / this.options.fps), this);this.fireEvent('onStart', this.element);return this;},

stop: function(end){
if (!this.timer) return this;this.timer = $clear(this.timer);if (!end) this.fireEvent('onCancel', this.element);return this;},
custom: function(from, to){
return this.start(from, to);},
clearTimer: function(end){
return this.stop(end);}

});
Fx.Base.implement(new Chain, new Events, new Options);

Fx.CSS = {
select: function(property, to){
if (property.test(/color/i)) return this.Color;var type = $type(to);if ((type == 'array') || (type == 'string' && to.contains(' '))) return this.Multi;return this.Single;},
parse: function(el, property, fromTo){
if (!fromTo.push) fromTo = [fromTo];var from = fromTo[0], to = fromTo[1];if (!$chk(to)){
to = from;from = el.getStyle(property);}
var css = this.select(property, to);return {'from': css.parse(from), 'to': css.parse(to), 'css': css};}
};
Fx.CSS.Single = {
parse: function(value){
return parseFloat(value);},
getNow: function(from, to, fx){
return fx.compute(from, to);},
getValue: function(value, unit, property){
if (unit == 'px' && property != 'opacity') value = Math.round(value);return value + unit;}
};
Fx.CSS.Multi = {
parse: function(value){
return value.push ? value : value.split(' ').map(function(v){
return parseFloat(v);});},
getNow: function(from, to, fx){
var now = [];for (var i = 0; i < from.length; i++) now[i] = fx.compute(from[i], to[i]);return now;},
getValue: function(value, unit, property){
if (unit == 'px' && property != 'opacity') value = value.map(Math.round);return value.join(unit + ' ') + unit;}
};
Fx.CSS.Color = {
parse: function(value){
return value.push ? value : value.hexToRgb(true);},
getNow: function(from, to, fx){
var now = [];for (var i = 0; i < from.length; i++) now[i] = Math.round(fx.compute(from[i], to[i]));return now;},
getValue: function(value){
return 'rgb(' + value.join(',') + ')';}
};


Fx.Style = Fx.Base.extend({
initialize: function(el, property, options){
this.element = $(el);this.property = property;this.parent(options);},

hide: function(){
return this.set(0);},
setNow: function(){
this.now = this.css.getNow(this.from, this.to, this);},

set: function(to){
this.css = Fx.CSS.select(this.property, to);return this.parent(this.css.parse(to));},

start: function(from, to){
if (this.timer && this.options.wait) return this;var parsed = Fx.CSS.parse(this.element, this.property, [from, to]);this.css = parsed.css;return this.parent(parsed.from, parsed.to);},
increase: function(){
this.element.setStyle(this.property, this.css.getValue(this.now, this.options.unit, this.property));}
});

Element.extend({

effect: function(property, options){
return new Fx.Style(this, property, options);}
});


Fx.Styles = Fx.Base.extend({
initialize: function(el, options){
this.element = $(el);this.parent(options);},
setNow: function(){
for (var p in this.from) this.now[p] = this.css[p].getNow(this.from[p], this.to[p], this);},
set: function(to){
var parsed = {};this.css = {};for (var p in to){
this.css[p] = Fx.CSS.select(p, to[p]);parsed[p] = this.css[p].parse(to[p]);}
return this.parent(parsed);},

start: function(obj){
if (this.timer && this.options.wait) return this;this.now = {};this.css = {};var from = {}, to = {};for (var p in obj){
var parsed = Fx.CSS.parse(this.element, p, obj[p]);from[p] = parsed.from;to[p] = parsed.to;this.css[p] = parsed.css;}
return this.parent(from, to);},
increase: function(){
for (var p in this.now) this.element.setStyle(p, this.css[p].getValue(this.now[p], this.options.unit, p));}
});

Element.extend({

effects: function(options){
return new Fx.Styles(this, options);}
});


Fx.Elements = Fx.Base.extend({
initialize: function(elements, options){
this.elements = $$(elements);this.parent(options);},
setNow: function(){
for (var i in this.from){
var iFrom = this.from[i], iTo = this.to[i], iCss = this.css[i], iNow = this.now[i] = {};for (var p in iFrom) iNow[p] = iCss[p].getNow(iFrom[p], iTo[p], this);}
},
set: function(to){
var parsed = {};this.css = {};for (var i in to){
var iTo = to[i], iCss = this.css[i] = {}, iParsed = parsed[i] = {};for (var p in iTo){
iCss[p] = Fx.CSS.select(p, iTo[p]);iParsed[p] = iCss[p].parse(iTo[p]);}
}
return this.parent(parsed);},

start: function(obj){
if (this.timer && this.options.wait) return this;this.now = {};this.css = {};var from = {}, to = {};for (var i in obj){
var iProps = obj[i], iFrom = from[i] = {}, iTo = to[i] = {}, iCss = this.css[i] = {};for (var p in iProps){
var parsed = Fx.CSS.parse(this.elements[i], p, iProps[p]);iFrom[p] = parsed.from;iTo[p] = parsed.to;iCss[p] = parsed.css;}
}
return this.parent(from, to);},
increase: function(){
for (var i in this.now){
var iNow = this.now[i], iCss = this.css[i];for (var p in iNow) this.elements[i].setStyle(p, iCss[p].getValue(iNow[p], this.options.unit, p));}
}
});


Fx.Scroll = Fx.Base.extend({
options: {
overflown: [],
offset: {'x': 0, 'y': 0},
wheelStops: true
},
initialize: function(element, options){
this.now = [];this.element = $(element);this.bound = {'stop': this.stop.bind(this, false)};this.parent(options);if (this.options.wheelStops){
this.addEvent('onStart', function(){
document.addEvent('mousewheel', this.bound.stop);}.bind(this));this.addEvent('onComplete', function(){
document.removeEvent('mousewheel', this.bound.stop);}.bind(this));}
},
setNow: function(){
for (var i = 0; i < 2; i++) this.now[i] = this.compute(this.from[i], this.to[i]);},

scrollTo: function(x, y){
if (this.timer && this.options.wait) return this;var el = this.element.getSize();var values = {'x': x, 'y': y};for (var z in el.size){
var max = el.scrollSize[z] - el.size[z];if ($chk(values[z])) values[z] = ($type(values[z]) == 'number') ? values[z].limit(0, max) : max;else values[z] = el.scroll[z];values[z] += this.options.offset[z];}
return this.start([el.scroll.x, el.scroll.y], [values.x, values.y]);},

toTop: function(){
return this.scrollTo(false, 0);},

toBottom: function(){
return this.scrollTo(false, 'full');},

toLeft: function(){
return this.scrollTo(0, false);},

toRight: function(){
return this.scrollTo('full', false);},

toElement: function(el){
var parent = this.element.getPosition(this.options.overflown);var target = $(el).getPosition(this.options.overflown);return this.scrollTo(target.x - parent.x, target.y - parent.y);},
increase: function(){
this.element.scrollTo(this.now[0], this.now[1]);}
});


Fx.Slide = Fx.Base.extend({
options: {
mode: 'vertical'
},
initialize: function(el, options){
this.element = $(el);this.wrapper = new Element('div', {'styles': $extend(this.element.getStyles('margin'), {'overflow': 'hidden'})}).injectAfter(this.element).adopt(this.element);this.element.setStyle('margin', 0);this.setOptions(options);this.now = [];this.parent(this.options);this.open = true;this.addEvent('onComplete', function(){
this.open = (this.now[0] === 0);});if (window.webkit419) this.addEvent('onComplete', function(){
if (this.open) this.element.remove().inject(this.wrapper);});},
setNow: function(){
for (var i = 0; i < 2; i++) this.now[i] = this.compute(this.from[i], this.to[i]);},
vertical: function(){
this.margin = 'margin-top';this.layout = 'height';this.offset = this.element.offsetHeight;},
horizontal: function(){
this.margin = 'margin-left';this.layout = 'width';this.offset = this.element.offsetWidth;},

slideIn: function(mode){
this[mode || this.options.mode]();return this.start([this.element.getStyle(this.margin).toInt(), this.wrapper.getStyle(this.layout).toInt()], [0, this.offset]);},

slideOut: function(mode){
this[mode || this.options.mode]();return this.start([this.element.getStyle(this.margin).toInt(), this.wrapper.getStyle(this.layout).toInt()], [-this.offset, 0]);},

hide: function(mode){
this[mode || this.options.mode]();this.open = false;return this.set([-this.offset, 0]);},

show: function(mode){
this[mode || this.options.mode]();this.open = true;return this.set([0, this.offset]);},

toggle: function(mode){
if (this.wrapper.offsetHeight == 0 || this.wrapper.offsetWidth == 0) return this.slideIn(mode);return this.slideOut(mode);},
increase: function(){
this.element.setStyle(this.margin, this.now[0] + this.options.unit);this.wrapper.setStyle(this.layout, this.now[1] + this.options.unit);}
});


Fx.Transition = function(transition, params){
params = params || [];if ($type(params) != 'array') params = [params];return $extend(transition, {
easeIn: function(pos){
return transition(pos, params);},
easeOut: function(pos){
return 1 - transition(1 - pos, params);},
easeInOut: function(pos){
return (pos <= 0.5) ? transition(2 * pos, params) / 2 : (2 - transition(2 * (1 - pos), params)) / 2;}
});};
Fx.Transitions = new Abstract({

linear: function(p){
return p;}
});
Fx.Transitions.extend = function(transitions){
for (var transition in transitions){
Fx.Transitions[transition] = new Fx.Transition(transitions[transition]);
Fx.Transitions.compat(transition);
}
};

Fx.Transitions.compat = function(transition){
['In', 'Out', 'InOut'].each(function(easeType){
Fx.Transitions[transition.toLowerCase() + easeType] = Fx.Transitions[transition]['ease' + easeType];});};

Fx.Transitions.extend({

//auto generated

//auto generated

//auto generated

//auto generated

Pow: function(p, x){
return Math.pow(p, x[0] || 6);},

Expo: function(p){
return Math.pow(2, 8 * (p - 1));},

Circ: function(p){
return 1 - Math.sin(Math.acos(p));},


Sine: function(p){
return 1 - Math.sin((1 - p) * Math.PI / 2);},

Back: function(p, x){
x = x[0] || 1.618;return Math.pow(p, 2) * ((x + 1) * p - x);},

Bounce: function(p){
var value;for (var a = 0, b = 1; 1; a += b, b /= 2){
if (p >= (7 - 4 * a) / 11){
value = - Math.pow((11 - 6 * a - 11 * p) / 4, 2) + b * b;break;}
}
return value;},

Elastic: function(p, x){
return Math.pow(2, 10 * --p) * Math.cos(20 * p * Math.PI * (x[0] || 1) / 3);}
});
['Quad', 'Cubic', 'Quart', 'Quint'].each(function(transition, i){
Fx.Transitions[transition] = new Fx.Transition(function(p){
return Math.pow(p, [i + 2]);});
Fx.Transitions.compat(transition);
});

var Drag = {};

Drag.Base = new Class({
options: {
handle: false,
unit: 'px',
onStart: Class.empty,
onBeforeStart: Class.empty,
onComplete: Class.empty,
onSnap: Class.empty,
onDrag: Class.empty,
limit: false,
modifiers: {x: 'left', y: 'top'},
grid: false,
snap: 6
},
initialize: function(el, options){
this.setOptions(options);this.element = $(el);this.handle = $(this.options.handle) || this.element;this.mouse = {'now': {}, 'pos': {}};this.value = {'start': {}, 'now': {}};this.bound = {
'start': this.start.bindWithEvent(this),
'check': this.check.bindWithEvent(this),
'drag': this.drag.bindWithEvent(this),
'stop': this.stop.bind(this)
};this.attach();if (this.options.initialize) this.options.initialize.call(this);},
attach: function(){
this.handle.addEvent('mousedown', this.bound.start);return this;},
detach: function(){
this.handle.removeEvent('mousedown', this.bound.start);return this;},
start: function(event){
this.fireEvent('onBeforeStart', this.element);this.mouse.start = event.page;var limit = this.options.limit;this.limit = {'x': [], 'y': []};for (var z in this.options.modifiers){
if (!this.options.modifiers[z]) continue;this.value.now[z] = this.element.getStyle(this.options.modifiers[z]).toInt();this.mouse.pos[z] = event.page[z] - this.value.now[z];if (limit && limit[z]){
for (var i = 0; i < 2; i++){
if ($chk(limit[z][i])) this.limit[z][i] = ($type(limit[z][i]) == 'function') ? limit[z][i]() : limit[z][i];}
}
}
if ($type(this.options.grid) == 'number') this.options.grid = {'x': this.options.grid, 'y': this.options.grid};document.addListener('mousemove', this.bound.check);document.addListener('mouseup', this.bound.stop);this.fireEvent('onStart', this.element);event.stop();},
check: function(event){
var distance = Math.round(Math.sqrt(Math.pow(event.page.x - this.mouse.start.x, 2) + Math.pow(event.page.y - this.mouse.start.y, 2)));if (distance > this.options.snap){
document.removeListener('mousemove', this.bound.check);document.addListener('mousemove', this.bound.drag);this.drag(event);this.fireEvent('onSnap', this.element);}
event.stop();},
drag: function(event){
this.out = false;this.mouse.now = event.page;for (var z in this.options.modifiers){
if (!this.options.modifiers[z]) continue;this.value.now[z] = this.mouse.now[z] - this.mouse.pos[z];if (this.limit[z]){
if ($chk(this.limit[z][1]) && (this.value.now[z] > this.limit[z][1])){
this.value.now[z] = this.limit[z][1];this.out = true;} else if ($chk(this.limit[z][0]) && (this.value.now[z] < this.limit[z][0])){
this.value.now[z] = this.limit[z][0];this.out = true;}
}
if (this.options.grid[z]) this.value.now[z] -= (this.value.now[z] % this.options.grid[z]);this.element.setStyle(this.options.modifiers[z], this.value.now[z] + this.options.unit);}
this.fireEvent('onDrag', this.element);event.stop();},
stop: function(){
document.removeListener('mousemove', this.bound.check);document.removeListener('mousemove', this.bound.drag);document.removeListener('mouseup', this.bound.stop);this.fireEvent('onComplete', this.element);}
});
Drag.Base.implement(new Events, new Options);

Element.extend({

makeResizable: function(options){
return new Drag.Base(this, $merge({modifiers: {x: 'width', y: 'height'}}, options));}
});


Drag.Move = Drag.Base.extend({
options: {
droppables: [],
container: false,
overflown: []
},
initialize: function(el, options){
this.setOptions(options);this.element = $(el);this.droppables = $$(this.options.droppables);this.container = $(this.options.container);this.position = {'element': this.element.getStyle('position'), 'container': false};if (this.container) this.position.container = this.container.getStyle('position');if (!['relative', 'absolute', 'fixed'].contains(this.position.element)) this.position.element = 'absolute';var top = this.element.getStyle('top').toInt();var left = this.element.getStyle('left').toInt();if (this.position.element == 'absolute' && !['relative', 'absolute', 'fixed'].contains(this.position.container)){
top = $chk(top) ? top : this.element.getTop(this.options.overflown);left = $chk(left) ? left : this.element.getLeft(this.options.overflown);} else {
top = $chk(top) ? top : 0;left = $chk(left) ? left : 0;}
this.element.setStyles({'top': top, 'left': left, 'position': this.position.element});this.parent(this.element);},
start: function(event){
this.overed = null;if (this.container){
var cont = this.container.getCoordinates();var el = this.element.getCoordinates();if (this.position.element == 'absolute' && !['relative', 'absolute', 'fixed'].contains(this.position.container)){
this.options.limit = {
'x': [cont.left, cont.right - el.width],
'y': [cont.top, cont.bottom - el.height]
};} else {
this.options.limit = {
'y': [0, cont.height - el.height],
'x': [0, cont.width - el.width]
};}
}
this.parent(event);},
drag: function(event){
this.parent(event);var overed = this.out ? false : this.droppables.filter(this.checkAgainst, this).getLast();if (this.overed != overed){
if (this.overed) this.overed.fireEvent('leave', [this.element, this]);this.overed = overed ? overed.fireEvent('over', [this.element, this]) : null;}
return this;},
checkAgainst: function(el){
el = el.getCoordinates(this.options.overflown);var now = this.mouse.now;return (now.x > el.left && now.x < el.right && now.y < el.bottom && now.y > el.top);},
stop: function(){
if (this.overed && !this.out) this.overed.fireEvent('drop', [this.element, this]);else this.element.fireEvent('emptydrop', this);this.parent();return this;}
});

Element.extend({

makeDraggable: function(options){
return new Drag.Move(this, options);}
});


var Scroller = new Class({
options: {
area: 20,
velocity: 1,
onChange: function(x, y){
this.element.scrollTo(x, y);}
},
initialize: function(element, options){
this.setOptions(options);this.element = $(element);this.mousemover = ([window, document].contains(element)) ? $(document.body) : this.element;},

start: function(){
this.coord = this.getCoords.bindWithEvent(this);this.mousemover.addListener('mousemove', this.coord);},

stop: function(){
this.mousemover.removeListener('mousemove', this.coord);this.timer = $clear(this.timer);},
getCoords: function(event){
this.page = (this.element == window) ? event.client : event.page;if (!this.timer) this.timer = this.scroll.periodical(50, this);},
scroll: function(){
var el = this.element.getSize();var pos = this.element.getPosition();
var change = {'x': 0, 'y': 0};for (var z in this.page){
if (this.page[z] < (this.options.area + pos[z]) && el.scroll[z] != 0)
change[z] = (this.page[z] - this.options.area - pos[z]) * this.options.velocity;else if (this.page[z] + this.options.area > (el.size[z] + pos[z]) && el.scroll[z] + el.size[z] != el.scrollSize[z])
change[z] = (this.page[z] - el.size[z] + this.options.area - pos[z]) * this.options.velocity;}
if (change.y || change.x) this.fireEvent('onChange', [el.scroll.x + change.x, el.scroll.y + change.y]);}
});
Scroller.implement(new Events, new Options);var sous_menu_flash;var timer_to_hide;sous_menu_flash = -1;
function show_sous_menu(identifiant)
{
var div_name;if (sous_menu_flash != identifiant) {
check_to_hide();div_name = "sous_menu_flash_" + identifiant;document.getElementById(div_name).style.display = "block";in_of_sous_menu();sous_menu_flash = identifiant;}
}

function hide_sous_menu(identifiant)
{
var div_name;div_name = "sous_menu_flash_" + identifiant;document.getElementById(div_name).style.display = "none";}

function check_to_hide()
{
if (sous_menu_flash != -1) {
hide_sous_menu(sous_menu_flash);sous_menu_flash = -1;}
}

function out_of_sous_menu()
{
timer_to_hide = setTimeout('check_to_hide()', 1000);}

function in_of_sous_menu()
{
clearTimeout(timer_to_hide);}
var parseSelector=(function(){var _1=/\s*,\s*/;var _2=/\s*([\s>+~(),]|^|$)\s*/g;var _3=/([\s>+~,]|[^(]\+|^)([#.:@])/g;var _4=/^[^\s>+~]/;var _5=/[\s#.:>+~()@]|[^\s#.:>+~()@]+/g;function parseSelector(_6,_7){_7=_7||document.documentElement;var _8=_6.split(_1),_9=[];for(var i=0;i<_8.length;i++){var _b=[_7],_c=toStream(_8[i]);for(var j=0;j<_c.length;){var _e=_c[j++],_f=_c[j++],_10="";if(_c[j]=="("){while(_c[j++]!=")"&&j<_c.length){_10+=_c[j]}_10=_10.slice(0,-1)}_b=select(_b,_e,_f,_10)}_9=_9.concat(_b)}return _9}function toStream(_11){var _12=_11.replace(_2,"$1").replace(_3,"$1*$2");if(_4.test(_12)){_12=" "+_12}return _12.match(_5)||[]}function select(_13,_14,_15,_16){return (_17[_14])?_17[_14](_13,_15,_16):[]}var _18={toArray:function(_19){var a=[];for(var i=0;i<_19.length;i++){a.push(_19[i])}return a}};var dom={isTag:function(_1d,tag){return (tag=="*")||(tag.toLowerCase()==_1d.nodeName.toLowerCase())},previousSiblingElement:function(_1f){do{_1f=_1f.previousSibling}while(_1f&&_1f.nodeType!=1);return _1f},nextSiblingElement:function(_20){do{_20=_20.nextSibling}while(_20&&_20.nodeType!=1);return _20},hasClass:function(_21,_22){return (_22.className||"").match("(^|\\s)"+_21+"(\\s|$)")},getByTag:function(tag,_24){return _24.getElementsByTagName(tag)}};var _17={"#":function(_25,_26){for(var i=0;i<_25.length;i++){if(_25[i].getAttribute("id")==_26){return [_25[i]]}}return []}," ":function(_28,_29){var _2a=[];for(var i=0;i<_28.length;i++){_2a=_2a.concat(_18.toArray(dom.getByTag(_29,_28[i])))}return _2a},">":function(_2c,_2d){var _2e=[];for(var i=0,_30;i<_2c.length;i++){_30=_2c[i];for(var j=0,_32;j<_30.childNodes.length;j++){_32=_30.childNodes[j];if(_32.nodeType==1&&dom.isTag(_32,_2d)){_2e.push(_32)}}}return _2e},".":function(_33,_34){var _35=[];for(var i=0,_37;i<_33.length;i++){_37=_33[i];if(dom.hasClass([_34],_37)){_35.push(_37)}}return _35},":":function(_38,_39,_3a){return (pseudoClasses[_39])?pseudoClasses[_39](_38,_3a):[]}};parseSelector.selectors=_17;parseSelector.pseudoClasses={};parseSelector.util=_18;parseSelector.dom=dom;return parseSelector})();var sIFR=new function(){var _3b=this;var _3c="sIFR-active";var _3d="sIFR-replaced";var _3e="sIFR-replacing";var _3f="sIFR-flash";var _40="sIFR-ignore";var _41="sIFR-alternate";var _42="sIFR-class";var _43="sIFR-layout";var _44=6;var _45=126;var _46=8;var _47="SIFR-PREFETCHED";var _48=[];var _49=5;this.isActive=false;this.isEnabled=true;this.hideElements=true;this.preserveSingleWhitespace=false;this.fixWrap=true;this.fixHover=true;this.registerEvents=true;this.setPrefetchCookie=true;this.cookiePath="/";this.domains=[];this.fromLocal=false;this.forceClear=false;this.forceWidth=false;this.fitExactly=false;this.forceTextTransform=true;this.useDomContentLoaded=true;this.hasFlashClassSet=false;this.delayCss=false;this.callbacks=[];var _4a=0;var _4b=false,_4c=false;var dom=new function(){var _4e="http://www.w3.org/1999/xhtml";this.getBody=function(){var _4f=document.getElementsByTagName("body");if(_4f.length==1){return _4f[0]}return null};this.addClass=function(_50,_51){if(_51){_51.className=((_51.className||"")==""?"":_51.className+" ")+_50}};this.removeClass=function(_52,_53){if(_53){_53.className=_53.className.replace(new RegExp("(^|\\s)"+_52+"(\\s|$)"),"").replace(/^\s+|(\s)\s+/g,"$1")}};this.hasClass=function(_54,_55){return new RegExp("(^|\\s)"+_54+"(\\s|$)").test(_55.className)};this.hasOneOfClassses=function(_56,_57){for(var i=0;i<_56.length;i++){if(this.hasClass(_56[i],_57)){return true}}return false};this.create=function(_59){if(document.createElementNS){return document.createElementNS(_4e,_59)}return document.createElement(_59)};this.setInnerHtml=function(_5a,_5b){if(ua.innerHtmlSupport){_5a.innerHTML=_5b}else{if(ua.xhtmlSupport){_5b=["<root xmlns=\"",_4e,"\">",_5b,"</root>"].join("");var xml=(new DOMParser()).parseFromString(_5b,"text/xml");xml=document.importNode(xml.documentElement,true);while(_5a.firstChild){_5a.removeChild(_5a.firstChild)}while(xml.firstChild){_5a.appendChild(xml.firstChild)}}}};this.nodeFromHtml=function(_5d){var _5e=this.create("div");_5e.innerHTML=_5d;return _5e.firstChild};this.getComputedStyle=function(_5f,_60){var _61;if(document.defaultView&&document.defaultView.getComputedStyle){_61=document.defaultView.getComputedStyle(_5f,null)[_60]}else{if(_5f.currentStyle){_61=_5f.currentStyle[_60]}}return _61||""};this.getStyleAsInt=function(_62,_63,_64){var _65=this.getComputedStyle(_62,_63);if(_64&&!/px$/.test(_65)){return 0}_65=parseInt(_65);return isNaN(_65)?0:_65};this.getZoom=function(){return _66.zoom.getLatest()}};this.dom=dom;var ua=new function(){var ua=navigator.userAgent.toLowerCase();var _69=(navigator.product||"").toLowerCase();this.macintosh=ua.indexOf("mac")>-1;this.windows=ua.indexOf("windows")>-1;this.quicktime=false;this.opera=ua.indexOf("opera")>-1;this.konqueror=_69.indexOf("konqueror")>-1;this.ie=false;this.ieSupported=this.ie&&!/ppc|smartphone|iemobile|msie\s5\.5/.test(ua);this.ieWin=this.ie&&this.windows;this.windows=this.windows&&(!this.ie||this.ieWin);this.ieMac=this.ie&&this.macintosh;this.macintosh=this.macintosh&&(!this.ie||this.ieMac);this.safari=ua.indexOf("safari")>-1;this.webkit=ua.indexOf("applewebkit")>-1&&!this.konqueror;this.khtml=this.webkit||this.konqueror;this.gecko=!this.webkit&&_69=="gecko";this.operaVersion=this.opera&&/.*opera(\s|\/)(\d+\.\d+)/.exec(ua)?parseInt(RegExp.$2):0;this.webkitVersion=this.webkit&&/.*applewebkit\/(\d+).*/.exec(ua)?parseInt(RegExp.$1):0;this.geckoBuildDate=this.gecko&&/.*gecko\/(\d{8}).*/.exec(ua)?parseInt(RegExp.$1):0;this.konquerorVersion=this.konqueror&&/.*konqueror\/(\d\.\d).*/.exec(ua)?parseInt(RegExp.$1):0;this.flashVersion=0;if(this.ieWin){var axo;var _6b=false;try{axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7")}catch(e){try{axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");this.flashVersion=6;axo.AllowScriptAccess="always"}catch(e){_6b=this.flashVersion==6}if(!_6b){try{axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash")}catch(e){}}}if(!_6b&&axo){this.flashVersion=parseFloat(/([\d,?]+)/.exec(axo.GetVariable("$version"))[1].replace(/,/g,"."))}}else{if(navigator.plugins&&navigator.plugins["Shockwave Flash"]){var _6c=navigator.plugins["Shockwave Flash"];this.flashVersion=parseFloat(/(\d+\.?\d*)/.exec(_6c.description)[1]);var i=0;while(this.flashVersion>=_46&&i<navigator.mimeTypes.length){var _6e=navigator.mimeTypes[i];if(_6e.type=="application/x-shockwave-flash"&&_6e.enabledPlugin.description.toLowerCase().indexOf("quicktime")>-1){this.flashVersion=0;this.quicktime=true}i++}}}this.flash=this.flashVersion>=_46;this.transparencySupport=this.macintosh||this.windows;this.computedStyleSupport=this.ie||document.defaultView&&document.defaultView.getComputedStyle&&(!this.gecko||this.geckoBuildDate>=20030624);this.css=true;if(this.computedStyleSupport){try{var _6f=document.getElementsByTagName("head")[0];_6f.style.backgroundColor="#FF0000";var _70=dom.getComputedStyle(_6f,"backgroundColor");this.css=!_70||/\#F{2}0{4}|rgb\(255,\s?0,\s?0\)/i.test(_70);_6f.style.backgroundColor="";_6f=null}catch(e){}}this.xhtmlSupport=!!window.DOMParser&&!!document.importNode;try{var n=dom.create("span");if(!this.ieMac){n.innerHTML="x"}this.innerHtmlSupport=n.innerHTML=="x"}catch(e){this.innerHtmlSupport=false}this.zoomSupport=!!(this.opera&&document.documentElement);this.geckoXml=this.gecko&&(document.contentType||"").indexOf("xml")>-1;this.requiresPrefetch=this.ieWin||this.khtml;this.verifiedKonqueror=false;this.supported=this.flash&&this.css&&(!this.ie||this.ieSupported)&&(!this.opera||this.operaVersion>=8)&&(!this.webkit||this.webkitVersion>=412)&&(!this.konqueror||this.konquerorVersion>3.5)&&this.computedStyleSupport&&(this.innerHtmlSupport||!this.khtml&&this.xhtmlSupport)&&(!this.gecko||this.geckoBuildDate>20040804)};this.ua=ua;var _72=new function(){var _73={leading:true,"margin-left":true,"margin-right":true,"text-indent":true};var _74=" ";function capitalize($){return $.toUpperCase()}this.normalize=function(str){if(_3b.preserveSingleWhitespace){return str.replace(/\s/g,_74)}return str.replace(/(\s)\s+/g,"$1").replace(/\xA0/,_74)};this.textTransform=function(_77,str){switch(_77){case "uppercase":str=str.toUpperCase();break;case "lowercase":str=str.toLowerCase();break;case "capitalize":var _79=str;str=str.replace(/^\w|\s\w/g,capitalize);if(str.indexOf("function capitalize")!=-1){var _7a=_79.replace(/(^|\s)(\w)/g,"$1$1$2$2").split(/^\w|\s\w/g);str="";for(var i=0;i<_7a.length;i++){str+=_7a[i].charAt(0).toUpperCase()+_7a[i].substring(1)}}break}return str};this.toHexString=function(str){if(typeof (str)!="string"||!str.charAt(0)=="#"||str.length!=4&&str.length!=7){return str}str=str.replace(/#/,"");if(str.length==3){str=str.replace(/(.)(.)(.)/,"$1$1$2$2$3$3")}return "0x"+str};this.toJson=function(obj){var _7e="";switch(typeof (obj)){case "string":_7e="\""+obj+"\"";break;case "number":case "boolean":_7e=obj.toString();break;case "object":_7e=[];for(var _7f in obj){if(obj[_7f]==Object.prototype[_7f]){continue}_7e.push("\""+_7f+"\":"+_72.toJson(obj[_7f]))}_7e="{"+_7e.join(",")+"}";break}return _7e};this.convertCssArg=function(arg){if(!arg){return {}}if(typeof (arg)=="object"){if(arg.constructor==Array){arg=arg.join("")}else{return arg}}var obj={};var _82=arg.split("}");for(var i=0;i<_82.length;i++){var $=_82[i].match(/([^\s{]+)\s*\{(.+)\s*;?\s*/);if(!$||$.length!=3){continue}if(!obj[$[1]]){obj[$[1]]={}}var _85=$[2].split(";");for(var j=0;j<_85.length;j++){var $2=_85[j].match(/\s*([^:\s]+)\s*\:\s*([^\s;]+)/);if(!$2||$2.length!=3){continue}obj[$[1]][$2[1]]=$2[2]}}return obj};this.extractFromCss=function(css,_89,_8a,_8b){var _8c=null;if(css&&css[_89]&&css[_89][_8a]){_8c=css[_89][_8a];if(_8b){delete css[_89][_8a]}}return _8c};this.cssToString=function(arg){var css=[];for(var _8f in arg){var _90=arg[_8f];if(_90==Object.prototype[_8f]){continue}css.push(_8f,"{");for(var _91 in _90){if(_90[_91]==Object.prototype[_91]){continue}var _92=_90[_91];if(_73[_91]){_92=parseInt(_92,10)}css.push(_91,":",_92,";")}css.push("}")}return css.join("")};this.bind=function(_93,_94){return function(){_93[_94].apply(_93,arguments)}};this.escape=function(str){return escape(str).replace(/\+/,"%2B")}};this.util=_72;var _66={};_66.fragmentIdentifier=new function(){this.fix=true;var _96;this.cache=function(){_96=document.title};function doFix(){document.title=_96}this.restore=function(){if(this.fix){setTimeout(doFix,0)}}};_66.synchronizer=new function(){this.isBlocked=false;this.block=function(){this.isBlocked=true};this.unblock=function(){this.isBlocked=false;_97.replaceAll()}};_66.zoom=new function(){var _98=100;this.getLatest=function(){return _98};if(ua.zoomSupport&&ua.opera){var _99=document.createElement("div");_99.style.position="fixed";_99.style.left="-65536px";_99.style.top="0";_99.style.height="100%";_99.style.width="1px";_99.style.zIndex="-32";document.documentElement.appendChild(_99);function updateZoom(){if(!_99){return}var _9a=window.innerHeight/_99.offsetHeight;var _9b=Math.round(_9a*100)%10;if(_9b>5){_9a=Math.round(_9a*100)+10-_9b}else{_9a=Math.round(_9a*100)-_9b}_98=isNaN(_9a)?100:_9a;_66.synchronizer.unblock();document.documentElement.removeChild(_99);_99=null}_66.synchronizer.block();setTimeout(updateZoom,54)}};this.hacks=_66;this.errors={};var _9c={kwargs:[],replaceAll:function(_9d){for(var i=0;i<this.kwargs.length;i++){_3b.replace(this.kwargs[i])}if(!_9d){this.kwargs=[]}}};var _97={kwargs:[],replaceAll:_9c.replaceAll};function isValidDomain(){if(_3b.domains.length==0){return true}var _9f="";try{_9f=document.domain}catch(e){}for(var i=0;i<_3b.domains.length;i++){var _a1=_3b.domains[i];if(_a1=="*"||_a1==_9f){return true}var _a2=_a1.lastIndexOf("*");if(_a2>-1){_a1=_a1.substr(_a2+1);var _a3=_9f.lastIndexOf(_a1);if(_a3>-1&&(_a3+_a1.length)==_9f.length){return true}}}return false}function isFile(){if(!_3b.fromLocal&&document.location.protocol=="file:"){if(_3b.debug){throw new Error(_3b.errors.isFile)}return true}return false}this.activate=function(){if(!ua.supported||!this.isEnabled||this.isActive||!isValidDomain()||isFile()){return}if(arguments.length>0){this.prefetch.apply(this,arguments)}this.isActive=true;if(this.hideElements){this.setFlashClass()}if(ua.ieWin&&_66.fragmentIdentifier.fix&&window.location.hash!=""){_66.fragmentIdentifier.cache()}else{_66.fragmentIdentifier.fix=false}if(!this.registerEvents){return}function handler(evt,_a5){_3b.initialize(_a5);if(evt&&evt.type=="load"){if(document.removeEventListener){document.removeEventListener("DOMContentLoaded",handler,false)}if(window.removeEventListener){window.removeEventListener("load",handler,false)}}}if(window.addEventListener){if(_3b.useDomContentLoaded&&ua.gecko){document.addEventListener("DOMContentLoaded",handler,false)}window.addEventListener("load",handler,false)}else{if(ua.ieWin){if(_3b.useDomContentLoaded){document.write("<scr"+"ipt id=__sifr_ie_onload defer src=//:></script>");document.getElementById("__sifr_ie_onload").onreadystatechange=function(){if(this.readyState=="complete"){handler(null,true);this.removeNode()}}}window.attachEvent("onload",handler)}}};this.setFlashClass=function(){if(this.hasFlashClassSet){return}dom.addClass(_3c,dom.getBody()||document.documentElement);this.hasFlashClassSet=true};this.removeFlashClass=function(){if(!this.hasFlashClassSet){return}dom.removeClass(_3c,dom.getBody());dom.removeClass(_3c,document.documentElement);this.hasFlashClassSet=false};this.initialize=function(_a6){if(!this.isActive||!this.isEnabled){return}if(_4c){if(!_a6){_9c.replaceAll(false)}return}_4c=true;_9c.replaceAll(_a6);clearPrefetch()};function getSource(src){if(typeof (src)!="string"){if(src.src){src=src.src}if(typeof (src)!="string"){var _a8=[];for(var _a9 in src){if(src[_a9]!=Object.prototype[_a9]){_a8.push(_a9)}}_a8.sort().reverse();var _aa="";var i=-1;while(!_aa&&++i<_a8.length){if(parseFloat(_a8[i])<=ua.flashVersion){_aa=src[_a8[i]]}}src=_aa}}if(!src&&_3b.debug){throw new Error(_3b.errors.getSource)}if(ua.ie&&src.charAt(0)=="/"){src=window.location.toString().replace(/([^:]+)(:\/?\/?)([^\/]+).*/,"$1$2$3")+src}return src}this.prefetch=function(){if((!ua.requiresPrefetch&&!this.isActive)||!ua.supported||!this.isEnabled||!isValidDomain()){return}if(this.setPrefetchCookie&&new RegExp(";?"+_47+"=true;?").test(document.cookie)){return}try{_4b=true;if(ua.ieWin){prefetchIexplore(arguments)}else{prefetchLight(arguments)}if(this.setPrefetchCookie){document.cookie=_47+"=true;path="+this.cookiePath}}catch(e){if(_3b.debug){throw e}}};function prefetchIexplore(_ac){for(var i=0;i<_ac.length;i++){document.write("<script defer type=\"sifr/prefetch\" src=\""+getSource(_ac[i])+"\"></script>")}}function prefetchLight(_ae){for(var i=0;i<_ae.length;i++){new Image().src=getSource(_ae[i])}}function clearPrefetch(){if(!ua.ieWin||!_4b){return}try{var _b0=document.getElementsByTagName("script");for(var i=_b0.length-1;i>=0;i--){var _b2=_b0[i];if(_b2.type=="sifr/prefetch"){_b2.parentNode.removeChild(_b2)}}}catch(e){}}function getRatio(_b3,_b4){for(var i=0;i<_b4.length;i+=2){if(_b3<=_b4[i]){return _b4[i+1]}}return _b4[_b4.length-1]||1}function getFilters(obj){var _b7=[];for(var _b8 in obj){if(obj[_b8]==Object.prototype[_b8]){continue}var _b9=obj[_b8];_b8=[_b8.replace(/filter/i,"")+"Filter"];for(var _ba in _b9){if(_b9[_ba]==Object.prototype[_ba]){continue}_b8.push(_ba+":"+_72.escape(_72.toJson(_72.toHexString(_b9[_ba]))))}_b7.push(_b8.join(","))}return _72.escape(_b7.join(";"))}function calculate(_bb){var _bc,_bd;if(!ua.ie){_bc=dom.getStyleAsInt(_bb,"lineHeight");_bd=Math.floor(dom.getStyleAsInt(_bb,"height")/_bc)}else{if(ua.ie){var _be=_bb.innerHTML;_bb.style.visibility="visible";_bb.style.overflow="visible";_bb.style.position="static";_bb.style.zoom="normal";_bb.style.writingMode="lr-tb";_bb.style.width=_bb.style.height="auto";_bb.style.maxWidth=_bb.style.maxHeight=_bb.style.styleFloat="none";var _bf=_bb;var _c0=_bb.currentStyle.hasLayout;if(_c0){dom.setInnerHtml(_bb,"<div class=\""+_43+"\">X<br />X<br />X</div>");_bf=_bb.firstChild}else{dom.setInnerHtml(_bb,"X<br />X<br />X")}var _c1=_bf.getClientRects();_bc=_c1[1].bottom-_c1[1].top;_bc=Math.ceil(_bc*0.8);if(_c0){dom.setInnerHtml(_bb,"<div class=\""+_43+"\">"+_be+"</div>");_bf=_bb.firstChild}else{dom.setInnerHtml(_bb,_be)}_c1=_bf.getClientRects();_bd=_c1.length;if(_c0){dom.setInnerHtml(_bb,_be)}_bb.style.visibility=_bb.style.width=_bb.style.height=_bb.style.maxWidth=_bb.style.maxHeight=_bb.style.overflow=_bb.style.styleFloat=_bb.style.position=_bb.style.zoom=_bb.style.writingMode=""}}return {lineHeight:_bc,lines:_bd}}this.replace=function(_c2,_c3){if(!ua.supported){return}if(_c3){for(var _c4 in _c2){if(typeof (_c3[_c4])=="undefined"){_c3[_c4]=_c2[_c4]}}_c2=_c3}if(!_4c){return _9c.kwargs.push(_c2)}if(_66.synchronizer.isBlocked){return _97.kwargs.push(_c2)}var _c5=_c2.elements;if(!_c5&&parseSelector){_c5=parseSelector(_c2.selector)}if(_c5.length==0){return}this.setFlashClass();var src=getSource(_c2.src);var css=_72.convertCssArg(_c2.css);var _c8=getFilters(_c2.filters);var _c9=(_c2.forceClear==null)?_3b.forceClear:_c2.forceClear;var _ca=(_c2.fitExactly==null)?_3b.fitExactly:_c2.fitExactly;var _cb=_ca||(_c2.forceWidth==null?_3b.forceWidth:_c2.forceWidth);var _cc=parseInt(_72.extractFromCss(css,".sIFR-root","leading"))||0;var _cd=_72.extractFromCss(css,".sIFR-root","font-size",true)||0;var _ce=_72.extractFromCss(css,".sIFR-root","background-color",true)||"#FFFFFF";var _cf=_72.extractFromCss(css,".sIFR-root","kerning",true)||"";var _d0=_c2.gridFitType||_72.extractFromCss(css,".sIFR-root","text-align")=="right"?"subpixel":"pixel";var _d1=_3b.forceTextTransform?_72.extractFromCss(css,".sIFR-root","text-transform",true)||"none":"none";var _d2=_72.extractFromCss(css,".sIFR-root","opacity",true)||"100";var _d3=_c2.pixelFont||false;var _d4=_c2.ratios||_48;var _d5=parseInt(_c2.tuneHeight)||0;if(parseInt(_cd).toString()!=_cd&&_cd.indexOf("px")==-1){_cd=0}else{_cd=parseInt(_cd)}if(parseFloat(_d2)<1){_d2=100*parseFloat(_d2)}var _d6="";if(_ca){_72.extractFromCss(css,".sIFR-root","text-align",true)}if(!_c2.modifyCss){_d6=_72.cssToString(css)}var _d7=!ua.opera&&_3b.delayCss;var _d8=_c2.wmode||"";if(!_d8){if(_c2.transparent){_d8="transparent"}else{if(_c2.opaque){_d8="opaque"}}}if(_d8=="transparent"){if(!ua.transparencySupport){_d8="opaque"}else{_ce="transparent"}}for(var i=0;i<_c5.length;i++){var _da=_c5[i];if(!ua.verifiedKonqueror){if(dom.getComputedStyle(_da,"lineHeight").match(/e\+08px/)){ua.supported=_3b.isEnabled=false;this.removeFlashClass();return}ua.verifiedKonqueror=true}if(dom.hasOneOfClassses([_3d,_3e,_40,_41],_da)){continue}var _db=_da.offsetHeight;var _dc=_da.offsetWidth;var _dd=dom.getComputedStyle(_da,"display");if(!_db||!_dc||_dd==null||_dd=="none"){continue}if(_c9&&ua.gecko){_da.style.clear="both"}var _de=null;if(_3b.fixWrap&&ua.ie&&_dd=="block"){_de=_da.innerHTML;dom.setInnerHtml(_da,"X")}_dc=dom.getStyleAsInt(_da,"width",ua.ie);if(_dc==0){var _df=dom.getStyleAsInt(_da,"paddingRight",true);var _e0=dom.getStyleAsInt(_da,"paddingLeft",true);var _e1=dom.getStyleAsInt(_da,"borderRightWidth",true);var _e2=dom.getStyleAsInt(_da,"borderLeftWidth",true);_dc=_da.offsetWidth-_e0-_df-_e2-_e1}if(_de&&_3b.fixWrap&&ua.ie){dom.setInnerHtml(_da,_de)}var _e3,_e4;if(!_cd){var _e5=calculate(_da);_e3=Math.min(_45,Math.max(_44,_e5.lineHeight));if(_d3){_e3=Math.max(8,8*Math.round(_e3/8))}_e4=_e5.lines;if(isNaN(_e4)||!isFinite(_e4)||_e4==0){_e4=1}if(_e4>1&&_cc){_db+=Math.round((_e4-1)*_cc)}}else{_e3=_cd;_e4=1}_db=Math.round(_e4*_e3);if(_c9&&ua.gecko){_da.style.clear=""}var _e6=dom.create("span");_e6.className=_41;var _e7=_da.cloneNode(true);for(var j=0,l=_e7.childNodes.length;j<l;j++){_e6.appendChild(_e7.childNodes[j].cloneNode(true))}if(_c2.modifyContent){_c2.modifyContent(_e7,_c2.selector)}if(_c2.modifyCss){_d6=_c2.modifyCss(css,_e7,_c2.selector)}var _ea=handleContent(_e7,_d1);if(_c2.modifyContentString){_ea.text=_c2.modifyContentString(_ea.text,_c2.selector)}if(_ea==""){continue}var _eb=["content="+_72.escape(_ea.text),"width="+_dc,"height="+_db,"fitexactly="+(_ca?"true":""),"tunewidth="+(_c2.tuneWidth||""),"tuneheight="+_d5,"offsetleft="+(_c2.offsetLeft||""),"offsettop="+(_c2.offsetTop||""),"thickness="+(_c2.thickness||""),"sharpness="+(_c2.sharpness||""),"kerning="+_cf,"gridfittype="+_d0,"zoomsupport="+ua.zoomSupport,"flashfilters="+_c8,"opacity="+_d2,"blendmode="+(_c2.blendMode||""),"size="+_e3,"zoom="+dom.getZoom(),"css="+_72.escape(_d6),"selectable="+(_c2.selectable==null?"true":_c2.selectable),"lines="+_e4,"fixhover="+(_3b.fixHover?"true":""),"antialiastype="+(_c2.antiAliasType||""),"preventwrap="+(_c2.preventWrap?"true":"false"),"link="+_72.escape(_ea.primaryLink[0]||""),"target="+_72.escape(_ea.primaryLink[1]||"")];var _ec=encodeVars(_eb);var _ed="sIFR_callback_"+_4a++;var _ee=new CallbackInfo(_ed,_eb,_c2.onReplacement);window[_ed+"_DoFSCommand"]=(function(_ef){return function(_f0,arg){_ef.handle(_f0,arg)}})(_ee);_db=Math.round(_e4*getRatio(_e3,_d4)*_e3)+_49+_d5;var _f2=_cb?_dc:"100%";var _f3;if(ua.ie){_f3=["<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" id=\"",_ed,"\" sifr=\"true\" width=\"",_f2,"\" height=\"",_db,"\" class=\"",_3f,"\">","<param name=\"movie\" value=\"",src,"\"></param>","<param name=\"flashvars\" value=\"",_ec,"\"></param>","<param name=\"allowScriptAccess\" value=\"always\"></param>","<param name=\"quality\" value=\"best\"></param>","<param name=\"wmode\" value=\"",_d8,"\"></param>","<param name=\"bgcolor\" value=\"",_ce,"\"></param>","<param name=\"name\" value=\"",_ed,"\"></param>","</object>","<scr","ipt event=FSCommand(info,args) for=",_ed,">",_ed,"_DoFSCommand(info, args);","</","script>"].join("")}else{_f3=["<embed type=\"application/x-shockwave-flash\"",(_d7?" class=\""+_3f+"\"":"")," src=\"",src,"\" quality=\"best\" flashvars=\"",_ec,"\" width=\"",_f2,"\" height=\"",_db,"\" wmode=\"",_d8,"\" bgcolor=\"",_ce,"\" name=\"",_ed,"\" id=\"",_ed,"\" allowScriptAccess=\"always\" sifr=\"true\"></embed>"].join("")}dom.setInnerHtml(_da,_f3);_ee.flashNode=_da.firstChild;_ee.html=_f3;_3b.callbacks.push(_ee);if(_c2.selector){if(!_3b.callbacks[_c2.selector]){_3b.callbacks[_c2.selector]=[_ee]}else{_3b.callbacks[_c2.selector].push(_ee)}}_da.appendChild(_e6);dom.addClass(_d7?_3e:_3d,_da)}_66.fragmentIdentifier.restore()};this.getCallbackByFlashElement=function(_f4){for(var i=0;i<_3b.callbacks.length;i++){if(_3b.callbacks[i].id==_f4.getAttribute("id")){return _3b.callbacks[i]}}};this.redraw=function(){for(var i=0;i<_3b.callbacks.length;i++){_3b.callbacks[i].resetMovie()}};function encodeVars(_f7){return _f7.join("&amp;").replace(/%/g,"%25")}function handleContent(_f8,_f9){var _fa=[],_fb=[],_fc=[];var _fd=_f8.childNodes;var i=0;while(i<_fd.length){var _ff=_fd[i];if(_ff.nodeType==3){var text=_72.normalize(_ff.nodeValue);text=_72.textTransform(_f9,text);_fb.push(text)}if(_ff.nodeType==1){var _101=[];var _102=_ff.nodeName.toLowerCase();var _103=_ff.className||"";if(/\s+/.test(_103)){if(_103.indexOf(_42)>-1){_103=_103.match("(\\s|^)"+_42+"-([^\\s$]*)(\\s|$)")[2]}else{_103=_103.match(/^([^\s]+)/)[1]}}if(_103!=""){_101.push("class=\""+_103+"\"")}if(_102=="a"){var href=_ff.getAttribute("href")||"";var _105=_ff.getAttribute("target")||"";_101.push("href=\""+href+"\"","target=\""+_105+"\"");if(_fc.length==0){_fc=[href,_105]}}_fb.push("<"+_102+(_101.length>0?" ":"")+_101.join(" ")+">");if(_ff.hasChildNodes()){_fa.push(i);i=0;_fd=_ff.childNodes;continue}else{if(!/^(br|img)$/i.test(_ff.nodeName)){_fb.push("</",_ff.nodeName.toLowerCase(),">")}}}if(_fa.length>0&&!_ff.nextSibling){do{i=_fa.pop();_fd=_ff.parentNode.parentNode.childNodes;_ff=_fd[i];if(_ff){_fb.push("</",_ff.nodeName.toLowerCase(),">")}}while(i==_fd.length-1&&_fa.length>0)}i++}return {text:_fb.join("").replace(/\n|\r/g,""),primaryLink:_fc}}function CallbackInfo(id,vars,_108,_109){this.id=id;this.vars=vars;this._replacementHandler=_108;this._firedReplacementEvent=!(this._replacementHandler!=null);this._fixHover=_109;this._setClasses=!_3b.delayCss;this.html=""}CallbackInfo.prototype.getFlashElement=function(){return document.getElementById(this.id)};CallbackInfo.prototype.available=function(){var _10a=this.getFlashElement();return _10a&&_10a.parentNode};CallbackInfo.prototype.handle=function(info,arg){if(!this.available()){return}if(/(FSCommand\:)?resize/.test(info)){var _10d=this.getFlashElement();var $=arg.split(/\:|,/);_10d.setAttribute($[0],$[1]);if($.length>2){_10d.setAttribute($[2],$[3])}if(!this._setClasses){if(!ua.ie&&!ua.opera){dom.addClass(_3f,_10d)}dom.removeClass(_3e,_10d.parentNode);dom.addClass(_3d,_10d.parentNode);this._setClasses=true}if(ua.khtml){var _10f=_10d.offsetHeight}if(!this._firedReplacementEvent){this._replacementHandler(this);this._firedReplacementEvent=true}}else{if(/(FSCommand\:)?resetmovie/.test(info)){this.resetMovie()}else{if(this.debugHandler&&/(FSCommand\:)?debug/.test(info)){this.debugHandler(info,arg)}}}};CallbackInfo.prototype.call=function(type,_111){if(!this.available()){return false}var _112=this.getFlashElement();try{_112.SetVariable("callbackType",type);_112.SetVariable("callbackValue",_111);_112.SetVariable("callbackTrigger",true)}catch(e){return false}return true};CallbackInfo.prototype.replaceText=function(_113){_113=_72.escape(_113);this.vars[0]="content="+_113;this.html=this.html.replace(/(flashvars(=|\"\svalue=)\")[^\"]+/,"$1"+encodeVars(this.vars));return this.call("replacetext",_113)};CallbackInfo.prototype.resetMovie=function(){if(!this.available()){return}var _114=this.getFlashElement();var node=_114.parentNode;node.replaceChild(dom.nodeFromHtml(this.html),_114)}};
sIFR.debug = new function() {
// Initialize sIFR
sIFR.debugMode = true;sIFR.errors = {
isFile: 'sIFR: Did not activate because the page is being loaded from the filesystem.',
getSource: 'sIFR: Could not determine appropriate source'
}; // Added by the export script.
function log(msg) {
if(!sIFR.ua.safari && window.console && console.log) console.log(msg);else alert(msg);}
function merge(kwargs, mergeKwargs) {
if(mergeKwargs) {
for(var property in kwargs) {
if(typeof(mergeKwargs[property]) == 'undefined') mergeKwargs[property] = kwargs[property];}
kwargs = mergeKwargs;}
return kwargs;}
this.ua = function() {
var info = [];
for(var prop in sIFR.ua) {
if(sIFR.ua[prop] == Object.prototype[prop]) continue;
info.push(prop, ': ', sIFR.ua[prop], '\n');}
log(info.join(''));};
this.domains = function() {
var valid = sIFR.domains.length == 0;
// The validation code is copied from the private sIFR code. Please keep 
// up to date!
var domain = '';try { // When trying to access document.domain on a Google-translated page with Firebug, I got an exception.
domain = document.domain;} catch(e) {};
for(var i = 0; i < sIFR.domains.length; i++) {
if(sIFR.domains[i] == '*' || sIFR.domains[i] == domain) {
valid = true;break;}
}
log(['The domain "', domain, '" is ', valid ? 'valid' : 'invalid', '.\nList of checked domains: ', sIFR.domains].join(''));};
this.ratios = function(kwargs, mergeKwargs) {
kwargs = merge(kwargs, mergeKwargs);
var running = false;kwargs.onReplacement = function(cb) {
if(running) return; // Prevent duplicate results
running = true;
cb.debugHandler = function(info, args) {
if(/(FSCommand\:)?debug\:ratios/.test(info)) prompt('The ratios for ' + kwargs.selector + ' are:', args);}
cb.call('ratios', '');};
sIFR.replace(kwargs);};
function verifyResource(uri, fail, ok) {
if(sIFR.ua.ie && uri.charAt(0) == '/') {
uri = window.location.toString().replace(/([^:]+)(:\/?\/?)([^\/]+).*/, '$1$2$3') + uri;}
var xhr = new XMLHttpRequest();xhr.open('GET', uri, true);xhr.onreadystatechange = function() {
if(xhr.readyState == 4) {
if(xhr.status != 200) log(fail);else log(ok);}
};xhr.send('');}
this.test = function(kwargs, mergeKwargs) {
kwargs = merge(kwargs, mergeKwargs);
var src = kwargs.src;var checked = false;if(typeof(src) != 'string') {
if(src.src) src = src.src;
if(typeof(src) != 'string') {
var versions = [];for(var version in src) if(src[version] != Object.prototype[version]) versions.push(version);versions.sort().reverse();
var result = '';var i = -1;while(!result && ++i < versions.length) {
if(parseFloat(versions[i]) <= ua.flashVersion) result = src[versions[i]];var msg = '<' + src[versions[i]] + '>, flash ' + parseFloat(versions[i]);verifyResource(src[versions[i]], 'FAILED: ' + msg, 'OK: ' + msg);}
src = result;checked = true;}
}
if(!src) log('Could not determine appropriate source.');else if(!checked) verifyResource(src, 'FAILED: <' + src + '>', 'OK: <' + src + '>');};
this.forceTest = function() {
var replace = sIFR.replace;sIFR.replace = function(kwargs, mergeKwargs) {
sIFR.debug.test(kwargs, mergeKwargs);replace.call(sIFR, kwargs, mergeKwargs);};}
};
