/*  
	 ___                         
	/\_ \    __                  
	\//\ \  /\_\  __  __    __   
	  \ \ \ \/\ \/\ \/\ \ /'__`\ 
	   \_\ \_\ \ \ \ \_/ |\  __/ 
	   /\____\\ \_\ \___/\ \____\
	   \/____/ \/_/\/__/  \/____/ v1.5
                             
	A lightweight Javascript interface with various extensions
	By Max Felker | max@bigroomstudios.com
	By Brian Leighton | brian@bigroomstudios.com
	
	+1 Google for the Closure Compiler | http://closure-compiler.appspot.com/home
	
	ASCII Art Generated @ http://patorjk.com/software/taag/
	
*/
// Input 0
var live=Class.create({initialize:function(c){this.config=c;c.page?this.page=c.page:this.page="";c.browser?this.browser=c.browser:this.browser={type:"unknown",v:"0"};this.head=$$("head")[0];this.rollovers=$H();document.observe("dom:loaded",function(){this.body=$(document.body);if(live.browser.touch_screen){body_elements=this.body.descendants();body_elements.each(function(e){e.hasAttribute("onmouseover")&&e.writeAttribute("onmouseover");e.hasAttribute("onmouseout")&&
e.writeAttribute("onmouseout")})}}.bind(this))},create_js:function(c){if(c&&c.endsWith(".js"))this.head.appendChild(new Element("script",{type:"text/javascript",src:c}));else return false},create_css:function(c){if(c&&c.endsWith(".css"))this.head.appendChild(new Element("link",{rel:"stylesheet",type:"text/css",href:c}));else return false},get_hash:function(c){var e=SWFAddress.getValue(),l=$H();e.scan(/\w+[=]\w+/,function(y){var w=y[0].gsub("="," ");w.scan(/\w+\s/,function(J){var K=J[0].gsub(" ","");
J=w.gsub(J[0],"");l.set(K,J)})});return c?l.get(c):l},set_hash:function(c,e){var l=this.get_hash(),y=l.get(c),w=SWFAddress.getValue();w.scan(/\w+/,function(J){if(c==J[0]){J=w.sub(c+"="+y,c+"="+e);SWFAddress.setValue(J)}});if(!l.get(c)){l=c+"="+e+"/";l=w+l;SWFAddress.setValue(l)}return this.get_hash()},unset_hash:function(c){var e=this.get_hash().get(c),l=SWFAddress.getValue();l.scan(/\w+/,function(y){if(c==y[0]){y=l.sub("/"+c+"="+e,"");SWFAddress.setValue(y)}});return this.get_hash()},clear_hash:function(){SWFAddress.setValue("")},
get_params:function(c){return c?c.toQueryParams():window.location.href.toQueryParams()},get_focused_element:function(){this.last_focused_element=this.focused_element?this.focused_element:"";if($$("*:focus")[0])this.focused_element=$$("*:focus")[0];else if(document.hasFocus())this.focused_element=document},get_selected_text:function(){this.selected_text="";if(this.focused_element==document)this.selected_text=this.focused_element.all?document.selection.createRange().text:this.focused_element.getSelection();
else{if(this.focused_element.tagName.toLowerCase()=="button")this.focused_element=this.last_focused_element;this.selected_text=Browser.ie?document.selection.createRange().text:this.focused_element.value.substring(this.focused_element.selectionStart,this.focused_element.selectionEnd)}}});
// Input 1
 window.Modernizr=function(i,e,I){function C(a,b){for(var c in a)if(m[a[c]]!==I&&(!b||b(a[c],D)))return true}function r(a,b){var c=a.charAt(0).toUpperCase()+a.substr(1);return!!C([a,"Webkit"+c,"Moz"+c,"O"+c,"ms"+c,"Khtml"+c],b)}function P(){j[E]=function(a){for(var b=0,c=a.length;b<c;b++)J[a[b]]=!!(a[b]in n);return J}("autocomplete autofocus list placeholder max min multiple pattern required step".split(" "));j[Q]=function(a){for(var b=0,c,h=a.length;b<h;b++){n.setAttribute("type",a[b]);if(c=n.type!==
 "text"){n.value=K;/tel|search/.test(n.type)||(c=/url|email/.test(n.type)?n.checkValidity&&n.checkValidity()===false:n.value!=K)}L[a[b]]=!!c}return L}("search tel url email datetime date month week time datetime-local number range color".split(" "))}var j={},s=e.documentElement,D=e.createElement("modernizr"),m=D.style,n=e.createElement("input"),E="input",Q=E+"types",K=":)",M=Object.prototype.toString,y=" -o- -moz- -ms- -webkit- -khtml- ".split(" "),d={},L={},J={},N=[],u=function(){var a={select:"input",
 change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"},b={};return function(c,h){var t=arguments.length==1;if(t&&b[c])return b[c];h=h||document.createElement(a[c]||"div");c="on"+c;var g=c in h;if(!g&&h.setAttribute){h.setAttribute(c,"return;");g=typeof h[c]=="function"}h=null;return t?(b[c]=g):g}}(),F={}.hasOwnProperty,O;O=typeof F!=="undefined"&&typeof F.call!=="undefined"?function(a,b){return F.call(a,b)}:function(a,b){return b in a&&typeof a.constructor.prototype[b]==="undefined"};
 d.canvas=function(){return!!e.createElement("canvas").getContext};d.canvastext=function(){return!!(d.canvas()&&typeof e.createElement("canvas").getContext("2d").fillText=="function")};d.geolocation=function(){return!!navigator.geolocation};d.crosswindowmessaging=function(){return!!i.postMessage};d.websqldatabase=function(){var a=!!i.openDatabase;if(a)try{a=!!openDatabase("testdb","1.0","html5 test db",2E5)}catch(b){a=false}return a};d.indexedDB=function(){return!!i.indexedDB};d.hashchange=function(){return u("hashchange",
 i)&&(document.documentMode===I||document.documentMode>7)};d.historymanagement=function(){return!!(i.history&&history.pushState)};d.draganddrop=function(){return u("drag")&&u("dragstart")&&u("dragenter")&&u("dragover")&&u("dragleave")&&u("dragend")&&u("drop")};d.websockets=function(){return"WebSocket"in i};d.rgba=function(){m.cssText="background-color:rgba(150,255,150,.5)";return(""+m.backgroundColor).indexOf("rgba")!==-1};d.hsla=function(){m.cssText="background-color:hsla(120,40%,100%,.5)";return(""+
 m.backgroundColor).indexOf("rgba")!==-1};d.multiplebgs=function(){m.cssText="background:url(//:),url(//:),red url(//:)";return/(url\s*\(.*?){3}/.test(m.background)};d.backgroundsize=function(){return r("backgroundSize")};d.borderimage=function(){return r("borderImage")};d.borderradius=function(){return r("borderRadius","",function(a){return(""+a).indexOf("orderRadius")!==-1})};d.boxshadow=function(){return r("boxShadow")};d.opacity=function(){var a=y.join("opacity:.5;")+"";m.cssText=a;return(""+m.opacity).indexOf("0.5")!==
 -1};d.cssanimations=function(){return r("animationName")};d.csscolumns=function(){return r("columnCount")};d.cssgradients=function(){var a=("background-image:"+y.join("gradient(linear,left top,right bottom,from(#9f9),to(white));background-image:")+y.join("linear-gradient(left top,#9f9, white);background-image:")).slice(0,-17);m.cssText=a;return(""+m.backgroundImage).indexOf("gradient")!==-1};d.cssreflections=function(){return r("boxReflect")};d.csstransforms=function(){return!!C(["transformProperty",
 "WebkitTransform","MozTransform","OTransform","msTransform"])};d.csstransforms3d=function(){var a=!!C(["perspectiveProperty","WebkitPerspective","MozPerspective","OPerspective","msPerspective"]);if(a){var b=document.createElement("style"),c=e.createElement("div");b.textContent="@media ("+y.join("transform-3d),(")+"modernizr){#modernizr{height:3px}}";e.getElementsByTagName("head")[0].appendChild(b);c.id="modernizr";s.appendChild(c);a=c.offsetHeight===3;b.parentNode.removeChild(b);c.parentNode.removeChild(c)}return a};
 d.csstransitions=function(){return r("transitionProperty")};d.fontface=function(){var a;if(/*@cc_on@if(@_jscript_version>=5)!@end@*/0)a=true;else{var b=e.createElement("style"),c=e.createElement("span"),h,t=false,g=e.body,o,w;b.textContent="@font-face{font-family:testfont;src:url('data:font/ttf;base64,AAEAAAAMAIAAAwBAT1MvMliohmwAAADMAAAAVmNtYXCp5qrBAAABJAAAANhjdnQgACICiAAAAfwAAAAEZ2FzcP//AAMAAAIAAAAACGdseWYv5OZoAAACCAAAANxoZWFk69bnvwAAAuQAAAA2aGhlYQUJAt8AAAMcAAAAJGhtdHgGDgC4AAADQAAAABRsb2NhAIQAwgAAA1QAAAAMbWF4cABVANgAAANgAAAAIG5hbWUgXduAAAADgAAABPVwb3N03NkzmgAACHgAAAA4AAECBAEsAAUAAAKZAswAAACPApkCzAAAAesAMwEJAAACAAMDAAAAAAAAgAACbwAAAAoAAAAAAAAAAFBmRWQAAAAgqS8DM/8zAFwDMwDNAAAABQAAAAAAAAAAAAMAAAADAAAAHAABAAAAAABGAAMAAQAAAK4ABAAqAAAABgAEAAEAAgAuqQD//wAAAC6pAP///9ZXAwAAAAAAAAACAAAABgBoAAAAAAAvAAEAAAAAAAAAAAAAAAAAAAABAAIAAAAAAAAAAgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEACoAAAAGAAQAAQACAC6pAP//AAAALqkA////1lcDAAAAAAAAAAIAAAAiAogAAAAB//8AAgACACIAAAEyAqoAAwAHAC6xAQAvPLIHBADtMrEGBdw8sgMCAO0yALEDAC88sgUEAO0ysgcGAfw8sgECAO0yMxEhESczESMiARDuzMwCqv1WIgJmAAACAFUAAAIRAc0ADwAfAAATFRQWOwEyNj0BNCYrASIGARQGKwEiJj0BNDY7ATIWFX8aIvAiGhoi8CIaAZIoN/43KCg3/jcoAWD0JB4eJPQkHh7++EY2NkbVRjY2RgAAAAABAEH/+QCdAEEACQAANjQ2MzIWFAYjIkEeEA8fHw8QDxwWFhwWAAAAAQAAAAIAAIuYbWpfDzz1AAsEAAAAAADFn9IuAAAAAMWf0i797/8zA4gDMwAAAAgAAgAAAAAAAAABAAADM/8zAFwDx/3v/98DiAABAAAAAAAAAAAAAAAAAAAABQF2ACIAAAAAAVUAAAJmAFUA3QBBAAAAKgAqACoAWgBuAAEAAAAFAFAABwBUAAQAAgAAAAEAAQAAAEAALgADAAMAAAAQAMYAAQAAAAAAAACLAAAAAQAAAAAAAQAhAIsAAQAAAAAAAgAFAKwAAQAAAAAAAwBDALEAAQAAAAAABAAnAPQAAQAAAAAABQAKARsAAQAAAAAABgAmASUAAQAAAAAADgAaAUsAAwABBAkAAAEWAWUAAwABBAkAAQBCAnsAAwABBAkAAgAKAr0AAwABBAkAAwCGAscAAwABBAkABABOA00AAwABBAkABQAUA5sAAwABBAkABgBMA68AAwABBAkADgA0A/tDb3B5cmlnaHQgMjAwOSBieSBEYW5pZWwgSm9obnNvbi4gIFJlbGVhc2VkIHVuZGVyIHRoZSB0ZXJtcyBvZiB0aGUgT3BlbiBGb250IExpY2Vuc2UuIEtheWFoIExpIGdseXBocyBhcmUgcmVsZWFzZWQgdW5kZXIgdGhlIEdQTCB2ZXJzaW9uIDMuYmFlYzJhOTJiZmZlNTAzMiAtIHN1YnNldCBvZiBKdXJhTGlnaHRiYWVjMmE5MmJmZmU1MDMyIC0gc3Vic2V0IG9mIEZvbnRGb3JnZSAyLjAgOiBKdXJhIExpZ2h0IDogMjMtMS0yMDA5YmFlYzJhOTJiZmZlNTAzMiAtIHN1YnNldCBvZiBKdXJhIExpZ2h0VmVyc2lvbiAyIGJhZWMyYTkyYmZmZTUwMzIgLSBzdWJzZXQgb2YgSnVyYUxpZ2h0aHR0cDovL3NjcmlwdHMuc2lsLm9yZy9PRkwAQwBvAHAAeQByAGkAZwBoAHQAIAAyADAAMAA5ACAAYgB5ACAARABhAG4AaQBlAGwAIABKAG8AaABuAHMAbwBuAC4AIAAgAFIAZQBsAGUAYQBzAGUAZAAgAHUAbgBkAGUAcgAgAHQAaABlACAAdABlAHIAbQBzACAAbwBmACAAdABoAGUAIABPAHAAZQBuACAARgBvAG4AdAAgAEwAaQBjAGUAbgBzAGUALgAgAEsAYQB5AGEAaAAgAEwAaQAgAGcAbAB5AHAAaABzACAAYQByAGUAIAByAGUAbABlAGEAcwBlAGQAIAB1AG4AZABlAHIAIAB0AGgAZQAgAEcAUABMACAAdgBlAHIAcwBpAG8AbgAgADMALgBiAGEAZQBjADIAYQA5ADIAYgBmAGYAZQA1ADAAMwAyACAALQAgAHMAdQBiAHMAZQB0ACAAbwBmACAASgB1AHIAYQBMAGkAZwBoAHQAYgBhAGUAYwAyAGEAOQAyAGIAZgBmAGUANQAwADMAMgAgAC0AIABzAHUAYgBzAGUAdAAgAG8AZgAgAEYAbwBuAHQARgBvAHIAZwBlACAAMgAuADAAIAA6ACAASgB1AHIAYQAgAEwAaQBnAGgAdAAgADoAIAAyADMALQAxAC0AMgAwADAAOQBiAGEAZQBjADIAYQA5ADIAYgBmAGYAZQA1ADAAMwAyACAALQAgAHMAdQBiAHMAZQB0ACAAbwBmACAASgB1AHIAYQAgAEwAaQBnAGgAdABWAGUAcgBzAGkAbwBuACAAMgAgAGIAYQBlAGMAMgBhADkAMgBiAGYAZgBlADUAMAAzADIAIAAtACAAcwB1AGIAcwBlAHQAIABvAGYAIABKAHUAcgBhAEwAaQBnAGgAdABoAHQAdABwADoALwAvAHMAYwByAGkAcAB0AHMALgBzAGkAbAAuAG8AcgBnAC8ATwBGAEwAAAAAAgAAAAAAAP+BADMAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAQACAQIAEQt6ZXJva2F5YWhsaQ==')}";
 e.getElementsByTagName("head")[0].appendChild(b);c.setAttribute("style","font:99px _,arial,helvetica;position:absolute;visibility:hidden");if(!g){g=s.appendChild(e.createElement("fontface"));t=true}c.innerHTML="........";c.id="fonttest";g.appendChild(c);h=c.offsetWidth*c.offsetHeight;c.style.font="99px testfont,_,arial,helvetica";a=h!==c.offsetWidth*c.offsetHeight;var v=function(){if(g.parentNode){a=j.fontface=h!==c.offsetWidth*c.offsetHeight;s.className=s.className.replace(/(no-)?fontface\b/,"")+
 (a?" ":" no-")+"fontface"}};setTimeout(v,75);setTimeout(v,150);addEventListener("load",function(){v();(w=true)&&o&&o(a);setTimeout(function(){t||(g=c);g.parentNode.removeChild(g);b.parentNode.removeChild(b)},50)},false)}j._fontfaceready=function(p){w||a?p(a):(o=p)};return a||h!==c.offsetWidth};d.video=function(){var a=e.createElement("video"),b=!!a.canPlayType;if(b){b=new Boolean(b);b.ogg=a.canPlayType('video/ogg; codecs="theora"');b.h264=a.canPlayType('video/mp4; codecs="avc1.42E01E"');b.webm=a.canPlayType('video/webm; codecs="vp8, vorbis"')}return b};
 d.audio=function(){var a=e.createElement("audio"),b=!!a.canPlayType;if(b){b=new Boolean(b);b.ogg=a.canPlayType('audio/ogg; codecs="vorbis"');b.mp3=a.canPlayType("audio/mpeg;");b.wav=a.canPlayType('audio/wav; codecs="1"');b.m4a=a.canPlayType("audio/x-m4a;")||a.canPlayType("audio/aac;")}return b};d.localStorage=function(){return"localStorage"in i&&i.localStorage!==null};d.sessionStorage=function(){try{return"sessionStorage"in i&&i.sessionStorage!==null}catch(a){return false}};d.webworkers=function(){return!!i.Worker};
 d.applicationCache=function(){var a=i.applicationCache;return!!(a&&typeof a.status!="undefined"&&typeof a.update=="function"&&typeof a.swapCache=="function")};d.svg=function(){return!!e.createElementNS&&!!e.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect};d.smil=function(){return!!e.createElementNS&&/SVG/.test(M.call(e.createElementNS("http://www.w3.org/2000/svg","animate")))};d.svgclippaths=function(){return!!e.createElementNS&&/SVG/.test(M.call(e.createElementNS("http://www.w3.org/2000/svg",
 "clipPath")))};for(var z in d)if(O(d,z))N.push(((j[z.toLowerCase()]=d[z]())?"":"no-")+z.toLowerCase());j[E]||P();j.addTest=function(a,b){a=a.toLowerCase();if(!j[a]){b=!!b();s.className+=" "+(b?"":"no-")+a;j[a]=b;return j}};m.cssText="";D=n=null;(function(){var a=e.createElement("div");a.innerHTML="<elem></elem>";return a.childNodes.length!==1})()&&function(a,b){function c(f,k){if(o[f])o[f].styleSheet.cssText+=k;else{var l=t[G],q=b[A]("style");q.media=f;l.insertBefore(q,l[G]);o[f]=q;c(f,k)}}function h(f,
 k){for(var l=new RegExp("\\b("+w+")\\b(?!.*[;}])","gi"),q=function(B){return".iepp_"+B},x=-1;++x<f.length;){k=f[x].media||k;h(f[x].imports,k);c(k,f[x].cssText.replace(l,q))}}for(var t=b.documentElement,g=b.createDocumentFragment(),o={},w="abbr|article|aside|audio|canvas|command|datalist|details|figure|figcaption|footer|header|hgroup|keygen|mark|meter|nav|output|progress|section|source|summary|time|video",v=w.split("|"),p=[],H=-1,G="firstChild",A="createElement";++H<v.length;){b[A](v[H]);g[A](v[H])}g=
 g.appendChild(b[A]("div"));a.attachEvent("onbeforeprint",function(){for(var f,k=b.getElementsByTagName("*"),l,q,x=new RegExp("^"+w+"$","i"),B=-1;++B<k.length;)if((f=k[B])&&(q=f.nodeName.match(x))){l=new RegExp("^\\s*<"+q+"(.*)\\/"+q+">\\s*$","i");g.innerHTML=f.outerHTML.replace(/\r|\n/g," ").replace(l,f.currentStyle.display=="block"?"<div$1/div>":"<span$1/span>");l=g.childNodes[0];l.className+=" iepp_"+q;l=p[p.length]=[f,l];f.parentNode.replaceChild(l[1],l[0])}h(b.styleSheets,"all")});a.attachEvent("onafterprint",
 function(){for(var f=-1,k;++f<p.length;)p[f][1].parentNode.replaceChild(p[f][0],p[f][1]);for(k in o)t[G].removeChild(o[k]);o={};p=[]})}(this,e);j._enableHTML5=true;j._version="1.5";s.className=s.className.replace(/\bno-js\b/,"")+" js";s.className+=" "+N.join(" ");return j}(this,this.document);
// Input 2
var Canopy=Class.create({initialize:function(){},create:function(){if($("canopy")){alert("Canopy already exsists!");return false}else{this.container=Builder.node("div",{id:"canopy",style:"display:none;"});this.overlay=Builder.node("div",{id:"canopy-overlay"});this.btn_close=Builder.node("p",{id:"canopy-btn-close"});this.content_container=Builder.node("div",{id:"canopy-content-container"});this.container.appendChild(this.overlay);this.container.appendChild(this.btn_close);this.container.appendChild(this.content_container);
this.body_first_child=live.body.firstDescendant();live.body.insertBefore(this.container,this.body_first_child)}},on:function(c){$("canopy")||this.create();this.content=$(c.content);this.content_parent=this.content.up();this.viewport=document.viewport.getDimensions();c.position&&this.content.setStyle({position:"absolute",top:Math.round(this.viewport.height/50)+"%",left:Math.round(this.viewport.width/66)+"%",right:Math.round(this.viewport.width/66)+"%"});$(this.content_container.id).appendChild(this.content);
new Effect.Appear(this.container,{duration:0.25});this.overlay.setOpacity(0.7);this.content.show();this.content.setOpacity(1);this.btn_close.observe("click",this.off.bind(this));if(c.content_draggable){this.draggable=new Draggable(this.content);this.content.addClassName("dragdrop")}},off:function(){this.content.setStyle("");if(this.draggable){this.content.removeClassName("dragdrop");this.draggable.destroy()}this.content.hide();this.content_parent.appendChild(this.content);new Effect.Fade(this.container,
{duration:0.25});live.browser.v==6&&live.browser.type=="msie"&&live.body.removeClassName("canopy-ie6");this.btn_close.stopObserving("click",this.off.bind(this))},remove:function(){if($("canopy")){this.off();live.body.removeChild(this.container)}else{alert("Canopy doesn't exsist!");return false}}});document.observe("dom:loaded",function(){live.canopy=new Canopy});
/* Input 3
var GoogleMaps=Class.create({initialize:function(){this.m=$A();this.selected=0;this.map_types=$H({roadmap:google.maps.MapTypeId.ROADMAP,satellite:google.maps.MapTypeId.SATELLITE,terrain:google.maps.MapTypeId.TERRAIN,hybrid:google.maps.MapTypeId.HYBRID})},select_map:function(c){this.selected=this.m[c]},get_lat_lng:function(c){return new google.maps.LatLng(c.lat,c.lng)},center:function(c){lat_lng=this.get_lat_lng(c);this.selected.map.setCenter(lat_lng)},create:function(c){maps_length=this.m.length;
new_map_index=maps_length++;lat_lng=this.get_lat_lng(c);options=Object.extend({center:lat_lng,zoom:c.zoom,mapTypeId:this.map_types.get(c.type)},c.options);new_map={container:$(c.container),lat_lng:lat_lng,options:options,markers:$A()};if(c.multi_markers)new_map.multi_markers=true;map=new google.maps.Map(new_map.container,new_map.options);new_map.map=map;this.m[new_map_index]=new_map;this.select_map(new_map_index)},add_info:function(c){return new google.maps.InfoWindow(c)},add_marker:function(c){markers_length=
this.selected.markers.length;new_marker_index=markers_length++;marker_position=this.get_lat_lng(c);options=Object.extend({map:this.selected.map,position:marker_position},c.options);var e={lat:c.lat,lng:c.lng,position:marker_position};if(c.info)e.info=this.add_info(c.info);e.marker=new google.maps.Marker(options);this.selected.markers[new_marker_index]=e;if(e.info){e.info.open=e.info.open.curry(this.selected.map,e.marker);google.maps.event.addListener(e.marker,"click",function(){this.selected.multi_markers||
this.selected.markers.each(function(l){l.info.close()});e.info.open()}.bind(this));this.selected.markers[new_marker_index]=e}return this.selected.markers[new_marker_index]}}); */
// Input 4
var Dropdown=Class.create({initialize:function(c){this.container=$(c.container);this.sub_container=$$("#"+c.container+" .dropdown-sub-container")[0];this.parent_item=$$("#"+c.container+" .dropdown-parent-item")[0];this.parent_menu=c.parent_menu;this.menu_clicked=this.menu_open=false;if(c.children){this.children=$H(c.children);child_hash=$H();this.children.each(function(e){key=e[0];sub_menu=new Dropdown({container:e[1],parent_menu:this});child_hash.set(key,sub_menu)}.bind(this));this.children=child_hash.toObject();
this.children_hash=child_hash}this.container.observe("mouseenter",this.show_menu.bind(this));this.container.observe("mouseleave",this.hide_menu.bind(this))},show_menu:function(){clearTimeout(this.menu_timeout);if(!this.menu_open)this.menu_timeout=setTimeout(function(){this.menu_open=true;Effect.SlideDown(this.sub_container,{duration:0.2})}.bind(this),200)},hide_menu:function(){clearTimeout(this.menu_timeout);if(this.menu_open)this.menu_timeout=setTimeout(function(){this.menu_open=false;Effect.SlideUp(this.sub_container,
{duration:0.2})}.bind(this),200)}});
// Input 5
var Rollover=Class.create({initialize:function(c){this.container=$(c.container);this.img_off=Builder.node("img",{id:c.container+"-off",src:c.img_off,border:0,style:"display:none"});this.img_on=Builder.node("img",{id:c.container+"-on",src:c.img_on,border:0,style:"display:none"});this.container.appendChild(this.img_off);this.container.appendChild(this.img_on);this.img_off=$(c.container+"-off");this.img_on=$(c.container+"-on");this.img_off.show();this.container.observe("mouseenter",this.img_hover.bind(this));
this.container.observe("mouseleave",this.img_idle.bind(this));live.rollovers.set(this.container.id,this)},img_hover:function(){this.img_off.hide();this.img_on.show()},img_idle:function(){this.img_on.hide();this.img_off.show()},stop_rollover:function(){Event.stopObserving(this.container)}});
// Input 6
var Popup=Class.create({initialize:function(c){this.popup_id="popup-"+c.id;this.height=c.height;this.width=c.width;this.src=c.src;c.confirm_close?this.confirm_close=c.confirm_close:this.confirm_close=false;c.drag?this.drag=true:this.drag=false;if($(this.popup_id))return false;this.container=Builder.node("div",{id:this.popup_id,className:"popup_container"},[Builder.node("div",{id:this.popup_id+"-controls",className:"popup_controls"},[Builder.node("a",{id:this.popup_id+"-minimize",className:"popup_minimize"},
" Minimize "),Builder.node("a",{id:this.popup_id+"-close",className:"popup_close"},"Close")])]);this.dimensions=document.viewport.getDimensions();this.container.setStyle({position:"absolute",width:this.width+"px",height:this.height+"px"});this.iframe=Builder.node("iframe",{id:this.popup_id+"-iframe",name:this.popup_id+"-iframe",frameborder:0,scrolling:"no",src:this.src,width:"100%",height:"94%"});this.container.appendChild(this.iframe);document.body.appendChild(this.container);this.container=$(this.popup_id);
this.btn={x:$(this.popup_id+"-close"),minimize:$(this.popup_id+"-minimize")};this.btn.minimize.observe("click",this.minimize.bind(this));this.btn.x.observe("click",this.close_pop_up.bind(this));if(this.drag){draggable=Builder.node("a",{id:this.popup_id+"-drag",className:"popup_drag",style:"cursor:move;"},"Drag to Move");$(this.popup_id+"-controls").appendChild(draggable);new Draggable(this.container,{handle:this.container.id+"-drag"});this.btn.drag=$(this.popup_id+"-drag")}},show_pop_up:function(){new Effect.Appear(this.container,
{duration:0.3})},minimize:function(){this.iframe.hide();this.container.setStyle({height:"auto"});this.btn.minimize.update("Restore");this.btn.minimize.stopObserving();this.btn.minimize.observe("click",this.restore.bind(this))},restore:function(){this.iframe.show();this.container.setStyle({width:this.width+"px",height:this.height+"px"});this.btn.minimize.update("Minimize");this.btn.minimize.stopObserving();this.btn.minimize.observe("click",this.minimize.bind(this))},close_pop_up:function(){if(this.confirm_close)if(confirm("Are you sure you would like to close this window?"))this.container.remove();
else return false;else this.container.remove()},remove_pop_up:function(){this.container.remove()}});
/* Input 7
var Tabs=Class.create({initialize:function(c){this.container=$(c.container);if(c.deep_linking){this.deep_linking=true;this.hash_safe_id=this.container.id.gsub("-","_")}this.tab_elements=$$("#"+c.container+" .tab");this.tabs_count=this.tab_elements.length;this.tabs_current_index=0;this.tabs=$A();this.counter=0;this.tab_elements.each(function(e){var l=e.id.gsub("-tab","");e.panel=$(l+"-panel");e.panel.hide();e.index=this.counter;this.tabs[e.index]=e;this.counter++}.bind(this));this.tabs_current_index=
this.counter=0;this.current_tab=this.tabs[this.tabs_current_index];if(this.deep_linking)if(current_hash=_.get_hash("tab_"+this.hash_safe_id))this.tabs_current_index=current_hash;this.show_tab();this.tabs.each(function(e){e.observe("click",function(){this.tabs_current_index=e.index;this.show_tab()}.bind(this))}.bind(this));if(this.deep_linking){SWFAddress.setHistory(0);c.history&&SWFAddress.setHistory(1);Event.observe(SWFAddress,"change",function(){var e=_.get_hash("tab_"+this.hash_safe_id);if(e!=
this.tabs_current_index){e||(e=0);this.tabs_current_index=e;this.show_tab()}}.bind(this))}},show_tab:function(){this.current_tab.panel.hide();this.current_tab.removeClassName("current");this.current_tab=this.tabs[this.tabs_current_index];this.current_tab.panel.show();this.current_tab.addClassName("current");this.deep_linking&&_.set_hash("tab_"+this.hash_safe_id,this.tabs_current_index)},next_tab:function(){this.tabs_current_index=(this.tabs_current_index+1+this.tabs_count)%this.tabs_count;this.show_tab()},
previous_tab:function(){this.tabs_current_index=(this.tabs_current_index-1+this.tabs_count)%this.tabs_count;this.show_tab()}});*/
// Input 8
var Slideshow=Class.create({initialize:function(c){if(c){c.duration?this.slide_duration=c.duration:this.slide_duration=5;c.autostart?this.autostart=c.autostart:this.autostart=false;c.loop?this.loop=c.loop:this.loop=false;c.reverse?this.reverse=c.reverse:this.reverse=false}this.container=$(c.container);this.slides=$$("#"+this.container.id+" .slide");this.slides_count=this.slides.length;this.reverse?this.slideshow_counter=this.slides_count-1:this.slideshow_counter=0;this.completed=this.playing=false;
this.slides.invoke("hide");this.current_slide=this.slides[this.slideshow_counter];this.current_slide.show();if(this.autostart){this.start();this.show_slide()}},show_slide:function(){if(!this.loop&&this.slideshow_counter>=this.slides_count){this.slideshow_counter=this.slides_count-1;this.stop();return false}else if(this.slideshow_counter>=this.slides_count)this.slideshow_counter=0;if(!this.loop&&this.slideshow_counter<0){this.slideshow_counter=0;this.stop();return false}else if(this.slideshow_counter<
0)this.slideshow_counter=this.slides_count-1;this.current_slide=this.slides[this.slideshow_counter];this.other_slides=this.current_slide.siblings();this.other_slides.each(function(c){c.hasClassName("slide")&&Effect.Fade(c,{duration:0.5})});this.current_slide=this.slides[this.slideshow_counter];Effect.Appear(this.current_slide,{duration:0.5})},start:function(){if(this.playing)return false;else{if(this.reverse){this.playing=true;this.executer=new PeriodicalExecuter(function(){this.previous_slide()}.bind(this),
this.slide_duration)}else{this.playing=true;this.executer=new PeriodicalExecuter(function(){this.next_slide()}.bind(this),this.slide_duration)}this.completed=false;this.slides.invoke("hide")}},stop:function(){this.executer&&this.executer.stop();this.completed=true;this.playing=false},restart:function(){if(this.playing)return false;else{this.reset();this.start()}},reset:function(){this.stop();this.slideshow_counter=this.reverse?this.slides_count-1:0;this.show_slide()},next_slide:function(){this.slideshow_counter++;
this.show_slide()},previous_slide:function(){this.slideshow_counter--;this.show_slide()}});
// Input 9
var TabbedSlideshow=Class.create(Tabs,{initialize:function($super,e){$super(e);e.duration?this.tab_slide_duration=e.duration:this.tab_slide_duration=5;this.tabs.each(function(l){l.slideshow=new Slideshow({container:l.panel,duration:this.tab_slide_duration,autostart:false,loop:false});l.observe("click",function(){this.stop_status_check();this.tabs.each(function(y){y.slideshow.reset()}.bind(this));this.current_tab.slideshow.start();this.current_tab.slideshow.show_slide();this.start_status_check()}.bind(this))}.bind(this));
this.current_tab.slideshow.start();this.current_tab.slideshow.show_slide();this.start_status_check()},slides_reset:function(){this.tabs.each(function(c){c.slideshow.completed=false;c.slideshow.restart();c.slideshow.stop()}.bind(this));this.current_tab.slideshow.completed=false;this.current_tab.slideshow.start();this.start_status_check()},next_tab:function($super){this.current_tab.slideshow.reset();$super();this.current_tab.slideshow.completed=false;this.current_tab.slideshow.start();this.current_tab.slideshow.show_slide();
this.start_status_check()},previous_tab:function($super){this.current_tab.slideshow.reset();$super();this.current_tab.slideshow.completed=false;this.current_tab.slideshow.start();this.current_tab.slideshow.show_slide();this.start_status_check()},start_status_check:function(){this.executer=new PeriodicalExecuter(function(){if(this.current_tab.slideshow.completed){this.has_looped=false;if(this.tab_current==this.tabs_count-1)this.has_looped=true;this.current_tab.slideshow.completed=false;this.next_tab();
this.stop_status_check()}}.bind(this),this.tab_slide_duration)},stop_status_check:function(){if(this.executer){this.executer.stop();this.executer=""}else return false}});
// Input 10
var TabbedViewer=Class.create(Tabs,{initialize:function($super,e){$super(e);e.direction?this.direction=e.direction:this.direction="x";this.distance=e.distance;e.tabs_visible?this.tabs_visible=e.tabs_visible:this.tabs_visible=3;if(e.controls){this.controls={next:$(e.controls.next),previous:$(e.controls.previous)};this.controls.next.observe("click",this.next_tab.bind(this));this.controls.previous.observe("click",this.previous_tab.bind(this))}this.tabs_wrapper=$(e.tabs_wrapper);this.tabs_container=$(e.tabs_container);
container_dimensions=this.direction=="y"?"height:"+this.tabs_visible*this.distance+"px;":"width:"+this.tabs_visible*this.distance+"px;";this.tabs_container.setStyle("overflow:hidden;"+container_dimensions);this.tabs.each(function(l,y){new_position=this.distance*y;l.setStyle({position:"absolute"});this.direction=="y"?l.setStyle({top:new_position+"px"}):l.setStyle({left:new_position+"px"});l.setOpacity(0.7);l.observe("click",function(){this.tabs.each(function(w){w.setOpacity(0.7)});this.current_tab.panel.hide();
Effect.Appear(this.current_tab.panel,{duration:0.7});this.current_tab.setOpacity(1)}.bind(this))}.bind(this));this.current_tab.setOpacity(1);this.tabs_current_index=0;new Effect.Move(this.tabs_wrapper,{y:0,x:0,mode:"absolute",duration:0.1})},next_tab:function($super){if(this.tabs_current_index<this.tabs_count-this.tabs_visible){new Effect.Opacity(this.current_tab,{duration:0.5,from:1,to:0.7});$super();new Effect.Opacity(this.current_tab,{duration:0.5,from:0.7,to:1});this.current_tab.panel.hide();
Effect.Appear(this.current_tab.panel,{duration:0.5});new_position=this.tabs_current_index*-this.distance;if(this.direction=="y")new Effect.Move(this.tabs_wrapper,{y:new_position,x:0,mode:"absolute",duration:0.5});else new Effect.Move(this.tabs_wrapper,{y:0,x:new_position,mode:"absolute",duration:0.5})}else{new Effect.Opacity(this.current_tab,{duration:0.5,from:1,to:0.7});$super();new Effect.Opacity(this.current_tab,{duration:0.5,from:0.7,to:1});this.current_tab.panel.hide();Effect.Appear(this.current_tab.panel,
{duration:0.5});this.tabs_current_index==0&&new Effect.Move(this.tabs_wrapper,{y:0,x:0,mode:"absolute",duration:0.5})}},previous_tab:function($super){if(this.tabs_current_index>=this.tabs_count-(this.tabs_count-1)){new Effect.Opacity(this.current_tab,{duration:0.5,from:1,to:0.7});$super();new Effect.Opacity(this.current_tab,{duration:0.5,from:0.7,to:1});this.current_tab.panel.hide();Effect.Appear(this.current_tab.panel,{duration:0.5});if(this.tabs_current_index<this.tabs_count-(this.tabs_visible-
1)){new_position=this.tabs_current_index*-this.distance;if(this.direction=="y")new Effect.Move(this.tabs_wrapper,{y:new_position,x:0,mode:"absolute",duration:0.5});else new Effect.Move(this.tabs_wrapper,{y:0,x:new_position,mode:"absolute",duration:0.5})}}else{new Effect.Opacity(this.current_tab,{duration:0.5,from:1,to:0.7});$super();new Effect.Opacity(this.current_tab,{duration:0.5,from:0.7,to:1});this.current_tab.panel.hide();Effect.Appear(this.current_tab.panel,{duration:0.5});if(this.tabs_current_index==
this.tabs_count-1){new_position=(this.tabs_count-this.tabs_visible)*-this.distance;if(this.direction=="y")new Effect.Move(this.tabs_wrapper,{y:new_position,x:0,mode:"absolute",duration:0.5});else new Effect.Move(this.tabs_wrapper,{y:0,x:new_position,mode:"absolute",duration:0.5})}}}});
// Input 11
Object.extend(Math,{format_number:function(c,e){number_return="";number_array=$A();number_array=String(c).split(".");e=Object.extend({decimals:2,currency:"",format_whole:true,delim_whole:",",delim_decimal:"."},e);prefix=e.currency?e.currency:"";whole_number=typeof number_array[0]!="undefined"?number_array[0]:"0";if(e.format_whole)for(var l=/(\d+)(\d{3})/;l.test(whole_number);)whole_number=whole_number.replace(l,"$1"+e.delim_whole+"$2");number_return+=prefix+whole_number;if(e.decimals){if(typeof number_array[1]!=
"undefined")remainder=number_array[1];else{remainder="";for(l=0;l<e.decimals;l++)remainder+="0"}number_return+=e.delim_decimal;var y=$A();for(l=0;l<e.decimals;l++)y[l]=remainder.charAt(l)!=""?remainder.charAt(l):"0";number_return+=y.join("")}return number_return}});
// Input 12
var swfobject=function(){function c(){if(!U){try{var b=p.getElementsByTagName("body")[0].appendChild(p.createElement("span"));b.parentNode.removeChild(b)}catch(d){return}U=true;b=n.length;for(var f=0;f<b;f++)n[f]()}}function e(b){if(U)b();else n[n.length]=b}function l(b){if(typeof E.addEventListener!=B)E.addEventListener("load",b,false);else if(typeof p.addEventListener!=B)p.addEventListener("load",b,false);else if(typeof E.attachEvent!=B)ga(E,"onload",b);else if(typeof E.onload=="function"){var d=
E.onload;E.onload=function(){d();b()}}else E.onload=b}function y(){var b=p.getElementsByTagName("body")[0],d=p.createElement(I);d.setAttribute("type",W);var f=b.appendChild(d);if(f){var m=0;(function(){if(typeof f.GetVariable!=B){var o=f.GetVariable("$version");if(o){o=o.split(" ")[1].split(",");k.pv=[parseInt(o[0],10),parseInt(o[1],10),parseInt(o[2],10)]}}else if(m<10){m++;setTimeout(arguments.callee,10);return}b.removeChild(d);f=null;w()})()}else w()}function w(){var b=x.length;if(b>0)for(var d=
0;d<b;d++){var f=x[d].id,m=x[d].callbackFn,o={success:false,id:f};if(k.pv[0]>0){var u=T(f);if(u)if(P(x[d].swfVersion)&&!(k.wk&&k.wk<312)){i(f,true);if(m){o.success=true;o.ref=J(f);m(o)}}else if(x[d].expressInstall&&K()){o={};o.data=x[d].expressInstall;o.width=u.getAttribute("width")||"0";o.height=u.getAttribute("height")||"0";if(u.getAttribute("class"))o.styleclass=u.getAttribute("class");if(u.getAttribute("align"))o.align=u.getAttribute("align");var s={};u=u.getElementsByTagName("param");for(var G=
u.length,H=0;H<G;H++)if(u[H].getAttribute("name").toLowerCase()!="movie")s[u[H].getAttribute("name")]=u[H].getAttribute("value");V(o,s,f,m)}else{A(u);m&&m(o)}}else{i(f,true);if(m){if((f=J(f))&&typeof f.SetVariable!=B){o.success=true;o.ref=f}m(o)}}}}function J(b){var d=null;if((b=T(b))&&b.nodeName=="OBJECT")if(typeof b.SetVariable!=B)d=b;else if(b=b.getElementsByTagName(I)[0])d=b;return d}function K(){return!da&&P("6.0.65")&&(k.win||k.mac)&&!(k.wk&&k.wk<312)}function V(b,d,f,m){da=true;aa=m||null;
S={success:false,id:f};var o=T(f);if(o){if(o.nodeName=="OBJECT"){L=t(o);q=null}else{L=o;q=f}b.id=Z;if(typeof b.width==B||!/%$/.test(b.width)&&parseInt(b.width,10)<310)b.width="310";if(typeof b.height==B||!/%$/.test(b.height)&&parseInt(b.height,10)<137)b.height="137";p.title=p.title.slice(0,47)+" - Flash Player Installation";m=k.ie&&k.win?"ActiveX":"PlugIn";m="MMredirectURL="+E.location.toString().replace(/&/g,"%26")+"&MMplayerType="+m+"&MMdoctitle="+p.title;if(typeof d.flashvars!=B)d.flashvars+="&"+
m;else d.flashvars=m;if(k.ie&&k.win&&o.readyState!=4){m=p.createElement("div");f+="SWFObjectNew";m.setAttribute("id",f);o.parentNode.insertBefore(m,o);o.style.display="none";(function(){o.readyState==4?o.parentNode.removeChild(o):setTimeout(arguments.callee,10)})()}C(b,d,f)}}function A(b){if(k.ie&&k.win&&b.readyState!=4){var d=p.createElement("div");b.parentNode.insertBefore(d,b);d.parentNode.replaceChild(t(b),d);b.style.display="none";(function(){b.readyState==4?b.parentNode.removeChild(b):setTimeout(arguments.callee,
10)})()}else b.parentNode.replaceChild(t(b),b)}function t(b){var d=p.createElement("div");if(k.win&&k.ie)d.innerHTML=b.innerHTML;else if(b=b.getElementsByTagName(I)[0])if(b=b.childNodes)for(var f=b.length,m=0;m<f;m++)!(b[m].nodeType==1&&b[m].nodeName=="PARAM")&&b[m].nodeType!=8&&d.appendChild(b[m].cloneNode(true));return d}function C(b,d,f){var m,o=T(f);if(k.wk&&k.wk<312)return m;if(o){if(typeof b.id==B)b.id=f;if(k.ie&&k.win){var u="",s;for(s in b)if(b[s]!=Object.prototype[s])if(s.toLowerCase()==
"data")d.movie=b[s];else if(s.toLowerCase()=="styleclass")u+=' class="'+b[s]+'"';else if(s.toLowerCase()!="classid")u+=" "+s+'="'+b[s]+'"';s="";for(var G in d)if(d[G]!=Object.prototype[G])s+='<param name="'+G+'" value="'+d[G]+'" />';o.outerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'+u+">"+s+"</object>";D[D.length]=b.id;m=T(b.id)}else{G=p.createElement(I);G.setAttribute("type",W);for(var H in b)if(b[H]!=Object.prototype[H])if(H.toLowerCase()=="styleclass")G.setAttribute("class",
b[H]);else H.toLowerCase()!="classid"&&G.setAttribute(H,b[H]);for(u in d)if(d[u]!=Object.prototype[u]&&u.toLowerCase()!="movie"){b=G;s=u;H=d[u];f=p.createElement("param");f.setAttribute("name",s);f.setAttribute("value",H);b.appendChild(f)}o.parentNode.replaceChild(G,o);m=G}}return m}function ba(b){var d=T(b);if(d&&d.nodeName=="OBJECT")if(k.ie&&k.win){d.style.display="none";(function(){if(d.readyState==4){var f=T(b);if(f){for(var m in f)if(typeof f[m]=="function")f[m]=null;f.parentNode.removeChild(f)}}else setTimeout(arguments.callee,
10)})()}else d.parentNode.removeChild(d)}function T(b){var d=null;try{d=p.getElementById(b)}catch(f){}return d}function ga(b,d,f){b.attachEvent(d,f);r[r.length]=[b,d,f]}function P(b){var d=k.pv;b=b.split(".");b[0]=parseInt(b[0],10);b[1]=parseInt(b[1],10)||0;b[2]=parseInt(b[2],10)||0;return d[0]>b[0]||d[0]==b[0]&&d[1]>b[1]||d[0]==b[0]&&d[1]==b[1]&&d[2]>=b[2]?true:false}function ca(b,d,f,m){if(!(k.ie&&k.mac)){var o=p.getElementsByTagName("head")[0];if(o){f=f&&typeof f=="string"?f:"screen";if(m)F=z=
null;if(!z||F!=f){m=p.createElement("style");m.setAttribute("type","text/css");m.setAttribute("media",f);z=o.appendChild(m);if(k.ie&&k.win&&typeof p.styleSheets!=B&&p.styleSheets.length>0)z=p.styleSheets[p.styleSheets.length-1];F=f}if(k.ie&&k.win)z&&typeof z.addRule==I&&z.addRule(b,d);else z&&typeof p.createTextNode!=B&&z.appendChild(p.createTextNode(b+" {"+d+"}"))}}}function i(b,d){if(Q){var f=d?"visible":"hidden";if(U&&T(b))T(b).style.visibility=f;else ca("#"+b,"visibility:"+f)}}function O(b){return/[\\\"<>\.;]/.exec(b)!=
null&&typeof encodeURIComponent!=B?encodeURIComponent(b):b}var B="undefined",I="object",W="application/x-shockwave-flash",Z="SWFObjectExprInst",E=window,p=document,g=navigator,j=false,n=[function(){j?y():w()}],x=[],D=[],r=[],L,q,aa,S,U=false,da=false,z,F,Q=true,k=function(){var b=typeof p.getElementById!=B&&typeof p.getElementsByTagName!=B&&typeof p.createElement!=B,d=g.userAgent.toLowerCase(),f=g.platform.toLowerCase(),m=f?/win/.test(f):/win/.test(d);f=f?/mac/.test(f):/mac/.test(d);d=/webkit/.test(d)?
parseFloat(d.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):false;var o=!+"\u000b1",u=[0,0,0],s=null;if(typeof g.plugins!=B&&typeof g.plugins["Shockwave Flash"]==I){if((s=g.plugins["Shockwave Flash"].description)&&!(typeof g.mimeTypes!=B&&g.mimeTypes[W]&&!g.mimeTypes[W].enabledPlugin)){j=true;o=false;s=s.replace(/^.*\s+(\S+\s+\S+$)/,"$1");u[0]=parseInt(s.replace(/^(.*)\..*$/,"$1"),10);u[1]=parseInt(s.replace(/^.*\.(.*)\s.*$/,"$1"),10);u[2]=/[a-zA-Z]/.test(s)?parseInt(s.replace(/^.*[a-zA-Z]+(.*)$/,"$1"),
10):0}}else if(typeof E.ActiveXObject!=B)try{var G=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");if(G)if(s=G.GetVariable("$version")){o=true;s=s.split(" ")[1].split(",");u=[parseInt(s[0],10),parseInt(s[1],10),parseInt(s[2],10)]}}catch(H){}return{w3:b,pv:u,wk:d,ie:o,win:m,mac:f}}();(function(){if(k.w3){if(typeof p.readyState!=B&&p.readyState=="complete"||typeof p.readyState==B&&(p.getElementsByTagName("body")[0]||p.body))c();if(!U){typeof p.addEventListener!=B&&p.addEventListener("DOMContentLoaded",
c,false);if(k.ie&&k.win){p.attachEvent("onreadystatechange",function(){if(p.readyState=="complete"){p.detachEvent("onreadystatechange",arguments.callee);c()}});E==top&&function(){if(!U){try{p.documentElement.doScroll("left")}catch(b){setTimeout(arguments.callee,0);return}c()}}()}k.wk&&function(){U||(/loaded|complete/.test(p.readyState)?c():setTimeout(arguments.callee,0))}();l(c)}}})();(function(){k.ie&&k.win&&window.attachEvent("onunload",function(){for(var b=r.length,d=0;d<b;d++)r[d][0].detachEvent(r[d][1],
r[d][2]);b=D.length;for(d=0;d<b;d++)ba(D[d]);for(var f in k)k[f]=null;k=null;for(var m in swfobject)swfobject[m]=null;swfobject=null})})();return{registerObject:function(b,d,f,m){if(k.w3&&b&&d){var o={};o.id=b;o.swfVersion=d;o.expressInstall=f;o.callbackFn=m;x[x.length]=o;i(b,false)}else m&&m({success:false,id:b})},getObjectById:function(b){if(k.w3)return J(b)},embedSWF:function(b,d,f,m,o,u,s,G,H,Y){var M={success:false,id:d};if(k.w3&&!(k.wk&&k.wk<312)&&b&&d&&f&&m&&o){i(d,false);e(function(){f+="";
m+="";var N={};if(H&&typeof H===I)for(var R in H)N[R]=H[R];N.data=b;N.width=f;N.height=m;R={};if(G&&typeof G===I)for(var a in G)R[a]=G[a];if(s&&typeof s===I)for(var h in s)if(typeof R.flashvars!=B)R.flashvars+="&"+h+"="+s[h];else R.flashvars=h+"="+s[h];if(P(o)){a=C(N,R,d);N.id==d&&i(d,true);M.success=true;M.ref=a}else if(u&&K()){N.data=u;V(N,R,d,Y);return}else i(d,true);Y&&Y(M)})}else Y&&Y(M)},switchOffAutoHideShow:function(){Q=false},ua:k,getFlashPlayerVersion:function(){return{major:k.pv[0],minor:k.pv[1],
release:k.pv[2]}},hasFlashPlayerVersion:P,createSWF:function(b,d,f){if(k.w3)return C(b,d,f)},showExpressInstall:function(b,d,f,m){k.w3&&K()&&V(b,d,f,m)},removeSWF:function(b){k.w3&&ba(b)},createCSS:function(b,d,f,m){k.w3&&ca(b,d,f,m)},addDomLoadEvent:e,addLoadEvent:l,getQueryParamValue:function(b){var d=p.location.search||p.location.hash;if(d){if(/\?/.test(d))d=d.split("?")[1];if(b==null)return O(d);d=d.split("&");for(var f=0;f<d.length;f++)if(d[f].substring(0,d[f].indexOf("="))==b)return O(d[f].substring(d[f].indexOf("=")+
1))}return""},expressInstallCallback:function(){if(da){var b=T(Z);if(b&&L){b.parentNode.replaceChild(L,b);if(q){i(q,true);if(k.ie&&k.win)L.style.display="block"}aa&&aa(S)}da=false}}}}();
// Input 13
if(typeof asual=="undefined")var asual={};if(typeof asual.util=="undefined")asual.util={};
asual.util.Browser=new function(){var c=navigator.userAgent.toLowerCase(),e=/webkit/.test(c),l=/opera/.test(c),y=/msie/.test(c)&&!/opera/.test(c),w=/mozilla/.test(c)&&!/(compatible|webkit)/.test(c),J=parseFloat(y?c.substr(c.indexOf("msie")+4):(c.match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/)||[0,"0"])[1]);this.toString=function(){return"[class Browser]"};this.getVersion=function(){return J};this.isMSIE=function(){return y};this.isSafari=function(){return e};this.isOpera=function(){return l};this.isMozilla=
function(){return w}};
asual.util.Events=new function(){var c=window,e=document,l=[],y=asual.util,w=y.Browser,J=w.isMSIE(),K=w.isSafari();this.toString=function(){return"[class Events]"};this.addListener=function(A,t,C){l.push({o:A,t:t,l:C});if(!(t=="DOMContentLoaded"&&(J||K)))if(A.addEventListener)A.addEventListener(t,C,false);else A.attachEvent&&A.attachEvent("on"+t,C)};this.removeListener=function(A,t,C){for(var ba=0,T;T=l[ba];ba++)if(T.o==A&&T.t==t&&T.l==C){l.splice(ba,1);break}if(!(t=="DOMContentLoaded"&&(J||K)))if(A.removeEventListener)A.removeEventListener(t,
C,false);else A.detachEvent&&A.detachEvent("on"+t,C)};var V=function(){for(var A=0,t;t=l[A];A++)t.t!="DOMContentLoaded"&&y.Events.removeListener(t.o,t.t,t.l)};w=function(){if(e.readyState=="interactive"){var A=function(){e.detachEvent("onstop",A);V()};e.attachEvent("onstop",A);c.setTimeout(function(){e.detachEvent("onstop",A)},0)}};if(J||K)(function(){try{if(J&&e.body||!/loaded|complete/.test(e.readyState))e.documentElement.doScroll("left")}catch(A){return setTimeout(arguments.callee,0)}for(var t=
0,C;C=l[t];t++)C.t=="DOMContentLoaded"&&C.l.call(null)})();J&&c.attachEvent("onbeforeunload",w);this.addListener(c,"unload",V)};asual.util.Functions=new function(){this.toString=function(){return"[class Functions]"};this.bind=function(c,e){for(var l=2,y,w=[];y=arguments[l];l++)w.push(y);return function(){return c.apply(e,w)}}};
var SWFAddressEvent=function(c){this.toString=function(){return"[object SWFAddressEvent]"};this.type=c;this.target=SWFAddress;this.value=SWFAddress.getValue();this.path=SWFAddress.getPath();this.pathNames=SWFAddress.getPathNames();this.parameters={};c=SWFAddress.getParameterNames();for(var e=0,l=c.length;e<l;e++)this.parameters[c[e]]=SWFAddress.getParameter(c[e]);this.parameterNames=c};SWFAddressEvent.INIT="init";SWFAddressEvent.CHANGE="change";SWFAddressEvent.INTERNAL_CHANGE="internalChange";
SWFAddressEvent.EXTERNAL_CHANGE="externalChange";
var SWFAddress=new function(){var c=function(){var a=q.href.indexOf("#");return a!=-1?da(U(q.href.substr(a+1))):""},e=function(a,h){if(N.strict)a=h?a.substr(0,1)!="/"?"/"+a:a:a==""?"/":a;return a},l=function(a,h){return p&&q.protocol=="file:"?h?M.replace(/\?/,"%3F"):M.replace(/%253F/,"?"):a},y=function(a){if(a.childNodes)for(var h=0,v=a.childNodes.length,X;h<v;h++){if(a.childNodes[h].src)Q=String(a.childNodes[h].src);if(X=y(a.childNodes[h]))return X}},w=function(){if(r.title!=k&&r.title.indexOf("#")!=
-1)r.title=k},J=function(){if(!d){var a=c(),h=M!=a;if(n&&E<523){if(b!=L.length){b=L.length;if(typeof s[b-1]!=i)M=s[b-1];t.call(this,false)}}else if(p&&h)E<7?q.reload():this.setValue(a);else if(h){M=a;t.call(this,false)}p&&w.call(this)}},K=function(){if(H.length>0){window.open(H[0],H[1],eval(H[2]));typeof H[3]!=i&&eval(H[3])}H=[]},V=function(){for(var a=0,h,v,X=SWFAddress.getValue();h=G[a];a++)if(v=document.getElementById(h))if(v.parentNode&&typeof v.parentNode.so!=i)v.parentNode.so.call("setSWFAddressValue",
X);else{if(!(v&&typeof v.setSWFAddressValue!=i)){h=v.getElementsByTagName("object");v=v.getElementsByTagName("embed");v=h[0]&&typeof h[0].setSWFAddressValue!=i?h[0]:v[0]&&typeof v[0].setSWFAddressValue!=i?v[0]:null}v&&v.setSWFAddressValue(X)}else if(v=document[h])typeof v.setSWFAddressValue!=i&&v.setSWFAddressValue(X)},A=function(a){this.dispatchEvent(new SWFAddressEvent(a));a=a.substr(0,1).toUpperCase()+a.substr(1);typeof this["on"+a]==ca&&this["on"+a]()},t=function(a){V();A.call(this,"change");
a?A.call(this,"internalChange"):A.call(this,"externalChange");S(Z.bind(C,this),10)},C=function(){var a=(q.pathname+(/\/$/.test(q.pathname)?"":"/")+this.getValue()).replace(/\/\//,"/").replace(/^\/$/,""),h=D[N.tracker];if(typeof h==ca)h(a);else if(typeof D.pageTracker!=i&&typeof D.pageTracker._trackPageview==ca)D.pageTracker._trackPageview(a);else typeof D.urchinTracker==ca&&D.urchinTracker(a)},ba=function(){var a=z.contentWindow.document;a.open();a.write("<html><head><title>"+r.title+"</title><script>var "+
P+' = "'+c()+'";<\/script></head></html>');a.close()},T=function(){var a=z.contentWindow;M=typeof a[P]!=i?a[P]:"";if(M!=c()){t.call(SWFAddress,false);q.hash=l(M,O)}},ga=function(){if(!f){f=O;if(p&&E<8){var a=r.getElementsByTagName("frameset")[0];z=r.createElement((a?"":"i")+"frame");if(a){a.insertAdjacentElement("beforeEnd",z);a[a.cols?"cols":"rows"]+=",0";z.src="javascript:false";z.noResize=true;z.frameBorder=z.frameSpacing=0}else{z.src="javascript:false";z.style.display="none";r.body.insertAdjacentElement("afterBegin",
z)}S(function(){W.addListener(z,"load",T);typeof z.contentWindow[P]==i&&ba()},50)}else if(n){if(E<418){r.body.innerHTML+='<form id="'+P+'" style="position:absolute;top:-9999px;" method="get"></form>';F=r.getElementById(P)}if(typeof q[P]==i)q[P]={};if(typeof q[P][q.pathname]!=i)s=q[P][q.pathname].split(",")}S(Z.bind(function(){B.Browser.isSafari()&&r.body.addEventListener("click",K);A.call(this,"init");V();A.call(this,"change");C.call(this)},this),1);if(p&&E>=8){r.body.onhashchange=Z.bind(J,this);
aa(Z.bind(w,this),50)}else aa(Z.bind(J,this),50)}},P="swfaddress",ca="function",i="undefined",O=true,B=asual.util,I=B.Browser,W=B.Events,Z=B.Functions,E=I.getVersion(),p=I.isMSIE(),g=I.isMozilla(),j=I.isOpera(),n=I.isSafari(),x=false,D;D=top;var r=D.document,L=D.history,q=D.location,aa=setInterval,S=setTimeout,U=decodeURI,da=encodeURI,z,F,Q,k=r.title,b=L.length,d=false,f=false,m=O,o=O,u=this,s=[],G=[],H=[],Y={},M=c(),N={history:O,strict:O};if(p&&r.documentMode&&r.documentMode!=E)E=r.documentMode!=
8?7:8;if(x=g&&E>=1||p&&E>=6||j&&E>=9.5||n&&E>=312){if(j)history.navigationMode="compatible";for(I=1;I<b;I++)s.push("");s.push(c());if(p&&q.hash!=c())q.hash="#"+l(c(),O);y(document);I=Q?Q.indexOf("?"):-1;if(I!=-1){var R;j=Q.substr(I+1).split("&");for(I=0;R=j[I];I++){R=R.split("=");if(/^(history|strict)$/.test(R[0]))N[R[0]]=isNaN(R[1])?/^(true|yes)$/i.test(R[1]):parseInt(R[1])!=0;if(/^tracker$/.test(R[0]))N[R[0]]=R[1]}}p&&w.call(this);window==D&&W.addListener(document,"DOMContentLoaded",Z.bind(ga,this));
W.addListener(D,"load",Z.bind(ga,this))}else if(!x&&q.href.indexOf("#")!=-1||n&&E<418&&q.href.indexOf("#")!=-1&&q.search!=""){r.open();r.write('<html><head><meta http-equiv="refresh" content="0;url='+q.href.substr(0,q.href.indexOf("#"))+'" /></head></html>');r.close()}else C();this.toString=function(){return"[class SWFAddress]"};this.back=function(){L.back()};this.forward=function(){L.forward()};this.up=function(){var a=this.getPath();this.setValue(a.substr(0,a.lastIndexOf("/",a.length-2)+(a.substr(a.length-
1)=="/"?1:0)))};this.go=function(a){L.go(a)};this.href=function(a,h){h=typeof h!=i?h:"_self";if(h=="_self")self.location.href=a;else if(h=="_top")q.href=a;else if(h=="_blank")window.open(a);else D.frames[h].location.href=a};this.popup=function(a,h,v,X){try{window.open(a,h,eval(v));typeof X!=i&&eval(X)}catch(fa){}H=arguments};this.getIds=function(){return G};this.getId=function(){return G[0]};this.setId=function(a){G[0]=a};this.addId=function(a){this.removeId(a);G.push(a)};this.removeId=function(a){for(var h=
0;h<G.length;h++)if(a==G[h]){G.splice(h,1);break}};this.addEventListener=function(a,h){if(typeof Y[a]==i)Y[a]=[];Y[a].push(h)};this.removeEventListener=function(a,h){if(typeof Y[a]!=i){for(var v=0,X;X=Y[a][v];v++)if(X==h)break;Y[a].splice(v,1)}};this.dispatchEvent=function(a){if(this.hasEventListener(a.type)){a.target=this;for(var h=0,v;v=Y[a.type][h];h++)v(a);return O}return false};this.hasEventListener=function(a){return typeof Y[a]!=i&&Y[a].length>0};this.getBaseURL=function(){var a=q.href;if(a.indexOf("#")!=
-1)a=a.substr(0,a.indexOf("#"));if(a.substr(a.length-1)=="/")a=a.substr(0,a.length-1);return a};this.getStrict=function(){return N.strict};this.setStrict=function(a){N.strict=a};this.getHistory=function(){return N.history};this.setHistory=function(a){N.history=a};this.getTracker=function(){return N.tracker};this.setTracker=function(a){N.tracker=a};this.getTitle=function(){return r.title};this.setTitle=function(a){if(!x)return null;if(typeof a!=i){if(a=="null")a="";a=U(a);S(function(){k=r.title=a;
if(o&&z&&z.contentWindow&&z.contentWindow.document){z.contentWindow.document.title=a;o=false}if(!m&&g)q.replace(q.href.indexOf("#")!=-1?q.href:q.href+"#");m=false},10)}};this.getStatus=function(){return D.status};this.setStatus=function(a){if(!x)return null;if(typeof a!=i){if(a=="null")a="";a=U(a);if(!n){a=e(a!="null"?a:"",O);if(a=="/")a="";if(!/http(s)?:\/\//.test(a)){var h=q.href.indexOf("#");a=(h==-1?q.href:q.href.substr(0,h))+"#"+a}D.status=a}}};this.resetStatus=function(){D.status=""};this.getValue=
function(){if(!x)return null;return U(e(l(M,false),false))};this.setValue=function(a){if(!x)return null;if(typeof a!=i){if(a=="null")a="";a=da(U(e(a,O)));if(a=="/")a="";if(M!=a){m=O;M=a;d=O;t.call(SWFAddress,true);s[L.length]=M;if(n)if(N.history){if(typeof q[P]==i)q[P]={};q[P][q.pathname]=s.toString();b=L.length+1;if(E<418){if(q.search==""){F.action="#"+M;F.submit()}}else if(E<523||M==""){a=r.createEvent("MouseEvents");a.initEvent("click",O,O);var h=r.createElement("a");h.href="#"+M;h.dispatchEvent(a)}else q.hash=
"#"+M}else q.replace("#"+M);else if(M!=c())if(N.history)q.hash="#"+U(l(M,O));else q.replace("#"+U(M));p&&E<8&&N.history&&S(ba,50);if(n)S(function(){d=false},1);else d=false}}};this.getPath=function(){var a=this.getValue();return a.indexOf("?")!=-1?a.split("?")[0]:a.indexOf("#")!=-1?a.split("#")[0]:a};this.getPathNames=function(){var a=this.getPath(),h=a.split("/");if(a.substr(0,1)=="/"||a.length==0)h.splice(0,1);a.substr(a.length-1,1)=="/"&&h.splice(h.length-1,1);return h};this.getQueryString=function(){var a=
this.getValue(),h=a.indexOf("?");if(h!=-1&&h<a.length)return a.substr(h+1)};this.getParameter=function(a){var h=this.getValue(),v=h.indexOf("?");if(v!=-1){h=h.substr(v+1);v=h.split("&");for(var X=v.length,fa=[];X--;){h=v[X].split("=");h[0]==a&&fa.push(h[1])}if(fa.length!=0)return fa.length!=1?fa:fa[0]}};this.getParameterNames=function(){var a=this.getValue(),h=a.indexOf("?"),v=[];if(h!=-1){a=a.substr(h+1);if(a!=""&&a.indexOf("=")!=-1){a=a.split("&");for(h=0;h<a.length;){v.push(a[h].split("=")[0]);
h++}}}return v};this.onExternalChange=this.onInternalChange=this.onChange=this.onInit=null;(function(){var a;if(typeof FlashObject!=i)SWFObject=FlashObject;if(typeof SWFObject!=i&&SWFObject.prototype&&SWFObject.prototype.write){var h=SWFObject.prototype.write;SWFObject.prototype.write=function(){a=arguments;if(this.getAttribute("version").major<8){this.addVariable("$swfaddress",SWFAddress.getValue());(typeof a[0]=="string"?document.getElementById(a[0]):a[0]).so=this}var ea;if(ea=h.apply(this,a))u.addId(this.getAttribute("id"));
return ea}}if(typeof swfobject!=i){var v=swfobject.registerObject;swfobject.registerObject=function(){a=arguments;v.apply(this,a);u.addId(a[0])};var X=swfobject.createSWF;swfobject.createSWF=function(){a=arguments;var ea=X.apply(this,a);ea&&u.addId(a[0].id);return ea};var fa=swfobject.embedSWF;swfobject.embedSWF=function(){a=arguments;if(typeof a[8]==i)a[8]={};if(typeof a[8].id==i)a[8].id=a[1];fa.apply(this,a);u.addId(a[8].id)}}if(typeof UFO!=i){var ha=UFO.create;UFO.create=function(){a=arguments;
ha.apply(this,a);u.addId(a[0].id)}}if(typeof AC_FL_RunContent!=i){var ia=AC_FL_RunContent;AC_FL_RunContent=function(){a=arguments;ia.apply(this,a);for(var ea=0,ja=a.length;ea<ja;ea++)a[ea]=="id"&&u.addId(a[ea+1])}}})()};

