var tooltip=function(){var e="tt";var w=3;var g=3;var v=300;var k=10;var f=20;var p=95;var n=0;var q,x,s,u,o;var d=document.all?true:false;return{show:function(h,b){if(q==null){q=document.createElement("div");q.setAttribute("id",e);x=document.createElement("div");x.setAttribute("id",e+"top");s=document.createElement("div");s.setAttribute("id",e+"cont");u=document.createElement("div");u.setAttribute("id",e+"bot");q.appendChild(x);q.appendChild(s);q.appendChild(u);document.body.appendChild(q);q.style.opacity=0;q.style.filter="alpha(opacity=0)";document.onmousemove=this.pos}q.style.display="block";s.innerHTML=h;q.style.width=b?b+"px":"auto";if(!b&&d){x.style.display="none";u.style.display="none";q.style.width=q.offsetWidth;x.style.display="block";u.style.display="block"}if(q.offsetWidth>v){q.style.width=v+"px"}o=parseInt(q.offsetHeight)+w;clearInterval(q.timer);q.timer=setInterval(function(){tooltip.fade(1)},f)},pos:function(t){var h=d?event.clientY+document.documentElement.scrollTop:t.pageY;var b=d?event.clientX+document.documentElement.scrollLeft:t.pageX;q.style.top=(h-o)+"px";q.style.left=(b+g)+"px"},fade:function(t){var b=n;if((b!=p&&t==1)||(b!=0&&t==-1)){var h=k;if(p-b<k&&t==1){h=p-b}else{if(n<k&&t==-1){h=b}}n=b+(h*t);q.style.opacity=n*0.01;q.style.filter="alpha(opacity="+n+")"}else{clearInterval(q.timer);if(t==-1){q.style.display="none"}}},hide:function(){clearInterval(q.timer);q.timer=setInterval(function(){tooltip.fade(-1)},f)}}}();function actb(obj,ca){this.actb_timeOut=-1;this.actb_lim=4;this.actb_firstText=false;this.actb_mouse=true;this.actb_delimiter=new Array(";",",");this.actb_startcheck=1;this.actb_bgColor="#888888";this.actb_textColor="#FFFFFF";this.actb_hColor="#000000";this.actb_fFamily="Verdana";this.actb_fSize="11px";this.actb_hStyle='text-decoration:underline;font-weight="bold"';var actb_delimwords=new Array();var actb_cdelimword=0;var actb_delimchar=new Array();var actb_display=false;var actb_pos=0;var actb_total=0;var actb_curr=null;var actb_rangeu=0;var actb_ranged=0;var actb_bool=new Array();var actb_pre=0;var actb_toid;var actb_tomake=false;var actb_getpre="";var actb_mouse_on_list=1;var actb_kwcount=0;var actb_caretmove=false;this.actb_keywords=new Array();this.actb_keywords=ca;var actb_self=this;actb_curr=obj;addEvent(actb_curr,"focus",actb_setup);function actb_setup(){addEvent(document,"keydown",actb_checkkey);addEvent(actb_curr,"blur",actb_clear);addEvent(document,"keypress",actb_keypress)}function actb_clear(evt){if(!evt){evt=event}removeEvent(document,"keydown",actb_checkkey);removeEvent(actb_curr,"blur",actb_clear);removeEvent(document,"keypress",actb_keypress);actb_removedisp()}function actb_parse(n){if(actb_self.actb_delimiter.length>0){var t=actb_delimwords[actb_cdelimword].trim().addslashes();var plen=actb_delimwords[actb_cdelimword].trim().length}else{var t=actb_curr.value.addslashes();var plen=actb_curr.value.length}var tobuild="";var i;if(actb_self.actb_firstText){var re=new RegExp("^"+t,"i")}else{var re=new RegExp(t,"i")}var p=n.search(re);for(i=0;i<p;i++){tobuild+=n.substr(i,1)}tobuild+="<font style='"+(actb_self.actb_hStyle)+"'>";for(i=p;i<plen+p;i++){tobuild+=n.substr(i,1)}tobuild+="</font>";for(i=plen+p;i<n.length;i++){tobuild+=n.substr(i,1)}return tobuild}function actb_generate(){if(document.getElementById("tat_table")){actb_display=false;document.body.removeChild(document.getElementById("tat_table"))}if(actb_kwcount==0){actb_display=false;return}a=document.createElement("table");a.cellSpacing="1px";a.cellPadding="2px";a.style.position="absolute";a.style.top=eval(curTop(actb_curr)+actb_curr.offsetHeight)+"px";a.style.left=curLeft(actb_curr)+"px";a.style.backgroundColor=actb_self.actb_bgColor;a.id="tat_table";document.body.appendChild(a);var i;var first=true;var j=1;if(actb_self.actb_mouse){a.onmouseout=actb_table_unfocus;a.onmouseover=actb_table_focus}var counter=0;for(i=0;i<actb_self.actb_keywords.length;i++){if(actb_bool[i]){counter++;r=a.insertRow(-1);if(first&&!actb_tomake){r.style.backgroundColor=actb_self.actb_hColor;first=false;actb_pos=counter}else{if(actb_pre==i){r.style.backgroundColor=actb_self.actb_hColor;first=false;actb_pos=counter}else{r.style.backgroundColor=actb_self.actb_bgColor}}r.id="tat_tr"+(j);c=r.insertCell(-1);c.style.color=actb_self.actb_textColor;c.style.fontFamily=actb_self.actb_fFamily;c.style.fontSize=actb_self.actb_fSize;c.innerHTML=actb_parse(actb_self.actb_keywords[i]);c.id="tat_td"+(j);c.setAttribute("pos",j);if(actb_self.actb_mouse){c.style.cursor="pointer";c.onclick=actb_mouseclick;c.onmouseover=actb_table_highlight}j++}if(j-1==actb_self.actb_lim&&j<actb_total){r=a.insertRow(-1);r.style.backgroundColor=actb_self.actb_bgColor;c=r.insertCell(-1);c.style.color=actb_self.actb_textColor;c.style.fontFamily="arial narrow";c.style.fontSize=actb_self.actb_fSize;c.align="center";replaceHTML(c,"\\/");if(actb_self.actb_mouse){c.style.cursor="pointer";c.onclick=actb_mouse_down}break}}actb_rangeu=1;actb_ranged=j-1;actb_display=true;if(actb_pos<=0){actb_pos=1}}function actb_remake(){document.body.removeChild(document.getElementById("tat_table"));a=document.createElement("table");a.cellSpacing="1px";a.cellPadding="2px";a.style.position="absolute";a.style.top=eval(curTop(actb_curr)+actb_curr.offsetHeight)+"px";a.style.left=curLeft(actb_curr)+"px";a.style.backgroundColor=actb_self.actb_bgColor;a.id="tat_table";if(actb_self.actb_mouse){a.onmouseout=actb_table_unfocus;a.onmouseover=actb_table_focus}document.body.appendChild(a);var i;var first=true;var j=1;if(actb_rangeu>1){r=a.insertRow(-1);r.style.backgroundColor=actb_self.actb_bgColor;c=r.insertCell(-1);c.style.color=actb_self.actb_textColor;c.style.fontFamily="arial narrow";c.style.fontSize=actb_self.actb_fSize;c.align="center";replaceHTML(c,"/\\");if(actb_self.actb_mouse){c.style.cursor="pointer";c.onclick=actb_mouse_up}}for(i=0;i<actb_self.actb_keywords.length;i++){if(actb_bool[i]){if(j>=actb_rangeu&&j<=actb_ranged){r=a.insertRow(-1);r.style.backgroundColor=actb_self.actb_bgColor;r.id="tat_tr"+(j);c=r.insertCell(-1);c.style.color=actb_self.actb_textColor;c.style.fontFamily=actb_self.actb_fFamily;c.style.fontSize=actb_self.actb_fSize;c.innerHTML=actb_parse(actb_self.actb_keywords[i]);c.id="tat_td"+(j);c.setAttribute("pos",j);if(actb_self.actb_mouse){c.style.cursor="pointer";c.onclick=actb_mouseclick;c.onmouseover=actb_table_highlight}j++}else{j++}}if(j>actb_ranged){break}}if(j-1<actb_total){r=a.insertRow(-1);r.style.backgroundColor=actb_self.actb_bgColor;c=r.insertCell(-1);c.style.color=actb_self.actb_textColor;c.style.fontFamily="arial narrow";c.style.fontSize=actb_self.actb_fSize;c.align="center";replaceHTML(c,"\\/");if(actb_self.actb_mouse){c.style.cursor="pointer";c.onclick=actb_mouse_down}}}function actb_goup(){if(!actb_display){return}if(actb_pos==1){return}document.getElementById("tat_tr"+actb_pos).style.backgroundColor=actb_self.actb_bgColor;actb_pos--;if(actb_pos<actb_rangeu){actb_moveup()}document.getElementById("tat_tr"+actb_pos).style.backgroundColor=actb_self.actb_hColor;if(actb_toid){clearTimeout(actb_toid)}if(actb_self.actb_timeOut>0){actb_toid=setTimeout(function(){actb_mouse_on_list=0;actb_removedisp()},actb_self.actb_timeOut)}}function actb_godown(){if(!actb_display){return}if(actb_pos==actb_total){return}document.getElementById("tat_tr"+actb_pos).style.backgroundColor=actb_self.actb_bgColor;actb_pos++;if(actb_pos>actb_ranged){actb_movedown()}document.getElementById("tat_tr"+actb_pos).style.backgroundColor=actb_self.actb_hColor;if(actb_toid){clearTimeout(actb_toid)}if(actb_self.actb_timeOut>0){actb_toid=setTimeout(function(){actb_mouse_on_list=0;actb_removedisp()},actb_self.actb_timeOut)}}function actb_movedown(){actb_rangeu++;actb_ranged++;actb_remake()}function actb_moveup(){actb_rangeu--;actb_ranged--;actb_remake()}function actb_mouse_down(){document.getElementById("tat_tr"+actb_pos).style.backgroundColor=actb_self.actb_bgColor;actb_pos++;actb_movedown();document.getElementById("tat_tr"+actb_pos).style.backgroundColor=actb_self.actb_hColor;
actb_curr.focus();actb_mouse_on_list=0;if(actb_toid){clearTimeout(actb_toid)}if(actb_self.actb_timeOut>0){actb_toid=setTimeout(function(){actb_mouse_on_list=0;actb_removedisp()},actb_self.actb_timeOut)}}function actb_mouse_up(evt){if(!evt){evt=event}if(evt.stopPropagation){evt.stopPropagation()}else{evt.cancelBubble=true}document.getElementById("tat_tr"+actb_pos).style.backgroundColor=actb_self.actb_bgColor;actb_pos--;actb_moveup();document.getElementById("tat_tr"+actb_pos).style.backgroundColor=actb_self.actb_hColor;actb_curr.focus();actb_mouse_on_list=0;if(actb_toid){clearTimeout(actb_toid)}if(actb_self.actb_timeOut>0){actb_toid=setTimeout(function(){actb_mouse_on_list=0;actb_removedisp()},actb_self.actb_timeOut)}}function actb_mouseclick(evt){if(!evt){evt=event}if(!actb_display){return}actb_mouse_on_list=0;actb_pos=this.getAttribute("pos");actb_penter()}function actb_table_focus(){actb_mouse_on_list=1}function actb_table_unfocus(){actb_mouse_on_list=0;if(actb_toid){clearTimeout(actb_toid)}if(actb_self.actb_timeOut>0){actb_toid=setTimeout(function(){actb_mouse_on_list=0;actb_removedisp()},actb_self.actb_timeOut)}}function actb_table_highlight(){actb_mouse_on_list=1;document.getElementById("tat_tr"+actb_pos).style.backgroundColor=actb_self.actb_bgColor;actb_pos=this.getAttribute("pos");while(actb_pos<actb_rangeu){actb_moveup()}while(actb_pos>actb_ranged){actb_movedown()}document.getElementById("tat_tr"+actb_pos).style.backgroundColor=actb_self.actb_hColor;if(actb_toid){clearTimeout(actb_toid)}if(actb_self.actb_timeOut>0){actb_toid=setTimeout(function(){actb_mouse_on_list=0;actb_removedisp()},actb_self.actb_timeOut)}}function actb_insertword(a){if(actb_self.actb_delimiter.length>0){str="";l=0;for(i=0;i<actb_delimwords.length;i++){if(actb_cdelimword==i){prespace=postspace="";gotbreak=false;for(j=0;j<actb_delimwords[i].length;++j){if(actb_delimwords[i].charAt(j)!=" "){gotbreak=true;break}prespace+=" "}for(j=actb_delimwords[i].length-1;j>=0;--j){if(actb_delimwords[i].charAt(j)!=" "){break}postspace+=" "}str+=prespace;str+=a;l=str.length;if(gotbreak){str+=postspace}}else{str+=actb_delimwords[i]}if(i!=actb_delimwords.length-1){str+=actb_delimchar[i]}}actb_curr.value=str;setCaret(actb_curr,l)}else{actb_curr.value=a}actb_mouse_on_list=0;actb_removedisp()}function actb_penter(){if(!actb_display){return}actb_display=false;var word="";var c=0;for(var i=0;i<=actb_self.actb_keywords.length;i++){if(actb_bool[i]){c++}if(c==actb_pos){word=actb_self.actb_keywords[i];break}}actb_insertword(word);l=getCaretStart(actb_curr)}function actb_removedisp(){if(actb_mouse_on_list==0){actb_display=0;if(document.getElementById("tat_table")){document.body.removeChild(document.getElementById("tat_table"))}if(actb_toid){clearTimeout(actb_toid)}}}function actb_keypress(e){if(actb_caretmove){stopEvent(e)}return !actb_caretmove}function actb_checkkey(evt){if(!evt){evt=event}a=evt.keyCode;caret_pos_start=getCaretStart(actb_curr);actb_caretmove=0;switch(a){case 38:actb_goup();actb_caretmove=1;return false;break;case 40:actb_godown();actb_caretmove=1;return false;break;case 13:case 9:if(actb_display){actb_caretmove=1;actb_penter();return false}else{return true}break;default:setTimeout(function(){actb_tocomplete(a)},50);break}}function actb_tocomplete(kc){if(kc==38||kc==40||kc==13){return}var i;if(actb_display){var word=0;var c=0;for(var i=0;i<=actb_self.actb_keywords.length;i++){if(actb_bool[i]){c++}if(c==actb_pos){word=i;break}}actb_pre=word}else{actb_pre=-1}if(actb_curr.value==""){actb_mouse_on_list=0;actb_removedisp();return}if(actb_self.actb_delimiter.length>0){caret_pos_start=getCaretStart(actb_curr);caret_pos_end=getCaretEnd(actb_curr);delim_split="";for(i=0;i<actb_self.actb_delimiter.length;i++){delim_split+=actb_self.actb_delimiter[i]}delim_split=delim_split.addslashes();delim_split_rx=new RegExp("(["+delim_split+"])");c=0;actb_delimwords=new Array();actb_delimwords[0]="";for(i=0,j=actb_curr.value.length;i<actb_curr.value.length;i++,j--){if(actb_curr.value.substr(i,j).search(delim_split_rx)==0){ma=actb_curr.value.substr(i,j).match(delim_split_rx);actb_delimchar[c]=ma[1];c++;actb_delimwords[c]=""}else{actb_delimwords[c]+=actb_curr.value.charAt(i)}}var l=0;actb_cdelimword=-1;for(i=0;i<actb_delimwords.length;i++){if(caret_pos_end>=l&&caret_pos_end<=l+actb_delimwords[i].length){actb_cdelimword=i}l+=actb_delimwords[i].length+1}var ot=actb_delimwords[actb_cdelimword].trim();var t=actb_delimwords[actb_cdelimword].addslashes().trim()}else{var ot=actb_curr.value;var t=actb_curr.value.addslashes()}if(ot.length==0){actb_mouse_on_list=0;actb_removedisp()}if(ot.length<actb_self.actb_startcheck){return this}if(actb_self.actb_firstText){var re=new RegExp("^"+t,"i")}else{var re=new RegExp(t,"i")}actb_total=0;actb_tomake=false;actb_kwcount=0;for(i=0;i<actb_self.actb_keywords.length;i++){actb_bool[i]=false;if(re.test(actb_self.actb_keywords[i])){actb_total++;actb_bool[i]=true;actb_kwcount++;if(actb_pre==i){actb_tomake=true}}}if(actb_toid){clearTimeout(actb_toid)}if(actb_self.actb_timeOut>0){actb_toid=setTimeout(function(){actb_mouse_on_list=0;actb_removedisp()},actb_self.actb_timeOut)}actb_generate()}return this}function addEvent(e,d,b){if(e.attachEvent){e.attachEvent("on"+d,b)}else{if(e.addEventListener){e.addEventListener(d,b,true)}else{e["on"+d]=b}}}function removeEvent(e,d,b){if(e.detachEvent){e.detachEvent("on"+d,b)}else{if(e.removeEventListener){e.removeEventListener(d,b,true)}else{e["on"+d]=null}}}function stopEvent(b){b||window.event;if(b.stopPropagation){b.stopPropagation();b.preventDefault()}else{if(typeof b.cancelBubble!="undefined"){b.cancelBubble=true;b.returnValue=false}}return false}function getElement(b){if(window.event){return window.event.srcElement}else{return b.currentTarget}}function getTargetElement(b){if(window.event){return window.event.srcElement}else{return b.target}}function stopSelect(b){if(typeof b.onselectstart!="undefined"){addEvent(b,"selectstart",function(){return false})}}function getCaretEnd(g){if(typeof g.selectionEnd!="undefined"){return g.selectionEnd}else{if(document.selection&&document.selection.createRange){var h=document.selection.createRange();try{var b=h.duplicate();b.moveToElementText(g)}catch(f){var b=g.createTextRange()}b.setEndPoint("EndToEnd",h);var d=b.text.length;if(d>g.value.length){return -1}return d}}}function getCaretStart(g){if(typeof g.selectionStart!="undefined"){return g.selectionStart}else{if(document.selection&&document.selection.createRange){var h=document.selection.createRange();try{var b=h.duplicate();b.moveToElementText(g)}catch(f){var b=g.createTextRange()}b.setEndPoint("EndToStart",h);var d=b.text.length;if(d>g.value.length){return -1}return d}}}function setCaret(d,b){d.focus();if(d.setSelectionRange){d.setSelectionRange(b,b)}else{if(d.createTextRange){m=d.createTextRange();m.moveStart("character",b);m.collapse();m.select()}}}function setSelection(f,b,d){f.focus();if(f.setSelectionRange){f.setSelectionRange(b,d)}else{if(f.createTextRange){m=f.createTextRange();m.moveStart("character",b);m.moveEnd("character",d);m.select()}}}String.prototype.addslashes=function(){return this.replace(/(["\\\.\|\[\]\^\*\+\?\$\(\)])/g,"\\$1")};String.prototype.trim=function(){return this.replace(/^\s*(\S*(\s+\S+)*)\s*$/,"$1")};function curTop(b){toreturn=0;while(b){toreturn+=b.offsetTop;b=b.offsetParent}return toreturn}function curLeft(b){toreturn=0;while(b){toreturn+=b.offsetLeft;b=b.offsetParent}return toreturn}function isNumber(b){return typeof b=="number"&&isFinite(b)}function replaceHTML(b,d){while(el=b.childNodes[0]){b.removeChild(el)}b.appendChild(document.createTextNode(d))}(function(){function w(b){console.log("$f.fireEvent",[].slice.call(b))}function s(b){if(!b||typeof b!="object"){return b}var e=new b.constructor();for(var d in b){if(b.hasOwnProperty(d)){e[d]=s(b[d])}}return e}function p(b,f){if(!b){return}var h,g=0,e=b.length;if(e===undefined){for(h in b){if(f.call(b[h],h,b[h])===false){break}}}else{for(var d=b[0];g<e&&f.call(d,g,d)!==false;
d=b[++g]){}}return b}function A(b){return document.getElementById(b)}function u(b,d,e){if(typeof d!="object"){return b}if(b&&d){p(d,function(g,f){if(!e||typeof f!="function"){b[g]=f}})}return b}function o(b){var e=b.indexOf(".");if(e!=-1){var f=b.substring(0,e)||"*";var g=b.substring(e+1,b.length);var d=[];p(document.getElementsByTagName(f),function(){if(this.className&&this.className.indexOf(g)!=-1){d.push(this)}});return d}}function x(b){b=b||window.event;if(b.preventDefault){b.stopPropagation();b.preventDefault()}else{b.returnValue=false;b.cancelBubble=true}return false}function t(b,e,d){b[e]=b[e]||[];b[e].push(d)}function y(){return"_"+(""+Math.random()).substring(2,10)}var v=function(d,f,e){var g=this;var h={};var b={};g.index=f;if(typeof d=="string"){d={url:d}}u(this,d,true);p(("Begin*,Start,Pause*,Resume*,Seek*,Stop*,Finish*,LastSecond,Update,BufferFull,BufferEmpty,BufferStop").split(","),function(){var D="on"+this;if(D.indexOf("*")!=-1){D=D.substring(0,D.length-1);var n="onBefore"+D.substring(2);g[n]=function(E){t(b,n,E);return g}}g[D]=function(E){t(b,D,E);return g};if(f==-1){if(g[n]){e[n]=g[n]}if(g[D]){e[D]=g[D]}}});u(this,{onCuepoint:function(n,D){if(arguments.length==1){h.embedded=[null,n];return g}if(typeof n=="number"){n=[n]}var E=y();h[E]=[n,D];if(e.isLoaded()){e._api().fp_addCuepoints(n,f,E)}return g},update:function(D){u(g,D);if(e.isLoaded()){e._api().fp_updateClip(D,f)}var E=e.getConfig();var n=(f==-1)?E.clip:E.playlist[f];u(n,D,true)},_fireEvent:function(F,H,E,D){if(F=="onLoad"){p(h,function(J,I){if(I[0]){e._api().fp_addCuepoints(I[0],f,J)}});return false}D=D||g;if(F=="onCuepoint"){var G=h[H];if(G){return G[1].call(e,D,E)}}if(F=="onStart"||F=="onUpdate"||F=="onResume"){u(D,H);if(!D.duration){D.duration=H.metaData.duration}else{D.fullDuration=H.metaData.duration}}var n=true;p(b[F],function(){n=this.call(e,D,H,E)});return n}});if(d.onCuepoint){var k=d.onCuepoint;g.onCuepoint.apply(g,typeof k=="function"?[k]:k);delete d.onCuepoint}p(d,function(D,n){if(typeof n=="function"){t(b,D,n);delete d[D]}});if(f==-1){e.onCuepoint=this.onCuepoint}};var q=function(h,f,g,d){var e={};var k=this;var b=false;if(d){u(e,d)}p(f,function(D,n){if(typeof n=="function"){e[D]=n;delete f[D]}});u(this,{animate:function(G,F,n){if(!G){return k}if(typeof F=="function"){n=F;F=500}if(typeof G=="string"){var D=G;G={};G[D]=F;F=500}if(n){var E=y();e[E]=n}if(F===undefined){F=500}f=g._api().fp_animate(h,G,F,E);return k},css:function(D,n){if(n!==undefined){var E={};E[D]=n;D=E}f=g._api().fp_css(h,D);u(k,f);return k},show:function(){this.display="block";g._api().fp_showPlugin(h);return k},hide:function(){this.display="none";g._api().fp_hidePlugin(h);return k},toggle:function(){this.display=g._api().fp_togglePlugin(h);return k},fadeTo:function(F,n,D){if(typeof n=="function"){D=n;n=500}if(D){var E=y();e[E]=D}this.display=g._api().fp_fadeTo(h,F,n,E);this.opacity=F;return k},fadeIn:function(n,D){return k.fadeTo(1,n,D)},fadeOut:function(n,D){return k.fadeTo(0,n,D)},getName:function(){return h},getPlayer:function(){return g},_fireEvent:function(D,E,n){if(D=="onUpdate"){var G=g._api().fp_getPlugin(h);if(!G){return}u(k,G);delete k.methods;if(!b){p(G.methods,function(){var H=""+this;k[H]=function(){var J=[].slice.call(arguments);var I=g._api().fp_invoke(h,H,J);return I=="undefined"?k:I}});b=true}}var F=e[D];if(F){F.apply(k,E);if(D.substring(0,1)=="_"){delete e[D]}}}})};function B(n,L,F){var N=this,G=null,H,K,h=[],M={},g={},d,J,I,b,k,f;u(N,{id:function(){return d},isLoaded:function(){return(G!==null)},getParent:function(){return n},hide:function(D){if(D){n.style.height="0px"}if(G){G.style.height="0px"}return N},show:function(){n.style.height=f+"px";if(G){G.style.height=k+"px"}return N},isHidden:function(){return G&&parseInt(G.style.height,10)===0},load:function(D){if(!G&&N._fireEvent("onBeforeLoad")!==false){p(C,function(){this.unload()});H=n.innerHTML;if(H&&!flashembed.isSupported(L.version)){n.innerHTML=""}flashembed(n,L,{config:F});if(D){D.cached=true;t(g,"onLoad",D)}}return N},unload:function(){try{if(!G||G.fp_isFullscreen()){return N}}catch(D){return N}if(H.replace(/\s/g,"")!==""){if(N._fireEvent("onBeforeUnload")===false){return N}G.fp_close();G=null;n.innerHTML=H;N._fireEvent("onUnload")}return N},getClip:function(D){if(D===undefined){D=b}return h[D]},getCommonClip:function(){return K},getPlaylist:function(){return h},getPlugin:function(O){var D=M[O];if(!D&&N.isLoaded()){var E=N._api().fp_getPlugin(O);if(E){D=new q(O,E,N);M[O]=D}}return D},getScreen:function(){return N.getPlugin("screen")},getControls:function(){return N.getPlugin("controls")},getConfig:function(D){return D?s(F):F},getFlashParams:function(){return L},loadPlugin:function(P,Q,E,O){if(typeof E=="function"){O=E;E={}}var R=O?y():"_";N._api().fp_loadPlugin(P,Q,E,R);var S={};S[R]=O;var D=new q(P,null,N,S);M[P]=D;return D},getState:function(){return G?G.fp_getState():-1},play:function(E,O){function D(){if(E!==undefined){N._api().fp_play(E,O)}else{N._api().fp_play()}}if(G){D()}else{N.load(function(){D()})}return N},getVersion:function(){var D="flowplayer.js 3.1.1";if(G){var E=G.fp_getVersion();E.push(D);return E}return D},_api:function(){if(!G){throw"Flowplayer "+N.id()+" not loaded when calling an API method"}return G},setClip:function(D){N.setPlaylist([D]);return N},getIndex:function(){return I}});p(("Click*,Load*,Unload*,Keypress*,Volume*,Mute*,Unmute*,PlaylistReplace,ClipAdd,Fullscreen*,FullscreenExit,Error").split(","),function(){var E="on"+this;if(E.indexOf("*")!=-1){E=E.substring(0,E.length-1);var D="onBefore"+E.substring(2);N[D]=function(O){t(g,D,O);return N}}N[E]=function(O){t(g,E,O);return N}});p(("pause,resume,mute,unmute,stop,toggle,seek,getStatus,getVolume,setVolume,getTime,isPaused,isPlaying,startBuffering,stopBuffering,isFullscreen,toggleFullscreen,reset,close,setPlaylist,addClip").split(","),function(){var D=this;N[D]=function(O,P){if(!G){return N}var E=null;if(O!==undefined&&P!==undefined){E=G["fp_"+D](O,P)}else{E=(O===undefined)?G["fp_"+D]():G["fp_"+D](O)}return E=="undefined"?N:E}});N._fireEvent=function(E){if(typeof E=="string"){E=[E]}var D=E[0],R=E[1],T=E[2],U=E[3],V=0;if(F.debug){w(E)}if(!G&&D=="onLoad"&&R=="player"){G=G||A(J);k=G.clientHeight;p(h,function(){this._fireEvent("onLoad")});p(M,function(P,O){O._fireEvent("onUpdate")});K._fireEvent("onLoad")}if(D=="onLoad"&&R!="player"){return}if(D=="onError"){if(typeof R=="string"||(typeof R=="number"&&typeof T=="number")){R=T;T=U}}if(D=="onContextMenu"){p(F.contextMenu[R],function(P,O){O.call(N)});return}if(D=="onPluginEvent"){var Y=R.name||R;var X=M[Y];if(X){X._fireEvent("onUpdate",R);X._fireEvent(T,E.slice(3))}return}if(D=="onPlaylistReplace"){h=[];var S=0;p(R,function(){h.push(new v(this,S++,N))})}if(D=="onClipAdd"){if(R.isInStream){return}R=new v(R,T,N);h.splice(T,0,R);for(V=T+1;V<h.length;V++){h[V].index++}}var Q=true;if(typeof R=="number"&&R<h.length){b=R;var W=h[R];if(W){Q=W._fireEvent(D,T,U)}if(!W||Q!==false){Q=K._fireEvent(D,T,U,W)}}p(g[D],function(){Q=this.call(N,R,T);if(this.cached){g[D].splice(V,1)}if(Q===false){return false}V++});return Q};function e(){if($f(n)){$f(n).getParent().innerHTML="";I=$f(n).getIndex();C[I]=N}else{C.push(N);I=C.length-1}f=parseInt(n.style.height,10)||n.clientHeight;if(typeof L=="string"){L={src:L}}d=n.id||"fp"+y();J=L.id||d+"_api";L.id=J;F.playerId=d;if(typeof F=="string"){F={clip:{url:F}}}if(typeof F.clip=="string"){F.clip={url:F.clip}}F.clip=F.clip||{};if(n.getAttribute("href",2)&&!F.clip.url){F.clip.url=n.getAttribute("href",2)}K=new v(F.clip,-1,N);F.playlist=F.playlist||[F.clip];var E=0;p(F.playlist,function(){var O=this;if(typeof O=="object"&&O.length){O={url:""+O}}p(F.clip,function(Q,P){if(P!==undefined&&O[Q]===undefined&&typeof P!="function"){O[Q]=P}});F.playlist[E]=O;O=new v(O,E,N);h.push(O);E++});p(F,function(P,O){if(typeof O=="function"){t(g,P,O);delete F[P]}});p(F.plugins,function(P,O){if(O){M[P]=new q(P,O,N)}});if(!F.plugins||F.plugins.controls===undefined){M.controls=new q("controls",null,N)}M.canvas=new q("canvas",null,N);
L.bgcolor=L.bgcolor||"#000000";L.version=L.version||[9,0];L.expressInstall="http://www.flowplayer.org/swf/expressinstall.swf";function D(O){if(!N.isLoaded()&&N._fireEvent("onBeforeClick")!==false){N.load()}return x(O)}H=n.innerHTML;if(H.replace(/\s/g,"")!==""){if(n.addEventListener){n.addEventListener("click",D,false)}else{if(n.attachEvent){n.attachEvent("onclick",D)}}}else{if(n.addEventListener){n.addEventListener("click",x,false)}N.load()}}if(typeof n=="string"){flashembed.domReady(function(){var D=A(n);if(!D){throw"Flowplayer cannot access element: "+n}else{n=D;e()}})}else{e()}}var C=[];function z(b){this.length=b.length;this.each=function(d){p(b,d)};this.size=function(){return b.length}}window.flowplayer=window.$f=function(){var g=null;var h=arguments[0];if(!arguments.length){p(C,function(){if(this.isLoaded()){g=this;return false}});return g||C[0]}if(arguments.length==1){if(typeof h=="number"){return C[h]}else{if(h=="*"){return new z(C)}p(C,function(){if(this.id()==h.id||this.id()==h||this.getParent()==h){g=this;return false}});return g}}if(arguments.length>1){var e=arguments[1];var f=(arguments.length==3)?arguments[2]:{};if(typeof h=="string"){if(h.indexOf(".")!=-1){var b=[];p(o(h),function(){b.push(new B(this,s(e),s(f)))});return new z(b)}else{var d=A(h);return new B(d!==null?d:h,e,f)}}else{if(h){return new B(h,e,f)}}}return null};u(window.$f,{fireEvent:function(){var d=[].slice.call(arguments);var b=$f(d[0]);return b?b._fireEvent(d.slice(1)):null},addPlugin:function(d,b){B.prototype[d]=b;return $f},each:p,extend:u});if(typeof jQuery=="function"){jQuery.prototype.flowplayer=function(b,d){if(!arguments.length||typeof arguments[0]=="number"){var e=[];this.each(function(){var f=$f(this);if(f){e.push(f)}});return arguments.length?e[arguments[0]]:new z(e)}return this.each(function(){$f(this,s(b),d?s(d):{})})}}})();(function(){var q=typeof jQuery=="function";function k(){if(t.done){return false}var b=document;if(b&&b.getElementsByTagName&&b.getElementById&&b.body){clearInterval(t.timer);t.timer=null;for(var d=0;d<t.ready.length;d++){t.ready[d].call()}t.ready=null;t.done=true}}var t=q?jQuery:function(b){if(t.done){return b()}if(t.timer){t.ready.push(b)}else{t.ready=[b];t.timer=setInterval(k,13)}};function p(b,d){if(d){for(key in d){if(d.hasOwnProperty(key)){b[key]=d[key]}}}return b}function o(e){switch(n(e)){case"string":e=e.replace(new RegExp('(["\\\\])',"g"),"\\$1");e=e.replace(/^\s?(\d+)%/,"$1pct");return'"'+e+'"';case"array":return"["+u(e,function(f){return o(f)}).join(",")+"]";case"function":return'"function()"';case"object":var d=[];for(var b in e){if(e.hasOwnProperty(b)){d.push('"'+b+'":'+o(e[b]))}}return"{"+d.join(",")+"}"}return String(e).replace(/\s/g," ").replace(/\'/g,'"')}function n(b){if(b===null||b===undefined){return false}var d=typeof b;return(d=="object"&&b.push)?"array":d}if(window.attachEvent){window.attachEvent("onbeforeunload",function(){__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){}})}function u(f,b){var d=[];for(var e in f){if(f.hasOwnProperty(e)){d[e]=b(f[e])}}return d}function v(h,f){var w=p({},h);var g=document.all;var b='<object width="'+w.width+'" height="'+w.height+'"';if(g&&!w.id){w.id="_"+(""+Math.random()).substring(9)}if(w.id){b+=' id="'+w.id+'"'}w.src+=((w.src.indexOf("?")!=-1?"&":"?")+Math.random());if(w.w3c||!g){b+=' data="'+w.src+'" type="application/x-shockwave-flash"'}else{b+=' classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'}b+=">";if(w.w3c||g){b+='<param name="movie" value="'+w.src+'" />'}w.width=w.height=w.id=w.w3c=w.src=null;for(var e in w){if(w[e]!==null){b+='<param name="'+e+'" value="'+w[e]+'" />'}}var x="";if(f){for(var d in f){if(f[d]!==null){x+=d+"="+(typeof f[d]=="object"?o(f[d]):f[d])+"&"}}x=x.substring(0,x.length-1);b+='<param name="flashvars" value=\''+x+"' />"}b+="</object>";return b}function s(d,w,e){var f=flashembed.getVersion();p(this,{getContainer:function(){return d},getConf:function(){return w},getVersion:function(){return f},getFlashvars:function(){return e},getApi:function(){return d.firstChild},getHTML:function(){return v(w,e)}});var h=w.version;var g=w.expressInstall;var x=!h||flashembed.isSupported(h);if(x){w.onFail=w.version=w.expressInstall=null;d.innerHTML=v(w,e)}else{if(h&&g&&flashembed.isSupported([6,65])){p(w,{src:g});e={MMredirectURL:location.href,MMplayerType:"PlugIn",MMdoctitle:document.title};d.innerHTML=v(w,e)}else{if(d.innerHTML.replace(/\s/g,"")!==""){}else{d.innerHTML="<h2>Flash version "+h+" or greater is required</h2><h3>"+(f[0]>0?"Your version is "+f:"You have no flash plugin installed")+"</h3>"+(d.tagName=="A"?"<p>Click here to download latest version</p>":"<p>Download latest version from <a href='http://www.adobe.com/go/getflashplayer'>here</a></p>");if(d.tagName=="A"){d.onclick=function(){location.href="http://www.adobe.com/go/getflashplayer"}}}}}if(!x&&w.onFail){var b=w.onFail.call(this);if(typeof b=="string"){d.innerHTML=b}}if(document.all){window[w.id]=document.getElementById(w.id)}}window.flashembed=function(e,d,f){if(typeof e=="string"){var b=document.getElementById(e);if(b){e=b}else{t(function(){flashembed(e,d,f)});return}}if(!e){return}var g={width:"100%",height:"100%",allowfullscreen:true,allowscriptaccess:"always",quality:"high",version:null,onFail:null,expressInstall:null,w3c:false};if(typeof d=="string"){d={src:d}}p(g,d);return new s(e,g,f)};p(window.flashembed,{getVersion:function(){var d=[0,0];if(navigator.plugins&&typeof navigator.plugins["Shockwave Flash"]=="object"){var e=navigator.plugins["Shockwave Flash"].description;if(typeof e!="undefined"){e=e.replace(/^.*\s+(\S+\s+\S+$)/,"$1");var b=parseInt(e.replace(/^(.*)\..*$/,"$1"),10);var g=/r/.test(e)?parseInt(e.replace(/^.*r(.*)$/,"$1"),10):0;d=[b,g]}}else{if(window.ActiveXObject){try{var w=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7")}catch(h){try{w=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");d=[6,0];w.AllowScriptAccess="always"}catch(f){if(d[0]==6){return}}try{w=new ActiveXObject("ShockwaveFlash.ShockwaveFlash")}catch(x){}}if(typeof w=="object"){e=w.GetVariable("$version");if(typeof e!="undefined"){e=e.replace(/^\S+\s+(.*)$/,"$1").split(",");d=[parseInt(e[0],10),parseInt(e[2],10)]}}}}return d},isSupported:function(e){var b=flashembed.getVersion();var d=(b[0]>e[0])||(b[0]==e[0]&&b[1]>=e[1]);return d},domReady:t,asString:o,getHTML:v});if(q){jQuery.tools=jQuery.tools||{version:{}};jQuery.tools.version.flashembed="1.0.2";jQuery.fn.flashembed=function(d,e){var b=null;this.each(function(){b=flashembed(this,d,e)});return d.api===false?this:b}}})();function kkshow(d){var b=document.getElementById(d);b.style.display="inline"}function kkhide(d){var b=document.getElementById(d);b.style.display="none"}function showHide(d){var b=document.getElementById(d).style;if(b.display=="none"){b.display="inline"}else{b.display="none"}}function loadDyn(fileName,myId){kkshow("ajaxloader");document.getElementById("body").style.cursor="wait";var req=null;try{req=new XMLHttpRequest()}catch(ms){try{req=new ActiveXObject("Msxml2.XMLHTTP")}catch(nonms){try{req=new ActiveXObject("Microsoft.XMLHTTP")}catch(failed){req=null}}}var paramPrefix=new String();if(fileName.indexOf("?")!=-1){paramPrefix="&"}else{paramPrefix="?"}if(req!=null){req.open("GET",fileName+paramPrefix+"dynReq=true",true);req.onreadystatechange=function(){switch(req.readyState){case 4:if(req.status==200){if(document.getElementById(myId)!=null){document.getElementById(myId).innerHTML=req.responseText;var scripts=document.getElementById(myId).getElementsByTagName("script");for(var ix=0;ix<scripts.length;ix++){eval(scripts[ix].text)}}}break;default:return false;break}return false};req.setRequestHeader("Content-Type","application/x-www-form-urlencoded");req.send(null)}}function loadDynSilent(fileName,myId){var req=null;try{req=new XMLHttpRequest()}catch(ms){try{req=new ActiveXObject("Msxml2.XMLHTTP")}catch(nonms){try{req=new ActiveXObject("Microsoft.XMLHTTP")}catch(failed){req=null}}}var paramPrefix=new String();if(fileName.indexOf("?")!=-1){paramPrefix="&"
}else{paramPrefix="?"}if(req!=null){req.open("GET",fileName+paramPrefix+"dynReq=true",true);req.onreadystatechange=function(){switch(req.readyState){case 4:if(req.status==200){if(document.getElementById(myId)!=null){document.getElementById(myId).innerHTML=req.responseText;var scripts=document.getElementById(myId).getElementsByTagName("script");for(var ix=0;ix<scripts.length;ix++){eval(scripts[ix].text)}}}break;default:return false;break}return false};req.setRequestHeader("Content-Type","application/x-www-form-urlencoded");req.send(null)}}function startAudition(){var b="kindoftest="+encodeURI(document.getElementById("kindoftest").value)+"&groupKey="+encodeURI(document.getElementById("groupKey").value)+"&categories="+encodeURI(document.getElementById("categories").value)+"&createNewTest="+encodeURI(document.getElementById("createNewTest").value)+"&keyword="+encodeURI(document.getElementById("keyword").value)+"&special="+document.auditionStartForm.special.checked+"&vocabularyMode="+document.auditionStartForm.vocabularyMode.checked;makePOSTRequest(myHost+"audition.php",b,"center")}function getAuditionFormResults(d){var b="ehqAnswer="+encodeURI(document.getElementById("ehqAnswer").value)+"&questionKey="+encodeURI(document.getElementById("questionKey").value)+"&kindoftest="+encodeURI(document.getElementById("kindoftest").value)+"&groupKey="+encodeURI(document.getElementById("groupKey").value)+"&todo="+encodeURI(document.getElementById("todo").value)+"&categories="+encodeURI(document.getElementById("categories").value)+"&keyword="+encodeURI(document.getElementById("keyword").value)+"&alternateMode="+encodeURI(document.getElementById("alternateMode").value)+"&special="+encodeURI(document.getElementById("special").value)+"&vocabularyMode="+encodeURI(document.getElementById("vocabularyMode").value)+"&endAudition="+document.auditionForm.endAudition.checked;makePOSTRequest(myHost+"audition.php",b,"center")}function getRateFormResults(d){var b="oldQuestionKey="+encodeURI(document.getElementById("oldQuestionKey").value)+"&kindoftest="+encodeURI(document.getElementById("kindoftest").value)+"&ehqAnswer="+encodeURI(document.getElementById("ehqAnswer").value)+"&passed="+encodeURI(document.getElementById("passed").value)+"&endAudition="+document.grading.endAudition.checked+"&groupKey="+encodeURI(document.getElementById("groupKey").value)+"&categories="+encodeURI(document.getElementById("categories").value)+"&keyword="+encodeURI(document.getElementById("keyword").value)+"&annotation="+encodeURIComponent(document.getElementById("annotation").value)+"&alternateMode="+encodeURI(document.getElementById("alternateMode").value)+"&special="+document.grading.special.checked+"&vocabularyMode="+document.grading.vocabularyMode.checked;makePOSTRequest(myHost+"audition.php",b,"center")}function getCreateGroupFormResults(d){tinyMCE.activeEditor.save();var b="groupName="+encodeURI(document.getElementById("groupName").value)+"&tags="+encodeURI(document.getElementById("tags").value)+"&groupDescription="+encodeURIComponent(document.getElementsByName("groupDescription")[0].value)+"&uniField="+encodeURI(document.getElementById("uniField").value)+"&studiesField="+encodeURI(document.getElementById("studiesField").value)+"&semester="+encodeURI(document.getElementById("semester").value)+"&professor="+encodeURI(document.getElementById("professor").value)+"&testation="+encodeURI(document.getElementById("testation").value)+"&viewOption="+encodeURI(document.getElementById("viewOption").value)+"&inviteOption="+encodeURI(document.getElementById("inviteOption").value)+"&applyOption="+encodeURI(document.getElementById("applyOption").value)+"&editOption="+encodeURI(document.getElementById("editOption").value)+"&addOption="+encodeURI(document.getElementById("addOption").value)+"&classKey="+encodeURI(document.getElementById("classKey").value)+"&do="+encodeURI(document.getElementById("do").value);makePOSTRequest(myHost+"groups.php",b,"center")}function getChatFormResults(d){var b="chatMessage="+encodeURI(document.getElementById("chatMessage").value)+"&noscript="+encodeURI("1");makePOSTRequest(myHost+"chat_input.php",b,"chat_input")}function implode(d,b){var e="";var f=false;for(i=0;i<b.length;i++){if(f){e+=","}e+=b[i];f=true}return e}function setCategories(){var b=new Array();var d=new Array();b.push(document.getElementById("categorySelection").firstChild.id);for(var e=0;e<((document.getElementById("categorySelection").childNodes.length)-2);e++){b.push(document.getElementById(b[e]).nextSibling.id)}for(var e=0;e<(b.length);e++){if(document.getElementById(b[e]).firstChild.checked){d.push(b[e])}}document.getElementById("categories").value=implode(",",d)}function switchCheckBox(e,d,b){if(document.getElementById(e).value==d){document.getElementById(e).value=b}else{document.getElementById(e).value=d}}var http_request=false;function makePOSTRequest(url,parameters,myId){kkshow("ajaxloader");document.body.style.cursor="wait";http_request=false;if(window.XMLHttpRequest){http_request=new XMLHttpRequest();if(http_request.overrideMimeType){http_request.overrideMimeType("text/html")}}else{if(window.ActiveXObject){try{http_request=new ActiveXObject("Msxml2.XMLHTTP")}catch(e){try{http_request=new ActiveXObject("Microsoft.XMLHTTP")}catch(e){}}}}if(!http_request){alert("Cannot create XMLHTTP instance");return false}parameters=parameters+"&dynReq=true";http_request.open("POST",url,true);http_request.onreadystatechange=function(){switch(http_request.readyState){case 4:if(http_request.status==200){if(document.getElementById(myId)!=null){document.getElementById(myId).innerHTML=http_request.responseText;var scripts=document.getElementById(myId).getElementsByTagName("script");for(var ix=0;ix<scripts.length;ix++){eval(scripts[ix].text)}}}break;default:return false;break}return false};http_request.setRequestHeader("Content-Type","application/x-www-form-urlencoded");http_request.setRequestHeader("Content-length",parameters.length);http_request.setRequestHeader("Connection","close");http_request.send(parameters);return false}function spring(){setTimeout("document.getElementById('ehqAnswer').focus();",50);setTimeout("document.getElementById('ehqAnswer').focus();",50)}function CheckAll(){for(var b=0;b<document.auditionStartForm.elements.length;b++){var d=document.auditionStartForm.elements[b];if((d.name!="special")&&(d.name!="vocabularyMode")&&(d.type=="checkbox")){d.checked=true}}}function UnCheckAll(){for(var b=0;b<document.auditionStartForm.elements.length;b++){var d=document.auditionStartForm.elements[b];if((d.name!="special")&&(d.name!="vocabularyMode")&&(d.type=="checkbox")){d.checked=false}}}function popup(){document.getElementById("overlay").style.display="block";document.getElementById("popup").style.display="block"}function popclose(){document.getElementById("overlay").style.display="none";document.getElementById("popup").style.display="none"};