/*! swfobject v2.0
copyright (c) 2007 geoff stearns, michael williams, and bobby van der sluis
this software is released under the mit license
*/
var swfobject = function() {
var undef = "undefined",
object = "object",
shockwave_flash = "shockwave flash",
shockwave_flash_ax = "shockwaveflash.shockwaveflash",
flash_mime_type = "application/x-shockwave-flash",
express_install_id = "swfobjectexprinst",
win = window,
doc = document,
nav = navigator,
domloadfnarr = [],
regobjarr = [],
timer = null,
storedaltcontent = null,
storedaltcontentid = null,
isdomloaded = false,
isexpressinstallactive = false;
/* centralized function for browser feature detection
- proprietary feature detection (conditional compiling) is used to detect internet explorer's features
- user agent string detection is only used when no alternative is possible
- is executed directly for optimal performance
*/
var ua = function() {
var w3cdom = typeof doc.getelementbyid != undef && typeof doc.getelementsbytagname != undef && typeof doc.createelement != undef && typeof doc.appendchild != undef && typeof doc.replacechild != undef && typeof doc.removechild != undef && typeof doc.clonenode != undef,
playerversion = [0,0,0],
d = null;
if (typeof nav.plugins != undef && typeof nav.plugins[shockwave_flash] == object) {
d = nav.plugins[shockwave_flash].description;
if (d) {
d = d.replace(/^.*\s+(\s+\s+\s+$)/, "$1");
playerversion[0] = parseint(d.replace(/^(.*)\..*$/, "$1"), 10);
playerversion[1] = parseint(d.replace(/^.*\.(.*)\s.*$/, "$1"), 10);
playerversion[2] = /r/.test(d) ? parseint(d.replace(/^.*r(.*)$/, "$1"), 10) : 0;
}
}
else if (typeof win.activexobject != undef) {
var a = null, fp6crash = false;
try {
a = new activexobject(shockwave_flash_ax + ".7");
}
catch(e) {
try {
a = new activexobject(shockwave_flash_ax + ".6");
playerversion = [6,0,21];
a.allowscriptaccess = "always"; // introduced in fp6.0.47
}
catch(e) {
if (playerversion[0] == 6) {
fp6crash = true;
}
}
if (!fp6crash) {
try {
a = new activexobject(shockwave_flash_ax);
}
catch(e) {}
}
}
if (!fp6crash && a) { // a will return null when activex is disabled
try {
d = a.getvariable("$version"); // will crash fp6.0.21/23/29
if (d) {
d = d.split(" ")[1].split(",");
playerversion = [parseint(d[0], 10), parseint(d[1], 10), parseint(d[2], 10)];
}
}
catch(e) {}
}
}
var u = nav.useragent.tolowercase(),
p = nav.platform.tolowercase(),
webkit = /webkit/.test(u) ? parsefloat(u.replace(/^.*webkit\/(\d+(\.\d+)?).*$/, "$1")) : false, // returns either the webkit version or false if not webkit
ie = false,
windows = p ? /win/.test(p) : /win/.test(u),
mac = p ? /mac/.test(p) : /mac/.test(u);
/*@cc_on
ie = true;
@if (@_win32)
windows = true;
@elif (@_mac)
mac = true;
@end
@*/
return { w3cdom:w3cdom, pv:playerversion, webkit:webkit, ie:ie, win:windows, mac:mac };
}();
/* cross-browser ondomload
- based on dean edwards' solution: http://dean.edwards.name/weblog/2006/06/again/
- will fire an event as soon as the dom of a page is loaded (supported by gecko based browsers - like firefox -, ie, opera9+, safari)
*/
var ondomload = function() {
if (!ua.w3cdom) {
return;
}
adddomloadevent(main);
if (ua.ie && ua.win) {
try { // avoid a possible operation aborted error
doc.write(""); // string is split into pieces to avoid norton av to add code that can cause errors
var s = getelementbyid("__ie_ondomload");
if (s) {
s.onreadystatechange = function() {
if (this.readystate == "complete") {
this.parentnode.removechild(this);
calldomloadfunctions();
}
};
}
}
catch(e) {}
}
if (ua.webkit && typeof doc.readystate != undef) {
timer = setinterval(function() { if (/loaded|complete/.test(doc.readystate)) { calldomloadfunctions(); }}, 10);
}
if (typeof doc.addeventlistener != undef) {
doc.addeventlistener("domcontentloaded", calldomloadfunctions, null);
}
addloadevent(calldomloadfunctions);
}();
function calldomloadfunctions() {
if (isdomloaded) {
return;
}
if (ua.ie && ua.win) { // test if we can really add elements to the dom; we don't want to fire it too early
var s = createelement("span");
try { // avoid a possible operation aborted error
var t = doc.getelementsbytagname("body")[0].appendchild(s);
t.parentnode.removechild(t);
}
catch (e) {
return;
}
}
isdomloaded = true;
if (timer) {
clearinterval(timer);
timer = null;
}
var dl = domloadfnarr.length;
for (var i = 0; i < dl; i++) {
domloadfnarr[i]();
}
}
function adddomloadevent(fn) {
if (isdomloaded) {
fn();
}
else {
domloadfnarr[domloadfnarr.length] = fn; // array.push() is only available in ie5.5+
}
}
/* cross-browser onload
- based on james edwards' solution: http://brothercake.com/site/resources/scripts/onload/
- will fire an event as soon as a web page including all of its assets are loaded
*/
function addloadevent(fn) {
if (typeof win.addeventlistener != undef) {
win.addeventlistener("load", fn, false);
}
else if (typeof doc.addeventlistener != undef) {
doc.addeventlistener("load", fn, false);
}
else if (typeof win.attachevent != undef) {
win.attachevent("onload", fn);
}
else if (typeof win.onload == "function") {
var fnold = win.onload;
win.onload = function() {
fnold();
fn();
};
}
else {
win.onload = fn;
}
}
/* main function
- will preferably execute ondomload, otherwise onload (as a fallback)
*/
function main() { // static publishing only
var rl = regobjarr.length;
for (var i = 0; i < rl; i++) { // for each registered object element
var id = regobjarr[i].id;
if (ua.pv[0] > 0) {
var obj = getelementbyid(id);
if (obj) {
regobjarr[i].width = obj.getattribute("width") ? obj.getattribute("width") : "0";
regobjarr[i].height = obj.getattribute("height") ? obj.getattribute("height") : "0";
if (hasplayerversion(regobjarr[i].swfversion)) { // flash plug-in version >= flash content version: houston, we have a match!
if (ua.webkit && ua.webkit < 312) { // older webkit engines ignore the object element's nested param elements
fixparams(obj);
}
setvisibility(id, true);
}
else if (regobjarr[i].expressinstall && !isexpressinstallactive && hasplayerversion("6.0.65") && (ua.win || ua.mac)) { // show the adobe express install dialog if set by the web page author and if supported (fp6.0.65+ on win/mac os only)
showexpressinstall(regobjarr[i]);
}
else { // flash plug-in and flash content version mismatch: display alternative content instead of flash content
displayaltcontent(obj);
}
}
}
else { // if no fp is installed, we let the object element do its job (show alternative content)
setvisibility(id, true);
}
}
}
/* fix nested param elements, which are ignored by older webkit engines
- this includes safari up to and including version 1.2.2 on mac os 10.3
- fall back to the proprietary embed element
*/
function fixparams(obj) {
var nestedobj = obj.getelementsbytagname(object)[0];
if (nestedobj) {
var e = createelement("embed"), a = nestedobj.attributes;
if (a) {
var al = a.length;
for (var i = 0; i < al; i++) {
if (a[i].nodename.tolowercase() == "data") {
e.setattribute("src", a[i].nodevalue);
}
else {
e.setattribute(a[i].nodename, a[i].nodevalue);
}
}
}
var c = nestedobj.childnodes;
if (c) {
var cl = c.length;
for (var j = 0; j < cl; j++) {
if (c[j].nodetype == 1 && c[j].nodename.tolowercase() == "param") {
e.setattribute(c[j].getattribute("name"), c[j].getattribute("value"));
}
}
}
obj.parentnode.replacechild(e, obj);
}
}
/* fix hanging audio/video threads and force open sockets and netconnections to disconnect
- occurs when unloading a web page in ie using fp8+ and innerhtml/outerhtml
- dynamic publishing only
*/
function fixobjectleaks(id) {
if (ua.ie && ua.win && hasplayerversion("8.0.0")) {
win.attachevent("onunload", function () {
var obj = getelementbyid(id);
if (obj) {
for (var i in obj) {
if (typeof obj[i] == "function") {
obj[i] = function() {};
}
}
obj.parentnode.removechild(obj);
}
});
}
}
/* show the adobe express install dialog
- reference: http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=6a253b75
*/
function showexpressinstall(regobj) {
isexpressinstallactive = true;
var obj = getelementbyid(regobj.id);
if (obj) {
if (regobj.altcontentid) {
var ac = getelementbyid(regobj.altcontentid);
if (ac) {
storedaltcontent = ac;
storedaltcontentid = regobj.altcontentid;
}
}
else {
storedaltcontent = abstractaltcontent(obj);
}
if (!(/%$/.test(regobj.width)) && parseint(regobj.width, 10) < 310) {
regobj.width = "310";
}
if (!(/%$/.test(regobj.height)) && parseint(regobj.height, 10) < 137) {
regobj.height = "137";
}
doc.title = doc.title.slice(0, 47) + " - flash player installation";
var pt = ua.ie && ua.win ? "activex" : "plugin",
dt = doc.title,
fv = "mmredirecturl=" + win.location + "&mmplayertype=" + pt + "&mmdoctitle=" + dt,
replaceid = regobj.id;
// for ie when a swf is loading (and: not available in cache) wait for the onload event to fire to remove the original object element
// in ie you cannot properly cancel a loading swf file without breaking browser load references, also obj.onreadystatechange doesn't work
if (ua.ie && ua.win && obj.readystate != 4) {
var newobj = createelement("div");
replaceid += "swfobjectnew";
newobj.setattribute("id", replaceid);
obj.parentnode.insertbefore(newobj, obj); // insert placeholder div that will be replaced by the object element that loads expressinstall.swf
obj.style.display = "none";
win.attachevent("onload", function() { obj.parentnode.removechild(obj); });
}
createswf({ data:regobj.expressinstall, id:express_install_id, width:regobj.width, height:regobj.height }, { flashvars:fv }, replaceid);
}
}
/* functions to abstract and display alternative content
*/
function displayaltcontent(obj) {
if (ua.ie && ua.win && obj.readystate != 4) {
// for ie when a swf is loading (and: not available in cache) wait for the onload event to fire to remove the original object element
// in ie you cannot properly cancel a loading swf file without breaking browser load references, also obj.onreadystatechange doesn't work
var el = createelement("div");
obj.parentnode.insertbefore(el, obj); // insert placeholder div that will be replaced by the alternative content
el.parentnode.replacechild(abstractaltcontent(obj), el);
obj.style.display = "none";
win.attachevent("onload", function() { obj.parentnode.removechild(obj); });
}
else {
obj.parentnode.replacechild(abstractaltcontent(obj), obj);
}
}
function abstractaltcontent(obj) {
var ac = createelement("div");
if (ua.win && ua.ie) {
ac.innerhtml = obj.innerhtml;
}
else {
var nestedobj = obj.getelementsbytagname(object)[0];
if (nestedobj) {
var c = nestedobj.childnodes;
if (c) {
var cl = c.length;
for (var i = 0; i < cl; i++) {
if (!(c[i].nodetype == 1 && c[i].nodename.tolowercase() == "param") && !(c[i].nodetype == 8)) {
ac.appendchild(c[i].clonenode(true));
}
}
}
}
}
return ac;
}
/* cross-browser dynamic swf creation
*/
function createswf(attobj, parobj, id) {
var r, el = getelementbyid(id);
if (typeof attobj.id == undef) { // if no 'id' is defined for the object element, it will inherit the 'id' from the alternative content
attobj.id = id;
}
if (ua.ie && ua.win) { // ie, the object element and w3c dom methods do not combine: fall back to outerhtml
var att = "";
for (var i in attobj) {
if (attobj[i] != object.prototype[i]) { // filter out prototype additions from other potential libraries, like object.prototype.tojsonstring = function() {}
if (i == "data") {
parobj.movie = attobj[i];
}
else if (i.tolowercase() == "styleclass") { // 'class' is an ecma4 reserved keyword
att += ' class="' + attobj[i] + '"';
}
else if (i != "classid") {
att += ' ' + i + '="' + attobj[i] + '"';
}
}
}
var par = "";
for (var j in parobj) {
if (parobj[j] != object.prototype[j]) { // filter out prototype additions from other potential libraries
par += '';
}
}
el.outerhtml = '';
fixobjectleaks(attobj.id); // this bug affects dynamic publishing only
r = getelementbyid(attobj.id);
}
else if (ua.webkit && ua.webkit < 312) { // older webkit engines ignore the object element's nested param elements: fall back to the proprietary embed element
var e = createelement("embed");
e.setattribute("type", flash_mime_type);
for (var k in attobj) {
if (attobj[k] != object.prototype[k]) { // filter out prototype additions from other potential libraries
if (k == "data") {
e.setattribute("src", attobj[k]);
}
else if (k.tolowercase() == "styleclass") { // 'class' is an ecma4 reserved keyword
e.setattribute("class", attobj[k]);
}
else if (k != "classid") { // filter out ie specific attribute
e.setattribute(k, attobj[k]);
}
}
}
for (var l in parobj) {
if (parobj[l] != object.prototype[l]) { // filter out prototype additions from other potential libraries
if (l != "movie") { // filter out ie specific param element
e.setattribute(l, parobj[l]);
}
}
}
el.parentnode.replacechild(e, el);
r = e;
}
else { // well-behaving browsers
var o = createelement(object);
o.setattribute("type", flash_mime_type);
for (var m in attobj) {
if (attobj[m] != object.prototype[m]) { // filter out prototype additions from other potential libraries
if (m.tolowercase() == "styleclass") { // 'class' is an ecma4 reserved keyword
o.setattribute("class", attobj[m]);
}
else if (m != "classid") { // filter out ie specific attribute
o.setattribute(m, attobj[m]);
}
}
}
for (var n in parobj) {
if (parobj[n] != object.prototype[n] && n != "movie") { // filter out prototype additions from other potential libraries and ie specific param element
createobjparam(o, n, parobj[n]);
}
}
el.parentnode.replacechild(o, el);
r = o;
}
return r;
}
function createobjparam(el, pname, pvalue) {
var p = createelement("param");
p.setattribute("name", pname);
p.setattribute("value", pvalue);
el.appendchild(p);
}
function getelementbyid(id) {
return doc.getelementbyid(id);
}
function createelement(el) {
return doc.createelement(el);
}
function hasplayerversion(rv) {
var pv = ua.pv, v = rv.split(".");
v[0] = parseint(v[0], 10);
v[1] = parseint(v[1], 10);
v[2] = parseint(v[2], 10);
return (pv[0] > v[0] || (pv[0] == v[0] && pv[1] > v[1]) || (pv[0] == v[0] && pv[1] == v[1] && pv[2] >= v[2])) ? true : false;
}
/* cross-browser dynamic css creation
- based on bobby van der sluis' solution: http://www.bobbyvandersluis.com/articles/dynamiccss.php
*/
function createcss(sel, decl) {
if (ua.ie && ua.mac) {
return;
}
var h = doc.getelementsbytagname("head")[0], s = createelement("style");
s.setattribute("type", "text/css");
s.setattribute("media", "screen");
if (!(ua.ie && ua.win) && typeof doc.createtextnode != undef) {
s.appendchild(doc.createtextnode(sel + " {" + decl + "}"));
}
h.appendchild(s);
if (ua.ie && ua.win && typeof doc.stylesheets != undef && doc.stylesheets.length > 0) {
var ls = doc.stylesheets[doc.stylesheets.length - 1];
if (typeof ls.addrule == object) {
ls.addrule(sel, decl);
}
}
}
function setvisibility(id, isvisible) {
var v = isvisible ? "inherit" : "hidden";
if (isdomloaded) {
getelementbyid(id).style.visibility = v;
}
else {
createcss("#" + id, "visibility:" + v);
}
}
function gettargetversion(obj) {
if (!obj)
return 0;
var c = obj.childnodes;
var cl = c.length;
for (var i = 0; i < cl; i++) {
if (c[i].nodetype == 1 && c[i].nodename.tolowercase() == "object") {
c = c[i].childnodes;
cl = c.length;
i = 0;
}
if (c[i].nodetype == 1 && c[i].nodename.tolowercase() == "param" && c[i].getattribute("name") == "swfversion") {
return c[i].getattribute("value");
}
}
return 0;
}
function getexpressinstall(obj) {
if (!obj)
return "";
var c = obj.childnodes;
var cl = c.length;
for (var i = 0; i < cl; i++) {
if (c[i].nodetype == 1 && c[i].nodename.tolowercase() == "object") {
c = c[i].childnodes;
cl = c.length;
i = 0;
}
if (c[i].nodetype == 1 && c[i].nodename.tolowercase() == "param" && c[i].getattribute("name") == "expressinstall") {
return c[i].getattribute("value");
}
}
return "";
}
return {
/* public api
- reference: http://code.google.com/p/swfobject/wiki/swfobject_2_0_documentation
*/
registerobject: function(objectidstr, swfversionstr, xiswfurlstr) {
if (!ua.w3cdom || !objectidstr) {
return;
}
var obj = document.getelementbyid(objectidstr);
var xi = getexpressinstall(obj);
var regobj = {};
regobj.id = objectidstr;
regobj.swfversion = swfversionstr ? swfversionstr : gettargetversion(obj);
regobj.expressinstall = xiswfurlstr ? xiswfurlstr : ((xi != "") ? xi : false);
regobjarr[regobjarr.length] = regobj;
setvisibility(objectidstr, false);
},
getobjectbyid: function(objectidstr) {
var r = null;
if (ua.w3cdom && isdomloaded) {
var o = getelementbyid(objectidstr);
if (o) {
var n = o.getelementsbytagname(object)[0];
if (!n || (n && typeof o.setvariable != undef)) {
r = o;
}
else if (typeof n.setvariable != undef) {
r = n;
}
}
}
return r;
},
embedswf: function(swfurlstr, replaceelemidstr, widthstr, heightstr, swfversionstr, xiswfurlstr, flashvarsobj, parobj, attobj) {
if (!ua.w3cdom || !swfurlstr || !replaceelemidstr || !widthstr || !heightstr || !swfversionstr) {
return;
}
widthstr += ""; // auto-convert to string to make it idiot proof
heightstr += "";
if (hasplayerversion(swfversionstr)) {
setvisibility(replaceelemidstr, false);
var att = (typeof attobj == object) ? attobj : {};
att.data = swfurlstr;
att.width = widthstr;
att.height = heightstr;
var par = (typeof parobj == object) ? parobj : {};
if (typeof flashvarsobj == object) {
for (var i in flashvarsobj) {
if (flashvarsobj[i] != object.prototype[i]) { // filter out prototype additions from other potential libraries
if (typeof par.flashvars != undef) {
par.flashvars += "&" + i + "=" + flashvarsobj[i];
}
else {
par.flashvars = i + "=" + flashvarsobj[i];
}
}
}
}
adddomloadevent(function() {
createswf(att, par, replaceelemidstr);
if (att.id == replaceelemidstr) {
setvisibility(replaceelemidstr, true);
}
});
}
else if (xiswfurlstr && !isexpressinstallactive && hasplayerversion("6.0.65") && (ua.win || ua.mac)) {
setvisibility(replaceelemidstr, false);
adddomloadevent(function() {
var regobj = {};
regobj.id = regobj.altcontentid = replaceelemidstr;
regobj.width = widthstr;
regobj.height = heightstr;
regobj.expressinstall = xiswfurlstr;
showexpressinstall(regobj);
});
}
},
getflashplayerversion: function() {
return { major:ua.pv[0], minor:ua.pv[1], release:ua.pv[2] };
},
hasflashplayerversion:hasplayerversion,
createswf: function(attobj, parobj, replaceelemidstr) {
if (ua.w3cdom && isdomloaded) {
return createswf(attobj, parobj, replaceelemidstr);
}
else {
return undefined;
}
},
createcss: function(sel, decl) {
if (ua.w3cdom) {
createcss(sel, decl);
}
},
adddomloadevent:adddomloadevent,
addloadevent:addloadevent,
getqueryparamvalue: function(param) {
var q = doc.location.search || doc.location.hash;
if (param == null) {
return q;
}
if(q) {
var pairs = q.substring(1).split("&");
for (var i = 0; i < pairs.length; i++) {
if (pairs[i].substring(0, pairs[i].indexof("=")) == param) {
return pairs[i].substring((pairs[i].indexof("=") + 1));
}
}
}
return "";
},
// for internal usage only
expressinstallcallback: function() {
if (isexpressinstallactive && storedaltcontent) {
var obj = getelementbyid(express_install_id);
if (obj) {
obj.parentnode.replacechild(storedaltcontent, obj);
if (storedaltcontentid) {
setvisibility(storedaltcontentid, true);
if (ua.ie && ua.win) {
storedaltcontent.style.display = "block";
}
}
storedaltcontent = null;
storedaltcontentid = null;
isexpressinstallactive = false;
}
}
}
};
}();
;
/*
* 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,y=l.jquery,p=l.$,o=l.jquery=l.$=function(e,f){return new o.fn.init(e,f)},d=/^[^<]*(<(.|\s)+>)[^>]*$|^#([\w-]+)$/,f=/^.[^:#\[\.,]*$/;o.fn=o.prototype={init:function(e,h){e=e||document;if(e.nodetype){this[0]=e;this.length=1;this.context=e;return this}if(typeof e==="string"){var g=d.exec(e);if(g&&(g[1]||!h)){if(g[1]){e=o.clean([g[1]],h)}else{var i=document.getelementbyid(g[3]);if(i&&i.id!=g[3]){return o().find(e)}var f=o(i||[]);f.context=document;f.selector=e;return f}}else{return o(h).find(e)}}else{if(o.isfunction(e)){return o(document).ready(e)}}if(e.selector&&e.context){this.selector=e.selector;this.context=e.context}return this.setarray(o.isarray(e)?e:o.makearray(e))},selector:"",jquery:"1.3.2",size:function(){return this.length},get:function(e){return e===g?array.prototype.slice.call(this):this[e]},pushstack:function(f,h,e){var g=o(f);g.prevobject=this;g.context=this.context;if(h==="find"){g.selector=this.selector+(this.selector?" ":"")+e}else{if(h){g.selector=this.selector+"."+h+"("+e+")"}}return g},setarray:function(e){this.length=0;array.prototype.push.apply(this,e);return this},each:function(f,e){return o.each(this,f,e)},index:function(e){return o.inarray(e&&e.jquery?e[0]:e,this)},attr:function(f,h,g){var e=f;if(typeof f==="string"){if(h===g){return this[0]&&o[g||"attr"](this[0],f)}else{e={};e[f]=h}}return this.each(function(i){for(f in e){o.attr(g?this.style:this,f,o.prop(this,e[f],g,i,f))}})},css:function(e,f){if((e=="width"||e=="height")&&parsefloat(f)<0){f=g}return this.attr(e,f,"curcss")},text:function(f){if(typeof f!=="object"&&f!=null){return this.empty().append((this[0]&&this[0].ownerdocument||document).createtextnode(f))}var e="";o.each(f||this,function(){o.each(this.childnodes,function(){if(this.nodetype!=8){e+=this.nodetype!=1?this.nodevalue:o.fn.text([this])}})});return e},wrapall:function(e){if(this[0]){var f=o(e,this[0].ownerdocument).clone();if(this[0].parentnode){f.insertbefore(this[0])}f.map(function(){var g=this;while(g.firstchild){g=g.firstchild}return g}).append(this)}return this},wrapinner:function(e){return this.each(function(){o(this).contents().wrapall(e)})},wrap:function(e){return this.each(function(){o(this).wrapall(e)})},append:function(){return this.dommanip(arguments,true,function(e){if(this.nodetype==1){this.appendchild(e)}})},prepend:function(){return this.dommanip(arguments,true,function(e){if(this.nodetype==1){this.insertbefore(e,this.firstchild)}})},before:function(){return this.dommanip(arguments,false,function(e){this.parentnode.insertbefore(e,this)})},after:function(){return this.dommanip(arguments,false,function(e){this.parentnode.insertbefore(e,this.nextsibling)})},end:function(){return this.prevobject||o([])},push:[].push,sort:[].sort,splice:[].splice,find:function(e){if(this.length===1){var f=this.pushstack([],"find",e);f.length=0;o.find(e,this[0],f);return f}else{return this.pushstack(o.unique(o.map(this,function(g){return o.find(e,g)})),"find",e)}},clone:function(g){var e=this.map(function(){if(!o.support.nocloneevent&&!o.isxmldoc(this)){var i=this.outerhtml;if(!i){var j=this.ownerdocument.createelement("div");j.appendchild(this.clonenode(true));i=j.innerhtml}return o.clean([i.replace(/ jquery\d+="(?:\d+|null)"/g,"").replace(/^\s*/,"")])[0]}else{return this.clonenode(true)}});if(g===true){var h=this.find("*").andself(),f=0;e.find("*").andself().each(function(){if(this.nodename!==h[f].nodename){return}var i=o.data(h[f],"events");for(var k in i){for(var j in i[k]){o.event.add(this,k,i[k][j],i[k][j].data)}}f++})}return e},filter:function(e){return this.pushstack(o.isfunction(e)&&o.grep(this,function(g,f){return e.call(g,f)})||o.multifilter(e,o.grep(this,function(f){return f.nodetype===1})),"filter",e)},closest:function(e){var g=o.expr.match.pos.test(e)?o(e):null,f=0;return this.map(function(){var h=this;while(h&&h.ownerdocument){if(g?g.index(h)>-1:o(h).is(e)){o.data(h,"closest",f);return h}h=h.parentnode;f++}})},not:function(e){if(typeof e==="string"){if(f.test(e)){return this.pushstack(o.multifilter(e,this,true),"not",e)}else{e=o.multifilter(e,this)}}var f=e.length&&e[e.length-1]!==g&&!e.nodetype;return this.filter(function(){return f?o.inarray(this,e)<0:this!=e})},add:function(e){return this.pushstack(o.unique(o.merge(this.get(),typeof e==="string"?o(e):o.makearray(e))))},is:function(e){return !!e&&o.multifilter(e,this).length>0},hasclass:function(e){return !!e&&this.is("."+e)},val:function(k){if(k===g){var e=this[0];if(e){if(o.nodename(e,"option")){return(e.attributes.value||{}).specified?e.value:e.text}if(o.nodename(e,"select")){var i=e.selectedindex,l=[],m=e.options,h=e.type=="select-one";if(i<0){return null}for(var f=h?i:0,j=h?i+1:m.length;f=0||o.inarray(this.name,k)>=0)}else{if(o.nodename(this,"select")){var n=o.makearray(k);o("option",this).each(function(){this.selected=(o.inarray(this.value,n)>=0||o.inarray(this.text,n)>=0)});if(!n.length){this.selectedindex=-1}}else{this.value=k}}})},html:function(e){return e===g?(this[0]?this[0].innerhtml.replace(/ jquery\d+="(?:\d+|null)"/g,""):null):this.empty().append(e)},replacewith:function(e){return this.after(e).remove()},eq:function(e){return this.slice(e,+e+1)},slice:function(){return this.pushstack(array.prototype.slice.apply(this,arguments),"slice",array.prototype.slice.call(arguments).join(","))},map:function(e){return this.pushstack(o.map(this,function(g,f){return e.call(g,f,g)}))},andself:function(){return this.add(this.prevobject)},dommanip:function(j,m,l){if(this[0]){var i=(this[0].ownerdocument||this[0]).createdocumentfragment(),f=o.clean(j,(this[0].ownerdocument||this[0]),i),h=i.firstchild;if(h){for(var g=0,e=this.length;g1||g>0?i.clonenode(true):i)}}if(f){o.each(f,z)}}return this;function k(n,o){return m&&o.nodename(n,"table")&&o.nodename(o,"tr")?(n.getelementsbytagname("tbody")[0]||n.appendchild(n.ownerdocument.createelement("tbody"))):n}}};o.fn.init.prototype=o.fn;function z(e,f){if(f.src){o.ajax({url:f.src,async:false,datatype:"script"})}else{o.globaleval(f.text||f.textcontent||f.innerhtml||"")}if(f.parentnode){f.parentnode.removechild(f)}}function e(){return +new date}o.extend=o.fn.extend=function(){var j=arguments[0]||{},h=1,i=arguments.length,e=false,g;if(typeof j==="boolean"){e=j;j=arguments[1]||{};h=2}if(typeof j!=="object"&&!o.isfunction(j)){j={}}if(i==h){j=this;--h}for(;h-1}},swap:function(h,g,i){var e={};for(var f in g){e[f]=h.style[f];h.style[f]=g[f]}i.call(h);for(var f in g){h.style[f]=e[f]}},css:function(h,f,j,e){if(f=="width"||f=="height"){var l,g={position:"absolute",visibility:"hidden",display:"block"},k=f=="width"?["left","right"]:["top","bottom"];function i(){l=f=="width"?h.offsetwidth:h.offsetheight;if(e==="border"){return}o.each(k,function(){if(!e){l-=parsefloat(o.curcss(h,"padding"+this,true))||0}if(e==="margin"){l+=parsefloat(o.curcss(h,"margin"+this,true))||0}else{l-=parsefloat(o.curcss(h,"border"+this+"width",true))||0}})}if(h.offsetwidth!==0){i()}else{o.swap(h,g,i)}return math.max(0,math.round(l))}return o.curcss(h,f,j)},curcss:function(i,f,g){var l,e=i.style;if(f=="opacity"&&!o.support.opacity){l=o.attr(e,"opacity");return l==""?"1":l}if(f.match(/float/i)){f=w}if(!g&&e&&e[f]){l=e[f]}else{if(q.getcomputedstyle){if(f.match(/float/i)){f="float"}f=f.replace(/([a-z])/g,"-$1").tolowercase();var m=q.getcomputedstyle(i,null);if(m){l=m.getpropertyvalue(f)}if(f=="opacity"&&l==""){l="1"}}else{if(i.currentstyle){var j=f.replace(/\-(\w)/g,function(n,o){return o.touppercase()});l=i.currentstyle[f]||i.currentstyle[j];if(!/^\d+(px)?$/i.test(l)&&/^\d/.test(l)){var h=e.left,k=i.runtimestyle.left;i.runtimestyle.left=i.currentstyle.left;e.left=l||0;l=e.pixelleft+"px";e.left=h;i.runtimestyle.left=k}}}}return l},clean:function(f,k,i){k=k||document;if(typeof k.createelement==="undefined"){k=k.ownerdocument||k[0]&&k[0].ownerdocument||document}if(!i&&f.length===1&&typeof f[0]==="string"){var h=/^<(\w+)\s*\/?>$/.exec(f[0]);if(h){return[k.createelement(h[1])]}}var g=[],e=[],l=k.createelement("div");o.each(f,function(p,s){if(typeof s==="number"){s+=""}if(!s){return}if(typeof s==="string"){s=s.replace(/(<(\w+)[^>]*?)\/>/g,function(u,v,t){return t.match(/^(abbr|br|col|img|input|link|meta|param|hr|area|embed)$/i)?u:v+">"+t+">"});var o=s.replace(/^\s+/,"").substring(0,10).tolowercase();var q=!o.indexof("",""]||!o.indexof("",""]||o.match(/^<(thead|tbody|tfoot|colg|cap)/)&&[1,"