Sie sind auf Seite 1von 50

/*

* jQuery JavaScript Library v1.3.2


* http://jquery.com/
*
* Copyright (c) 2009 John Resig
* Dual licensed under the MIT and GPL licenses.
* http://docs.jquery.com/License
*
* Date: 2009-02-19 17:34:21 -0500 (Thu, 19 Feb 2009)
* Revision: 6246
*/
(function(){var l=this,g,z=l.jQuery,p=l.$,o=l.jQuery=l.$=function(F,G){return
new o.fn.init(F,G)},E=/^[^<]*(<(.|\s)+>)[^>]*$|^#([\w-]+)$/,f=/^.[^:#\
[\.,]*$/;o.fn=o.prototype={init:function(F,I){F=F||document;if(F.nodeType)
{this[0]=F;this.length=1;this.context=F;return this}if(typeof F==="string"){var
H=E.exec(F);if(H&&(H[1]||!I)){if(H[1]){F=o.clean([H[1]],I)}else{var
J=document.getElementById(H[3]);if(J&&J.id!=H[3]){return o().find(F)}var
G=o(J||[]);G.context=document;G.selector=F;return G}}else{return
o(I).find(F)}}else{if(o.isFunction(F)){return
o(document).ready(F)}}if(F.selector&&F.context)
{this.selector=F.selector;this.context=F.context}return
this.setArray(o.isArray(F)?
F:o.makeArray(F))},selector:"",jquery:"1.3.2",size:function(){return
this.length},get:function(F){return F===g?
Array.prototype.slice.call(this):this[F]},pushStack:function(G,I,F){var
H=o(G);H.prevObject=this;H.context=this.context;if(I==="find")
{H.selector=this.selector+(this.selector?" ":"")+F}else{if(I)
{H.selector=this.selector+"."+I+"("+F+")"}}return H},setArray:function(F)
{this.length=0;Array.prototype.push.apply(this,F);return
this},each:function(G,F){return o.each(this,G,F)},index:function(F){return
o.inArray(F&&F.jquery?F[0]:F,this)},attr:function(G,I,H){var F=G;if(typeof
G==="string"){if(I===g){return this[0]&&o[H||"attr"]
(this[0],G)}else{F={};F[G]=I}}return this.each(function(J){for(G in F)
{o.attr(H?this.style:this,G,o.prop(this,F[G],H,J,G))}})},css:function(F,G)
{if((F=="width"||F=="height")&&parseFloat(G)<0){G=g}return
this.attr(F,G,"curCSS")},text:function(G){if(typeof G!=="object"&&G!=null)
{return this.empty().append((this[0]&&this[0].ownerDocument||
document).createTextNode(G))}var F="";o.each(G||this,function()
{o.each(this.childNodes,function(){if(this.nodeType!=8){F+=this.nodeType!
=1?this.nodeValue:o.fn.text([this])}})});return F},wrapAll:function(F){if(this[0])
{var G=o(F,this[0].ownerDocument).clone();if(this[0].parentNode)
{G.insertBefore(this[0])}G.map(function(){var H=this;while(H.firstChild)
{H=H.firstChild}return H}).append(this)}return this},wrapInner:function(F)
{return this.each(function(){o(this).contents().wrapAll(F)})},wrap:function(F)
{return this.each(function(){o(this).wrapAll(F)})},append:function(){return
this.domManip(arguments,true,function(F){if(this.nodeType==1)
{this.appendChild(F)}})},prepend:function(){return
this.domManip(arguments,true,function(F){if(this.nodeType==1)
{this.insertBefore(F,this.firstChild)}})},before:function(){return
this.domManip(arguments,false,function(F)
{this.parentNode.insertBefore(F,this)})},after:function(){return
this.domManip(arguments,false,function(F)
{this.parentNode.insertBefore(F,this.nextSibling)})},end:function(){return
this.prevObject||o([])},push:[].push,sort:[].sort,splice:[].splice,find:function(F)
{if(this.length===1){var
G=this.pushStack([],"find",F);G.length=0;o.find(F,this[0],G);return
G}else{return this.pushStack(o.unique(o.map(this,function(H){return
o.find(F,H)})),"find",F)}},clone:function(H){var F=this.map(function(){if(!
o.support.noCloneEvent&&!o.isXMLDoc(this)){var J=this.outerHTML;if(!J)
{var
K=this.ownerDocument.createElement("div");K.appendChild(this.cloneNod
e(true));J=K.innerHTML}return o.clean([J.replace(/ jQuery\d+="(?:\d+|
null)"/g,"").replace(/^\s*/,"")])[0]}else{return
this.cloneNode(true)}});if(H===true){var
I=this.find("*").andSelf(),G=0;F.find("*").andSelf().each(function()
{if(this.nodeName!==I[G].nodeName){return}var
J=o.data(I[G],"events");for(var L in J){for(var K in J[L])
{o.event.add(this,L,J[L][K],J[L][K].data)}}G++})}return F},filter:function(F)
{return this.pushStack(o.isFunction(F)&&o.grep(this,function(H,G){return
F.call(H,G)})||o.multiFilter(F,o.grep(this,function(G){return
G.nodeType===1})),"filter",F)},closest:function(F){var
H=o.expr.match.POS.test(F)?o(F):null,G=0;return this.map(function(){var
I=this;while(I&&I.ownerDocument){if(H?H.index(I)>-1:o(I).is(F))
{o.data(I,"closest",G);return I}I=I.parentNode;G++}})},not:function(F)
{if(typeof F==="string"){if(f.test(F)){return
this.pushStack(o.multiFilter(F,this,true),"not",F)}else{F=o.multiFilter(F,this)}}
var G=F.length&&F[F.length-1]!==g&&!F.nodeType;return
this.filter(function(){return G?o.inArray(this,F)<0:this!=F})},add:function(F)
{return this.pushStack(o.unique(o.merge(this.get(),typeof F==="string"?
o(F):o.makeArray(F))))},is:function(F){return !!
F&&o.multiFilter(F,this).length>0},hasClass:function(F){return !!
F&&this.is("."+F)},val:function(L){if(L===g){var F=this[0];if(F)
{if(o.nodeName(F,"option")){return(F.attributes.value||{}).specified?
F.value:F.text}if(o.nodeName(F,"select")){var
J=F.selectedIndex,M=[],N=F.options,I=F.type=="select-one";if(J<0){return
null}for(var G=I?J:0,K=I?J+1:N.length;G<K;G++){var H=N[G];if(H.selected)
{L=o(H).val();if(I){return L}M.push(L)}}return
M}return(F.value||"").replace(/\r/g,"")}return g}if(typeof L==="number")
{L+=""}return this.each(function(){if(this.nodeType!=1)
{return}if(o.isArray(L)&&/radio|checkbox/.test(this.type))
{this.checked=(o.inArray(this.value,L)>=0||
o.inArray(this.name,L)>=0)}else{if(o.nodeName(this,"select")){var
O=o.makeArray(L);o("option",this).each(function()
{this.selected=(o.inArray(this.value,O)>=0||o.inArray(this.text,O)>=0)});if(!
O.length){this.selectedIndex=-1}}else{this.value=L}}})},html:function(F)
{return F===g?(this[0]?this[0].innerHTML.replace(/ jQuery\d+="(?:\d+|
null)"/g,""):null):this.empty().append(F)},replaceWith:function(F){return
this.after(F).remove()},eq:function(F){return this.slice(F,
+F+1)},slice:function(){return
this.pushStack(Array.prototype.slice.apply(this,arguments),"slice",Array.prot
otype.slice.call(arguments).join(","))},map:function(F){return
this.pushStack(o.map(this,function(H,G){return
F.call(H,G,H)}))},andSelf:function(){return
this.add(this.prevObject)},domManip:function(K,N,M){if(this[0]){var
J=(this[0].ownerDocument||
this[0]).createDocumentFragment(),G=o.clean(K,(this[0].ownerDocument||
this[0]),J),I=J.firstChild;if(I){for(var H=0,F=this.length;H<F;H++)
{M.call(L(this[H],I),this.length>1||H>0?J.cloneNode(true):J)}}if(G)
{o.each(G,A)}}return this;function L(O,P){return
N&&o.nodeName(O,"table")&&o.nodeName(P,"tr")?
(O.getElementsByTagName("tbody")[0]||
O.appendChild(O.ownerDocument.createElement("tbody"))):O}}};o.fn.init.pr
ototype=o.fn;function A(F,G){if(G.src)
{o.ajax({url:G.src,async:false,dataType:"script"})}else{o.globalEval(G.text||
G.textContent||G.innerHTML||"")}if(G.parentNode)
{G.parentNode.removeChild(G)}}function e(){return +new
Date}o.extend=o.fn.extend=function(){var K=arguments[0]||
{},I=1,J=arguments.length,F=false,H;if(typeof K==="boolean")
{F=K;K=arguments[1]||{};I=2}if(typeof K!=="object"&&!o.isFunction(K))
{K={}}if(J==I){K=this;--I}for(;I<J;I++){if((H=arguments[I])!=null){for(var G in
H){var L=K[G],M=H[G];if(K===M){continue}if(F&&M&&typeof
M==="object"&&!M.nodeType){K[G]=o.extend(F,L||(M.length!=null?[]:
{}),M)}else{if(M!==g){K[G]=M}}}}}return K};var b=/z-?index|font-?weight|
opacity|zoom|line-?height/i,q=document.defaultView||
{},s=Object.prototype.toString;o.extend({noConflict:function(F){l.$=p;if(F)
{l.jQuery=z}return o},isFunction:function(F){return s.call(F)==="[object
Function]"},isArray:function(F){return s.call(F)==="[object
Array]"},isXMLDoc:function(F){return
F.nodeType===9&&F.documentElement.nodeName!=="HTML"||!!
F.ownerDocument&&o.isXMLDoc(F.ownerDocument)},globalEval:function(
H){if(H&&/\S/.test(H)){var G=document.getElementsByTagName("head")
[0]||
document.documentElement,F=document.createElement("script");F.type="t
ext/javascript";if(o.support.scriptEval)
{F.appendChild(document.createTextNode(H))}else{F.text=H}G.insertBefore
(F,G.firstChild);G.removeChild(F)}},nodeName:function(G,F){return
G.nodeName&&G.nodeName.toUpperCase()==F.toUpperCase()},each:fun
ction(H,L,G){var F,I=0,J=H.length;if(G){if(J===g){for(F in H)
{if(L.apply(H[F],G)===false){break}}}else{for(;I<J;){if(L.apply(H[I+
+],G)===false){break}}}}else{if(J===g){for(F in H)
{if(L.call(H[F],F,H[F])===false){break}}}else{for(var
K=H[0];I<J&&L.call(K,I,K)!==false;K=H[++I]){}}}return
H},prop:function(I,J,H,G,F){if(o.isFunction(J)){J=J.call(I,G)}return typeof
J==="number"&&H=="curCSS"&&!b.test(F)?J+"px":J},className:
{add:function(F,G){o.each((G||"").split(/\s+/),function(H,I)
{if(F.nodeType==1&&!o.className.has(F.className,I))
{F.className+=(F.className?" ":"")+I}})},remove:function(F,G)
{if(F.nodeType==1){F.className=G!==g?
o.grep(F.className.split(/\s+/),function(H){return !
o.className.has(G,H)}).join(" "):""}},has:function(G,F){return
G&&o.inArray(F,(G.className||G).toString().split(/\s+/))>-
1}},swap:function(I,H,J){var F={};for(var G in H)
{F[G]=I.style[G];I.style[G]=H[G]}J.call(I);for(var G in H)
{I.style[G]=F[G]}},css:function(I,G,K,F){if(G=="width"||G=="height"){var
M,H={position:"absolute",visibility:"hidden",display:"block"},L=G=="width"?
["Left","Right"]:["Top","Bottom"];function J(){M=G=="width"?
I.offsetWidth:I.offsetHeight;if(F==="border"){return}o.each(L,function(){if(!F)
{M-=parseFloat(o.curCSS(I,"padding"+this,true))||0}if(F==="margin")
{M+=parseFloat(o.curCSS(I,"margin"+this,true))||0}else{M-
=parseFloat(o.curCSS(I,"border"+this+"Width",true))||0}})}if(I.offsetWidth!
==0){J()}else{o.swap(I,H,J)}return Math.max(0,Math.round(M))}return
o.curCSS(I,G,K)},curCSS:function(J,G,H){var
M,F=J.style;if(G=="opacity"&&!o.support.opacity)
{M=o.attr(F,"opacity");return M==""?"1":M}if(G.match(/float/i)){G=w}if(!
H&&F&&F[G]){M=F[G]}else{if(q.getComputedStyle){if(G.match(/float/i))
{G="float"}G=G.replace(/([A-Z])/g,"-$1").toLowerCase();var
N=q.getComputedStyle(J,null);if(N)
{M=N.getPropertyValue(G)}if(G=="opacity"&&M=="")
{M="1"}}else{if(J.currentStyle){var K=G.replace(/\-(\w)/g,function(O,P)
{return P.toUpperCase()});M=J.currentStyle[G]||J.currentStyle[K];if(!/^\d+
(px)?$/i.test(M)&&/^\d/.test(M)){var
I=F.left,L=J.runtimeStyle.left;J.runtimeStyle.left=J.currentStyle.left;F.left=M||
0;M=F.pixelLeft+"px";F.left=I;J.runtimeStyle.left=L}}}}return
M},clean:function(G,L,J){L=L||document;if(typeof
L.createElement==="undefined"){L=L.ownerDocument||
L[0]&&L[0].ownerDocument||document}if(!J&&G.length===1&&typeof
G[0]==="string"){var I=/^<(\w+)\s*\/?>$/.exec(G[0]);if(I)
{return[L.createElement(I[1])]}}var
H=[],F=[],M=L.createElement("div");o.each(G,function(Q,T){if(typeof
T==="number"){T+=""}if(!T){return}if(typeof
T==="string"){T=T.replace(/(<(\w+)[^>]*?)\/>/g,function(V,W,U){return
U.match(/^(abbr|br|col|img|input|link|meta|param|hr|area|embed)$/i)?
V:W+"></"+U+">"});var
P=T.replace(/^\s+/,"").substring(0,10).toLowerCase();var R=!
P.indexOf("<opt")&&[1,"<select multiple='multiple'>","</select>"]||!
P.indexOf("<leg")&&[1,"<fieldset>","</fieldset>"]||P.match(/^<(thead|tbody|
tfoot|colg|cap)/)&&[1,"<table>","</table>"]||!
P.indexOf("<tr")&&[2,"<table><tbody>","</tbody></table>"]||(!
P.indexOf("<td")||!
P.indexOf("<th"))&&[3,"<table><tbody><tr>","</tr></tbody></table>"]||!
P.indexOf("<col")&&[2,"<table><tbody></tbody><colgroup>","</colgroup></
table>"]||!o.support.htmlSerialize&&[1,"div<div>","</div>"]||
[0,"",""];M.innerHTML=R[1]+T+R[2];while(R[0]--){M=M.lastChild}if(!
o.support.tbody){var S=/<tbody/i.test(T),O=!P.indexOf("<table")&&!S?
M.firstChild&&M.firstChild.childNodes:R[1]=="<table>"&&!S?M.childNodes:
[];for(var N=O.length-1;N>=0;--N){if(o.nodeName(O[N],"tbody")&&!
O[N].childNodes.length){O[N].parentNode.removeChild(O[N])}}}if(!
o.support.leadingWhitespace&&/^\s/.test(T))
{M.insertBefore(L.createTextNode(T.match(/^\s*/)
[0]),M.firstChild)}T=o.makeArray(M.childNodes)}if(T.nodeType)
{H.push(T)}else{H=o.merge(H,T)}});if(J){for(var K=0;H[K];K++)
{if(o.nodeName(H[K],"script")&&(!H[K].type||
H[K].type.toLowerCase()==="text/javascript")){F.push(H[K].parentNode?
H[K].parentNode.removeChild(H[K]):H[K])}else{if(H[K].nodeType===1)
{H.splice.apply(H,
[K+1,0].concat(o.makeArray(H[K].getElementsByTagName("script"))))}J.ap
pendChild(H[K])}}return F}return H},attr:function(K,H,L){if(!K||
K.nodeType==3||K.nodeType==8){return g}var I=!o.isXMLDoc(K),M=L!
==g;H=I&&o.props[H]||H;if(K.tagName){var G=/href|src|
style/.test(H);if(H=="selected"&&K.parentNode)
{K.parentNode.selectedIndex}if(H in K&&I&&!G){if(M)
{if(H=="type"&&o.nodeName(K,"input")&&K.parentNode){throw"type
property can't be
changed"}K[H]=L}if(o.nodeName(K,"form")&&K.getAttributeNode(H)){return
K.getAttributeNode(H).nodeValue}if(H=="tabIndex"){var
J=K.getAttributeNode("tabIndex");return J&&J.specified?
J.value:K.nodeName.match(/(button|input|object|select|textarea)/i)?
0:K.nodeName.match(/^(a|area)$/i)&&K.href?0:g}return K[H]}if(!
o.support.style&&I&&H=="style"){return o.attr(K.style,"cssText",L)}if(M)
{K.setAttribute(H,""+L)}var F=!o.support.hrefNormalized&&I&&G?
K.getAttribute(H,2):K.getAttribute(H);return F===null?g:F}if(!
o.support.opacity&&H=="opacity"){if(M)
{K.zoom=1;K.filter=(K.filter||"").replace(/alpha\([^)]*\)/,"")+(parseInt(L)
+""=="NaN"?"":"alpha(opacity="+L*100+")")}return
K.filter&&K.filter.indexOf("opacity=")>=0?
(parseFloat(K.filter.match(/opacity=([^)]*)/)[1])/100)+"":""}H=H.replace(/-([a-
z])/ig,function(N,O){return O.toUpperCase()});if(M){K[H]=L}return
K[H]},trim:function(F){return(F||"").replace(/^\s+|\s+
$/g,"")},makeArray:function(H){var F=[];if(H!=null){var
G=H.length;if(G==null||typeof H==="string"||o.isFunction(H)||H.setInterval)
{F[0]=H}else{while(G){F[--G]=H[G]}}}return F},inArray:function(H,I){for(var
F=0,G=I.length;F<G;F++){if(I[F]===H){return F}}return
-1},merge:function(I,F){var G=0,H,J=I.length;if(!o.support.getAll)
{while((H=F[G++])!=null){if(H.nodeType!=8){I[J++]=H}}}else{while((H=F[G+
+])!=null){I[J++]=H}}return I},unique:function(L){var G=[],F={};try{for(var
H=0,I=L.length;H<I;H++){var K=o.data(L[H]);if(!F[K])
{F[K]=true;G.push(L[H])}}}catch(J){G=L}return G},grep:function(G,K,F){var
H=[];for(var I=0,J=G.length;I<J;I++){if(!F!=!K(G[I],I)){H.push(G[I])}}return
H},map:function(F,K){var G=[];for(var H=0,I=F.length;H<I;H++){var
J=K(F[H],H);if(J!=null){G[G.length]=J}}return G.concat.apply([],G)}});var
D=navigator.userAgent.toLowerCase();o.browser={version:(D.match(/.+
(?:rv|it|ra|ie)[\/: ]([\d.]+)/)||[0,"0"])
[1],safari:/webkit/.test(D),opera:/opera/.test(D),msie:/msie/.test(D)&&!/opera
/.test(D),mozilla:/mozilla/.test(D)&&!/(compatible|
webkit)/.test(D)};o.each({parent:function(F){return
F.parentNode},parents:function(F){return
o.dir(F,"parentNode")},next:function(F){return
o.nth(F,2,"nextSibling")},prev:function(F){return
o.nth(F,2,"previousSibling")},nextAll:function(F){return
o.dir(F,"nextSibling")},prevAll:function(F){return
o.dir(F,"previousSibling")},siblings:function(F){return
o.sibling(F.parentNode.firstChild,F)},children:function(F){return
o.sibling(F.firstChild)},contents:function(F){return o.nodeName(F,"iframe")?
F.contentDocument||
F.contentWindow.document:o.makeArray(F.childNodes)}},function(F,G)
{o.fn[F]=function(H){var I=o.map(this,G);if(H&&typeof H=="string")
{I=o.multiFilter(H,I)}return
this.pushStack(o.unique(I),F,H)}});o.each({appendTo:"append",prependTo:"
prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},f
unction(F,G){o.fn[F]=function(H){var K=[],M=o(H);for(var
L=0,I=M.length;L<I;L++){var J=(L>0?
this.clone(true):this).get();o.fn[G].apply(o(M[L]),J);K=K.concat(J)}return
this.pushStack(K,F,H)}});o.each({removeAttr:function(F)
{o.attr(this,F,"");if(this.nodeType==1)
{this.removeAttribute(F)}},addClass:function(F)
{o.className.add(this,F)},removeClass:function(F)
{o.className.remove(this,F)},toggleClass:function(G,F){if(typeof F!
=="boolean"){F=!o.className.has(this,G)}o.className[F?"add":"remove"]
(this,G)},remove:function(F){if(!F||o.filter(F,[this]).length)
{o("*",this).add([this]).each(function()
{o.event.remove(this);o.removeData(this)});if(this.parentNode)
{this.parentNode.removeChild(this)}}},empty:function()
{o(this).children().remove();while(this.firstChild)
{this.removeChild(this.firstChild)}}},function(F,G){o.fn[F]=function(){return
this.each(G,arguments)}});function j(F,G){return
F[0]&&parseInt(o.curCSS(F[0],G,true),10)||0}var
h="jQuery"+e(),v=0,B={};o.extend({cache:{},data:function(G,F,H){G=G==l?
B:G;var I=G[h];if(!I){I=G[h]=++v}if(F&&!o.cache[I]){o.cache[I]={}}if(H!==g)
{o.cache[I][F]=H}return F?o.cache[I][F]:I},removeData:function(G,F)
{G=G==l?B:G;var I=G[h];if(F){if(o.cache[I]){delete o.cache[I][F];F="";for(F in
o.cache[I]){break}if(!F){o.removeData(G)}}}else{try{delete G[h]}catch(H)
{if(G.removeAttribute){G.removeAttribute(h)}}delete
o.cache[I]}},queue:function(G,F,I){if(G){F=(F||"fx")+"queue";var
H=o.data(G,F);if(!H||o.isArray(I)){H=o.data(G,F,o.makeArray(I))}else{if(I)
{H.push(I)}}}return H},dequeue:function(I,H){var
F=o.queue(I,H),G=F.shift();if(!H||H==="fx"){G=F[0]}if(G!==g)
{G.call(I)}}});o.fn.extend({data:function(F,H){var
I=F.split(".");I[1]=I[1]?"."+I[1]:"";if(H===g){var
G=this.triggerHandler("getData"+I[1]+"!",[I[0]]);if(G===g&&this.length)
{G=o.data(this[0],F)}return G===g&&I[1]?this.data(I[0]):G}else{return
this.trigger("setData"+I[1]+"!",[I[0],H]).each(function()
{o.data(this,F,H)})}},removeData:function(F){return this.each(function()
{o.removeData(this,F)})},queue:function(F,G){if(typeof F!=="string")
{G=F;F="fx"}if(G===g){return o.queue(this[0],F)}return this.each(function()
{var H=o.queue(this,F,G);if(F=="fx"&&H.length==1)
{H[0].call(this)}})},dequeue:function(F){return this.each(function()
{o.dequeue(this,F)})}});
/*
* Sizzle CSS Selector Engine - v0.9.3
* Copyright 2009, The Dojo Foundation
* Released under the MIT, BSD, and GPL Licenses.
* More information: http://sizzlejs.com/
*/
(function(){var S=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)
+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?/g,M=0,I=Object.prototype.toString;var
G=function(Z,V,ac,ad){ac=ac||[];V=V||document;if(V.nodeType!
==1&&V.nodeType!==9){return[]}if(!Z||typeof Z!=="string"){return ac}var
aa=[],X,ag,aj,U,ae,W,Y=true;S.lastIndex=0;while((X=S.exec(Z))!==null)
{aa.push(X[1]);if(X[2])
{W=RegExp.rightContext;break}}if(aa.length>1&&N.exec(Z))
{if(aa.length===2&&J.relative[aa[0]])
{ag=K(aa[0]+aa[1],V)}else{ag=J.relative[aa[0]]?
[V]:G(aa.shift(),V);while(aa.length){Z=aa.shift();if(J.relative[Z])
{Z+=aa.shift()}ag=K(Z,ag)}}}else{var af=ad?
{expr:aa.pop(),set:F(ad)}:G.find(aa.pop(),aa.length===1&&V.parentNode?
V.parentNode:V,R(V));ag=G.filter(af.expr,af.set);if(aa.length>0)
{aj=F(ag)}else{Y=false}while(aa.length){var ai=aa.pop(),ah=ai;if(!
J.relative[ai]){ai=""}else{ah=aa.pop()}if(ah==null){ah=V}J.relative[ai]
(aj,ah,R(V))}}if(!aj){aj=ag}if(!aj){throw"Syntax error, unrecognized
expression: "+(ai||Z)}if(I.call(aj)==="[object Array]"){if(!Y)
{ac.push.apply(ac,aj)}else{if(V.nodeType===1){for(var ab=0;aj[ab]!=null;ab+
+){if(aj[ab]&&(aj[ab]===true||aj[ab].nodeType===1&&L(V,aj[ab])))
{ac.push(ag[ab])}}}else{for(var ab=0;aj[ab]!=null;ab++)
{if(aj[ab]&&aj[ab].nodeType===1){ac.push(ag[ab])}}}}}else{F(aj,ac)}if(W)
{G(W,V,ac,ad);if(H){hasDuplicate=false;ac.sort(H);if(hasDuplicate){for(var
ab=1;ab<ac.length;ab++){if(ac[ab]===ac[ab-1]){ac.splice(ab--,1)}}}}}return
ac};G.matches=function(U,V){return
G(U,null,null,V)};G.find=function(ab,U,ac){var aa,Y;if(!ab){return[]}for(var
X=0,W=J.order.length;X<W;X++){var
Z=J.order[X],Y;if((Y=J.match[Z].exec(ab))){var
V=RegExp.leftContext;if(V.substr(V.length-1)!=="\\")
{Y[1]=(Y[1]||"").replace(/\\/g,"");aa=J.find[Z](Y,U,ac);if(aa!=null)
{ab=ab.replace(J.match[Z],"");break}}}}if(!aa)
{aa=U.getElementsByTagName("*")}return{set:aa,expr:ab}};G.filter=function
(ae,ad,ah,X){var
W=ae,aj=[],ab=ad,Z,U,aa=ad&&ad[0]&&R(ad[0]);while(ae&&ad.length)
{for(var ac in J.filter){if((Z=J.match[ac].exec(ae))!=null){var
V=J.filter[ac],ai,ag;U=false;if(ab==aj){aj=[]}if(J.preFilter[ac])
{Z=J.preFilter[ac](Z,ab,ah,aj,X,aa);if(!Z){U=ai=true}else{if(Z===true)
{continue}}}if(Z){for(var Y=0;(ag=ab[Y])!=null;Y++){if(ag)
{ai=V(ag,Z,Y,ab);var af=X^!!ai;if(ah&&ai!=null){if(af)
{U=true}else{ab[Y]=false}}else{if(af){aj.push(ag);U=true}}}}}if(ai!==g){if(!ah)
{ab=aj}ae=ae.replace(J.match[ac],"");if(!U){return[]}break}}}if(ae==W)
{if(U==null){throw"Syntax error, unrecognized expression:
"+ae}else{break}}W=ae}return ab};var J=G.selectors={order:
["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF_-]|\\.)+)/,CLASS:/\.
((?:[\w\u00c0-\uFFFF_-]|\\.)+)/,NAME:/\[name=['"]*((?:
[\w\u00c0-\uFFFF_-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF_-]|\\.)
+)\s*(?:(\S?=)\s*(['"]*)(.*?)\3|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*_-]|\\.)
+)/,CHILD:/:(only|nth|last|first)-child(?:\((even|odd|[\dn+-]*)\))?/,POS:/:(nth|
eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^-]|$)/,PSEUDO:/:((?:
[\w\u00c0-\uFFFF_-]|\\.)+)(?:\((['"]*)((?:\([^\)]+\)|[^\2\(\)]*)+)\2\))?/},attrMap:
{"class":"className","for":"htmlFor"},attrHandle:{href:function(U){return
U.getAttribute("href")}},relative:{"+":function(ab,U,aa){var Y=typeof
U==="string",ac=Y&&!/\W/.test(U),Z=Y&&!ac;if(ac&&!aa)
{U=U.toUpperCase()}for(var X=0,W=ab.length,V;X<W;X++){if((V=ab[X]))
{while((V=V.previousSibling)&&V.nodeType!==1){}ab[X]=Z||
V&&V.nodeName===U?V||false:V===U}}if(Z)
{G.filter(U,ab,true)}},">":function(aa,V,ab){var Y=typeof
V==="string";if(Y&&!/\W/.test(V)){V=ab?V:V.toUpperCase();for(var
W=0,U=aa.length;W<U;W++){var Z=aa[W];if(Z){var
X=Z.parentNode;aa[W]=X.nodeName===V?X:false}}}else{for(var
W=0,U=aa.length;W<U;W++){var Z=aa[W];if(Z){aa[W]=Y?
Z.parentNode:Z.parentNode===V}}if(Y)
{G.filter(V,aa,true)}}},"":function(X,V,Z){var W=M++,U=T;if(!V.match(/\W/))
{var Y=V=Z?
V:V.toUpperCase();U=Q}U("parentNode",V,W,X,Y,Z)},"~":function(X,V,Z)
{var W=M++,U=T;if(typeof V==="string"&&!V.match(/\W/)){var Y=V=Z?
V:V.toUpperCase();U=Q}U("previousSibling",V,W,X,Y,Z)}},find:
{ID:function(V,W,X){if(typeof W.getElementById!=="undefined"&&!X){var
U=W.getElementById(V[1]);return U?[U]:[]}},NAME:function(W,Z,aa)
{if(typeof Z.getElementsByName!=="undefined"){var
V=[],Y=Z.getElementsByName(W[1]);for(var X=0,U=Y.length;X<U;X++)
{if(Y[X].getAttribute("name")===W[1]){V.push(Y[X])}}return V.length===0?
null:V}},TAG:function(U,V){return
V.getElementsByTagName(U[1])}},preFilter:
{CLASS:function(X,V,W,U,aa,ab){X=" "+X[1].replace(/\\/g,"")+" ";if(ab){return
X}for(var Y=0,Z;(Z=V[Y])!=null;Y++){if(Z){if(aa^(Z.className&&("
"+Z.className+" ").indexOf(X)>=0)){if(!W){U.push(Z)}}else{if(W)
{V[Y]=false}}}}return false},ID:function(U){return
U[1].replace(/\\/g,"")},TAG:function(V,U){for(var W=0;U[W]===false;W++)
{}return U[W]&&R(U[W])?V[1]:V[1].toUpperCase()},CHILD:function(U)
{if(U[1]=="nth"){var V=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(U[2]=="even"&&"2n"||
U[2]=="odd"&&"2n+1"||!/\D/.test(U[2])&&"0n+"+U[2]||U[2]);U[2]=(V[1]+(V[2]||
1))-0;U[3]=V[3]-0}U[0]=M++;return U},ATTR:function(Y,V,W,U,Z,aa){var
X=Y[1].replace(/\\/g,"");if(!aa&&J.attrMap[X])
{Y[1]=J.attrMap[X]}if(Y[2]==="~="){Y[4]=" "+Y[4]+" "}return
Y},PSEUDO:function(Y,V,W,U,Z){if(Y[1]==="not")
{if(Y[3].match(S).length>1||/^\w/.test(Y[3])){Y[3]=G(Y[3],null,null,V)}else{var
X=G.filter(Y[3],V,W,true^Z);if(!W){U.push.apply(U,X)}return
false}}else{if(J.match.POS.test(Y[0])||J.match.CHILD.test(Y[0])){return
true}}return Y},POS:function(U){U.unshift(true);return U}},filters:
{enabled:function(U){return U.disabled===false&&U.type!
=="hidden"},disabled:function(U){return
U.disabled===true},checked:function(U){return
U.checked===true},selected:function(U)
{U.parentNode.selectedIndex;return U.selected===true},parent:function(U)
{return !!U.firstChild},empty:function(U){return !
U.firstChild},has:function(W,V,U){return !!
G(U[3],W).length},header:function(U)
{return/h\d/i.test(U.nodeName)},text:function(U)
{return"text"===U.type},radio:function(U)
{return"radio"===U.type},checkbox:function(U)
{return"checkbox"===U.type},file:function(U)
{return"file"===U.type},password:function(U)
{return"password"===U.type},submit:function(U)
{return"submit"===U.type},image:function(U)
{return"image"===U.type},reset:function(U)
{return"reset"===U.type},button:function(U){return"button"===U.type||
U.nodeName.toUpperCase()==="BUTTON"},input:function(U){return/input|
select|textarea|button/i.test(U.nodeName)}},setFilters:{first:function(V,U)
{return U===0},last:function(W,V,U,X){return V===X.length-
1},even:function(V,U){return U%2===0},odd:function(V,U){return U
%2===1},lt:function(W,V,U){return V<U[3]-0},gt:function(W,V,U){return
V>U[3]-0},nth:function(W,V,U){return U[3]-0==V},eq:function(W,V,U){return
U[3]-0==V}},filter:{PSEUDO:function(aa,W,X,ab){var
V=W[1],Y=J.filters[V];if(Y){return Y(aa,X,W,ab)}else{if(V==="contains")
{return(aa.textContent||
aa.innerText||"").indexOf(W[3])>=0}else{if(V==="not"){var Z=W[3];for(var
X=0,U=Z.length;X<U;X++){if(Z[X]===aa){return false}}return
true}}}},CHILD:function(U,X){var aa=X[1],V=U;switch(aa)
{case"only":case"first":while(V=V.previousSibling){if(V.nodeType===1)
{return false}}if(aa=="first"){return
true}V=U;case"last":while(V=V.nextSibling){if(V.nodeType===1){return
false}}return true;case"nth":var W=X[2],ad=X[3];if(W==1&&ad==0){return
true}var Z=X[0],ac=U.parentNode;if(ac&&(ac.sizcache!==Z||!U.nodeIndex))
{var Y=0;for(V=ac.firstChild;V;V=V.nextSibling){if(V.nodeType===1)
{V.nodeIndex=++Y}}ac.sizcache=Z}var ab=U.nodeIndex-ad;if(W==0){return
ab==0}else{return(ab%W==0&&ab/W>=0)}}},ID:function(V,U){return
V.nodeType===1&&V.getAttribute("id")===U},TAG:function(V,U)
{return(U==="*"&&V.nodeType===1)||
V.nodeName===U},CLASS:function(V,U){return(" "+(V.className||
V.getAttribute("class"))+" ").indexOf(U)>-1},ATTR:function(Z,X){var
W=X[1],U=J.attrHandle[W]?J.attrHandle[W](Z):Z[W]!=null?
Z[W]:Z.getAttribute(W),aa=U+"",Y=X[2],V=X[4];return U==null?Y==="!
=":Y==="="?aa===V:Y==="*="?aa.indexOf(V)>=0:Y==="~="?(" "+aa+"
").indexOf(V)>=0:!V?aa&&U!==false:Y==="!="?aa!=V:Y==="^="?
aa.indexOf(V)===0:Y==="$="?aa.substr(aa.length-V.length)===V:Y==="|
="?aa===V||aa.substr(0,V.length+1)===V+"-":false},POS:function(Y,V,W,Z)
{var U=V[2],X=J.setFilters[U];if(X){return X(Y,W,V,Z)}}}};var
N=J.match.POS;for(var P in J.match)
{J.match[P]=RegExp(J.match[P].source+/(?![^\[]*\])(?![^\(]*\))/.source)}var
F=function(V,U){V=Array.prototype.slice.call(V);if(U)
{U.push.apply(U,V);return U}return
V};try{Array.prototype.slice.call(document.documentElement.childNodes)}c
atch(O){F=function(Y,X){var V=X||[];if(I.call(Y)==="[object Array]")
{Array.prototype.push.apply(V,Y)}else{if(typeof Y.length==="number")
{for(var W=0,U=Y.length;W<U;W++){V.push(Y[W])}}else{for(var
W=0;Y[W];W++){V.push(Y[W])}}}return V}}var
H;if(document.documentElement.compareDocumentPosition)
{H=function(V,U){var W=V.compareDocumentPosition(U)&4?-1:V===U?
0:1;if(W===0){hasDuplicate=true}return W}}else{if("sourceIndex" in
document.documentElement){H=function(V,U){var W=V.sourceIndex-
U.sourceIndex;if(W===0){hasDuplicate=true}return
W}}else{if(document.createRange){H=function(X,V){var
W=X.ownerDocument.createRange(),U=V.ownerDocument.createRange();
W.selectNode(X);W.collapse(true);U.selectNode(V);U.collapse(true);var
Y=W.compareBoundaryPoints(Range.START_TO_END,U);if(Y===0)
{hasDuplicate=true}return Y}}}}(function(){var
V=document.createElement("form"),W="script"+(new
Date).getTime();V.innerHTML="<input name='"+W+"'/>";var
U=document.documentElement;U.insertBefore(V,U.firstChild);if(!!
document.getElementById(W)){J.find.ID=function(Y,Z,aa){if(typeof
Z.getElementById!=="undefined"&&!aa){var
X=Z.getElementById(Y[1]);return X?X.id===Y[1]||typeof
X.getAttributeNode!
=="undefined"&&X.getAttributeNode("id").nodeValue===Y[1]?[X]:g:
[]}};J.filter.ID=function(Z,X){var Y=typeof Z.getAttributeNode!
=="undefined"&&Z.getAttributeNode("id");return
Z.nodeType===1&&Y&&Y.nodeValue===X}}U.removeChild(V)})();
(function(){var
U=document.createElement("div");U.appendChild(document.createComme
nt(""));if(U.getElementsByTagName("*").length>0){J.find.TAG=function(V,Z)
{var Y=Z.getElementsByTagName(V[1]);if(V[1]==="*"){var X=[];for(var
W=0;Y[W];W++){if(Y[W].nodeType===1){X.push(Y[W])}}Y=X}return
Y}}U.innerHTML="<a href='#'></a>";if(U.firstChild&&typeof
U.firstChild.getAttribute!=="undefined"&&U.firstChild.getAttribute("href")!
=="#"){J.attrHandle.href=function(V){return V.getAttribute("href",2)}}})
();if(document.querySelectorAll){(function(){var
U=G,V=document.createElement("div");V.innerHTML="<p
class='TEST'></p>";if(V.querySelectorAll&&V.querySelectorAll(".TEST").len
gth===0){return}G=function(Z,Y,W,X){Y=Y||document;if(!
X&&Y.nodeType===9&&!R(Y)){try{return
F(Y.querySelectorAll(Z),W)}catch(aa){}}return
U(Z,Y,W,X)};G.find=U.find;G.filter=U.filter;G.selectors=U.selectors;G.match
es=U.matches})
()}if(document.getElementsByClassName&&document.documentElement.g
etElementsByClassName){(function(){var
U=document.createElement("div");U.innerHTML="<div class='test
e'></div><div
class='test'></div>";if(U.getElementsByClassName("e").length===0)
{return}U.lastChild.className="e";if(U.getElementsByClassName("e").leng
th===1){return}J.order.splice(1,0,"CLASS");J.find.CLASS=function(V,W,X)
{if(typeof W.getElementsByClassName!=="undefined"&&!X){return
W.getElementsByClassName(V[1])}}})()}function Q(V,aa,Z,ae,ab,ad){var
ac=V=="previousSibling"&&!ad;for(var X=0,W=ae.length;X<W;X++){var
U=ae[X];if(U){if(ac&&U.nodeType===1)
{U.sizcache=Z;U.sizset=X}U=U[V];var Y=false;while(U){if(U.sizcache===Z)
{Y=ae[U.sizset];break}if(U.nodeType===1&&!ad)
{U.sizcache=Z;U.sizset=X}if(U.nodeName===aa)
{Y=U;break}U=U[V]}ae[X]=Y}}}function T(V,aa,Z,ae,ab,ad){var
ac=V=="previousSibling"&&!ad;for(var X=0,W=ae.length;X<W;X++){var
U=ae[X];if(U){if(ac&&U.nodeType===1)
{U.sizcache=Z;U.sizset=X}U=U[V];var Y=false;while(U){if(U.sizcache===Z)
{Y=ae[U.sizset];break}if(U.nodeType===1){if(!ad)
{U.sizcache=Z;U.sizset=X}if(typeof aa!=="string"){if(U===aa)
{Y=true;break}}else{if(G.filter(aa,[U]).length>0)
{Y=U;break}}}U=U[V]}ae[X]=Y}}}var
L=document.compareDocumentPosition?function(V,U){return
V.compareDocumentPosition(U)&16}:function(V,U){return V!
==U&&(V.contains?V.contains(U):true)};var R=function(U){return
U.nodeType===9&&U.documentElement.nodeName!=="HTML"||!!
U.ownerDocument&&R(U.ownerDocument)};var K=function(U,ab){var
X=[],Y="",Z,W=ab.nodeType?[ab]:ab;while((Z=J.match.PSEUDO.exec(U)))
{Y+=Z[0];U=U.replace(J.match.PSEUDO,"")}U=J.relative[U]?
U+"*":U;for(var aa=0,V=W.length;aa<V;aa++){G(U,W[aa],X)}return
G.filter(Y,X)};o.find=G;o.filter=G.filter;o.expr=G.selectors;o.expr[":"]=o.expr.fi
lters;G.selectors.filters.hidden=function(U){return U.offsetWidth===0||
U.offsetHeight===0};G.selectors.filters.visible=function(U){return
U.offsetWidth>0||U.offsetHeight>0};G.selectors.filters.animated=function(U)
{return o.grep(o.timers,function(V){return
U===V.elem}).length};o.multiFilter=function(W,U,V){if(V)
{W=":not("+W+")"}return G.matches(W,U)};o.dir=function(W,V){var
U=[],X=W[V];while(X&&X!=document){if(X.nodeType==1)
{U.push(X)}X=X[V]}return U};o.nth=function(Y,U,W,X){U=U||1;var
V=0;for(;Y;Y=Y[W]){if(Y.nodeType==1&&++V==U){break}}return
Y};o.sibling=function(W,V){var U=[];for(;W;W=W.nextSibling)
{if(W.nodeType==1&&W!=V){U.push(W)}}return U};return;l.Sizzle=G})
();o.event={add:function(J,G,I,L){if(J.nodeType==3||J.nodeType==8)
{return}if(J.setInterval&&J!=l){J=l}if(!I.guid){I.guid=this.guid++}if(L!==g){var
H=I;I=this.proxy(H);I.data=L}var F=o.data(J,"events")||o.data(J,"events",
{}),K=o.data(J,"handle")||o.data(J,"handle",function(){return typeof o!
=="undefined"&&!o.event.triggered?
o.event.handle.apply(arguments.callee.elem,arguments):g});K.elem=J;o.ea
ch(G.split(/\s+/),function(N,O){var
P=O.split(".");O=P.shift();I.type=P.slice().sort().join(".");var
M=F[O];if(o.event.specialAll[O]){o.event.specialAll[O].setup.call(J,L,P)}if(!M)
{M=F[O]={};if(!o.event.special[O]||
o.event.special[O].setup.call(J,L,P)===false){if(J.addEventListener)
{J.addEventListener(O,K,false)}else{if(J.attachEvent)
{J.attachEvent("on"+O,K)}}}}M[I.guid]=I;o.event.global[O]=true});J=null},gui
d:1,global:{},remove:function(L,I,K){if(L.nodeType==3||L.nodeType==8)
{return}var H=o.data(L,"events"),G,F;if(H){if(I===g||(typeof
I==="string"&&I.charAt(0)==".")){for(var J in H){this.remove(L,J+
(I||""))}}else{if(I.type){K=I.handler;I=I.type}o.each(I.split(/\s+/),function(N,P)
{var R=P.split(".");P=R.shift();var
O=RegExp("(^|\\.)"+R.slice().sort().join(".*\\.")+"(\\.|$)");if(H[P]){if(K){delete
H[P][K.guid]}else{for(var Q in H[P]){if(O.test(H[P][Q].type)){delete H[P]
[Q]}}}if(o.event.specialAll[P]){o.event.specialAll[P].teardown.call(L,R)}for(G
in H[P]){break}if(!G){if(!o.event.special[P]||
o.event.special[P].teardown.call(L,R)===false){if(L.removeEventListener)
{L.removeEventListener(P,o.data(L,"handle"),false)}else{if(L.detachEvent)
{L.detachEvent("on"+P,o.data(L,"handle"))}}}G=null;delete H[P]}}})}for(G in
H){break}if(!G){var M=o.data(L,"handle");if(M)
{M.elem=null}o.removeData(L,"events");o.removeData(L,"handle")}}},trigger
:function(J,L,I,F){var H=J.type||J;if(!F){J=typeof J==="object"?J[h]?
J:o.extend(o.Event(H),J):o.Event(H);if(H.indexOf("!")>=0)
{J.type=H=H.slice(0,-1);J.exclusive=true}if(!I)
{J.stopPropagation();if(this.global[H]){o.each(o.cache,function()
{if(this.events&&this.events[H]){o.event.trigger(J,L,this.handle.elem)}})}}if(!
I||I.nodeType==3||I.nodeType==8){return
g}J.result=g;J.target=I;L=o.makeArray(L);L.unshift(J)}J.currentTarget=I;var
K=o.data(I,"handle");if(K){K.apply(I,L)}if((!I[H]||
(o.nodeName(I,"a")&&H=="click"))&&I["on"+H]&&I["on"+H].apply(I,L)===fal
se){J.result=false}if(!F&&I[H]&&!J.isDefaultPrevented()&&!
(o.nodeName(I,"a")&&H=="click")){this.triggered=true;try{I[H]()}catch(M)
{}}this.triggered=false;if(!J.isPropagationStopped()){var G=I.parentNode||
I.ownerDocument;if(G){o.event.trigger(J,L,G,true)}}},handle:function(L){var
K,F;L=arguments[0]=o.event.fix(L||l.event);L.currentTarget=this;var
M=L.type.split(".");L.type=M.shift();K=!M.length&&!L.exclusive;var
J=RegExp("(^|\\.)"+M.slice().sort().join(".*\\.")+"(\\.|
$)");F=(o.data(this,"events")||{})[L.type];for(var H in F){var I=F[H];if(K||
J.test(I.type)){L.handler=I;L.data=I.data;var G=I.apply(this,arguments);if(G!
==g){L.result=G;if(G===false)
{L.preventDefault();L.stopPropagation()}}if(L.isImmediatePropagationStopp
ed()){break}}}},props:"altKey attrChange attrName bubbles button
cancelable charCode clientX clientY ctrlKey currentTarget data detail
eventPhase fromElement handler keyCode metaKey newValue
originalTarget pageX pageY prevValue relatedNode relatedTarget screenX
screenY shiftKey srcElement target toElement view wheelDelta
which".split(" "),fix:function(I){if(I[h]){return I}var G=I;I=o.Event(G);for(var
H=this.props.length,K;H;){K=this.props[--H];I[K]=G[K]}if(!I.target)
{I.target=I.srcElement||document}if(I.target.nodeType==3)
{I.target=I.target.parentNode}if(!I.relatedTarget&&I.fromElement)
{I.relatedTarget=I.fromElement==I.target?
I.toElement:I.fromElement}if(I.pageX==null&&I.clientX!=null){var
J=document.documentElement,F=document.body;I.pageX=I.clientX+
(J&&J.scrollLeft||F&&F.scrollLeft||0)-(J.clientLeft||0);I.pageY=I.clientY+
(J&&J.scrollTop||F&&F.scrollTop||0)-(J.clientTop||0)}if(!
I.which&&((I.charCode||I.charCode===0)?I.charCode:I.keyCode))
{I.which=I.charCode||I.keyCode}if(!I.metaKey&&I.ctrlKey)
{I.metaKey=I.ctrlKey}if(!I.which&&I.button){I.which=(I.button&1?1:
(I.button&2?3:(I.button&4?2:0)))}return I},proxy:function(G,F){F=F||
function(){return G.apply(this,arguments)};F.guid=G.guid=G.guid||F.guid||
this.guid++;return F},special:{ready:{setup:C,teardown:function()
{}}},specialAll:{live:{setup:function(F,G)
{o.event.add(this,G[0],c)},teardown:function(H){if(H.length){var
F=0,G=RegExp("(^|\\.)"+H[0]+"(\\.|$)");o.each((o.data(this,"events").live||
{}),function(){if(G.test(this.type)){F++}});if(F<1)
{o.event.remove(this,H[0],c)}}}}}};o.Event=function(F){if(!
this.preventDefault){return new o.Event(F)}if(F&&F.type)
{this.originalEvent=F;this.type=F.type}else{this.type=F}this.timeStamp=e();t
his[h]=true};function k(){return false}function u(){return
true}o.Event.prototype={preventDefault:function()
{this.isDefaultPrevented=u;var F=this.originalEvent;if(!F)
{return}if(F.preventDefault)
{F.preventDefault()}F.returnValue=false},stopPropagation:function()
{this.isPropagationStopped=u;var F=this.originalEvent;if(!F)
{return}if(F.stopPropagation)
{F.stopPropagation()}F.cancelBubble=true},stopImmediatePropagation:func
tion()
{this.isImmediatePropagationStopped=u;this.stopPropagation()},isDefaultPr
evented:k,isPropagationStopped:k,isImmediatePropagationStopped:k};var
a=function(G){var F=G.relatedTarget;while(F&&F!=this)
{try{F=F.parentNode}catch(H){F=this}}if(F!=this)
{G.type=G.data;o.event.handle.apply(this,arguments)}};o.each({mouseover
:"mouseenter",mouseout:"mouseleave"},function(G,F)
{o.event.special[F]={setup:function()
{o.event.add(this,G,a,F)},teardown:function()
{o.event.remove(this,G,a)}}});o.fn.extend({bind:function(G,H,F){return
G=="unload"?this.one(G,H,F):this.each(function(){o.event.add(this,G,F||
H,F&&H)})},one:function(H,I,G){var F=o.event.proxy(G||I,function(J)
{o(this).unbind(J,F);return(G||I).apply(this,arguments)});return
this.each(function(){o.event.add(this,H,F,G&&I)})},unbind:function(G,F)
{return this.each(function(){o.event.remove(this,G,F)})},trigger:function(F,G)
{return this.each(function()
{o.event.trigger(F,G,this)})},triggerHandler:function(F,H){if(this[0]){var
G=o.Event(F);G.preventDefault();G.stopPropagation();o.event.trigger(G,H,t
his[0]);return G.result}},toggle:function(H){var
F=arguments,G=1;while(G<F.length){o.event.proxy(H,F[G++])}return
this.click(o.event.proxy(H,function(I){this.lastToggle=(this.lastToggle||
0)%G;I.preventDefault();return F[this.lastToggle++].apply(this,arguments)||
false}))},hover:function(F,G){return
this.mouseenter(F).mouseleave(G)},ready:function(F){C();if(o.isReady)
{F.call(document,o)}else{o.readyList.push(F)}return this},live:function(H,G)
{var
F=o.event.proxy(G);F.guid+=this.selector+H;o(document).bind(i(H,this.sele
ctor),this.selector,F);return this},die:function(G,F)
{o(document).unbind(i(G,this.selector),F?
{guid:F.guid+this.selector+G}:null);return this}});function c(I){var
F=RegExp("(^|\\.)"+I.type+"(\\.|
$)"),H=true,G=[];o.each(o.data(this,"events").live||[],function(J,K)
{if(F.test(K.type)){var L=o(I.target).closest(K.data)[0];if(L)
{G.push({elem:L,fn:K})}}});G.sort(function(K,J){return
o.data(K.elem,"closest")-o.data(J.elem,"closest")});o.each(G,function()
{if(this.fn.call(this.elem,I,this.fn.data)===false){return(H=false)}});return
H}function i(G,F){return["live",G,F.replace(/\./g,"`").replace(/
/g,"|")].join(".")}o.extend({isReady:false,readyList:[],ready:function(){if(!
o.isReady){o.isReady=true;if(o.readyList){o.each(o.readyList,function()
{this.call(document,o)});o.readyList=null}o(document).triggerHandler("ready
")}}});var y=false;function C(){if(y)
{return}y=true;if(document.addEventListener)
{document.addEventListener("DOMContentLoaded",function()
{document.removeEventListener("DOMContentLoaded",arguments.callee,f
alse);o.ready()},false)}else{if(document.attachEvent)
{document.attachEvent("onreadystatechange",function()
{if(document.readyState==="complete")
{document.detachEvent("onreadystatechange",arguments.callee);o.ready()
}});if(document.documentElement.doScroll&&l==l.top){(function()
{if(o.isReady)
{return}try{document.documentElement.doScroll("left")}catch(F)
{setTimeout(arguments.callee,0);return}o.ready()})
()}}}o.event.add(l,"load",o.ready)}o.each(("blur,focus,load,resize,scroll,unloa
d,click,dblclick,mousedown,mouseup,mousemove,mouseover,mouseout,m
ouseenter,mouseleave,change,select,submit,keydown,keypress,keyup,erro
r").split(","),function(G,F){o.fn[F]=function(H){return H?
this.bind(F,H):this.trigger(F)}});o(l).bind("unload",function(){for(var F in
o.cache){if(F!=1&&o.cache[F].handle)
{o.event.remove(o.cache[F].handle.elem)}}});(function(){o.support={};var
G=document.documentElement,H=document.createElement("script"),L=do
cument.createElement("div"),K="script"+(new
Date).getTime();L.style.display="none";L.innerHTML='
<link/><table></table><a href="/a"
style="color:red;float:left;opacity:.5;">a</a><select><option>text</option></
select><object><param/></object>';var
I=L.getElementsByTagName("*"),F=L.getElementsByTagName("a")[0];if(!I||!
I.length||!F)
{return}o.support={leadingWhitespace:L.firstChild.nodeType==3,tbody:!
L.getElementsByTagName("tbody").length,objectAll:!!
L.getElementsByTagName("object")
[0].getElementsByTagName("*").length,htmlSerialize:!!
L.getElementsByTagName("link").length,style:/red/.test(F.getAttribute("style
")),hrefNormalized:F.getAttribute("href")==="/a",opacity:F.style.opacity==="0
.5",cssFloat:!!
F.style.cssFloat,scriptEval:false,noCloneEvent:true,boxModel:null};H.type="
text/javascript";try{H.appendChild(document.createTextNode("window."+K+
"=1;"))}catch(J){}G.insertBefore(H,G.firstChild);if(l[K])
{o.support.scriptEval=true;delete
l[K]}G.removeChild(H);if(L.attachEvent&&L.fireEvent)
{L.attachEvent("onclick",function()
{o.support.noCloneEvent=false;L.detachEvent("onclick",arguments.callee)})
;L.cloneNode(true).fireEvent("onclick")}o(function(){var
M=document.createElement("div");M.style.width=M.style.paddingLeft="1px"
;document.body.appendChild(M);o.boxModel=o.support.boxModel=M.offset
Width===2;document.body.removeChild(M).style.display="none"})})();var
w=o.support.cssFloat?"cssFloat":"styleFloat";o.props={"for":"htmlFor","class
":"className","float":w,cssFloat:w,styleFloat:w,readonly:"readOnly",maxlen
gth:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",tabindex:"ta
bIndex"};o.fn.extend({_load:o.fn.load,load:function(H,K,L){if(typeof H!
=="string"){return this._load(H)}var J=H.indexOf(" ");if(J>=0){var
F=H.slice(J,H.length);H=H.slice(0,J)}var I="GET";if(K){if(o.isFunction(K))
{L=K;K=null}else{if(typeof K==="object"){K=o.param(K);I="POST"}}}var
G=this;o.ajax({url:H,type:I,dataType:"html",data:K,complete:function(N,M)
{if(M=="success"||M=="notmodified"){G.html(F?
o("<div/>").append(N.responseText.replace(/<script(.|\s)*?\/script>/g,"")).fin
d(F):N.responseText)}if(L){G.each(L,[N.responseText,M,N])}}});return
this},serialize:function(){return
o.param(this.serializeArray())},serializeArray:function(){return
this.map(function(){return this.elements?
o.makeArray(this.elements):this}).filter(function(){return this.name&&!
this.disabled&&(this.checked||/select|textarea/i.test(this.nodeName)||/text|
hidden|password|search/i.test(this.type))}).map(function(F,G){var
H=o(this).val();return H==null?null:o.isArray(H)?o.map(H,function(J,I)
{return{name:G.name,value:J}}):
{name:G.name,value:H}}).get()}});o.each("ajaxStart,ajaxStop,ajaxComplete,
ajaxError,ajaxSuccess,ajaxSend".split(","),function(F,G){o.fn[G]=function(H)
{return this.bind(G,H)}});var r=e();o.extend({get:function(F,H,I,G)
{if(o.isFunction(H)){I=H;H=null}return
o.ajax({type:"GET",url:F,data:H,success:I,dataType:G})},getScript:function(F
,G){return o.get(F,null,G,"script")},getJSON:function(F,G,H){return
o.get(F,G,H,"json")},post:function(F,H,I,G){if(o.isFunction(H))
{I=H;H={}}return
o.ajax({type:"POST",url:F,data:H,success:I,dataType:G})},ajaxSetup:functio
n(F){o.extend(o.ajaxSettings,F)},ajaxSettings:
{url:location.href,global:true,type:"GET",contentType:"application/x-www-
form-urlencoded",processData:true,async:true,xhr:function(){return
l.ActiveXObject?new ActiveXObject("Microsoft.XMLHTTP"):new
XMLHttpRequest()},accepts:{xml:"application/xml,
text/xml",html:"text/html",script:"text/javascript,
application/javascript",json:"application/json,
text/javascript",text:"text/plain",_default:"*/*"}},lastModified:
{},ajax:function(N){N=o.extend(true,N,o.extend(true,
{},o.ajaxSettings,N));var X,G=/=\?(&|
$)/g,S,W,H=N.type.toUpperCase();if(N.data&&N.processData&&typeof
N.data!=="string"){N.data=o.param(N.data)}if(N.dataType=="jsonp")
{if(H=="GET"){if(!N.url.match(G)){N.url+=(N.url.match(/\?/)?"&":"?")+
(N.jsonp||"callback")+"=?"}}else{if(!N.data||!N.data.match(G))
{N.data=(N.data?N.data+"&":"")+(N.jsonp||"callback")
+"=?"}}N.dataType="json"}if(N.dataType=="json"&&(N.data&&N.data.match
(G)||N.url.match(G))){X="jsonp"+r++;if(N.data)
{N.data=(N.data+"").replace(G,"="+X+"$1")}N.url=N.url.replace(G,"="+X+"$
1");N.dataType="script";l[X]=function(Y){W=Y;J();M();l[X]=g;try{delete
l[X]}catch(Z){}if(I)
{I.removeChild(U)}}}if(N.dataType=="script"&&N.cache==null)
{N.cache=false}if(N.cache===false&&H=="GET"){var F=e();var
V=N.url.replace(/(\?|&)_=.*?(&|$)/,"$1_="+F+"$2");N.url=V+((V==N.url)?
(N.url.match(/\?/)?"&":"?")+"_="+F:"")}if(N.data&&H=="GET")
{N.url+=(N.url.match(/\?/)?"&":"?")+N.data;N.data=null}if(N.global&&!
o.active++){o.event.trigger("ajaxStart")}var R=/^(\w+:)?\/\/([^\/?#]
+)/.exec(N.url);if(N.dataType=="script"&&H=="GET"&&R&&(R[1]&&R[1]!
=location.protocol||R[2]!=location.host)){var
I=document.getElementsByTagName("head")[0];var
U=document.createElement("script");U.src=N.url;if(N.scriptCharset)
{U.charset=N.scriptCharset}if(!X){var
P=false;U.onload=U.onreadystatechange=function(){if(!P&&(!
this.readyState||this.readyState=="loaded"||this.readyState=="complete"))
{P=true;J();M();U.onload=U.onreadystatechange=null;I.removeChild(U)}}}I.
appendChild(U);return g}var L=false;var K=N.xhr();if(N.username)
{K.open(H,N.url,N.async,N.username,N.password)}else{K.open(H,N.url,N.a
sync)}try{if(N.data){K.setRequestHeader("Content-
Type",N.contentType)}if(N.ifModified){K.setRequestHeader("If-Modified-
Since",o.lastModified[N.url]||"Thu, 01 Jan 1970 00:00:00
GMT")}K.setRequestHeader("X-Requested-
With","XMLHttpRequest");K.setRequestHeader("Accept",N.dataType&&N.a
ccepts[N.dataType]?N.accepts[N.dataType]+",
*/*":N.accepts._default)}catch(T)
{}if(N.beforeSend&&N.beforeSend(K,N)===false){if(N.global&&!--o.active)
{o.event.trigger("ajaxStop")}K.abort();return false}if(N.global)
{o.event.trigger("ajaxSend",[K,N])}var O=function(Y){if(K.readyState==0)
{if(Q){clearInterval(Q);Q=null;if(N.global&&!--o.active)
{o.event.trigger("ajaxStop")}}}else{if(!L&&K&&(K.readyState==4||
Y=="timeout")){L=true;if(Q)
{clearInterval(Q);Q=null}S=Y=="timeout"?"timeout":!
o.httpSuccess(K)?"error":N.ifModified&&o.httpNotModified(K,N.url)?"notmo
dified":"success";if(S=="success")
{try{W=o.httpData(K,N.dataType,N)}catch(aa)
{S="parsererror"}}if(S=="success"){var
Z;try{Z=K.getResponseHeader("Last-Modified")}catch(aa)
{}if(N.ifModified&&Z){o.lastModified[N.url]=Z}if(!X)
{J()}}else{o.handleError(N,K,S)}M();if(Y){K.abort()}if(N.async)
{K=null}}}};if(N.async){var Q=setInterval(O,13);if(N.timeout>0)
{setTimeout(function(){if(K&&!L)
{O("timeout")}},N.timeout)}}try{K.send(N.data)}catch(T)
{o.handleError(N,K,null,T)}if(!N.async){O()}function J(){if(N.success)
{N.success(W,S)}if(N.global){o.event.trigger("ajaxSuccess",[K,N])}}function
M(){if(N.complete){N.complete(K,S)}if(N.global)
{o.event.trigger("ajaxComplete",[K,N])}if(N.global&&!--o.active)
{o.event.trigger("ajaxStop")}}return K},handleError:function(G,I,F,H)
{if(G.error){G.error(I,F,H)}if(G.global){o.event.trigger("ajaxError",
[I,G,H])}},active:0,httpSuccess:function(G){try{return !
G.status&&location.protocol=="file:"||(G.status>=200&&G.status<300)||
G.status==304||G.status==1223}catch(F){}return
false},httpNotModified:function(H,F){try{var I=H.getResponseHeader("Last-
Modified");return H.status==304||I==o.lastModified[F]}catch(G){}return
false},httpData:function(K,I,H){var G=K.getResponseHeader("content-
type"),F=I=="xml"||!I&&G&&G.indexOf("xml")>=0,J=F?
K.responseXML:K.responseText;if(F&&J.documentElement.tagName=="pa
rsererror"){throw"parsererror"}if(H&&H.dataFilter)
{J=H.dataFilter(J,I)}if(typeof J==="string"){if(I=="script")
{o.globalEval(J)}if(I=="json"){J=l["eval"]("("+J+")")}}return
J},param:function(F){var H=[];function I(J,K)
{H[H.length]=encodeURIComponent(J)
+"="+encodeURIComponent(K)}if(o.isArray(F)||F.jquery){o.each(F,function()
{I(this.name,this.value)})}else{for(var G in F){if(o.isArray(F[G]))
{o.each(F[G],function(){I(G,this)})}else{I(G,o.isFunction(F[G])?F[G]
():F[G])}}}return H.join("&").replace(/%20/g,"+")}});var
m={},n,d=[["height","marginTop","marginBottom","paddingTop","paddingBott
om"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],
["opacity"]];function t(G,F){var
H={};o.each(d.concat.apply([],d.slice(0,F)),function(){H[this]=G});return
H}o.fn.extend({show:function(K,M){if(K){return
this.animate(t("show",3),K,M)}else{for(var I=0,G=this.length;I<G;I++){var
F=o.data(this[I],"olddisplay");this[I].style.display=F||"";if(o.css(this[I],"display
")==="none"){var H=this[I].tagName,L;if(m[H]){L=m[H]}else{var J=o("<"+H+"
/>").appendTo("body");L=J.css("display");if(L==="none")
{L="block"}J.remove();m[H]=L}o.data(this[I],"olddisplay",L)}}for(var
I=0,G=this.length;I<G;I++)
{this[I].style.display=o.data(this[I],"olddisplay")||""}return
this}},hide:function(I,J){if(I){return this.animate(t("hide",3),I,J)}else{for(var
H=0,G=this.length;H<G;H++){var F=o.data(this[H],"olddisplay");if(!F&&F!
=="none"){o.data(this[H],"olddisplay",o.css(this[H],"display"))}}for(var
H=0,G=this.length;H<G;H++){this[H].style.display="none"}return
this}},_toggle:o.fn.toggle,toggle:function(H,G){var F=typeof
H==="boolean";return o.isFunction(H)&&o.isFunction(G)?
this._toggle.apply(this,arguments):H==null||F?this.each(function(){var I=F?
H:o(this).is(":hidden");o(this)[I?"show":"hide"]
()}):this.animate(t("toggle",3),H,G)},fadeTo:function(F,H,G){return
this.animate({opacity:H},F,G)},animate:function(J,G,I,H){var
F=o.speed(G,I,H);return this[F.queue===false?"each":"queue"](function()
{var
L=o.extend({},F),N,M=this.nodeType==1&&o(this).is(":hidden"),K=this;for(N
in J){if(J[N]=="hide"&&M||J[N]=="show"&&!M){return
L.complete.call(this)}if((N=="height"||N=="width")&&this.style)
{L.display=o.css(this,"display");L.overflow=this.style.overflow}}if(L.overflow!
=null)
{this.style.overflow="hidden"}L.curAnim=o.extend({},J);o.each(J,function(P,
T){var S=new o.fx(K,L,P);if(/toggle|show|hide/.test(T)){S[T=="toggle"?
M?"show":"hide":T](J)}else{var R=T.toString().match(/^([+-]=)?([\d+-.]+)(.*)
$/),U=S.cur(true)||0;if(R){var O=parseFloat(R[2]),Q=R[3]||"px";if(Q!="px")
{K.style[P]=(O||1)+Q;U=((O||1)/S.cur(true))*U;K.style[P]=U+Q}if(R[1])
{O=((R[1]=="-="?-1:1)*O)
+U}S.custom(U,O,Q)}else{S.custom(U,T,"")}}});return
true})},stop:function(G,F){var H=o.timers;if(G)
{this.queue([])}this.each(function(){for(var I=H.length-1;I>=0;I--)
{if(H[I].elem==this){if(F){H[I](true)}H.splice(I,1)}}});if(!F)
{this.dequeue()}return
this}});o.each({slideDown:t("show",1),slideUp:t("hide",1),slideToggle:t("toggl
e",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"}},function(F,G)
{o.fn[F]=function(H,I){return
this.animate(G,H,I)}});o.extend({speed:function(H,I,G){var F=typeof
H==="object"?H:{complete:G||!G&&I||
o.isFunction(H)&&H,duration:H,easing:G&&I||I&&!
o.isFunction(I)&&I};F.duration=o.fx.off?0:typeof F.duration==="number"?
F.duration:o.fx.speeds[F.duration]||
o.fx.speeds._default;F.old=F.complete;F.complete=function(){if(F.queue!
==false){o(this).dequeue()}if(o.isFunction(F.old)){F.old.call(this)}};return
F},easing:{linear:function(H,I,F,G){return F+G*H},swing:function(H,I,F,G)
{return((-Math.cos(H*Math.PI)/2)+0.5)*G+F}},timers:[],fx:function(G,F,H)
{this.options=F;this.elem=G;this.prop=H;if(!F.orig)
{F.orig={}}}});o.fx.prototype={update:function(){if(this.options.step)
{this.options.step.call(this.elem,this.now,this)}(o.fx.step[this.prop]||
o.fx.step._default)(this);if((this.prop=="height"||
this.prop=="width")&&this.elem.style)
{this.elem.style.display="block"}},cur:function(G){if(this.elem[this.prop]!
=null&&(!this.elem.style||this.elem.style[this.prop]==null)){return
this.elem[this.prop]}var F=parseFloat(o.css(this.elem,this.prop,G));return
F&&F>-10000?F:parseFloat(o.curCSS(this.elem,this.prop))||
0},custom:function(J,I,H)
{this.startTime=e();this.start=J;this.end=I;this.unit=H||
this.unit||"px";this.now=this.start;this.pos=this.state=0;var F=this;function
G(K){return F.step(K)}G.elem=this.elem;if(G()&&o.timers.push(G)&&!n)
{n=setInterval(function(){var L=o.timers;for(var K=0;K<L.length;K++){if(!L[K]
()){L.splice(K--,1)}}if(!L.length){clearInterval(n);n=g}},13)}},show:function()
{this.options.orig[this.prop]=o.attr(this.elem.style,this.prop);this.options.sho
w=true;this.custom(this.prop=="width"||this.prop=="height"?
1:0,this.cur());o(this.elem).show()},hide:function()
{this.options.orig[this.prop]=o.attr(this.elem.style,this.prop);this.options.hide
=true;this.custom(this.cur(),0)},step:function(I){var H=e();if(I||
H>=this.options.duration+this.startTime)
{this.now=this.end;this.pos=this.state=1;this.update();this.options.curAnim[t
his.prop]=true;var F=true;for(var G in this.options.curAnim)
{if(this.options.curAnim[G]!==true){F=false}}if(F){if(this.options.display!
=null)
{this.elem.style.overflow=this.options.overflow;this.elem.style.display=this.o
ptions.display;if(o.css(this.elem,"display")=="none")
{this.elem.style.display="block"}}if(this.options.hide)
{o(this.elem).hide()}if(this.options.hide||this.options.show){for(var J in
this.options.curAnim)
{o.attr(this.elem.style,J,this.options.orig[J])}}this.options.complete.call(this.e
lem)}return false}else{var K=H-
this.startTime;this.state=K/this.options.duration;this.pos=o.easing[this.optio
ns.easing||(o.easing.swing?"swing":"linear")]
(this.state,K,0,1,this.options.duration);this.now=this.start+((this.end-
this.start)*this.pos);this.update()}return true}};o.extend(o.fx,{speeds:
{slow:600,fast:200,_default:400},step:{opacity:function(F)
{o.attr(F.elem.style,"opacity",F.now)},_default:function(F)
{if(F.elem.style&&F.elem.style[F.prop]!=null)
{F.elem.style[F.prop]=F.now+F.unit}else{F.elem[F.prop]=F.now}}}});if(docum
ent.documentElement.getBoundingClientRect){o.fn.offset=function(){if(!
this[0]){return{top:0,left:0}}if(this[0]===this[0].ownerDocument.body){return
o.offset.bodyOffset(this[0])}var
H=this[0].getBoundingClientRect(),K=this[0].ownerDocument,G=K.body,F=
K.documentElement,M=F.clientTop||G.clientTop||0,L=F.clientLeft||
G.clientLeft||0,J=H.top+(self.pageYOffset||o.boxModel&&F.scrollTop||
G.scrollTop)-M,I=H.left+(self.pageXOffset||o.boxModel&&F.scrollLeft||
G.scrollLeft)-L;return{top:J,left:I}}}else{o.fn.offset=function(){if(!this[0])
{return{top:0,left:0}}if(this[0]===this[0].ownerDocument.body){return
o.offset.bodyOffset(this[0])}o.offset.initialized||o.offset.initialize();var
K=this[0],H=K.offsetParent,G=K,P=K.ownerDocument,N,I=P.documentEle
ment,L=P.body,M=P.defaultView,F=M.getComputedStyle(K,null),O=K.offset
Top,J=K.offsetLeft;while((K=K.parentNode)&&K!==L&&K!==I)
{N=M.getComputedStyle(K,null);O-=K.scrollTop,J-=K.scrollLeft;if(K===H)
{O+=K.offsetTop,J+=K.offsetLeft;if(o.offset.doesNotAddBorder&&!
(o.offset.doesAddBorderForTableAndCells&&/^t(able|d|h)
$/i.test(K.tagName))){O+=parseInt(N.borderTopWidth,10)||
0,J+=parseInt(N.borderLeftWidth,10)||
0}G=H,H=K.offsetParent}if(o.offset.subtractsBorderForOverflowNotVisible&
&N.overflow!=="visible"){O+=parseInt(N.borderTopWidth,10)||
0,J+=parseInt(N.borderLeftWidth,10)||0}F=N}if(F.position==="relative"||
F.position==="static")
{O+=L.offsetTop,J+=L.offsetLeft}if(F.position==="fixed")
{O+=Math.max(I.scrollTop,L.scrollTop),J+=Math.max(I.scrollLeft,L.scrollLeft
)}return{top:O,left:J}}}o.offset={initialize:function(){if(this.initialized)
{return}var
M=document.body,G=document.createElement("div"),I,H,O,J,N,F,K=M.styl
e.marginTop,L='<div
style="position:absolute;top:0;left:0;margin:0;border:5px solid
#000;padding:0;width:1px;height:1px;"><div></div></div><table
style="position:absolute;top:0;left:0;margin:0;border:5px solid
#000;padding:0;width:1px;height:1px;" cellpadding="0"
cellspacing="0"><tr><td></td></tr></table>';N={position:"absolute",top:0,lef
t:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"};for(F in N)
{G.style[F]=N[F]}G.innerHTML=L;M.insertBefore(G,M.firstChild);I=G.firstChi
ld,H=I.firstChild,J=I.nextSibling.firstChild.firstChild;this.doesNotAddBorder=
(H.offsetTop!
==5);this.doesAddBorderForTableAndCells=(J.offsetTop===5);I.style.overfl
ow="hidden",I.style.position="relative";this.subtractsBorderForOverflowNot
Visible=(H.offsetTop===-
5);M.style.marginTop="1px";this.doesNotIncludeMarginInBodyOffset=(M.off
setTop===0);M.style.marginTop=K;M.removeChild(G);this.initialized=true},b
odyOffset:function(F){o.offset.initialized||o.offset.initialize();var
H=F.offsetTop,G=F.offsetLeft;if(o.offset.doesNotIncludeMarginInBodyOffset)
{H+=parseInt(o.curCSS(F,"marginTop",true),10)||
0,G+=parseInt(o.curCSS(F,"marginLeft",true),10)||
0}return{top:H,left:G}}};o.fn.extend({position:function(){var
J=0,I=0,G;if(this[0]){var H=this.offsetParent(),K=this.offset(),F=/^body|
html$/i.test(H[0].tagName)?{top:0,left:0}:H.offset();K.top-
=j(this,"marginTop");K.left-
=j(this,"marginLeft");F.top+=j(H,"borderTopWidth");F.left+=j(H,"borderLeftWi
dth");G={top:K.top-F.top,left:K.left-F.left}}return G},offsetParent:function()
{var F=this[0].offsetParent||document.body;while(F&&(!/^body|
html$/i.test(F.tagName)&&o.css(F,"position")=="static"))
{F=F.offsetParent}return o(F)}});o.each(["Left","Top"],function(G,F){var
H="scroll"+F;o.fn[H]=function(I){if(!this[0]){return null}return I!==g?
this.each(function(){this==l||this==document?l.scrollTo(!G?
I:o(l).scrollLeft(),G?I:o(l).scrollTop()):this[H]=I}):this[0]==l||
this[0]==document?self[G?"pageYOffset":"pageXOffset"]||
o.boxModel&&document.documentElement[H]||document.body[H]:this[0]
[H]}});o.each(["Height","Width"],function(J,H){var
F=J?"Left":"Top",I=J?"Right":"Bottom",G=H.toLowerCase();o.fn["inner"+H]=f
unction(){return this[0]?
o.css(this[0],G,false,"padding"):null};o.fn["outer"+H]=function(L){return
this[0]?o.css(this[0],G,false,L?"margin":"border"):null};var
K=H.toLowerCase();o.fn[K]=function(L){return this[0]==l?
document.compatMode=="CSS1Compat"&&document.documentElement["
client"+H]||document.body["client"+H]:this[0]==document?
Math.max(document.documentElement["client"+H],document.body["scroll"+
H],document.documentElement["scroll"+H],document.body["offset"+H],doc
ument.documentElement["offset"+H]):L===g?(this.length?
o.css(this[0],K):null):this.css(K,typeof L==="string"?L:L+"px")}})})();
/* Copyright (c) 2009 Brandon Aaron (http://brandonaaron.net)
* Dual licensed under the MIT (http://www.opensource.org/licenses/mit-
license.php)
* and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses.
* Thanks to: http://adomas.org/javascript-mouse-wheel/ for some pointers.
* Thanks to: Mathias Bank(http://www.mathias-bank.de) for a scope bug
fix.
*
* Version: 3.0.2
*
* Requires: 1.2.2+
*/
(function(c){var
a=["DOMMouseScroll","mousewheel"];c.event.special.mousewheel={setup:
function(){if(this.addEventListener){for(var d=a.length;d;)
{this.addEventListener(a[--
d],b,false)}}else{this.onmousewheel=b}},teardown:function()
{if(this.removeEventListener){for(var d=a.length;d;)
{this.removeEventListener(a[--
d],b,false)}}else{this.onmousewheel=null}}};c.fn.extend({mousewheel:functi
on(d){return d?
this.bind("mousewheel",d):this.trigger("mousewheel")},unmousewheel:funct
ion(d){return this.unbind("mousewheel",d)}});function b(f){var
d=[].slice.call(arguments,1),g=0,e=true;f=c.event.fix(f||
window.event);f.type="mousewheel";if(f.wheelDelta)
{g=f.wheelDelta/120}if(f.detail){g=-f.detail/3}d.unshift(f,g);return
c.event.handle.apply(this,d)}})(jQuery);var gadgets=gadgets||
{};gadgets.config=function(){var a={};return{register:function(d,c,b){if(a[d])
{throw new Error('Component "'+d+'" is already
registered.')}a[d]={validators:c||{},callback:b}},get:function(b){if(b){if(!a[b])
{throw new Error('Component "'+b+'" not registered.')}return
configuration[b]||{}}return configuration},init:function(g,f)
{configuration=g;for(var e in a){var d=a[e],c=g[e],b=d.validators;if(!f){for(var
h in b){if(!b[h](c[h])){throw new Error('Invalid config value "'+c[h]+'" for
parameter "'+h+'" in component "'+e+'"')}}}if(d.callback)
{d.callback(g)}}},EnumValidator:function(e){var d=[];if(arguments.length>1)
{for(var c=0,b;b=arguments[c];++c){d.push(b)}}else{d=e}return function(g)
{for(var f=0,h;h=d[f];++f){if(g===d[f]){return true}}};return
false},RegExValidator:function(b){return function(c){return
b.test(c)}},ExistsValidator:function(b){return typeof b!
=="undefined"},NonEmptyStringValidator:function(b){return typeof
b==="string"&&b.length>0},BooleanValidator:function(b){return !!
b},LikeValidator:function(b){return function(d){for(var e in b){var c=b[e];if(!
c(d[e])){return false}}return true}}}}();gadgets.util=function(){function d(){var
h;var g=document.location.href;var e=g.indexOf("?");var
f=g.indexOf("#");if(f===-1){h=g.substr(e+1)}else{h=[g.substr(e+1,f-e-
1),"&",g.substr(f+1)].join("")}return h.split("&")}var b=null;var a={};var
c=[];return{getUrlParameters:function(){if(b!==null){return b}b={};var
h=d();var m=window.decodeURIComponent?
decodeURIComponent:unescape;for(var f=0,e=h.length;f<e;++f){var
l=h[f].indexOf("=");if(l===-1){continue}var k=h[f].substring(0,l);var
g=h[f].substring(l+1);g=g.replace(/\+/g," ");b[k]=m(g)}return
b},makeClosure:function(h,l,k){var e=[];for(var g=2,f=arguments.length;g<f;
++g){e.push(arguments[g])}return function(){for(var
n=0,m=arguments.length;n<m;++n)
{e.push(arguments[n])}l.apply(h,e)}},makeEnum:function(f){var h={};for(var
g=0,e;e=f[g];++g){h[e]=e}return h},getFeatureParameters:function(e){return
typeof a[e]==="undefined"?null:a[e]},hasFeature:function(e){return typeof
a[e]==="undefined"},registerOnLoadHandler:function(e)
{c.push(e)},runOnLoadHandlers:function(){for(var f=0,e=c.length;f<e;++f)
{c[f]()}},init:function(e){a=e}}}();gadgets.views=function(){var e=null;var
a={};var d={};function c(j){var f=j.views;var n=0;for(var p in f)
{if(f.hasOwnProperty(p)){var k=f[p];a[p]=new
gadgets.views.View(k.name_,k.isOnlyVisible_);a[n]=a[p];n++;var
h=k.aliases||[];for(var l=0,m;m=h[l];++l){a[m]=new
gadgets.views.View(k.name_,k.isOnlyVisible_)}}}var
g=gadgets.util.getUrlParameters();if(g["view-params"]){var
o=gadgets.json.parse(decodeURIComponent(g["view-params"]));if(o)
{d=o}}e=a[g.views]||a["default"]}var b={"default":new
gadgets.config.LikeValidator({isOnlyVisible_:gadgets.config.BooleanValidat
or})};gadgets.config.register("views",b,c);return{requestNavigateTo:function
(f,g)
{gadgets.rpc.call(null,"requestNavigateTo",null,f.getName(),g)},getCurrentVi
ew:function(){return e},getSupportedViews:function(){return
a},getParams:function(){return d}}}();gadgets.views.View=function(a,b)
{this.name_=a;this.isOnlyVisible_=!!
b};gadgets.views.View.prototype.getName=function(){return
this.name_};gadgets.views.View.prototype.isOnlyVisibleGadget=function()
{return
this.isOnlyVisible_};gadgets.views.ViewType=gadgets.util.makeEnum(["FU
LL_PAGE","DASHBOARD","POPUP"]);gadgets.window=gadgets.window||
{};(function(){var a;gadgets.window.getViewportDimensions=function(){var
b,c;if(self.innerHeight)
{b=self.innerWidth;c=self.innerHeight}else{if(document.documentElement&
&document.documentElement.clientHeight)
{b=document.documentElement.clientWidth;c=document.documentElemen
t.clientHeight}else{if(document.body)
{b=document.body.clientWidth;c=document.body.clientHeight}else{b=0;c=0
}}}return{width:b,height:c}};gadgets.window.adjustHeight=function(i){var
c=parseInt(i,10);var k=false;if(isNaN(c)){var
f=gadgets.window.getViewportDimensions().height;var
h=document.body;var
e=document.documentElement;if(document.compatMode=="CSS1Compat"
&&e.scrollHeight){c=e.scrollHeight!=f?e.scrollHeight:e.offsetHeight}else{var
g=e.scrollHeight;var j=e.offsetHeight;if(e.clientHeight!=j)
{g=h.scrollHeight;j=h.offsetHeight}if(g>f){c=g>j?g:j}else{c=g<j?
g:j}if(c===f&&window.navigator&&window.navigator.userAgent&&window.n
avigator.userAgent.toLowerCase().indexOf("safari")>=0){var
b=document.createElement("div");b.innerHTML=document.body.innerHTM
L;b.style.visibility="hidden";b.id="_temp_____div_for_____adjustHeight";do
cument.body.appendChild(b);c=document.getElementById("_temp_____div
_for_____adjustHeight").offsetHeight+15;b.innerHTML="";document.body.r
emoveChild(b)}}}else{if(0===c){c=parseFloat(i);if(!isNaN(c)&&(c<=1||c>0))
{k=true}}}if(c!=a||k){a=c;var
d=opensocial.Container.get().params_;_IFPC.call(d.panelId,"resizeWidget",
[d.panelId,c],d.remoteRelay,null,d.localRelay,null)}}}
());if(typeof(MyOpenSpace)==="undefined")
{MyOpenSpace={}}MyOpenSpace.Util={};MyOpenSpace.Util.parseIdPrefix
=function(b){var a=(""+b).match(/^(?:myspace\.com:)?(\d+)$/);if(a===null||
a.length===0){return null}return a[1]};MyOpenSpace.Activity=function(a)
{this.fields_=a||
{}};MyOpenSpace.Activity.Field={TITLE_ID:"titleId",TITLE:"title",TEMPLATE
_PARAMS:"templateParams",URL:"url",MEDIA_ITEMS:"mediaItems",BOD
Y_ID:"bodyId",BODY:"body",EXTERNAL_ID:"externalId",STREAM_TITLE:"
streamTitle",STREAM_URL:"streamUrl",STREAM_SOURCE_URL:"stream
SourceUrl",STREAM_FAVICON_URL:"streamFaviconUrl",PRIORITY:"priori
ty",ID:"id",USER_ID:"userId",APP_ID:"appId",POSTED_TIME:"postedTime"
};MyOpenSpace.Activity.prototype.getId=function(){return
this.getField(MyOpenSpace.Activity.Field.ID)};MyOpenSpace.Activity.protot
ype.getField=function(a){return
this.fields_[a]};MyOpenSpace.Activity.prototype.setField=function(a,b)
{return
this.fields_[a]=b};MyOpenSpace.CreateActivityPriority={HIGH:"HIGH",LOW
:"LOW"};MyOpenSpace.MediaItem=function(c,a,b){this.fields_=b||
{};this.fields_[MyOpenSpace.MediaItem.Field.MIME_TYPE]=c;this.fields_[
MyOpenSpace.MediaItem.Field.URL]=a};MyOpenSpace.MediaItem.Type={
IMAGE:"image",VIDEO:"video",AUDIO:"audio"};MyOpenSpace.MediaItem.
Field={TYPE:"type",MIME_TYPE:"mimeType",URL:"url"};MyOpenSpace.M
ediaItem.prototype.getField=function(a){return
this.fields_[a]};MyOpenSpace.MediaItem.prototype.setField=function(a,b)
{return this.fields_[a]=b};MyOpenSpace.Permission=function()
{};MyOpenSpace.Permission.Field={DISPLAY_ON_PROFILE:"DisplayOnP
rofile",DISPLAY_ON_HOME:"DisplayOnHome",SEND_UPDATES_TO_FRI
ENDS:"SendUpdatesToFriends",SHOW_UPDATES_FROM_FRIENDS:"Sh
owUpdatesFromFriends",ACCESS_TO_PRIVATE_VIDEOS_PHOTOS:"Acc
essToPrivateVideosPhotos",ACCESS_TO_PUBLIC_VIDEOS_PHOTOS:"A
ccessToPublicVideosPhotos",ACCESS_TO_IDENTITY_INFORMATION:"A
ccessToIdentityInformation",ADD_PHOTOS_TO_ALBUMS:"AddPhotosAlb
ums",UPDATE_MOOD_STATUS:"UpdateMoodStatus",UPDATE_PROFILE
:"UpdateProfile",CONTACT_INFO:"ViewContactInfo",FULL_PROFILE_INF
O:"ViewFullProfileInfo",BASIC_COMMUNICATIONS:"BasicCommunication
s",ACCESS_TO_FRIEND_LIST:"AccessToFriendList",ACCESS_TO_BASI
C_INFO:"BasicInfo"};MyOpenSpace.Permission={VIEWER_DISPLAY_ON_
PROFILE:
{permission:MyOpenSpace.Permission.Field.DISPLAY_ON_PROFILE,per
missionIndicator:"DP"},VIEWER_DISPLAY_ON_HOME:
{permission:MyOpenSpace.Permission.Field.DISPLAY_ON_HOME,permis
sionIndicator:"DH"},VIEWER_SEND_UPDATES_TO_FRIENDS:
{permission:MyOpenSpace.Permission.Field.SEND_UPDATES_TO_FRIE
NDS,permissionIndicator:"UT"},VIEWER_SHOW_UPDATES_FROM_FRIE
NDS:
{permission:MyOpenSpace.Permission.Field.SHOW_UPDATES_FROM_F
RIENDS,permissionIndicator:"UF"},VIEWER_ACCESS_TO_PRIVATE_VID
EOS_PHOTOS:
{permission:MyOpenSpace.Permission.Field.ACCESS_TO_PRIVATE_VID
EOS_PHOTOS,permissionIndicator:"PR"},VIEWER_ACCESS_TO_PUBLI
C_VIDEOS_PHOTOS:
{permission:MyOpenSpace.Permission.Field.ACCESS_TO_PUBLIC_VIDE
OS_PHOTOS,permissionIndicator:"PB"},VIEWER_ACCESS_TO_IDENTIT
Y_INFORMATION:
{permission:MyOpenSpace.Permission.Field.ACCESS_TO_IDENTITY_INF
ORMATION,permissionIndicator:"AI"},VIEWER_ADD_PHOTOS_TO_ALBU
MS:
{permission:MyOpenSpace.Permission.Field.ADD_PHOTOS_TO_ALBUM
S,permissionIndicator:"PA"},VIEWER_UPDATE_MOOD_STATUS:
{permission:MyOpenSpace.Permission.Field.UPDATE_MOOD_STATUS,pe
rmissionIndicator:"UM"},VIEWER_UPDATE_PROFILE:
{permission:MyOpenSpace.Permission.Field.UPDATE_PROFILE,permissio
nIndicator:"UP"},VIEWER_CONTACT_INFO:
{permission:MyOpenSpace.Permission.Field.CONTACT_INFO,permissionI
ndicator:"VC"},VIEWER_FULL_PROFILE_INFO:
{permission:MyOpenSpace.Permission.Field.FULL_PROFILE_INFO,permi
ssionIndicator:"VF"},VIEWER_ACCESS_TO_BASIC_INFO:
{permission:MyOpenSpace.Permission.Field.ACCESS_TO_BASIC_INFO,p
ermissionIndicator:"BI"},VIEWER_ACCESS_TO_FRIEND_LIST:
{permission:MyOpenSpace.Permission.Field.ACCESS_TO_FRIEND_LIST,
permissionIndicator:"FL"},VIEWER_BASIC_COMMUNICATIONS:
{permission:MyOpenSpace.Permission.Field.BASIC_COMMUNICATIONS,
permissionIndicator:"BC"}};MyOpenSpace.View={};MyOpenSpace.View.Fie
ld={CANVAS:"canvas",PROFILE_LEFT:"profile.left",PROFILE_RIGHT:"profi
le.right",PROFILE:"profile",HOME:"home",DEFAULT:"canvas"};MyOpenSpa
ce.Message=function(a,b){this.fields_=b||
{};this.fields_[MyOpenSpace.Message.Field.BODY]=a};MyOpenSpace.Mes
sage.Field={TYPE:"type",TITLE:"title",BODY:"body",TITLE_ID:"titleId",BOD
Y_ID:"bodyId"};MyOpenSpace.Message.prototype.getField=function(a)
{return
this.fields_[a]};MyOpenSpace.Message.prototype.setField=function(a,b)
{return
this.fields_[a]=b};MyOpenSpace.PostTo={};MyOpenSpace.PostTo.Targets=
{PROFILE:"PROFILE",SEND_MESSAGE:"SEND_MESSAGE",COMMENT
S:"COMMENTS",BULLETINS:"BULLETINS",BLOG:"BLOG",SHARE_APP:"
SHARE_APP",ACTIVITY:"ACTIVITY"};MyOpenSpace.PostTo.Result={ERR
OR:-
1,CANCELLED:0,SUCCESS:1};MyOpenSpace.MySpaceContainer=functio
n()
{gadgets.util.getUrlParameters().views=gadgets.util.getUrlParameters().ope
nsocial_surface;var b={};var d={};d["default"]=new
gadgets.views.View(MyOpenSpace.View.Field.DEFAULT,true);d[MyOpenS
pace.View.Field.CANVAS]=new
gadgets.views.View(MyOpenSpace.View.Field.CANVAS,true);b.views=d;ga
dgets.config.init(b);this.osMode_=gadgets.views.getCurrentView();var
e=window.location.hash;if(e&&e.length>=0)
{e=e.substring(1,e.length);if(e.indexOf("&")>=0)
{e=e.substring(0,e.indexOf("&"))}}this.params_={};var
a=gadgets.util.getUrlParameters();if(a&&a.opensocial_token)
{this.params_.osToken=a.opensocial_token}if(a&&a.opensocial_owner_id)
{this.params_.ownerid=a.opensocial_owner_id}if(a.opensocial_viewer_id)
{this.params_.viewerId=a.opensocial_viewer_id}if(a&&a.appid)
{this.params_.appid=a.appid}if(a&&a.ptoString)
{this.params_.supportedPostToTargets=a.ptoString.split(",")}else{this.param
s_.supportedPostToTargets=["COMMENTS","BLOG","BULLETINS","PROFI
LE","SEND_MESSAGE","SHARE_APP"]}if(a.userBlockedApp)
{this.params_.appBlocked=true}else{this.params_.appBlocked=false}if(a.us
erLoggedOut)
{this.params_.loggedOut=true}else{this.params_.loggedOut=false}if(a.instal
lState)
{this.params_.installState=""+a.installState}else{this.params_.installState="
1"}if(a.perm)
{perm=gadgets.json.parse('{"permissions":'+a.perm+"}");this.params_.view
erPerm=perm.permissions}else{this.params_.viewerPerm=[]}MyOpenSpac
e.MDPContainerRSAMultipleRecipients=true;MyOpenSpace.MDPContaine
rUseOpenCanvas=true;MyOpenSpace.EnableClientCache=false;if(a&&a.m
c){var f=a.mc.split(",");for(var c=0;c<f.length;c++){switch(f[c])
{case"UOC":MyOpenSpace.MDPContainerUseOpenCanvas=false;break;c
ase"RSAMR":MyOpenSpace.MDPContainerRSAMultipleRecipients=false;b
reak;case"ECC":MyOpenSpace.EnableClientCache=true;break}}}this.para
ms_.remoteRelay="http://profile.myspace.com/Modules/Applications/Pages
/ifpc_relay.aspx"};MyOpenSpace.MySpaceContainer.container_=new
MyOpenSpace.MySpaceContainer();MyOpenSpace.MySpaceContainer.get
=function(){return
MyOpenSpace.MySpaceContainer.container_};MyOpenSpace.MySpaceCo
ntainer.prototype.getQueryString=function(){var
b=window.location.search.substring(1);var d=this.params_.viewerPerm;var
a="";for(var c=0;c<d.length;c++){if(a[c]!==""){if(a!=="")
{a+="%2C"}a+="%22"+d[c]
+"%22"}}a="["+a+"]";b=b.replace(/&perm=(.*?)&/,"&perm="+a+"&");if(""+this
.params_.installState==="1"){return
b.replace(/&installState=(.*?)&/,"&installState=1&")}else{return
b.replace(/&installState=(.*?)&/,"&installState=0&")}};MyOpenSpace.MySpa
ceContainer.prototype.newMediaItem=function(c,a,b){return new
MyOpenSpace.MediaItem(c,a,b)};MyOpenSpace.MySpaceContainer.protot
ype.newActivity=function(a){return new MyOpenSpace.Activity(a)};var
_IFPC=window._IFPC;MyOpenSpace.MySpaceContainer.prototype.registe
rParam=function(a,b)
{this.params_[a]=b};MyOpenSpace.MySpaceContainer.prototype.getParam
=function(a){return
this.params_[a]};MyOpenSpace.MySpaceContainer.prototype.newMessage
=function(a,b){return new
MyOpenSpace.Message(a,b)};MyOpenSpace.MySpaceContainer.prototype
.requestCreateActivity=function(g,e,d){var
b=MyOpenSpace.MySpaceContainer.get();if(!
b.hasPermission(MyOpenSpace.Permission.VIEWER_SEND_UPDATES_
TO_FRIENDS)){if(d){var
a={errorCode:"UNAUTHORIZED",errorMessage:"You do not have
permission to send an activities. Send updates to friends permission is
required."};d(a)}return}if(!g||!
g.getField(MyOpenSpace.Activity.Field.TITLE_ID)){if(d){var
a={errorCode:"BAD_REQUEST",errorMessage:"You must supply an
MyOpenSpace.Activity object with a TITLE_ID."};d(a)}return}var
c=function(k){var o,q,r,s,p=MyOpenSpace.PostTo.Targets.ACTIVITY;var
j=MyOpenSpace.MySpaceContainer.get();if(k.getField(MyOpenSpace.Activ
ity.Field.MEDIA_ITEMS)&&k.getField(MyOpenSpace.Activity.Field.MEDIA_
ITEMS).length>0){var
h=k.getField(MyOpenSpace.Activity.Field.MEDIA_ITEMS);var n="{";for(var
m=0;m<h.length;m++){if(0!==m)
{n+=","}n+='"'+h[m].getField(MyOpenSpace.MediaItem.Field.URL)
+'"'}n+="}";o=escape(n)}if(k.getField(MyOpenSpace.Activity.Field.TEMPLAT
E_PARAMS))
{q=escape(gadgets.json.stringify(k.getField(MyOpenSpace.Activity.Field.TE
MPLATE_PARAMS)))}r=escape(k.getField(MyOpenSpace.Activity.Field.TIT
LE_ID));s=k.getField(MyOpenSpace.Activity.Field.PRIORITY);var
l={};l[MyOpenSpace.Message.Field.TITLE]=q;l[MyOpenSpace.Message.Fi
eld.TITLE_ID]=r;l[MyOpenSpace.Message.Field.TYPE]=p;l[MyOpenSpace.
Message.Field.BODY_ID]=e;return j.newMessage(o,l)};if(e)
{g.setField(MyOpenSpace.Activity.Field.PRIORITY,e)}var
f=c(g);b.postTo(f,d)};MyOpenSpace.MySpaceContainer.prototype.adjustHei
ght=function(h){var b=parseInt(h,10);var k=false;if(isNaN(b)){var
e=gadgets.window.getViewportDimensions().height;var
g=document.body;var
d=document.documentElement;if(document.compatMode=="CSS1Compat"
&&d.scrollHeight){b=d.scrollHeight!=e?
d.scrollHeight:d.offsetHeight}else{var f=d.scrollHeight;var
i=d.offsetHeight;if(d.clientHeight!=i){f=g.scrollHeight;i=g.offsetHeight}if(f>e)
{b=f>i?f:i}else{b=f<i?
f:i}if(b===e&&window.navigator&&window.navigator.userAgent&&window.n
avigator.userAgent.toLowerCase().indexOf("safari")>=0){var
a=document.createElement("div");a.innerHTML=document.body.innerHTM
L;a.style.visibility="hidden";a.id="_temp_____div_for_____adjustHeight";do
cument.body.appendChild(a);b=document.getElementById("_temp_____di
v_for_____adjustHeight").offsetHeight+15;a.innerHTML="";document.body.
removeChild(a)}}}else{if(0===b){b=parseFloat(h);if(!isNaN(b)&&(b<=1||
b>0)){k=true}}}var j=gadgets.window.getViewportDimensions().height;if(b!
=j||k){var c=this.params_;_IFPC.call(c.panelId,"resizeWidget",
[c.panelId,b],c.remoteRelay,null,c.localRelay,null)}};MyOpenSpace.MySpac
eContainer.prototype.requestNavigateTo=function(a,b){if(a)
{if(0===a.indexOf("profile.")){a="profile"}var
c=this.params_;_IFPC.call(c.panelId,"requestNavigateTo",
[c.appid,c.ownerid,a.toLowerCase(),b],c.remoteRelay,null,c.localRelay,null)}
};MyOpenSpace.MySpaceContainer.prototype.postTo=function(r,q,j,n,m,e)
{if(MyOpenSpace.View.Field.CANVAS!
==gadgets.views.getCurrentView().getName())
{return{errorCode:"BAD_REQUEST",errorMessage:"PostTo does not
support this view, only the canvas view is supported."}}var o=false;var
a=this.params_.supportedPostToTargets;var l="";var f;var k;if(null!
==r&&"undefined"!==typeof(r))
{l=r.getField(MyOpenSpace.Message.Field.TITLE);f=r.getField(MyOpenSp
ace.Message.Field.BODY);k=r.getField(MyOpenSpace.Message.Field.TYP
E)}else{if(q){q({errorCode:"BAD_REQUEST",errorMessage:"You must
supply a valid Message
object."})}return}if(k===MyOpenSpace.PostTo.Targets.SHARE_APP)
{this.requestShareApp(j,r,q);return}for(var h=0;h<a.length;h++){if(a[h]===k)
{o=true;break}}if(!o){if(q)
{q({errorCode:"BAD_REQUEST",errorMessage:"That PostTo target is not
supported."})}return}var
d=this.params_.osToken;if(typeof(d)==="undefined"){if(q)
{q({errorCode:"BAD_REQUEST",errorMessage:"Open social token not
set."})}return}var p=null;var b=null;var
g=q;if(k===MyOpenSpace.PostTo.Targets.ACTIVITY)
{b=r.getField(MyOpenSpace.Message.Field.TITLE_ID);p=r.getField(MyOpe
nSpace.Message.Field.BODY_ID);j=this.params_.viewerId;g=function(i)
{var s=-1;if(typeof i.ResultCode!=="undefined")
{s=i.ResultCode}else{s=i}if(q){q(s)}}}var
c=this.params_.panelId;_IFPC.call(c,"postTo",
[d,k,l,f,j,m,n,e,b,p,this.params_.appid],this.params_.remoteRelay,g,this.par
ams_.localRelay,null)};MyOpenSpace.MySpaceContainer.prototype.reques
tShareApp=function(b,f,j){if(MyOpenSpace.View.Field.CANVAS!
==gadgets.views.getCurrentView().getName()){if(j)
{return{errorCode:"BAD_REQUEST",errorMessage:"requestShareApp
does not support this view, only the canvas view is
supported."}}return}if(typeof(f)==="undefined"||
typeof(f.getField)==="undefined"){if(j)
{j({errorCode:"BAD_REQUEST",errorMessage:"Invalid
opensocial.Message object for parameter 'reason'."})}return}var
c=this.params_.supportedPostToTargets;for(var d=0;d<c.length;d++)
{if(c[d]===MyOpenSpace.PostTo.Targets.SHARE_APP)
{target_is_supported=true;break}}if(!target_is_supported){if(j)
{j({errorCode:"BAD_REQUEST",errorMessage:"requestShareApp is not
supported or temporarily disabled."})}return}if(typeof(b)==="undefined"||
b===null){j({errorCode:"BAD_REQUEST",errorMessage:"'recipients'
parameter is required."});return}if(b.constructor!==Array)
{b=[b]}else{if(false===MyOpenSpace.MDPContainerRSAMultipleRecipients
&&b.length>1){if(j)
{j({errorCode:"NOT_IMPLEMENTED",errorMessage:"requestShareApp
does not currently support multiple recipients."})}return}else{if(b.length>10)
{if(j){j({errorCode:"BAD_REQUEST",errorMessage:"You can only share the
app with a maximum of 10 friends."})}return}}}var e,a=[];for(var
d=0;d<b.length;d++){e=MyOpenSpace.Util.parseIdPrefix(b[d]);if(e===null)
{if(j){j({errorCode:"BAD_REQUEST",errorMessage:"Invalid id, IDs must be
strings or array of strings, in the format '6221' or
'myspace.com:6221'"})}return}a.push(e)}var
h=f.getField(MyOpenSpace.Message.Field.TITLE);var
g=f.getField(MyOpenSpace.Message.Field.BODY);_IFPC.call(this.params_
.panelId,"postTo",
[this.params_.osToken,MyOpenSpace.PostTo.Targets.SHARE_APP,h,g,a.j
oin(","),null,null,null,null,null,this.params_.appid],this.params_.remoteRelay,
j,this.params_.localRelay,null)};MyOpenSpace.MySpaceContainer.prototyp
e.hasPermission=function(a){var f=this.params_;var c=f.appBlocked;var
b=f.loggedOut;if((c||b)){return false}var e=function(g){var
h=f.viewerPerm;for(var j in h){if(h[j]===g.permissionIndicator){return
true}}return false};var d=f.installState;if(a.permissionIndicator==="BI"||
a.permissionIndicator==="BC"||a.permissionIndicator==="FL"){if(d==="0")
{return e(a)}else{return true}}else{if(d==="0"){return false}}return
e(a)};MyOpenSpace.MySpaceContainer.prototype.requestPermission=func
tion(c,g,d){var h=this.params_;var
e=[MyOpenSpace.Permission.VIEWER_DISPLAY_ON_PROFILE,MyOpen
Space.Permission.VIEWER_DISPLAY_ON_HOME,MyOpenSpace.Permiss
ion.VIEWER_SEND_UPDATES_TO_FRIENDS,MyOpenSpace.Permission.
VIEWER_ACCESS_TO_PRIVATE_VIDEOS_PHOTOS,MyOpenSpace.Per
mission.VIEWER_ACCESS_TO_PUBLIC_VIDEOS_PHOTOS,MyOpenSpa
ce.Permission.VIEWER_SHOW_UPDATES_FROM_FRIENDS,MyOpenSp
ace.Permission.VIEWER_ACCESS_TO_IDENTITY_INFORMATION,MyOp
enSpace.Permission.VIEWER_ADD_PHOTOS_TO_ALBUMS,MyOpenSpa
ce.Permission.VIEWER_UPDATE_MOOD_STATUS,MyOpenSpace.Permis
sion.VIEWER_UPDATE_PROFILE,MyOpenSpace.Permission.VIEWER_C
ONTACT_INFO,MyOpenSpace.Permission.VIEWER_FULL_PROFILE_INF
O];if(MyOpenSpace.View.Field.CANVAS!
==gadgets.views.getCurrentView().getName())
{return{errorCode:"NOT_IMPLEMENTED",errorMessage:"requestPermissi
on does not support this view, only the canvas view is supported."}}var
f=new Array();if(c&&typeof(c.permission)!=="undefined"){for(var b in e)
{if(e[b].permission===c.permission){if(!this.hasPermission(c))
{f.push(c.permission)}break}}}var a=function(j){var
r=MyOpenSpace.MySpaceContainer.get();if(j){var i=h.viewerPerm;var
k=[];var l=true;for(var q in j){var p=null;var m=j[q];if(q=="installed")
{r.registerParam("installState",1);continue}l&=m;for(var n in e)
{if(e[n].permission.toLowerCase()===q.toLowerCase()){p=e[n];break}}if(p!
==null){if(m){k.push(p)}var s=false;var o=0;for(var t in i)
{if(i[n]===p.permissionIndicator){s=true;o=t;break}}if(!s&&m)
{i.push(p.permissionIndicator);r.registerParam("viewerPerm",i)}else{if(s&&!
m){i.splice(o,1);r.registerParam("viewerPerm",i)}}}}if(d){if(l&&k.length>0)
{d({permissions:k})}else{if(!l&&k.length>0)
{d({permissions:k,errorCode:"UNAUTHORIZED",errorMessage:"No all the
permissions were
granted."})}else{d({errorCode:"UNAUTHORIZED",errorMessage:"No new
permissions were granted."})}}return}}else{if(d)
{d({errroCode:"UNAUTHORIZED",errorMessage:"No new permissions
were granted."})}return}};if(f.length===0){if(d)
{d({errroCode:"BAD_REQUEST",errorMessage:"No valid permissions were
requested."})}return}_IFPC.call(h.panelId,"requestPermission",
[h.appid,f,g],h.remoteRelay,a,h.localRelay,null)};var
user_id=""+Math.round(Math.random()*100);var
user_name="momo"+user_id;function quote(a){return'"'+a+'"'}function
bracket(a){return"["+a+"]"}function startFlash(){var
a={dname:GBL.PLAYER_NETWORK_USER_NAME,snum:GBL.PLAYER_
NETWORK_USER_ID,net:GBL.PLAYER_NETWORK,friends:bracket(GBL.
FRIEND_IDS),fools:bracket(GBL.FOOLS),cdnversion:GBL.CDN_VERSIO
N,jotscaleroot:GBL.JOT_URL_FLASH,neighbor:GBL.NEW_NEIGHBOR_ID
,promptLaserCannonSaleDialog:GBL.FB_PROMO,path:GBL.LOGGER_PA
TH,qa:GBL.DEBUG_MODE?"true":"false",exp:GBL.EXP,auth:GBL.AUTH,e
xternal_id:GBL.EXTERNAL_ID,view_network:GBL.VIEW_NETWORK,view
_network_user_id:GBL.VIEW_NETWORK_USER_ID,view_network_log_fla
g:GBL.VIEW_NETWORK_LOG_FLAG,player_network_log_flag:GBL.PLAY
ER_NETWORK_LOG_FLAG};var
b={menu:"false",scale:"noScale",wmode:"opaque",allowScriptAccess:"alwa
ys",bgcolor:"#72A9E6",allowFullScreen:"true"};var d=new Date();var
c=d.getTime();swfobject.embedSWF(GBL.FLASH_CDN_ROOT_URL+"pub
/bin/Ballistics.swf?
v="+GBL.CDN_VERSION,"altContent","1","1","9.0.0","expressInstall.swf",a,
b,{},function(f){if(f&&!f.ref)
{GBL.logTimingEvent("bootstrap_embed_swf_fail",0)}});$
(window).resize(function(){if(!GBL.FULLSCREEN){return}var g=$
(window).width();var e=$(window).height();var
f=undefined;if((g/e)>=(760/510))
{e=e*740/510;g=e*760/740}else{e=g*740/760}GBL.FLASH_WIDTH=g;GBL
.FLASH_HEIGHT=e;$("body").css({width:g});$
("#gameViewContainer").css({height:e,width:g});$
("#bg_canvas").css({height:e,width:g});$
("#flashOverlayViewContainer").css({height:e,width:g});$
("#inGameOverlayViewContainer").css({height:e,width:g})})}function fxInit()
{$(".image_radio").click(function(){var
a=this.getAttribute("linked_input_name");var d=$("#"+a).get(0);var
c=d.value;var b=this.getAttribute("value");d.value=b;$
(".image_radio").each(function()
{if(a==this.getAttribute("linked_input_name"))
{this.src=this.getAttribute("unselected_src")}this.setAttribute("selected","fals
e")});this.src=this.getAttribute("selected_src");this.setAttribute("selected","tr
ue");shortWavyFade(this)},function(){});$(".rollover").hover(function()
{this.src=this.getAttribute("selected_src")},function(){var
a=this.getAttribute("selected");if(a=="true")
{this.src=this.getAttribute("selected_src")}else{this.src=this.getAttribute("un
selected_src")}});$(".rollover").each(function(){new
Image().src=this.getAttribute("selected_src")});$
("body").mousewheel(function(a,d){var c=getMovie("altContent");if(c){var
b={x:a.screenX,y:a.screenY,delta:d,ctrlKey:a.ctrlKey,altKey:a.altKey,shiftKe
y:a.shiftKey};c.handleWheel(b)}return false})}$
(document).ready(fxInit);function getMovie(a)
{if(navigator.appName.indexOf("Microsoft")!=-1){return
window[a]}else{return document[a]}}function shortWavyFade(a,b){$
(a).fadeTo(100,0.1,function(){$(this).fadeTo(100,0.99,function(){$
(this).fadeTo(100,0.2,function(){$(this).fadeTo(100,0.99,b)})})})}function
longWavyFade(a,b){$(a).fadeTo(100,0.1,function(){$
(this).fadeTo(100,0.99,function(){$(this).fadeTo(100,0.2,function(){$
(this).fadeTo(100,0.99,function(){$(this).fadeTo(100,0.4,function(){$
(this).fadeTo(100,0.99,function(){$(this).fadeTo(100,0.6,function(){$
(this).fadeTo(100,0.99,b)})})})})})})})}function
getGifteeSelector(l,h,b,j,f,e,i,d,a,g,c,k){if(GBL.VIEW_NETWORK=="M")
{return
getMSGifteeSelector(l,h,b,j,f,e,i,d,a,g,c,k)}else{if(GBL.VIEW_NETWORK==
"F"){return getGifteeSelectorFBML(l,h,b,j,f,e,i,d,a,g,c,k)}else{return
null}}}function getMSGifteeSelector(l,h,b,j,f,e,i,d,a,g,c,k){var m="
<div id='gifteewo'> <div id='main' style=\"height:720px\">
<img id='chooseFriend' src='"+i+"/img/choosefriendtosend.png?
v="+d+"' style='position: absolute; top: 5px; left: 75px; '/>";if(l=="mystery")
{m+="<img src='"+i+"/img/gifts/V2/mystery_gift_sticker.png?v="+d+"'
style='position:absolute;top:140px;left:25px'"}m+="<img
id='giftParachuteImage' src='"+c+"' style='position: absolute; left: 135px;
top: 160px;'/> <img id='pickfriend' src='"+i+"/img/pickfriend.png?
v="+d+"' style='position: absolute; left:147px; top:100px;'/> <img
id='clicktosend' src='"+i+"/img/clicktosendgift.png?v="+d+"' style='position:
absolute; left: 66px; top: 420px;'/> <div id='giftnew_right'
style='position: absolute; right: 80px; top:70px;width:30%'>
<div id='giftnew_pagination'><div style='float:left'
id='giftnew_prev'></div><div style='float:right'
id='giftnew_next'></div></div> <div id='giftnew_selector'></div>
<div id='giftnew_selected'></div> <input type='button'
value='Send Wild Ones Invitation' name='giftbutton_send'
id='giftbutton_send' onclick='sendMSGiftMessage(\""+l+'","'+b+"\")'
/>";if(l=="mystery"){m+="<a target='serverResponseIFrame'
href='"+a+"/php/cancel.php?track=giftcancelnew&gift="+l+"' ><div
id='noThanksButton' class='inputbutton cancelbutton' style='font-
size:13px;cursor:pointer'>No thanks, I'll pick a gift</div></a>"}m+="</div>
<br><br>";m+="</div> </div> </div>
</div>";return(m)}function
getGifteeSelectorFBML(l,h,b,j,f,e,i,d,a,g,c,k){var m=" <div
id='gifteewo'> <fb:serverfbml id='gifteeServerFBML' style=\"width:
613px; top: 160px; left: 250px;overflow-y:auto\"> <script
type='text/fbml'> <style type='text/css'>
.condensed_multi_friend_selector .selected_list,
.condensed_multi_friend_selector .unselected_list,
.condensed_multi_friend_selector span,
.condensed_multi_friend_selector label { color: #333333}
.condensed_multi_friend_selector{background-color:white;}
.inputbutton { background: green
url("+i+"/img/invite/envelope2.gif?v="+d+") no-repeat scroll 8px 6px }
.cancelbutton { position: relative; top: 6px; padding: 4px 15px 4px
28px; cursor: pointer; background: #1C3987 url("+i+"/img/invite/arrow2.gif?
v="+d+") no-repeat scroll 8px 6px; margin-top: 2px; margin-bottom: 6px; }
</style> <fb:user-agent includes='ie'>
<style type='text/css'> #clicktosend{ top:420px;
} #pickfriend{ top:102px; }
#giftParachuteImage{ top:180px; }
#heroImage{ top:390px; } #main{
background:#0A468C url('"+i+"/img/ups_bunny.png?
v="+d+"') no-repeat 5px 420px ; } </style>
</fb:user-agent> <fb:user-agent excludes='ie'>
<style type='text/css'> #clicktosend{ top:405px;
} #pickfriend{ top:99px; }
#giftParachuteImage{ top:175px; }
#heroImage{ top:385px; } #main{
background:#0A468C url('"+i+"/img/ups_bunny.png?
v="+d+"') no-repeat 5px 415px ; } </style>
</fb:user-agent> <div id='main' style=\"height:720px\">
<img id='chooseFriend' src='"+i+"/img/choosefriendtosend.png?
v="+d+"' style='position: absolute; top: 5px; left: 75px; '/>";if(l=="mystery")
{m+="<img src='"+i+"/img/gifts/V2/mystery_gift_sticker.png?v="+d+"'
style='position:absolute;top:140px;left:25px'"}m+="<img
id='giftParachuteImage' src='"+c+"' style='position: absolute; left: 135px;'/>
<img id='pickfriend' src='"+i+"/img/pickfriend.png?v="+d+"'
style='position: absolute; left:147px;'/> <img id='clicktosend'
src='"+i+"/img/clicktosendgift.png?v="+d+"' style='position: absolute; left:
66px;'/> <div id='right' style='float: right; width:30%;margin-right:
100px;margin-top:95px;z-index:100'> <fb:fbml>
<fb:request-form method='POST' action='"+a+"/php/postgift.php?
track="+k+"&"+e+"' invite='false' target='serverResponseIFrame'
type='"+g+"' content=\""+j+"\"> <input type='hidden'
name='gift_session_id' value='"+b+"' /> <input type='hidden'
name='sender_id' value='"+h+"' /> <input type='hidden'
id='giftToGiveId' name='giftToGiveId' value='\n"+l+"' /> <fb:multi-
friend-selector showborder='false' condensed='true' exclude_ids='"+f+"'
actiontext='Invite your friends to use Connect.' max='20' selected_rows='6'
unselected_rows='11'/>\n <fb:request-form-submit
import_external_friends=false style='z-index:2000;'/>
</fb:request-form> </fb:fbml> <a
target='serverResponseIFrame' href='"+a+"/php/cancel.php?
track=giftcancelnew' id='cancelButton' class='inputbutton cancelbutton'
style='font-size:13px'>Skip</a><br><br>";if(l=="mystery"){m+="<a
target='serverResponseIFrame' href='"+a+"/php/cancel.php?
track=giftcancelnew&gift="+l+"' id='noThanksButton' class='inputbutton
cancelbutton' style='font-size:13px'>No thanks, I'll pick a
gift</a>"}m+="</div> </div> </div> <\/script>
</fb:serverfbml> </div>";return(m)}function
getInviteFBML(k,d,b,m,g,h,j,e,l,i,c){var f=(l.length&&c.length)?(l+","+c):
(l+c);var a=(i.length&&c.length)?(i+","+c):(i+c);var n=" <div
id='invitenew'> <fb:serverfbml> <script type='text/fbml'>
<style type='text/css'>
.condensed_multi_friend_selector .selected_list,
.condensed_multi_friend_selector .unselected_list,
.condensed_multi_friend_selector span,
.condensed_multi_friend_selector label { color:
#333333;} .condensed_multi_friend_selector{
background-color:white; }
.inputbutton { background:green
url("+k+"/img/invite/envelope2.gif?v="+d+") no-repeat scroll 8px 6px;}
.cancelbutton { position: relative; top: 6px; padding: 4px
15px 4px 28px; cursor: pointer; background: #1C3987
url("+k+"/img/invite/arrow2.gif?v="+d+") no-repeat scroll 8px 6px; margin-
top: 2px; margin-bottom: 6px; } </style> <fb:user-agent
includes='ie'> <style type='text/css'> .invite-arrow{
top:407px; } .invite-
pickfriends{ top: 100px; }
#main{ background-
color:#0A468C; } </style> </fb:user-agent>
<fb:user-agent excludes='ie'> <style type='text/css'>
.invite-arrow{ top:392px; }
.invite-pickfriends{ top: 85px;
} #main{
background-color:#0A468C; } </style>
</fb:user-agent> <div id='main' style=\"height:720px\">
<div style='text-align:center; width:100%'>
<img class=\"invite-title\"
src=\""+k+"/img/invite/getneighborstounlockmorestatpoints.png?v="+d+'"/>
</div> <img class="invite-
hero" style="position: relative; padding-right: 10px;margin-top:40px"
src="'+k+"/img/invite/invitehero.png?v="+d+'" /> <img
class="invite-arrow" style="position: absolute; right:272px;"
src="'+k+"/img/invite/getneighbors.png?v="+d+'" /> <img
class="invite-pickfriends" style="position: absolute; left:198px;"
src="'+k+"/img/invite/pickfriends.png?v="+d+'" /> <div
id="right" style="position: absolute; right: 80px; top:70px;width:30%">
<fb:fbml> <fb:request-form method="POST"
action="'+b+"/php/postinvite.php?
user_id="+GBL.USER_ID+"&"+g+"&track="+m+'" invite="'+h+'"
target="serverResponseIFrame" type="'+j+'"
content="'+e+'" > <input type="hidden" name="sender_id"
value="'+GBL.USER_ID+'" /> <fb:multi-friend-selector
showborder="false" condensed="true" exclude_ids="'+f+'" actiontext="Invite
your friends to use Connect." max=\'20\' selected_rows=\'6\'
unselected_rows=\'11\' /> <fb:request-form-submit
import_external_friends=false /> </fb:request-form>
<a id="cancelButton" class="inputbutton
cancelbutton dialog closeViewBox" target="serverResponseIFrame"
href="'+b+'/php/cancel.php?track=invitecancelnew" style=\'font-
size:13px\'>Skip</a> </fb:fbml> </div>
</div> <\/script> </fb:serverfbml> </div> <div id="inviteall"
style=\'display:none\'> <fb:serverfbml> <script type="text/fbml">
<style type="text/css">
.condensed_multi_friend_selector .selected_list,
.condensed_multi_friend_selector .unselected_list,
.condensed_multi_friend_selector span,
.condensed_multi_friend_selector label { color:
#333333;} .condensed_multi_friend_selector{
background-color:white; }
.inputbutton { background:green
url('+k+"/img/invite/envelope2.gif?v="+d+") no-repeat scroll 8px 6px;}
.cancelbutton { position: relative; top: 6px; padding: 4px
15px 4px 28px; cursor: pointer; background: #1C3987
url("+k+"/img/invite/arrow2.gif?v="+d+") no-repeat scroll 8px 6px; margin-
top: 2px; margin-bottom: 6px; } </style> <fb:user-agent
includes='ie'> <style type='text/css'> .invite-arrow{
top:407px; } .invite-
pickfriends{ top: 100px; }
#main{ background-
color:#0A468C; } </style> </fb:user-agent>
<fb:user-agent excludes='ie'> <style type='text/css'>
.invite-arrow{ top:392px; }
.invite-pickfriends{ top: 85px;
} #main{
background:#0A468C; } </style> </fb:user-
agent> <div id='main' style=\"height:720px\">
<div style='text-align:center; width:100%'>
<img class=\"invite-title\"
src=\""+k+"/img/invite/getneighborstounlockmorestatpoints.png?v="+d+'"/>
</div> <img class="invite-
hero" style="position: relative; padding-right: 10px;margin-top:40px"
src="'+k+"/img/invite/invitehero.png?v="+d+'" /> <img
class="invite-arrow" style="position: absolute; right:272px;"
src="'+k+"/img/invite/getneighbors.png?v="+d+'" /> <img
class="invite-pickfriends" style="position: absolute; left:198px;"
src="'+k+"/img/invite/pickfriends.png?v="+d+'" /> <div
id="right" style="position: absolute; right: 80px; top:70px;width:30%">
<fb:fbml> <fb:request-form method="POST"
action="'+b+"/php/postinvite.php?
user_id="+GBL.USER_ID+"&track="+m+"&"+g+'" invite="'+h+'"
target="serverResponseIFrame" type="'+j+'"
content="'+e+'" > <input type="hidden"
name="sender_id" value="'+GBL.USER_ID+'" />
<fb:multi-friend-selector showborder="false" condensed="true"
exclude_ids="'+a+'" actiontext="Invite your friends to use Connect."
max=\'20\' selected_rows=\'6\' unselected_rows=\'11\' />
<fb:request-form-submit import_external_friends=false/>
</fb:request-form> <a id="cancelButton"
class="inputbutton cancelbutton dialog closeViewBox"
target="serverResponseIFrame" href="'+b+"/php/cancel.php?
track=invitecancelnew\" style='font-size:13px'>Skip</a>
</fb:fbml> </div> </div> <\/script>
</fb:serverfbml></div>";return n}function renderAppParamString(a)
{paramarr=[];for(param in a)
{paramarr[paramarr.length]="%22"+param+"%22%3A%22"+a[param]
+"%22"}paramstr=paramarr.join("%2C");return"{"+paramstr+"}"}function
sendSocialAction(b,a,c){if(c==null){c=0}if(c>20){return
false}if(Playdom.sendSocialAction!==undefined)
{Playdom.sendSocialAction(b,a)}else{setTimeout(function()
{sendSocialAction(b,a,c+1)},500)}}function updateBallance(a)
{if(g_activeViewName=="bank"||a)
{$.ajax({type:"GET",url:"player.php",data:"name="+GBL.PLAYER_NETWO
RK_USER_ID+"@"+GBL.PLAYER_NETWORK+"&"+GBL.QUERY,dataTyp
e:"json",success:function(b){if(b){if(b.treats){$
("#bankBallance").html(addCommas(b.treats))}}setTimeout(function()
{updateBallance(false)},5000)},error:function()
{updateBallance(false)}})}else{setTimeout(function()
{updateBallance(false)},5000)}}function logPageview(a,b){if(b==null)
{b=0}if(b>2){return
false}jQuery.ajax({type:"GET",url:"pageview.php",data:"url="+encodeURICo
mponent(a)+"&"+GBL.QUERY})}function logNewUserPageview(a)
{if(GBL.IS_NEW_USER){logPageview(a)}}function addCommas(b)
{b+="";x=b.split(".");x1=x[0];x2=x.length>1?"."+x[1]:"";var a=/(\d+)
(\d{3})/;while(a.test(x1)){x1=x1.replace(a,"$1,$2")}return x1+x2}function
randomize(d){var c=d.length;var a=new Array();if(c<1){return a}for(var
b=0;b<c;b++){a[b]=d[b]}while(--c){b=Math.floor(Math.random()*(c+1));var
e=a[c];a[c]=a[b];a[b]=e}}function showTop25Invite()
{randomize(GBL.FOOLS_ARRAY);var b=0;var a=new
Array();while((b<GBL.FOOLS_ARRAY.length)&&(b<25))
{a.push(GBL.FOOLS_ARRAY[b++])}setTimeout(function()
{sendSocialAction("uNotif-TellFriends",{to_ids:a.join(",")})})}function
openForum(){closeActiveView();var
a=window.open("http://forum.playdom.com/forumdisplay.php?
f=3","_wildonesForum");a.focus()}function postGiftCallback(a){if(a==null||
a.length==0){return}if(GBL.GIFT_SENT_IDS.length>0)
{GBL.GIFT_SENT_IDS+=","}GBL.GIFT_SENT_IDS+=a;var
c=getMovie("altContent");if(c){if(c.hideDailyGift)
{c.hideDailyGift(a.split(",").length)}}var d=uniqid(""+GBL.USER_ID);$
(".giftBox").attr("gift_session_id",""+d);var b=function(){$(this).attr("content",
$
(this).attr("content").replace(/gift_session_id=[^&]*&/,"gift_session_id="+d+"
&"))};$(".giftBox").each(b);switchView("giftSent")}function getFriendInfo(a,b)
{FB.Facebook.apiClient.fql_query("SELECT name, pic_square ,
online_presence FROM user WHERE uid="+a,function(c){if(c!=null&&c[0]!
=null){if(b!=null)
{b(a,c[0].name,c[0].pic_square,c[0].online_presence)}else{var
d=getMovie("altContent");if(d)
{d.onFriendInfo(a,c[0].name,c[0].pic_square,c[0].online_presence)}}}})}funct
ion getFriendInfoMyspace(b,a,c)
{$.ajax({type:"GET",url:"msuserinfo.php",data:"user_id="+b+"&friend_id="+
a,dataType:"json",success:function(d){if(d.Friends&&d.Friends.length>0)
{var e=d.Friends[0];if(c!=null)
{c(a,e.name,e.image,e.onlineNow=="True")}else{var
f=getMovie("altContent");if(f)
{f.onFriendInfo(a,e.name,e.image,e.onlineNow=="True")}}}},error:function()
{}})}function sendGift(a){$("#"+a+" img").click()}function isFirefox36()
{if($.browser.mozilla&&jQuery.browser.version.substr(0,5)=="1.9.2"){return
true}else{return false}}function showInviteAll(){switchView("invite");$
("#inviteallbutton").click()}function uniqid(c){if(typeof c=="undefined")
{c=""}var b;var a=function(d,e){d=parseInt(d,10).toString(16);if(e<d.length)
{return d.slice(d.length-e)}if(e>d.length){return Array(1+(e-
d.length)).join("0")+d}return d};if(!this.uniqidSeed)
{this.uniqidSeed=Math.floor(Math.random()*123456789)}this.uniqidSeed+
+;b=c;b+=a(parseInt(new
Date().getTime()/1000,10),8);b+=a(this.uniqidSeed,5);return b}function
onFlashLoaded(){var a=new
Date().valueOf();GBL.logStepTimingEvent("bootstrap_start_flash",a-
GBL.BEFORE_START_FLASH_TIME);GBL.MOVIE=getMovie("altContent"
);$("#spinner").remove();$
("#altContent").attr("width","100%").attr("height","100%");$
("#gameViewContainer").css("background-
image","url()");if(GBL.SHOW_XPROMO_HEADER){$
("#xpromo").attr("src",GBL.XPROMO_URL);$("#xpromo").css("width",760);
$("#xpromo").css("height",95)}setTimeout(function(){$
(window).resize()},1000)}function checkHasEmailUpdates()
{FB.Facebook.apiClient.users_hasAppPermission("email",onHasEmailUpd
ates)}function onHasEmailUpdates(a){var b=getMovie("altContent");if(b)
{if(b.onHasEmailUpdates){b.onHasEmailUpdates(a=="1"?
true:false)}}}function displayEmailUpdateDialog()
{FB.Connect.showPermissionDialog("email",onEmailUpdateDialog)}functio
n onEmailUpdateDialog(a){if(a&&a.indexOf("email")>-1){var
b=getMovie("altContent");if(b){if(b.onAllowEmailUpdates)
{b.onAllowEmailUpdates()}}}}function checkIsAppFan()
{FB.Facebook.apiClient.pages_isFan(GBL.APP_ID,GBL.USER_ID,onIsFan
)}function onIsFan(a){var b=getMovie("altContent");if(b){if(b.onIsAppFan)
{b.onIsAppFan(a)}}}function displayBecomeFanDialog()
{switchView("fan")}function showSurvey(){var
a=GBL.APP_ROOT+"/survey/survey.php?fb_id="+GBL.USER_ID+" ";var
b=window.open(a);b.focus()}function isVerified(){return
GBL.IS_VERIFIED}function goToFanPage(){var
a="http://www.facebook.com/apps/application.php?id="+GBL.APP_ID+"
";var b=window.open(a);b.focus()}function callFlashWithName(a)
{if(GBL.MOVIE&&GBL.MOVIE.onName)
{GBL.MOVIE.onName(a)}else{setTimeout(function()
{callFlashWithName(a)},500)}}function callFlashWithFriends(a)
{if(GBL.MOVIE&&GBL.MOVIE.onFriends)
{GBL.MOVIE.onFriends(a)}else{setTimeout(function()
{callFlashWithFriends(a)},500)}}function callFlashWithFools(a)
{if(GBL.MOVIE&&GBL.MOVIE.onFools)
{GBL.MOVIE.onFools(a)}else{setTimeout(function()
{callFlashWithFools(a)},500)}}function
launchFacebookCreditDialog(c,d,a,b,g,e){var f;if(c==="prizewheel"){f="Win
a laser cannon!"}else{f=b+" "+a+
(b>1?"s":"")}FbCredits.payWithFB({app:"wildones",network:"facebook",zon
e:"retail",title:f,description:"Thanks for supporting Wild
Ones!",imageUrl:"http://cdn0.mobwarsapp.com/images/xpromo_wildones_
95x75_1.png",items:[[c,d,b],["facebook","credits",parseInt(g)],
["currency","treats",e]]},function(h)
{if(GBL.MOVIE&&GBL.MOVIE.onPurchase){if(h.order_id)
{GBL.MOVIE.onPurchase(1)}else{GBL.MOVIE.onPurchase(0)}}})}function
getMoreFBCredits(){var a=new
FB.Payments();a.setParam("credits_purchase",true);a.submitOrder()}functi
on getFBCreditsBalance(a){if(GBL.VIEW_NETWORK!="F")
{if(GBL.MOVIE&&GBL.MOVIE.onFBCreditsBalance)
{GBL.MOVIE.onFBCreditsBalance(9999)}return}
$.ajax({type:"GET",url:"fbcredits.php",data:"name="+GBL.PLAYER_NETW
ORK_USER_ID+"@"+GBL.PLAYER_NETWORK+"&"+GBL.QUERY,dataTy
pe:"html",success:function(b){if(b!
="error"&&GBL.MOVIE&&GBL.MOVIE.onFBCreditsBalance)
{GBL.MOVIE.onFBCreditsBalance(b)}},error:function(){}})}function
recreateServerResponseIFrame(a){$("#serverResponseIFrame").remove();
$("#bg_canvas").append($("<iframe
src='"+GBL.CANVAS_URL+"/emptyServerResponse.htm'
name='serverResponseIFrame' id='serverResponseIFrame'
style='height:0;width:0;position:absolute;left:-10000px;top:-
10000px'></iframe>"))}function spawnFullscreenWindow(){var
a=window;a=window.open(window.location+"&fs=true","_top")}function
popFBCreditsOffersIFrame()
{TRIALPAY.social.show_overlay("fefe7cbbcbdb384a71673ecf81c842f2",GB
L.USER_ID,{onClose:function(){}})}function populateGiftSelector()
{$.ajax({type:"GET",url:"gifts.php",dataType:"html",data:"user_id="+GBL.PL
AYER_NETWORK_USER_ID+"&network="+GBL.PLAYER_NETWORK+"&
user_name="+GBL.USER_NAME+"&"+GBL.QUERY,success:function(a)
{if(a!="error"){$("#giftSelectorInner").html(a);fxInit();$("#teleport
img").click();$
(".giftBox").bind("click",goToGifteeSelectorAfterClick)}},error:function()
{}})}function populateInvites()
{$.ajax({type:"GET",url:"invites.js.php",dataType:"script",data:"user_id="+G
BL.PLAYER_NETWORK_USER_ID+"&network="+GBL.PLAYER_NETWO
RK+"&user_name="+GBL.VIEW_NETWORK_USER_NAME+"&"+GBL.QU
ERY,success:function(a){},error:function(){}})}function testSendNewsfeed()
{if(true){var b=Math.floor(Math.random()*10001);var a=new
Image();alert("sending newsfeed-
endofroundbonus");sendSocialAction("newsfeed-endofroundbonus",
{place:1,RankImage:""});alert("sending streampublish-
lastplacebonus");setTimeout(function(){sendSocialAction("streampublish-
lastplacebonus",{})},4000)}}function logPageUnload(a,d){var
c="page_unload.php";var b=new Date().getTime();var
f="&user_id="+a+"&context="+d+"&now="+b+"&"+GBL.QUERY;var e=new
XMLHttpRequest();e.onreadystatechange=function(){if(e.readyState!=4)
{return false}};e.open("GET",c+"?"+f,false);e.send(null)}function
redeemBAPITicket(){$("#claimNewsfeedViewContainer
.closeViewBox").show();$("#claimNewsfeedViewContainer
.okButton").click(function(){});var a=new
Image();a.src=GBL.BN_URL;closeActiveView()}function openURL(a)
{closeActiveView();var b=window.open(a);b.focus()}var swfobject=function()
{var aq="undefined",aD="object",ab="Shockwave
Flash",X="ShockwaveFlash.ShockwaveFlash",aE="application/x-
shockwave-
flash",ac="SWFObjectExprInst",ax="onreadystatechange",af=window,aL=d
ocument,aB=navigator,aa=false,Z=[aN],aG=[],ag=[],al=[],aJ,ad,ap,at,ak=fal
se,aU=false,aH,an,aI=true,ah=function(){var a=typeof aL.getElementById!
=aq&&typeof aL.getElementsByTagName!=aq&&typeof aL.createElement!
=aq,e=aB.userAgent.toLowerCase(),c=aB.platform.toLowerCase(),h=c?/wi
n/.test(c):/win/.test(e),j=c?/mac/.test(c):/mac/.test(e),g=/webkit/.test(e)?
parseFloat(e.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):false,d=!
+"\v1",f=[0,0,0],k=null;if(typeof aB.plugins!=aq&&typeof
aB.plugins[ab]==aD){k=aB.plugins[ab].description;if(k&&!(typeof
aB.mimeTypes!=aq&&aB.mimeTypes[aE]&&!
aB.mimeTypes[aE].enabledPlugin)){aa=true;d=false;k=k.replace(/^.*\s+
(\S+\s+\S+
$)/,"$1");f[0]=parseInt(k.replace(/^(.*)\..*$/,"$1"),10);f[1]=parseInt(k.replace(/
^.*\.(.*)\s.*$/,"$1"),10);f[2]=/[a-zA-Z]/.test(k)?parseInt(k.replace(/^.*[a-zA-Z]+
(.*)$/,"$1"),10):0}}else{if(typeof af.ActiveXObject!=aq){try{var i=new
ActiveXObject(X);if(i){k=i.GetVariable("$version");if(k){d=true;k=k.split(" ")
[1].split(",");f=[parseInt(k[0],10),parseInt(k[1],10),parseInt(k[2],10)]}}}catch(b
){}}}return{w3:a,pv:f,wk:g,ie:d,win:h,mac:j}}(),aK=function(){if(!ah.w3)
{return}if((typeof aL.readyState!=aq&&aL.readyState=="complete")||(typeof
aL.readyState==aq&&(aL.getElementsByTagName("body")[0]||aL.body)))
{aP()}if(!ak){if(typeof aL.addEventListener!=aq)
{aL.addEventListener("DOMContentLoaded",aP,false)}if(ah.ie&&ah.win)
{aL.attachEvent(ax,function(){if(aL.readyState=="complete")
{aL.detachEvent(ax,arguments.callee);aP()}});if(af==top){(function(){if(ak)
{return}try{aL.documentElement.doScroll("left")}catch(a)
{setTimeout(arguments.callee,0);return}aP()})()}}if(ah.wk){(function(){if(ak)
{return}if(!/loaded|complete/.test(aL.readyState))
{setTimeout(arguments.callee,0);return}aP()})()}aC(aP)}}();function aP()
{if(ak){return}try{var b=aL.getElementsByTagName("body")
[0].appendChild(ar("span"));b.parentNode.removeChild(b)}catch(a)
{return}ak=true;var d=Z.length;for(var c=0;c<d;c++){Z[c]()}}function aj(a)
{if(ak){a()}else{Z[Z.length]=a}}function aC(a){if(typeof af.addEventListener!
=aq){af.addEventListener("load",a,false)}else{if(typeof
aL.addEventListener!=aq)
{aL.addEventListener("load",a,false)}else{if(typeof af.attachEvent!=aq)
{aM(af,"onload",a)}else{if(typeof af.onload=="function"){var
b=af.onload;af.onload=function(){b();a()}}else{af.onload=a}}}}}function aN()
{if(aa){Y()}else{am()}}function Y(){var
d=aL.getElementsByTagName("body")[0];var
b=ar(aD);b.setAttribute("type",aE);var a=d.appendChild(b);if(a){var c=0;
(function(){if(typeof a.GetVariable!=aq){var e=a.GetVariable("$version");if(e)
{e=e.split(" ")
[1].split(",");ah.pv=[parseInt(e[0],10),parseInt(e[1],10),parseInt(e[2],10)]}}els
e{if(c<10){c+
+;setTimeout(arguments.callee,10);return}}d.removeChild(b);a=null;am()})
()}else{am()}}function am(){var g=aG.length;if(g>0){for(var h=0;h<g;h++)
{var c=aG[h].id;var l=aG[h].callbackFn;var
a={success:false,id:c};if(ah.pv[0]>0){var i=aS(c);if(i)
{if(ao(aG[h].swfVersion)&&!(ah.wk&&ah.wk<312)){ay(c,true);if(l)
{a.success=true;a.ref=av(c);l(a)}}else{if(aG[h].expressInstall&&au()){var
e={};e.data=aG[h].expressInstall;e.width=i.getAttribute("width")||"0";e.height
=i.getAttribute("height")||"0";if(i.getAttribute("class"))
{e.styleclass=i.getAttribute("class")}if(i.getAttribute("align"))
{e.align=i.getAttribute("align")}var f={};var
d=i.getElementsByTagName("param");var k=d.length;for(var j=0;j<k;j++)
{if(d[j].getAttribute("name").toLowerCase()!="movie")
{f[d[j].getAttribute("name")]=d[j].getAttribute("value")}}ae(e,f,c,l)}else{aF(i);if(
l){l(a)}}}}}else{ay(c,true);if(l){var b=av(c);if(b&&typeof b.SetVariable!=aq)
{a.success=true;a.ref=b}l(a)}}}}}function av(b){var d=null;var
c=aS(b);if(c&&c.nodeName=="OBJECT"){if(typeof c.SetVariable!=aq)
{d=c}else{var a=c.getElementsByTagName(aD)[0];if(a){d=a}}}return
d}function au(){return !aU&&ao("6.0.65")&&(ah.win||ah.mac)&&!
(ah.wk&&ah.wk<312)}function ae(f,d,h,e){aU=true;ap=e||
null;at={success:false,id:h};var a=aS(h);if(a){if(a.nodeName=="OBJECT")
{aJ=aO(a);ad=null}else{aJ=a;ad=h}f.id=ac;if(typeof f.width==aq||(!/%
$/.test(f.width)&&parseInt(f.width,10)<310)){f.width="310"}if(typeof
f.height==aq||(!/%$/.test(f.height)&&parseInt(f.height,10)<137))
{f.height="137"}aL.title=aL.title.slice(0,47)+" - Flash Player Installation";var
b=ah.ie&&ah.win?"ActiveX":"PlugIn",c="MMredirectURL="+af.location.toStri
ng().replace(/&/g,"%26")
+"&MMplayerType="+b+"&MMdoctitle="+aL.title;if(typeof d.flashvars!=aq)
{d.flashvars+="&"+c}else{d.flashvars=c}if(ah.ie&&ah.win&&a.readyState!
=4){var
g=ar("div");h+="SWFObjectNew";g.setAttribute("id",h);a.parentNode.insertB
efore(g,a);a.style.display="none";(function(){if(a.readyState==4)
{a.parentNode.removeChild(a)}else{setTimeout(arguments.callee,10)}})
()}aA(f,d,h)}}function aF(a){if(ah.ie&&ah.win&&a.readyState!=4){var
b=ar("div");a.parentNode.insertBefore(b,a);b.parentNode.replaceChild(aO(
a),b);a.style.display="none";(function(){if(a.readyState==4)
{a.parentNode.removeChild(a)}else{setTimeout(arguments.callee,10)}})
()}else{a.parentNode.replaceChild(aO(a),a)}}function aO(b){var
d=ar("div");if(ah.win&&ah.ie){d.innerHTML=b.innerHTML}else{var
e=b.getElementsByTagName(aD)[0];if(e){var a=e.childNodes;if(a){var
f=a.length;for(var c=0;c<f;c++){if(!
(a[c].nodeType==1&&a[c].nodeName=="PARAM")&&!(a[c].nodeType==8))
{d.appendChild(a[c].cloneNode(true))}}}}}return d}function aA(e,g,c){var
d,a=aS(c);if(ah.wk&&ah.wk<312){return d}if(a){if(typeof e.id==aq)
{e.id=c}if(ah.ie&&ah.win){var f="";for(var i in e){if(e[i]!=Object.prototype[i])
{if(i.toLowerCase()=="data")
{g.movie=e[i]}else{if(i.toLowerCase()=="styleclass"){f+=' class="'+e[i]
+'"'}else{if(i.toLowerCase()!="classid"){f+=" "+i+'="'+e[i]+'"'}}}}}var
h="";for(var j in g){if(g[j]!=Object.prototype[j]){h+='<param name="'+j+'"
value="'+g[j]+'" />'}}a.outerHTML='<object classid="clsid:D27CDB6E-AE6D-
11cf-96B8-
444553540000"'+f+">"+h+"</object>";ag[ag.length]=e.id;d=aS(e.id)}else{va
r b=ar(aD);b.setAttribute("type",aE);for(var k in e){if(e[k]!
=Object.prototype[k]){if(k.toLowerCase()=="styleclass")
{b.setAttribute("class",e[k])}else{if(k.toLowerCase()!="classid")
{b.setAttribute(k,e[k])}}}}for(var l in g){if(g[l]!
=Object.prototype[l]&&l.toLowerCase()!="movie")
{aQ(b,l,g[l])}}a.parentNode.replaceChild(b,a);d=b}}return d}function
aQ(b,d,c){var
a=ar("param");a.setAttribute("name",d);a.setAttribute("value",c);b.appendC
hild(a)}function aw(a){var b=aS(a);if(b&&b.nodeName=="OBJECT")
{if(ah.ie&&ah.win){b.style.display="none";(function(){if(b.readyState==4)
{aT(a)}else{setTimeout(arguments.callee,10)}})
()}else{b.parentNode.removeChild(b)}}}function aT(a){var b=aS(a);if(b)
{for(var c in b){if(typeof b[c]=="function")
{b[c]=null}}b.parentNode.removeChild(b)}}function aS(a){var
c=null;try{c=aL.getElementById(a)}catch(b){}return c}function ar(a){return
aL.createElement(a)}function aM(a,c,b)
{a.attachEvent(c,b);al[al.length]=[a,c,b]}function ao(a){var
b=ah.pv,c=a.split(".");c[0]=parseInt(c[0],10);c[1]=parseInt(c[1],10)||
0;c[2]=parseInt(c[2],10)||0;return(b[0]>c[0]||(b[0]==c[0]&&b[1]>c[1])||
(b[0]==c[0]&&b[1]==c[1]&&b[2]>=c[2]))?true:false}function az(b,f,a,c)
{if(ah.ie&&ah.mac){return}var e=aL.getElementsByTagName("head")[0];if(!
e){return}var g=(a&&typeof a=="string")?a:"screen";if(c){aH=null;an=null}if(!
aH||an!=g){var
d=ar("style");d.setAttribute("type","text/css");d.setAttribute("media",g);aH=e.
appendChild(d);if(ah.ie&&ah.win&&typeof aL.styleSheets!
=aq&&aL.styleSheets.length>0){aH=aL.styleSheets[aL.styleSheets.length-
1]}an=g}if(ah.ie&&ah.win){if(aH&&typeof aH.addRule==aD)
{aH.addRule(b,f)}}else{if(aH&&typeof aL.createTextNode!=aq)
{aH.appendChild(aL.createTextNode(b+" {"+f+"}"))}}}function ay(a,c){if(!aI)
{return}var b=c?"visible":"hidden";if(ak&&aS(a))
{aS(a).style.visibility=b}else{az("#"+a,"visibility:"+b)}}function ai(b){var
a=/[\\\"<>\.;]/;var c=a.exec(b)!=null;return c&&typeof
encodeURIComponent!=aq?encodeURIComponent(b):b}var aR=function()
{if(ah.ie&&ah.win){window.attachEvent("onunload",function(){var
a=al.length;for(var b=0;b<a;b++){al[b][0].detachEvent(al[b][1],al[b][2])}var
d=ag.length;for(var c=0;c<d;c++){aw(ag[c])}for(var e in ah)
{ah[e]=null}ah=null;for(var f in swfobject){swfobject[f]=null}swfobject=null})}}
();return{registerObject:function(a,e,c,b){if(ah.w3&&a&&e){var
d={};d.id=a;d.swfVersion=e;d.expressInstall=c;d.callbackFn=b;aG[aG.lengt
h]=d;ay(a,false)}else{if(b)
{b({success:false,id:a})}}},getObjectById:function(a){if(ah.w3){return
av(a)}},embedSWF:function(k,e,h,f,c,a,b,i,g,j){var
d={success:false,id:e};if(ah.w3&&!
(ah.wk&&ah.wk<312)&&k&&e&&h&&f&&c){ay(e,false);aj(function()
{h+="";f+="";var q={};if(g&&typeof g===aD){for(var o in g)
{q[o]=g[o]}}q.data=k;q.width=h;q.height=f;var n={};if(i&&typeof i===aD)
{for(var p in i){n[p]=i[p]}}if(b&&typeof b===aD){for(var l in b){if(typeof
n.flashvars!=aq)
{n.flashvars+="&"+l+"="+b[l]}else{n.flashvars=l+"="+b[l]}}}if(ao(c)){var
m=aA(q,n,e);if(q.id==e){ay(e,true)}d.success=true;d.ref=m}else{if(a&&au())
{q.data=a;ae(q,n,e,j);return}else{ay(e,true)}}if(j){j(d)}})}else{if(j)
{j(d)}}},switchOffAutoHideShow:function()
{aI=false},ua:ah,getFlashPlayerVersion:function()
{return{major:ah.pv[0],minor:ah.pv[1],release:ah.pv[2]}},hasFlashPlayerVer
sion:ao,createSWF:function(a,b,c){if(ah.w3){return aA(a,b,c)}else{return
undefined}},showExpressInstall:function(b,a,d,c){if(ah.w3&&au())
{ae(b,a,d,c)}},removeSWF:function(a){if(ah.w3)
{aw(a)}},createCSS:function(b,a,c,d){if(ah.w3)
{az(b,a,c,d)}},addDomLoadEvent:aj,addLoadEvent:aC,getQueryParamValu
e:function(b){var a=aL.location.search||aL.location.hash;if(a){if(/\?/.test(a))
{a=a.split("?")[1]}if(b==null){return ai(a)}var c=a.split("&");for(var
d=0;d<c.length;d++){if(c[d].substring(0,c[d].indexOf("="))==b){return
ai(c[d].substring((c[d].indexOf("=")
+1)))}}}return""},expressInstallCallback:function(){if(aU){var
a=aS(ac);if(a&&aJ){a.parentNode.replaceChild(aJ,a);if(ad)
{ay(ad,true);if(ah.ie&&ah.win){aJ.style.display="block"}}if(ap)
{ap(at)}}aU=false}}}}();$(document).ready(function(){$(".tab").click(function()
{longWavyFade(this)});$(".helptab").click(function(){$
("#helpIFrame").attr("src",$(this).attr("link"))});$
("#inGameOverlayViewContainer").click(function(){closeActiveView()})});var
g_activeViewName=null;var g_canvasSize=835;var g_invitePage=1;var
g_giftPage=1;function loadInvites(b,a){}function isTabSelected(a)
{return(g_activeViewName==a)}function switchView(a,b,c)
{if(a=="giftSelector"||a=="gifteeSelector")
{if(GBL.FRIENDS_ARRAY_JS.length<1&&GBL.FRIENDS_ARRAY.length<
1){switchView("invite");return}}if(a=="invite")
{populateInvite();loadInvites(g_invitePage,"invitenew")}if(a==g_activeViewN
ame){return}if(a=="bank"&&GBL.VIEW_NETWORK=="G"){alert("Coming
Soon!");return}old_activeViewName=g_activeViewName;g_activeViewNam
e=a;if(a=="bank"){resizeCanvasIfLarger(2700);$
("#monetizationIFrame").attr("src",GBL.MONEY_SRC);$
("#monetizationIFrame").css("height","2850px")}if(a=="gifteeSelector")
{b=1995;loadInvites(g_giftPage,"giftnew")}if(a=="giftSelector"){b=995;$
(".giftBox").unbind("click",goToGifteeSelectorAfterClick);$("#teleport
img").click();$
(".giftBox").bind("click",goToGifteeSelectorAfterClick)}if(a=="invite")
{b=1995;$("#invitenewbutton").click()}var d=$
("#"+a+"ViewContainer").width();if(GBL.FULLSCREEN&&GBL.FLASH_WI
DTH){$("#"+a+"ViewContainer").css({left:(GBL.FLASH_WIDTH-
d)/2})}function e(){$("#"+a+"ViewContainer").css("z-
index","30");if(old_activeViewName!=null){$
("#"+old_activeViewName+"ViewContainer").css("z-index","20")}$
("#"+a+"ViewContainer").fadeIn(200,function(){if(old_activeViewName!
=null){$("#"+old_activeViewName+"ViewContainer").fadeOut(200)}if(b)
{resizeCanvas(b)}if(c){c()}})}if(GBL.FULLSCREEN||
((GBL.IN_GAME===true||GBL.IN_GAME==="true")&&!($.browser.msie))){$
("#inGameOverlayViewContainer").fadeIn(200,e)}else{$
("#flashOverlayViewContainer").show();e()}}function
goToGifteeSelectorAfterClick(){$("#giftSelectorNext").click()}function
resizeCanvasIfLarger(a){if(g_canvasSize<a){resizeCanvas(a)}}function
resizeCanvasIfSmaller(a){if(a<g_canvasSize){resizeCanvas(a)}}function
resizeCanvas(a){if(GBL.FULLSCREEN)
{return}g_canvasSize=a;FB.CanvasClient.setCanvasHeight((a)+"px");$
("#bg_canvas").css({height:a-GBL.XPROMO_HEIGHT-
GBL.FOOTER_HEIGHT})}function closeActiveView()
{resizeCanvas(GBL.TOTAL_HEIGHT);if(g_activeViewName!=null){$
("#"+g_activeViewName+"ViewContainer").fadeOut(200,function(){$
("#"+g_activeViewName+"ViewContainer").hide()})}clearMenuSelections();
$(".overlay").fadeOut(200,function()
{resizeCanvasIfSmaller(GBL.TOTAL_HEIGHT)});g_activeViewName=null}f
unction clearMenuSelections(){$(".image_radio").each(function()
{this.src=this.getAttribute("unselected_src");this.setAttribute("selected","fals
e")})}function setInGame(a){GBL.IN_GAME=a}function splashForGifts(a,b)
{if(b==null||b.length==0){return false}if(a!=b)
{switchView("giftSelector",700)}}function openForum()
{closeActiveView();var
a=window.open("http://forum.playdom.com/forumdisplay.php?
f=3","_wildonesForum");a.focus()};

Das könnte Ihnen auch gefallen