(function(){var c=this,b,C=c.jQuery,z=c.$,a=c.jQuery=c.$=function(b,c){return new a.fn.init(b,c)},x=/^[^<]*(<(.|\s)+>)[^>]*$|^#([\w-]+)$/,y=/^.[^:#\[\.,]*$/;a.fn=a.prototype={init:function(b,e){b=b||document;if(b.nodeType){this[0]=b;this.length=1;this.context=b;return this}if(typeof b==="string"){var c=x.exec(b);if(c&&(c[1]||!e))if(c[1])b=a.clean([c[1]],e);else{var f=document.getElementById(c[3]);if(f&&f.id!=c[3])return a().find(b);var d=a(f||[]);d.context=document;d.selector=b;return d}else return a(e).find(b)}else if(a.isFunction(b))return a(document).ready(b);if(b.selector&&b.context){this.selector=b.selector;this.context=b.context}return this.setArray(a.isArray(b)?b:a.makeArray(b))},selector:"",jquery:"1.3.2",size:function(){return this.length},"get":function(a){return a===b?Array.prototype.slice.call(this):this[a]},pushStack:function(e,c,d){var b=a(e);b.prevObject=this;b.context=this.context;if(c==="find")b.selector=this.selector+(this.selector?" ":"")+d;else if(c)b.selector=this.selector+"."+c+"("+d+")";return b},setArray:function(a){this.length=0;Array.prototype.push.apply(this,a);return this},each:function(c,b){return a.each(this,c,b)},index:function(b){return a.inArray(b&&b.jquery?b[0]:b,this)},attr:function(c,f,e){var d=c;if(typeof c==="string")if(f===b)return this[0]&&a[e||"attr"](this[0],c);else{d={};d[c]=f}return this.each(function(b){for(c in d)a.attr(e?this.style:this,c,a.prop(this,d[c],e,b,c))})},css:function(a,c){if((a=="width"||a=="height")&&parseFloat(c)<0)c=b;return this.attr(a,c,"curCSS")},text:function(b){if(typeof b!=="object"&&b!=null)return this.empty().append((this[0]&&this[0].ownerDocument||document).createTextNode(b));var c="";a.each(b||this,function(){a.each(this.childNodes,function(){if(this.nodeType!=8)c+=this.nodeType!=1?this.nodeValue:a.fn.text([this])})});return c},wrapAll:function(c){if(this[0]){var b=a(c,this[0].ownerDocument).clone();this[0].parentNode&&b.insertBefore(this[0]);b.map(function(){var a=this;while(a.firstChild)a=a.firstChild;return a}).append(this)}return this},wrapInner:function(b){return this.each(function(){a(this).contents().wrapAll(b)})},wrap:function(b){return this.each(function(){a(this).wrapAll(b)})},append:function(){return this.domManip(arguments,true,function(a){this.nodeType==1&&this.appendChild(a)})},prepend:function(){return this.domManip(arguments,true,function(a){this.nodeType==1&&this.insertBefore(a,this.firstChild)})},before:function(){return this.domManip(arguments,false,function(a){this.parentNode.insertBefore(a,this)})},after:function(){return this.domManip(arguments,false,function(a){this.parentNode.insertBefore(a,this.nextSibling)})},end:function(){return this.prevObject||a([])},push:[].push,sort:[].sort,splice:[].splice,find:function(b){if(this.length===1){var c=this.pushStack([],"find",b);c.length=0;a.find(b,this[0],c);return c}else return this.pushStack(a.unique(a.map(this,function(c){return a.find(b,c)})),"find",b)},clone:function(e){var c=this.map(function(){if(!a.support.noCloneEvent&&!a.isXMLDoc(this)){var b=this.outerHTML;if(!b){var c=this.ownerDocument.createElement("div");c.appendChild(this.cloneNode(true));b=c.innerHTML}return a.clean([b.replace(/ jQuery\d+="(?:\d+|null)"/g,"").replace(/^\s*/,"")])[0]}else return this.cloneNode(true)});if(e===true){var d=this.find("*").andSelf(),b=0;c.find("*").andSelf().each(function(){if(this.nodeName!==d[b].nodeName)return;var c=a.data(d[b],"events");for(var e in c)for(var f in c[e])a.event.add(this,e,c[e][f],c[e][f].data);b++})}return c},filter:function(b){return this.pushStack(a.isFunction(b)&&a.grep(this,function(c,a){return b.call(c,a)})||a.multiFilter(b,a.grep(this,function(a){return a.nodeType===1})),"filter",b)},closest:function(b){var d=a.expr.match.POS.test(b)?a(b):null,c=0;return this.map(function(){var e=this;while(e&&e.ownerDocument){if(d?d.index(e)>-1:a(e).is(b)){a.data(e,"closest",c);return e}e=e.parentNode;c++}})},not:function(c){if(typeof c==="string")if(y.test(c))return this.pushStack(a.multiFilter(c,this,true),"not",c);else c=a.multiFilter(c,this);var d=c.length&&c[c.length-1]!==b&&!c.nodeType;return this.filter(function(){return d?a.inArray(this,c)<0:this!=c})},add:function(b){return this.pushStack(a.unique(a.merge(this.get(),typeof b==="string"?a(b):a.makeArray(b))))},is:function(b){return!!b&&a.multiFilter(b,this).length>0},hasClass:function(a){return!!a&&this.is("."+a)},val:function(c){if(c===b){var d=this[0];if(d){if(a.nodeName(d,"option"))return(d.attributes.value||{}).specified?d.value:d.text;if(a.nodeName(d,"select")){var g=d.selectedIndex,i=[],j=d.options,f=d.type=="select-one";if(g<0)return null;for(var e=f?g:0,k=f?g+1:j.length;e<k;e++){var h=j[e];if(h.selected){c=a(h).val();if(f)return c;i.push(c)}}return i}return(d.value||"").replace(/\r/g,"")}return b}if(typeof c==="number")c+="";return this.each(function(){if(this.nodeType!=1)return;if(a.isArray(c)&&/radio|checkbox/.test(this.type))this.checked=a.inArray(this.value,c)>=0||a.inArray(this.name,c)>=0;else if(a.nodeName(this,"select")){var b=a.makeArray(c);a("option",this).each(function(){this.selected=a.inArray(this.value,b)>=0||a.inArray(this.text,b)>=0});if(!b.length)this.selectedIndex=-1}else this.value=c})},html:function(a){return a===b?this[0]?this[0].innerHTML.replace(/ jQuery\d+="(?:\d+|null)"/g,""):null:this.empty().append(a)},replaceWith:function(a){return this.after(a).remove()},eq:function(a){return this.slice(a,+a+1)},slice:function(){return this.pushStack(Array.prototype.slice.apply(this,arguments),"slice",Array.prototype.slice.call(arguments).join(","))},map:function(b){return this.pushStack(a.map(this,function(a,c){return b.call(a,c,a)}))},andSelf:function(){return this.add(this.prevObject)},domManip:function(g,j,i){if(this[0]){var c=(this[0].ownerDocument||this[0]).createDocumentFragment(),d=a.clean(g,this[0].ownerDocument||this[0],c),e=c.firstChild;if(e)for(var b=0,f=this.length;b<f;b++)i.call(h(this[b],e),this.length>1||b>0?c.cloneNode(true):c);d&&a.each(d,D)}return this;function h(b,c){return j&&a.nodeName(b,"table")&&a.nodeName(c,"tr")?b.getElementsByTagName("tbody")[0]||b.appendChild(b.ownerDocument.createElement("tbody")):b}}};a.fn.init.prototype=a.fn;function D(c,b){if(b.src)a.ajax({url:b.src,async:false,dataType:"script"});else a.globalEval(b.text||b.textContent||b.innerHTML||"");b.parentNode&&b.parentNode.removeChild(b)}function f(){return+new Date}a.extend=a.fn.extend=function(){var c=arguments[0]||{},e=1,i=arguments.length,g=false,h;if(typeof c==="boolean"){g=c;c=arguments[1]||{};e=2}if(typeof c!=="object"&&!a.isFunction(c))c={};if(i==e){c=this;--e}for(;e<i;e++)if((h=arguments[e])!=null)for(var f in h){var j=c[f],d=h[f];if(c===d)continue;if(g&&d&&typeof d==="object"&&!d.nodeType)c[f]=a.extend(g,j||(d.length!=null?[]:{}),d);else if(d!==b)c[f]=d}return c};var w=/z-?index|font-?weight|opacity|zoom|line-?height/i,t=document.defaultView||{},u=Object.prototype.toString;a.extend({noConflict:function(b){c.$=z;if(b)c.jQuery=C;return a},isFunction:function(a){return u.call(a)==="[object Function]"},isArray:function(a){return u.call(a)==="[object Array]"},isXMLDoc:function(b){return b.nodeType===9&&b.documentElement.nodeName!=="HTML"||!!b.ownerDocument&&a.isXMLDoc(b.ownerDocument)},globalEval:function(c){if(c&&/\S/.test(c)){var d=document.getElementsByTagName("head")[0]||document.documentElement,b=document.createElement("script");b.type="text/javascript";if(a.support.scriptEval)b.appendChild(document.createTextNode(c));else b.text=c;d.insertBefore(b,d.firstChild);d.removeChild(b)}},nodeName:function(a,b){return a.nodeName&&a.nodeName.toUpperCase()==b.toUpperCase()},each:function(a,f,g){var c,d=0,e=a.length;if(g){if(e===b){for(c in a)if(f.apply(a[c],g)===false)break}else for(;d<e;)if(f.apply(a[d++],g)===false)break}else if(e===b){for(c in a)if(f.call(a[c],c,a[c])===false)break}else for(var h=a[0];d<e&&f.call(h,d,h)!==false;h=a[++d]);return a},prop:function(f,b,e,d,c){if(a.isFunction(b))b=b.call(f,d);return typeof b==="number"&&e=="curCSS"&&!w.test(c)?b+"px":b},className:{add:function(b,c){a.each((c||"").split(/\s+/),function(d,c){if(b.nodeType==1&&!a.className.has(b.className,c))b.className+=(b.className?" ":"")+c})},remove:function(c,d){if(c.nodeType==1)c.className=d!==b?a.grep(c.className.split(/\s+/),function(b){return!a.className.has(d,b)}).join(" "):""},has:function(b,c){return b&&a.inArray(c,(b.className||b).toString().split(/\s+/))>-1}},swap:function(b,c,e){var d={};for(var a in c){d[a]=b.style[a];b.style[a]=c[a]}e.call(b);for(var a in c)b.style[a]=d[a]},css:function(b,c,h,e){if(c=="width"||c=="height"){var d,g={position:"absolute",visibility:"hidden",display:"block"},i=c=="width"?["Left","Right"]:["Top","Bottom"];function f(){d=c=="width"?b.offsetWidth:b.offsetHeight;if(e==="border")return;a.each(i,function(){if(!e)d-=parseFloat(a.curCSS(b,"padding"+this,true))||0;if(e==="margin")d+=parseFloat(a.curCSS(b,"margin"+this,true))||0;else d-=parseFloat(a.curCSS(b,"border"+this+"Width",true))||0})}if(b.offsetWidth!==0)f();else a.swap(b,g,f);return Math.max(0,Math.round(d))}return a.curCSS(b,c,h)},curCSS:function(d,b,g){var c,e=d.style;if(b=="opacity"&&!a.support.opacity){c=a.attr(e,"opacity");return c==""?"1":c}if(b.match(/float/i))b=j;if(!g&&e&&e[b])c=e[b];else if(t.getComputedStyle){if(b.match(/float/i))b="float";b=b.replace(/([A-Z])/g,"-$1").toLowerCase();var f=t.getComputedStyle(d,null);if(f)c=f.getPropertyValue(b);if(b=="opacity"&&c=="")c="1"}else if(d.currentStyle){var i=b.replace(/\-(\w)/g,function(b,a){return a.toUpperCase()});c=d.currentStyle[b]||d.currentStyle[i];if(!/^\d+(px)?$/i.test(c)&&/^\d/.test(c)){var h=e.left,k=d.runtimeStyle.left;d.runtimeStyle.left=d.currentStyle.left;e.left=c||0;c=e.pixelLeft+"px";e.left=h;d.runtimeStyle.left=k}}return c},clean:function(f,d,g){d=d||document;if(typeof d.createElement==="undefined")d=d.ownerDocument||d[0]&&d[0].ownerDocument||document;if(!g&&f.length===1&&typeof f[0]==="string"){var i=/^<(\w+)\s*\/?>$/.exec(f[0]);if(i)return[d.createElement(i[1])]}var b=[],h=[],e=d.createElement("div");a.each(f,function(k,c){if(typeof c==="number")c+="";if(!c)return;if(typeof c==="string"){c=c.replace(/(<(\w+)[^>]*?)\/>/g,function(b,c,a){return a.match(/^(abbr|br|col|img|input|link|meta|param|hr|area|embed)$/i)?b:c+"></"+a+">"});var f=c.replace(/^\s+/,"").substring(0,10).toLowerCase(),i=!f.indexOf("<opt")&&[1,"<select multiple='multiple'>","</select>"]||!f.indexOf("<leg")&&[1,"<fieldset>","</fieldset>"]||f.match(/^<(thead|tbody|tfoot|colg|cap)/)&&[1,"<table>","</table>"]||!f.indexOf("<tr")&&[2,"<table><tbody>","</tbody></table>"]||(!f.indexOf("<td")||!f.indexOf("<th"))&&[3,"<table><tbody><tr>","</tr></tbody></table>"]||!f.indexOf("<col")&&[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"]||!a.support.htmlSerialize&&[1,"div<div>","</div>"]||[0,"",""];e.innerHTML=i[1]+c+i[2];while(i[0]--)e=e.lastChild;if(!a.support.tbody)for(var j=/<tbody/i.test(c),h=!f.indexOf("<table")&&!j?e.firstChild&&e.firstChild.childNodes:i[1]=="<table>"&&!j?e.childNodes:[],g=h.length-1;g>=0;--g)a.nodeName(h[g],"tbody")&&!h[g].childNodes.length&&h[g].parentNode.removeChild(h[g]);!a.support.leadingWhitespace&&/^\s/.test(c)&&e.insertBefore(d.createTextNode(c.match(/^\s*/)[0]),e.firstChild);c=a.makeArray(e.childNodes)}if(c.nodeType)b.push(c);else b=a.merge(b,c)});if(g){for(var c=0;b[c];c++)if(a.nodeName(b[c],"script")&&(!b[c].type||b[c].type.toLowerCase()==="text/javascript"))h.push(b[c].parentNode?b[c].parentNode.removeChild(b[c]):b[c]);else{b[c].nodeType===1&&b.splice.apply(b,[c+1,0].concat(a.makeArray(b[c].getElementsByTagName("script"))));g.appendChild(b[c])}return h}return b},attr:function(c,d,e){if(!c||c.nodeType==3||c.nodeType==8)return b;var f=!a.isXMLDoc(c),g=e!==b;d=f&&a.props[d]||d;if(c.tagName){var j=/href|src|style/.test(d);if(d=="selected"&&c.parentNode)c.parentNode.selectedIndex;if(d in c&&f&&!j){if(g){if(d=="type"&&a.nodeName(c,"input")&&c.parentNode)throw"type property can't be changed";c[d]=e}if(a.nodeName(c,"form")&&c.getAttributeNode(d))return c.getAttributeNode(d).nodeValue;if(d=="tabIndex"){var h=c.getAttributeNode("tabIndex");return h&&h.specified?h.value:c.nodeName.match(/(button|input|object|select|textarea)/i)?0:c.nodeName.match(/^(a|area)$/i)&&c.href?0:b}return c[d]}if(!a.support.style&&f&&d=="style")return a.attr(c.style,"cssText",e);g&&c.setAttribute(d,""+e);var i=!a.support.hrefNormalized&&f&&j?c.getAttribute(d,2):c.getAttribute(d);return i===null?b:i}if(!a.support.opacity&&d=="opacity"){if(g){c.zoom=1;c.filter=(c.filter||"").replace(/alpha\([^)]*\)/,"")+(parseInt(e)+""=="NaN"?"":"alpha(opacity="+e*100+")")}return c.filter&&c.filter.indexOf("opacity=")>=0?parseFloat(c.filter.match(/opacity=([^)]*)/)[1])/100+"":""}d=d.replace(/-([a-z])/ig,function(b,a){return a.toUpperCase()});if(g)c[d]=e;return c[d]},trim:function(a){return(a||"").replace(/^\s+|\s+$/g,"")},makeArray:function(b){var d=[];if(b!=null){var c=b.length;if(c==null||typeof b==="string"||a.isFunction(b)||b.setInterval)d[0]=b;else while(c)d[--c]=b[c]}return d},inArray:function(d,b){for(var a=0,c=b.length;a<c;a++)if(b[a]===d)return a;return-1},merge:function(c,d){var e=0,b,f=c.length;if(!a.support.getAll){while((b=d[e++])!=null)if(b.nodeType!=8)c[f++]=b}else while((b=d[e++])!=null)c[f++]=b;return c},unique:function(c){var d=[],e={};try{for(var b=0,g=c.length;b<g;b++){var f=a.data(c[b]);if(!e[f]){e[f]=true;d.push(c[b])}}}catch(h){d=c}return d},grep:function(b,f,d){for(var c=[],a=0,e=b.length;a<e;a++)!d!=!f(b[a],a)&&c.push(b[a]);return c},map:function(c,f){for(var a=[],b=0,e=c.length;b<e;b++){var d=f(c[b],b);if(d!=null)a[a.length]=d}return a.concat.apply([],a)}});var e=navigator.userAgent.toLowerCase();a.browser={version:(e.match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/)||[0,"0"])[1],safari:/webkit/.test(e),opera:/opera/.test(e),msie:/msie/.test(e)&&!/opera/.test(e),mozilla:/mozilla/.test(e)&&!/(compatible|webkit)/.test(e)};a.each({parent:function(a){return a.parentNode},parents:function(b){return a.dir(b,"parentNode")},next:function(b){return a.nth(b,2,"nextSibling")},prev:function(b){return a.nth(b,2,"previousSibling")},nextAll:function(b){return a.dir(b,"nextSibling")},prevAll:function(b){return a.dir(b,"previousSibling")},siblings:function(b){return a.sibling(b.parentNode.firstChild,b)},children:function(b){return a.sibling(b.firstChild)},contents:function(b){return a.nodeName(b,"iframe")?b.contentDocument||b.contentWindow.document:a.makeArray(b.childNodes)}},function(b,c){a.fn[b]=function(d){var e=a.map(this,c);if(d&&typeof d=="string")e=a.multiFilter(d,e);return this.pushStack(a.unique(e),b,d)}});a.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(b,c){a.fn[b]=function(f){for(var e=[],h=a(f),d=0,i=h.length;d<i;d++){var g=(d>0?this.clone(true):this).get();a.fn[c].apply(a(h[d]),g);e=e.concat(g)}return this.pushStack(e,b,f)}});a.each({removeAttr:function(b){a.attr(this,b,"");this.nodeType==1&&this.removeAttribute(b)},addClass:function(b){a.className.add(this,b)},removeClass:function(b){a.className.remove(this,b)},toggleClass:function(c,b){if(typeof b!=="boolean")b=!a.className.has(this,c);a.className[b?"add":"remove"](this,c)},remove:function(b){if(!b||a.filter(b,[this]).length){a("*",this).add([this]).each(function(){a.event.remove(this);a.removeData(this)});this.parentNode&&this.parentNode.removeChild(this)}},empty:function(){a(this).children().remove();while(this.firstChild)this.removeChild(this.firstChild)}},function(b,c){a.fn[b]=function(){return this.each(c,arguments)}});function h(b,c){return b[0]&&parseInt(a.curCSS(b[0],c,true),10)||0}var d="jQuery"+f(),B=0,n={};a.extend({cache:{},data:function(f,g,h){f=f==c?n:f;var e=f[d];if(!e)e=f[d]=++B;if(g&&!a.cache[e])a.cache[e]={};if(h!==b)a.cache[e][g]=h;return g?a.cache[e][g]:e},removeData:function(b,e){b=b==c?n:b;var f=b[d];if(e){if(a.cache[f]){delete a.cache[f][e];e="";for(e in a.cache[f])break;!e&&a.removeData(b)}}else{try{delete b[d]}catch(g){b.removeAttribute&&b.removeAttribute(d)}delete a.cache[f]}},queue:function(e,b,d){if(e){b=(b||"fx")+"queue";var c=a.data(e,b);if(!c||a.isArray(d))c=a.data(e,b,a.makeArray(d));else d&&c.push(d)}return c},dequeue:function(f,d){var e=a.queue(f,d),c=e.shift();if(!d||d==="fx")c=e[0];c!==b&&c.call(f)}});a.fn.extend({data:function(e,f){var c=e.split(".");c[1]=c[1]?"."+c[1]:"";if(f===b){var d=this.triggerHandler("getData"+c[1]+"!",[c[0]]);if(d===b&&this.length)d=a.data(this[0],e);return d===b&&c[1]?this.data(c[0]):d}else return this.trigger("setData"+c[1]+"!",[c[0],f]).each(function(){a.data(this,e,f)})},removeData:function(b){return this.each(function(){a.removeData(this,b)})},queue:function(c,d){if(typeof c!=="string"){d=c;c="fx"}return d===b?a.queue(this[0],c):this.each(function(){var b=a.queue(this,c,d);c=="fx"&&b.length==1&&b[0].call(this)})},dequeue:function(b){return this.each(function(){a.dequeue(this,b)})}});(function(){var j=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?/g,i=0,k=Object.prototype.toString,e=function(o,i,m,t){m=m||[];i=i||document;if(i.nodeType!==1&&i.nodeType!==9)return[];if(!o||typeof o!=="string")return m;var a=[],v,n,c,z,y,u,x=true;j.lastIndex=0;while((v=j.exec(o))!==null){a.push(v[1]);if(v[2]){u=RegExp.rightContext;break}}if(a.length>1&&q.exec(o))if(a.length===2&&d.relative[a[0]])n=l(a[0]+a[1],i);else{n=d.relative[a[0]]?[i]:e(a.shift(),i);while(a.length){o=a.shift();if(d.relative[o])o+=a.shift();n=l(o,n)}}else{var w=t?{expr:a.pop(),"set":g(t)}:e.find(a.pop(),a.length===1&&i.parentNode?i.parentNode:i,f(i));n=e.filter(w.expr,w.set);if(a.length>0)c=g(n);else x=false;while(a.length){var r=a.pop(),s=r;if(!d.relative[r])r="";else s=a.pop();if(s==null)s=i;d.relative[r](c,s,f(i))}}if(!c)c=n;if(!c)throw"Syntax error, unrecognized expression: "+(r||o);if(k.call(c)==="[object Array]")if(!x)m.push.apply(m,c);else if(i.nodeType===1)for(var b=0;c[b]!=null;b++)c[b]&&(c[b]===true||c[b].nodeType===1&&p(i,c[b]))&&m.push(n[b]);else for(var b=0;c[b]!=null;b++)c[b]&&c[b].nodeType===1&&m.push(n[b]);else g(c,m);if(u){e(u,i,m,t);if(h){hasDuplicate=false;m.sort(h);if(hasDuplicate)for(var b=1;b<m.length;b++)m[b]===m[b-1]&&m.splice(b--,1)}}return m};e.matches=function(a,b){return e(a,null,null,b)};e.find=function(a,g,i){var b,c;if(!a)return[];for(var e=0,j=d.order.length;e<j;e++){var f=d.order[e],c;if(c=d.match[f].exec(a)){var h=RegExp.leftContext;if(h.substr(h.length-1)!=="\\"){c[1]=(c[1]||"").replace(/\\/g,"");b=d.find[f](c,g,i);if(b!=null){a=a.replace(d.match[f],"");break}}}}if(!b)b=g.getElementsByTagName("*");return{"set":b,expr:a}};e.filter=function(a,i,n,q){var p=a,k=[],c=i,e,g,s=i&&i[0]&&f(i[0]);while(a&&i.length){for(var h in d.filter)if((e=d.match[h].exec(a))!=null){var r=d.filter[h],j,l;g=false;if(c==k)k=[];if(d.preFilter[h]){e=d.preFilter[h](e,c,n,k,q,s);if(!e)g=j=true;else if(e===true)continue}if(e)for(var m=0;(l=c[m])!=null;m++)if(l){j=r(l,e,m,c);var o=q^!!j;if(n&&j!=null)if(o)g=true;else c[m]=false;else if(o){k.push(l);g=true}}if(j!==b){if(!n)c=k;a=a.replace(d.match[h],"");if(!g)return[];break}}if(a==p)if(g==null)throw"Syntax error, unrecognized expression: "+a;else break;p=a}return c};var d=e.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(a){return a.getAttribute("href")}},relative:{"+":function(c,b,j){var g=typeof b==="string",f=g&&!/\W/.test(b),h=g&&!f;if(f&&!j)b=b.toUpperCase();for(var d=0,i=c.length,a;d<i;d++)if(a=c[d]){while((a=a.previousSibling)&&a.nodeType!==1);c[d]=h||a&&a.nodeName===b?a||false:a===b}h&&e.filter(b,c,true)},">":function(c,a,i){var f=typeof a==="string";if(f&&!/\W/.test(a)){a=i?a:a.toUpperCase();for(var b=0,g=c.length;b<g;b++){var d=c[b];if(d){var h=d.parentNode;c[b]=h.nodeName===a?h:false}}}else{for(var b=0,g=c.length;b<g;b++){var d=c[b];if(d)c[b]=f?d.parentNode:d.parentNode===a}f&&e.filter(a,c,true)}},"":function(e,a,c){var d=i++,b=o;if(!a.match(/\W/)){var f=a=c?a:a.toUpperCase();b=n}b("parentNode",a,d,e,f,c)},"~":function(e,a,c){var d=i++,b=o;if(typeof a==="string"&&!a.match(/\W/)){var f=a=c?a:a.toUpperCase();b=n}b("previousSibling",a,d,e,f,c)}},find:{ID:function(c,b,d){if(typeof b.getElementById!=="undefined"&&!d){var a=b.getElementById(c[1]);return a?[a]:[]}},NAME:function(d,e){if(typeof e.getElementsByName!=="undefined"){for(var b=[],c=e.getElementsByName(d[1]),a=0,f=c.length;a<f;a++)c[a].getAttribute("name")===d[1]&&b.push(c[a]);return b.length===0?null:b}},TAG:function(a,b){return b.getElementsByTagName(a[1])}},preFilter:{CLASS:function(b,d,e,g,h,f){b=" "+b[1].replace(/\\/g,"")+" ";if(f)return b;for(var c=0,a;(a=d[c])!=null;c++)if(a)if(h^(a.className&&(" "+a.className+" ").indexOf(b)>=0))!e&&g.push(a);else if(e)d[c]=false;return false},ID:function(a){return a[1].replace(/\\/g,"")},TAG:function(c,b){for(var a=0;b[a]===false;a++);return b[a]&&f(b[a])?c[1]:c[1].toUpperCase()},CHILD:function(a){if(a[1]=="nth"){var b=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(a[2]=="even"&&"2n"||a[2]=="odd"&&"2n+1"||!/\D/.test(a[2])&&"0n+"+a[2]||a[2]);a[2]=b[1]+(b[2]||1)-0;a[3]=b[3]-0}a[0]=i++;return a},ATTR:function(a,f,g,e,h,c){var b=a[1].replace(/\\/g,"");if(!c&&d.attrMap[b])a[1]=d.attrMap[b];if(a[2]==="~=")a[4]=" "+a[4]+" ";return a},PSEUDO:function(a,c,f,b,h){if(a[1]==="not")if(a[3].match(j).length>1||/^\w/.test(a[3]))a[3]=e(a[3],null,null,c);else{var g=e.filter(a[3],c,f,true^h);!f&&b.push.apply(b,g);return false}else if(d.match.POS.test(a[0])||d.match.CHILD.test(a[0]))return true;return a},POS:function(a){a.unshift(true);return a}},filters:{enabled:function(a){return a.disabled===false&&a.type!=="hidden"},disabled:function(a){return a.disabled===true},checked:function(a){return a.checked===true},selected:function(a){a.parentNode.selectedIndex;return a.selected===true},parent:function(a){return!!a.firstChild},empty:function(a){return!a.firstChild},has:function(b,c,a){return!!e(a[3],b).length},header:function(a){return/h\d/i.test(a.nodeName)},text:function(a){return"text"===a.type},radio:function(a){return"radio"===a.type},checkbox:function(a){return"checkbox"===a.type},file:function(a){return"file"===a.type},password:function(a){return"password"===a.type},submit:function(a){return"submit"===a.type},image:function(a){return"image"===a.type},reset:function(a){return"reset"===a.type},button:function(a){return"button"===a.type||a.nodeName.toUpperCase()==="BUTTON"},input:function(a){return/input|select|textarea|button/i.test(a.nodeName)}},setFilters:{first:function(b,a){return a===0},last:function(d,a,c,b){return a===b.length-1},even:function(b,a){return a%2===0},odd:function(b,a){return a%2===1},lt:function(c,b,a){return b<a[3]-0},gt:function(c,b,a){return b>a[3]-0},nth:function(c,b,a){return a[3]-0==b},eq:function(c,b,a){return a[3]-0==b}},filter:{PSEUDO:function(c,a,b,h){var e=a[1],f=d.filters[e];if(f)return f(c,b,a,h);else if(e==="contains")return(c.textContent||c.innerText||"").indexOf(a[3])>=0;else if(e==="not"){for(var g=a[3],b=0,i=g.length;b<i;b++)if(g[b]===c)return false;return true}},CHILD:function(b,e){var i=e[1],a=b;switch(i){case"only":case"first":while(a=a.previousSibling)if(a.nodeType===1)return false;if(i=="first")return true;a=b;case"last":while(a=a.nextSibling)if(a.nodeType===1)return false;return true;case"nth":var d=e[2],g=e[3];if(d==1&&g==0)return true;var h=e[0],c=b.parentNode;if(c&&(c.sizcache!==h||!b.nodeIndex)){var j=0;for(a=c.firstChild;a;a=a.nextSibling)if(a.nodeType===1)a.nodeIndex=++j;c.sizcache=h}var f=b.nodeIndex-g;return d==0?f==0:f%d==0&&f/d>=0}},ID:function(a,b){return a.nodeType===1&&a.getAttribute("id")===b},TAG:function(b,a){return a==="*"&&b.nodeType===1||b.nodeName===a},CLASS:function(a,b){return(" "+(a.className||a.getAttribute("class"))+" ").indexOf(b)>-1},ATTR:function(f,h){var e=h[1],g=d.attrHandle[e]?d.attrHandle[e](f):f[e]!=null?f[e]:f.getAttribute(e),b=g+"",c=h[2],a=h[4];return g==null?c==="!=":c==="="?b===a:c==="*="?b.indexOf(a)>=0:c==="~="?(" "+b+" ").indexOf(a)>=0:!a?b&&g!==false:c==="!="?b!=a:c==="^="?b.indexOf(a)===0:c==="$="?b.substr(b.length-a.length)===a:c==="|="?b===a||b.substr(0,a.length+1)===a+"-":false},POS:function(f,a,e,g){var c=a[2],b=d.setFilters[c];if(b)return b(f,e,a,g)}}},q=d.match.POS;for(var m in d.match)d.match[m]=RegExp(d.match[m].source+/(?![^\[]*\])(?![^\(]*\))/.source);var g=function(b,a){b=Array.prototype.slice.call(b);if(a){a.push.apply(a,b);return a}return b};try{Array.prototype.slice.call(document.documentElement.childNodes)}catch(r){g=function(a,e){var c=e||[];if(k.call(a)==="[object Array]")Array.prototype.push.apply(c,a);else if(typeof a.length==="number")for(var b=0,d=a.length;b<d;b++)c.push(a[b]);else for(var b=0;a[b];b++)c.push(a[b]);return c}}var h;if(document.documentElement.compareDocumentPosition)h=function(b,a){var c=b.compareDocumentPosition(a)&4?-1:b===a?0:1;if(c===0)hasDuplicate=true;return c};else if("sourceIndex"in document.documentElement)h=function(c,b){var a=c.sourceIndex-b.sourceIndex;if(a===0)hasDuplicate=true;return a};else if(document.createRange)h=function(d,c){var b=d.ownerDocument.createRange(),a=c.ownerDocument.createRange();b.selectNode(d);b.collapse(true);a.selectNode(c);a.collapse(true);var e=b.compareBoundaryPoints(Range.START_TO_END,a);if(e===0)hasDuplicate=true;return e};(function(){var c=document.createElement("form"),e="script"+(new Date).getTime();c.innerHTML="<input name='"+e+"'/>";var a=document.documentElement;a.insertBefore(c,a.firstChild);if(!!document.getElementById(e)){d.find.ID=function(c,d,e){if(typeof d.getElementById!=="undefined"&&!e){var a=d.getElementById(c[1]);return a?a.id===c[1]||typeof a.getAttributeNode!=="undefined"&&a.getAttributeNode("id").nodeValue===c[1]?[a]:b:[]}};d.filter.ID=function(a,c){var b=typeof a.getAttributeNode!=="undefined"&&a.getAttributeNode("id");return a.nodeType===1&&b&&b.nodeValue===c}}a.removeChild(c)})();(function(){var a=document.createElement("div");a.appendChild(document.createComment(""));if(a.getElementsByTagName("*").length>0)d.find.TAG=function(c,e){var a=e.getElementsByTagName(c[1]);if(c[1]==="*"){for(var d=[],b=0;a[b];b++)a[b].nodeType===1&&d.push(a[b]);a=d}return a};a.innerHTML="<a href='#'></a>";if(a.firstChild&&typeof a.firstChild.getAttribute!=="undefined"&&a.firstChild.getAttribute("href")!=="#")d.attrHandle.href=function(a){return a.getAttribute("href",2)}})();document.querySelectorAll&&(function(){var a=e,b=document.createElement("div");b.innerHTML="<p class='TEST'></p>";if(b.querySelectorAll&&b.querySelectorAll(".TEST").length===0)return;e=function(e,b,c,d){b=b||document;if(!d&&b.nodeType===9&&!f(b))try{return g(b.querySelectorAll(e),c)}catch(h){}return a(e,b,c,d)};e.find=a.find;e.filter=a.filter;e.selectors=a.selectors;e.matches=a.matches})();document.getElementsByClassName&&document.documentElement.getElementsByClassName&&(function(){var a=document.createElement("div");a.innerHTML="<div class='test e'></div><div class='test'></div>";if(a.getElementsByClassName("e").length===0)return;a.lastChild.className="e";if(a.getElementsByClassName("e").length===1)return;d.order.splice(1,0,"CLASS");d.find.CLASS=function(b,a,c){if(typeof a.getElementsByClassName!=="undefined"&&!c)return a.getElementsByClassName(b[1])}})();function n(d,j,f,c,k,g){for(var h=d=="previousSibling"&&!g,b=0,i=c.length;b<i;b++){var a=c[b];if(a){if(h&&a.nodeType===1){a.sizcache=f;a.sizset=b}a=a[d];var e=false;while(a){if(a.sizcache===f){e=c[a.sizset];break}if(a.nodeType===1&&!g){a.sizcache=f;a.sizset=b}if(a.nodeName===j){e=a;break}a=a[d]}c[b]=e}}}function o(f,h,g,c,l,i){for(var j=f=="previousSibling"&&!i,b=0,k=c.length;b<k;b++){var a=c[b];if(a){if(j&&a.nodeType===1){a.sizcache=g;a.sizset=b}a=a[f];var d=false;while(a){if(a.sizcache===g){d=c[a.sizset];break}if(a.nodeType===1){if(!i){a.sizcache=g;a.sizset=b}if(typeof h!=="string"){if(a===h){d=true;break}}else if(e.filter(h,[a]).length>0){d=a;break}}a=a[f]}c[b]=d}}}var p=document.compareDocumentPosition?function(b,a){return b.compareDocumentPosition(a)&16}:function(a,b){return a!==b&&(a.contains?a.contains(b):true)},f=function(a){return a.nodeType===9&&a.documentElement.nodeName!=="HTML"||!!a.ownerDocument&&f(a.ownerDocument)},l=function(a,b){var g=[],h="",i,f=b.nodeType?[b]:b;while(i=d.match.PSEUDO.exec(a)){h+=i[0];a=a.replace(d.match.PSEUDO,"")}a=d.relative[a]?a+"*":a;for(var c=0,j=f.length;c<j;c++)e(a,f[c],g);return e.filter(h,g)};a.find=e;a.filter=e.filter;a.expr=e.selectors;a.expr[":"]=a.expr.filters;e.selectors.filters.hidden=function(a){return a.offsetWidth===0||a.offsetHeight===0};e.selectors.filters.visible=function(a){return a.offsetWidth>0||a.offsetHeight>0};e.selectors.filters.animated=function(b){return a.grep(a.timers,function(a){return b===a.elem}).length};a.multiFilter=function(a,b,c){if(c)a=":not("+a+")";return e.matches(a,b)};a.dir=function(d,c){var b=[],a=d[c];while(a&&a!=document){a.nodeType==1&&b.push(a);a=a[c]}return b};a.nth=function(a,b,d){b=b||1;for(var c=0;a;a=a[d])if(a.nodeType==1&&++c==b)break;return a};a.sibling=function(a,c){for(var b=[];a;a=a.nextSibling)a.nodeType==1&&a!=c&&b.push(a);return b};return;c.Sizzle=e})();a.event={add:function(d,i,e,f){if(d.nodeType==3||d.nodeType==8)return;if(d.setInterval&&d!=c)d=c;if(!e.guid)e.guid=this.guid++;if(f!==b){var j=e;e=this.proxy(j);e.data=f}var h=a.data(d,"events")||a.data(d,"events",{}),g=a.data(d,"handle")||a.data(d,"handle",function(){return typeof a!=="undefined"&&!a.event.triggered?a.event.handle.apply(arguments.callee.elem,arguments):b});g.elem=d;a.each(i.split(/\s+/),function(j,b){var c=b.split(".");b=c.shift();e.type=c.slice().sort().join(".");var i=h[b];a.event.specialAll[b]&&a.event.specialAll[b].setup.call(d,f,c);if(!i){i=h[b]={};if(!a.event.special[b]||a.event.special[b].setup.call(d,f,c)===false)if(d.addEventListener)d.addEventListener(b,g,false);else d.attachEvent&&d.attachEvent("on"+b,g)}i[e.guid]=e;a.event.global[b]=true});d=null},guid:1,global:{},remove:function(c,e,g){if(c.nodeType==3||c.nodeType==8)return;var d=a.data(c,"events"),f,j;if(d){if(e===b||typeof e==="string"&&e.charAt(0)==".")for(var i in d)this.remove(c,i+(e||""));else{if(e.type){g=e.handler;e=e.type}a.each(e.split(/\s+/),function(j,b){var e=b.split(".");b=e.shift();var i=RegExp("(^|\\.)"+e.slice().sort().join(".*\\.")+"(\\.|$)");if(d[b]){if(g)delete d[b][g.guid];else for(var h in d[b])if(i.test(d[b][h].type))delete d[b][h];a.event.specialAll[b]&&a.event.specialAll[b].teardown.call(c,e);for(f in d[b])break;if(!f){if(!a.event.special[b]||a.event.special[b].teardown.call(c,e)===false)if(c.removeEventListener)c.removeEventListener(b,a.data(c,"handle"),false);else c.detachEvent&&c.detachEvent("on"+b,a.data(c,"handle"));f=null;delete d[b]}}})}for(f in d)break;if(!f){var h=a.data(c,"handle");if(h)h.elem=null;a.removeData(c,"events");a.removeData(c,"handle")}}},trigger:function(c,g,e,h){var f=c.type||c;if(!h){c=typeof c==="object"?c[d]?c:a.extend(a.Event(f),c):a.Event(f);if(f.indexOf("!")>=0){c.type=f=f.slice(0,-1);c.exclusive=true}if(!e){c.stopPropagation();this.global[f]&&a.each(a.cache,function(){this.events&&this.events[f]&&a.event.trigger(c,g,this.handle.elem)})}if(!e||e.nodeType==3||e.nodeType==8)return b;c.result=b;c.target=e;g=a.makeArray(g);g.unshift(c)}c.currentTarget=e;var j=a.data(e,"handle");j&&j.apply(e,g);if((!e[f]||a.nodeName(e,"a")&&f=="click")&&e["on"+f]&&e["on"+f].apply(e,g)===false)c.result=false;if(!h&&e[f]&&!c.isDefaultPrevented()&&!(a.nodeName(e,"a")&&f=="click")){this.triggered=true;try{e[f]()}catch(k){}}this.triggered=false;if(!c.isPropagationStopped()){var i=e.parentNode||e.ownerDocument;i&&a.event.trigger(c,g,i,true)}},handle:function(d){var i,f;d=arguments[0]=a.event.fix(d||c.event);d.currentTarget=this;var h=d.type.split(".");d.type=h.shift();i=!h.length&&!d.exclusive;var k=RegExp("(^|\\.)"+h.slice().sort().join(".*\\.")+"(\\.|$)");f=(a.data(this,"events")||{})[d.type];for(var j in f){var e=f[j];if(i||k.test(e.type)){d.handler=e;d.data=e.data;var g=e.apply(this,arguments);if(g!==b){d.result=g;if(g===false){d.preventDefault();d.stopPropagation()}}if(d.isImmediatePropagationStopped())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(b){if(b[d])return b;var g=b;b=a.Event(g);for(var h=this.props.length,f;h;){f=this.props[--h];b[f]=g[f]}if(!b.target)b.target=b.srcElement||document;if(b.target.nodeType==3)b.target=b.target.parentNode;if(!b.relatedTarget&&b.fromElement)b.relatedTarget=b.fromElement==b.target?b.toElement:b.fromElement;if(b.pageX==null&&b.clientX!=null){var c=document.documentElement,e=document.body;b.pageX=b.clientX+(c&&c.scrollLeft||e&&e.scrollLeft||0)-(c.clientLeft||0);b.pageY=b.clientY+(c&&c.scrollTop||e&&e.scrollTop||0)-(c.clientTop||0)}if(!b.which&&(b.charCode||b.charCode===0?b.charCode:b.keyCode))b.which=b.charCode||b.keyCode;if(!b.metaKey&&b.ctrlKey)b.metaKey=b.ctrlKey;if(!b.which&&b.button)b.which=b.button&1?1:b.button&2?3:b.button&4?2:0;return b},proxy:function(b,a){a=a||function(){return b.apply(this,arguments)};a.guid=b.guid=b.guid||a.guid||this.guid++;return a},special:{ready:{setup:p,teardown:function(){}}},specialAll:{live:{setup:function(c,b){a.event.add(this,b[0],q)},teardown:function(b){if(b.length){var c=0,d=RegExp("(^|\\.)"+b[0]+"(\\.|$)");a.each(a.data(this,"events").live||{},function(){if(d.test(this.type))c++});c<1&&a.event.remove(this,b[0],q)}}}}};a.Event=function(b){if(!this.preventDefault)return new a.Event(b);if(b&&b.type){this.originalEvent=b;this.type=b.type}else this.type=b;this.timeStamp=f();this[d]=true};function k(){return false}function m(){return true}a.Event.prototype={preventDefault:function(){this.isDefaultPrevented=m;var a=this.originalEvent;if(!a)return;a.preventDefault&&a.preventDefault();a.returnValue=false},stopPropagation:function(){this.isPropagationStopped=m;var a=this.originalEvent;if(!a)return;a.stopPropagation&&a.stopPropagation();a.cancelBubble=true},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=m;this.stopPropagation()},isDefaultPrevented:k,isPropagationStopped:k,isImmediatePropagationStopped:k};var o=function(c){var b=c.relatedTarget;while(b&&b!=this)try{b=b.parentNode}catch(d){b=this}if(b!=this){c.type=c.data;a.event.handle.apply(this,arguments)}};a.each({mouseover:"mouseenter",mouseout:"mouseleave"},function(c,b){a.event.special[b]={setup:function(){a.event.add(this,c,o,b)},teardown:function(){a.event.remove(this,c,o)}}});a.fn.extend({bind:function(c,d,b){return c=="unload"?this.one(c,d,b):this.each(function(){a.event.add(this,c,b||d,b&&d)})},one:function(e,c,b){var d=a.event.proxy(b||c,function(e){a(this).unbind(e,d);return(b||c).apply(this,arguments)});return this.each(function(){a.event.add(this,e,d,b&&c)})},unbind:function(c,b){return this.each(function(){a.event.remove(this,c,b)})},trigger:function(b,c){return this.each(function(){a.event.trigger(b,c,this)})},triggerHandler:function(c,d){if(this[0]){var b=a.Event(c);b.preventDefault();b.stopPropagation();a.event.trigger(b,d,this[0]);return b.result}},toggle:function(d){var b=arguments,c=1;while(c<b.length)a.event.proxy(d,b[c++]);return this.click(a.event.proxy(d,function(a){this.lastToggle=(this.lastToggle||0)%c;a.preventDefault();return b[this.lastToggle++].apply(this,arguments)||false}))},hover:function(a,b){return this.mouseenter(a).mouseleave(b)},ready:function(b){p();if(a.isReady)b.call(document,a);else a.readyList.push(b);return this},live:function(c,d){var b=a.event.proxy(d);b.guid+=this.selector+c;a(document).bind(s(c,this.selector),this.selector,b);return this},die:function(c,b){a(document).unbind(s(c,this.selector),b?{guid:b.guid+this.selector+c}:null);return this}});function q(c){var e=RegExp("(^|\\.)"+c.type+"(\\.|$)"),d=true,b=[];a.each(a.data(this,"events").live||[],function(g,d){if(e.test(d.type)){var f=a(c.target).closest(d.data)[0];f&&b.push({elem:f,fn:d})}});b.sort(function(c,b){return a.data(c.elem,"closest")-a.data(b.elem,"closest")});a.each(b,function(){if(this.fn.call(this.elem,c,this.fn.data)===false)return d=false});return d}function s(b,a){return["live",b,a.replace(/\./g,"`").replace(/ /g,"|")].join(".")}a.extend({isReady:false,readyList:[],ready:function(){if(!a.isReady){a.isReady=true;if(a.readyList){a.each(a.readyList,function(){this.call(document,a)});a.readyList=null}a(document).triggerHandler("ready")}}});var v=false;function p(){if(v)return;v=true;if(document.addEventListener)document.addEventListener("DOMContentLoaded",function(){document.removeEventListener("DOMContentLoaded",arguments.callee,false);a.ready()},false);else if(document.attachEvent){document.attachEvent("onreadystatechange",function(){if(document.readyState==="complete"){document.detachEvent("onreadystatechange",arguments.callee);a.ready()}});document.documentElement.doScroll&&c==c.top&&(function(){if(a.isReady)return;try{document.documentElement.doScroll("left")}catch(b){setTimeout(arguments.callee,0);return}a.ready()})()}a.event.add(c,"load",a.ready)}a.each("blur,focus,load,resize,scroll,unload,click,dblclick,mousedown,mouseup,mousemove,mouseover,mouseout,mouseenter,mouseleave,change,select,submit,keydown,keypress,keyup,error".split(","),function(c,b){a.fn[b]=function(a){return a?this.bind(b,a):this.trigger(b)}});a(c).bind("unload",function(){for(var b in a.cache)b!=1&&a.cache[b].handle&&a.event.remove(a.cache[b].handle.elem)});(function(){a.support={};var f=document.documentElement,e=document.createElement("script"),b=document.createElement("div"),g="script"+(new Date).getTime();b.style.display="none";b.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 h=b.getElementsByTagName("*"),d=b.getElementsByTagName("a")[0];if(!h||!h.length||!d)return;a.support={leadingWhitespace:b.firstChild.nodeType==3,tbody:!b.getElementsByTagName("tbody").length,objectAll:!!b.getElementsByTagName("object")[0].getElementsByTagName("*").length,htmlSerialize:!!b.getElementsByTagName("link").length,style:/red/.test(d.getAttribute("style")),hrefNormalized:d.getAttribute("href")==="/a",opacity:d.style.opacity==="0.5",cssFloat:!!d.style.cssFloat,scriptEval:false,noCloneEvent:true,boxModel:null};e.type="text/javascript";try{e.appendChild(document.createTextNode("window."+g+"=1;"))}catch(i){}f.insertBefore(e,f.firstChild);if(c[g]){a.support.scriptEval=true;delete c[g]}f.removeChild(e);if(b.attachEvent&&b.fireEvent){b.attachEvent("onclick",function(){a.support.noCloneEvent=false;b.detachEvent("onclick",arguments.callee)});b.cloneNode(true).fireEvent("onclick")}a(function(){var b=document.createElement("div");b.style.width=b.style.paddingLeft="1px";document.body.appendChild(b);a.boxModel=a.support.boxModel=b.offsetWidth===2;document.body.removeChild(b).style.display="none"})})();var j=a.support.cssFloat?"cssFloat":"styleFloat";a.props={"for":"htmlFor","class":"className","float":j,cssFloat:j,styleFloat:j,readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",tabindex:"tabIndex"};a.fn.extend({_load:a.fn.load,load:function(b,c,e){if(typeof b!=="string")return this._load(b);var d=b.indexOf(" ");if(d>=0){var f=b.slice(d,b.length);b=b.slice(0,d)}var h="GET";if(c)if(a.isFunction(c)){e=c;c=null}else if(typeof c==="object"){c=a.param(c);h="POST"}var g=this;a.ajax({url:b,type:h,dataType:"html",data:c,complete:function(b,c){(c=="success"||c=="notmodified")&&g.html(f?a("<div/>").append(b.responseText.replace(/<script(.|\s)*?\/script>/g,"")).find(f):b.responseText);e&&g.each(e,[b.responseText,c,b])}});return this},serialize:function(){return a.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?a.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(d,c){var b=a(this).val();return b==null?null:a.isArray(b)?a.map(b,function(a){return{name:c.name,value:a}}):{name:c.name,value:b}}).get()}});a.each("ajaxStart,ajaxStop,ajaxComplete,ajaxError,ajaxSuccess,ajaxSend".split(","),function(c,b){a.fn[b]=function(a){return this.bind(b,a)}});var A=f();a.extend({"get":function(d,b,c,e){if(a.isFunction(b)){c=b;b=null}return a.ajax({type:"GET",url:d,data:b,success:c,dataType:e})},getScript:function(b,c){return a.get(b,null,c,"script")},getJSON:function(b,c,d){return a.get(b,c,d,"json")},post:function(d,b,c,e){if(a.isFunction(b)){c=b;b={}}return a.ajax({type:"POST",url:d,data:b,success:c,dataType:e})},ajaxSetup:function(b){a.extend(a.ajaxSettings,b)},ajaxSettings:{url:location.href,global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,xhr:function(){return c.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(d){d=a.extend(true,d,a.extend(true,{},a.ajaxSettings,d));var h,j=/=\?(&|$)/g,i,s,k=d.type.toUpperCase();if(d.data&&d.processData&&typeof d.data!=="string")d.data=a.param(d.data);if(d.dataType=="jsonp"){if(k=="GET"){if(!d.url.match(j))d.url+=(d.url.match(/\?/)?"&":"?")+(d.jsonp||"callback")+"=?"}else if(!d.data||!d.data.match(j))d.data=(d.data?d.data+"&":"")+(d.jsonp||"callback")+"=?";d.dataType="json"}if(d.dataType=="json"&&(d.data&&d.data.match(j)||d.url.match(j))){h="jsonp"+A++;if(d.data)d.data=(d.data+"").replace(j,"="+h+"$1");d.url=d.url.replace(j,"="+h+"$1");d.dataType="script";c[h]=function(a){s=a;o();q();c[h]=b;try{delete c[h]}catch(d){}m&&m.removeChild(g)}}if(d.dataType=="script"&&d.cache==null)d.cache=false;if(d.cache===false&&k=="GET"){var t=f(),v=d.url.replace(/(\?|&)_=.*?(&|$)/,"$1_="+t+"$2");d.url=v+(v==d.url?(d.url.match(/\?/)?"&":"?")+"_="+t:"")}if(d.data&&k=="GET"){d.url+=(d.url.match(/\?/)?"&":"?")+d.data;d.data=null}d.global&&!a.active++&&a.event.trigger("ajaxStart");var n=/^(\w+:)?\/\/([^\/?#]+)/.exec(d.url);if(d.dataType=="script"&&k=="GET"&&n&&(n[1]&&n[1]!=location.protocol||n[2]!=location.host)){var m=document.getElementsByTagName("head")[0],g=document.createElement("script");g.src=d.url;if(d.scriptCharset)g.charset=d.scriptCharset;if(!h){var u=false;g.onload=g.onreadystatechange=function(){if(!u&&(!this.readyState||this.readyState=="loaded"||this.readyState=="complete")){u=true;o();q();g.onload=g.onreadystatechange=null;m.removeChild(g)}}}m.appendChild(g);return b}var p=false,e=d.xhr();if(d.username)e.open(k,d.url,d.async,d.username,d.password);else e.open(k,d.url,d.async);try{d.data&&e.setRequestHeader("Content-Type",d.contentType);d.ifModified&&e.setRequestHeader("If-Modified-Since",a.lastModified[d.url]||"Thu, 01 Jan 1970 00:00:00 GMT");e.setRequestHeader("X-Requested-With","XMLHttpRequest");e.setRequestHeader("Accept",d.dataType&&d.accepts[d.dataType]?d.accepts[d.dataType]+", */*":d.accepts._default)}catch(w){}if(d.beforeSend&&d.beforeSend(e,d)===false){d.global&&!--a.active&&a.event.trigger("ajaxStop");e.abort();return false}d.global&&a.event.trigger("ajaxSend",[e,d]);var r=function(b){if(e.readyState==0){if(l){clearInterval(l);l=null;d.global&&!--a.active&&a.event.trigger("ajaxStop")}}else if(!p&&e&&(e.readyState==4||b=="timeout")){p=true;if(l){clearInterval(l);l=null}i=b=="timeout"?"timeout":!a.httpSuccess(e)?"error":d.ifModified&&a.httpNotModified(e,d.url)?"notmodified":"success";if(i=="success")try{s=a.httpData(e,d.dataType,d)}catch(f){i="parsererror"}if(i=="success"){var c;try{c=e.getResponseHeader("Last-Modified")}catch(f){}if(d.ifModified&&c)a.lastModified[d.url]=c;!h&&o()}else a.handleError(d,e,i);q();b&&e.abort();if(d.async)e=null}};if(d.async){var l=setInterval(r,13);d.timeout>0&&setTimeout(function(){e&&!p&&r("timeout")},d.timeout)}try{e.send(d.data)}catch(w){a.handleError(d,e,null,w)}!d.async&&r();function o(){d.success&&d.success(s,i);d.global&&a.event.trigger("ajaxSuccess",[e,d])}function q(){d.complete&&d.complete(e,i);d.global&&a.event.trigger("ajaxComplete",[e,d]);d.global&&!--a.active&&a.event.trigger("ajaxStop")}return e},handleError:function(b,d,e,c){b.error&&b.error(d,e,c);b.global&&a.event.trigger("ajaxError",[d,b,c])},active:0,httpSuccess:function(a){try{return!a.status&&location.protocol=="file:"||a.status>=200&&a.status<300||a.status==304||a.status==1223}catch(b){}return false},httpNotModified:function(b,c){try{var d=b.getResponseHeader("Last-Modified");return b.status==304||d==a.lastModified[c]}catch(e){}return false},httpData:function(f,d,e){var h=f.getResponseHeader("content-type"),g=d=="xml"||!d&&h&&h.indexOf("xml")>=0,b=g?f.responseXML:f.responseText;if(g&&b.documentElement.tagName=="parsererror")throw"parsererror";if(e&&e.dataFilter)b=e.dataFilter(b,d);if(typeof b==="string"){d=="script"&&a.globalEval(b);if(d=="json")b=c.eval("("+b+")")}return b},param:function(b){var d=[];function e(a,b){d[d.length]=encodeURIComponent(a)+"="+encodeURIComponent(b)}if(a.isArray(b)||b.jquery)a.each(b,function(){e(this.name,this.value)});else for(var c in b)if(a.isArray(b[c]))a.each(b[c],function(){e(c,this)});else e(c,a.isFunction(b[c])?b[c]():b[c]);return d.join("&").replace(/%20/g,"+")}});var l={},i,r=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];function g(d,c){var b={};a.each(r.concat.apply([],r.slice(0,c)),function(){b[this]=d});return b}a.fn.extend({show:function(h,j){if(h)return this.animate(g("show",3),h,j);else{for(var b=0,e=this.length;b<e;b++){var i=a.data(this[b],"olddisplay");this[b].style.display=i||"";if(a.css(this[b],"display")==="none"){var d=this[b].tagName,c;if(l[d])c=l[d];else{var f=a("<"+d+" />").appendTo("body");c=f.css("display");if(c==="none")c="block";f.remove();l[d]=c}a.data(this[b],"olddisplay",c)}}for(var b=0,e=this.length;b<e;b++)this[b].style.display=a.data(this[b],"olddisplay")||"";return this}},hide:function(e,f){if(e)return this.animate(g("hide",3),e,f);else{for(var b=0,d=this.length;b<d;b++){var c=a.data(this[b],"olddisplay");!c&&c!=="none"&&a.data(this[b],"olddisplay",a.css(this[b],"display"))}for(var b=0,d=this.length;b<d;b++)this[b].style.display="none";return this}},_toggle:a.fn.toggle,toggle:function(b,d){var c=typeof b==="boolean";return a.isFunction(b)&&a.isFunction(d)?this._toggle.apply(this,arguments):b==null||c?this.each(function(){var d=c?b:a(this).is(":hidden");a(this)[d?"show":"hide"]()}):this.animate(g("toggle",3),b,d)},fadeTo:function(a,c,b){return this.animate({opacity:c},a,b)},animate:function(b,d,f,e){var c=a.speed(d,f,e);return this[c.queue===false?"each":"queue"](function(){var d=a.extend({},c),e,g=this.nodeType==1&&a(this).is(":hidden"),f=this;for(e in b){if(b[e]=="hide"&&g||b[e]=="show"&&!g)return d.complete.call(this);if((e=="height"||e=="width")&&this.style){d.display=a.css(this,"display");d.overflow=this.style.overflow}}if(d.overflow!=null)this.style.overflow="hidden";d.curAnim=a.extend({},b);a.each(b,function(l,j){var i=new a.fx(f,d,l);if(/toggle|show|hide/.test(j))i[j=="toggle"?g?"show":"hide":j](b);else{var h=j.toString().match(/^([+-]=)?([\d+-.]+)(.*)$/),c=i.cur(true)||0;if(h){var e=parseFloat(h[2]),k=h[3]||"px";if(k!="px"){f.style[l]=(e||1)+k;c=(e||1)/i.cur(true)*c;f.style[l]=c+k}if(h[1])e=(h[1]=="-="?-1:1)*e+c;i.custom(c,e,k)}else i.custom(c,j,"")}});return true})},stop:function(d,c){var b=a.timers;d&&this.queue([]);this.each(function(){for(var a=b.length-1;a>=0;a--)if(b[a].elem==this){c&&b[a](true);b.splice(a,1)}});!c&&this.dequeue();return this}});a.each({slideDown:g("show",1),slideUp:g("hide",1),slideToggle:g("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"}},function(b,c){a.fn[b]=function(a,b){return this.animate(c,a,b)}});a.extend({speed:function(c,d,e){var b=typeof c==="object"?c:{complete:e||!e&&d||a.isFunction(c)&&c,duration:c,easing:e&&d||d&&!a.isFunction(d)&&d};b.duration=a.fx.off?0:typeof b.duration==="number"?b.duration:a.fx.speeds[b.duration]||a.fx.speeds._default;b.old=b.complete;b.complete=function(){b.queue!==false&&a(this).dequeue();a.isFunction(b.old)&&b.old.call(this)};return b},easing:{linear:function(c,d,a,b){return a+b*c},swing:function(c,d,a,b){return(-Math.cos(c*Math.PI)/2+.5)*b+a}},timers:[],fx:function(b,a,c){this.options=a;this.elem=b;this.prop=c;if(!a.orig)a.orig={}}});a.fx.prototype={update:function(){this.options.step&&this.options.step.call(this.elem,this.now,this);(a.fx.step[this.prop]||a.fx.step._default)(this);if((this.prop=="height"||this.prop=="width")&&this.elem.style)this.elem.style.display="block"},cur:function(c){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null))return this.elem[this.prop];var b=parseFloat(a.css(this.elem,this.prop,c));return b&&b>-1e4?b:parseFloat(a.curCSS(this.elem,this.prop))||0},custom:function(h,g,e){this.startTime=f();this.start=h;this.end=g;this.unit=e||this.unit||"px";this.now=this.start;this.pos=this.state=0;var d=this;function c(a){return d.step(a)}c.elem=this.elem;if(c()&&a.timers.push(c)&&!i)i=setInterval(function(){for(var d=a.timers,c=0;c<d.length;c++)!d[c]()&&d.splice(c--,1);if(!d.length){clearInterval(i);i=b}},13)},show:function(){this.options.orig[this.prop]=a.attr(this.elem.style,this.prop);this.options.show=true;this.custom(this.prop=="width"||this.prop=="height"?1:0,this.cur());a(this.elem).show()},hide:function(){this.options.orig[this.prop]=a.attr(this.elem.style,this.prop);this.options.hide=true;this.custom(this.cur(),0)},step:function(h){var c=f();if(h||c>=this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;var b=true;for(var g in this.options.curAnim)if(this.options.curAnim[g]!==true)b=false;if(b){if(this.options.display!=null){this.elem.style.overflow=this.options.overflow;this.elem.style.display=this.options.display;if(a.css(this.elem,"display")=="none")this.elem.style.display="block"}this.options.hide&&a(this.elem).hide();if(this.options.hide||this.options.show)for(var d in this.options.curAnim)a.attr(this.elem.style,d,this.options.orig[d]);this.options.complete.call(this.elem)}return false}else{var e=c-this.startTime;this.state=e/this.options.duration;this.pos=a.easing[this.options.easing||(a.easing.swing?"swing":"linear")](this.state,e,0,1,this.options.duration);this.now=this.start+(this.end-this.start)*this.pos;this.update()}return true}};a.extend(a.fx,{speeds:{slow:600,fast:200,_default:400},step:{opacity:function(b){a.attr(b.elem.style,"opacity",b.now)},_default:function(a){if(a.elem.style&&a.elem.style[a.prop]!=null)a.elem.style[a.prop]=a.now+a.unit;else a.elem[a.prop]=a.now}}});if(document.documentElement.getBoundingClientRect)a.fn.offset=function(){if(!this[0])return{top:0,left:0};if(this[0]===this[0].ownerDocument.body)return a.offset.bodyOffset(this[0]);var d=this[0].getBoundingClientRect(),e=this[0].ownerDocument,c=e.body,b=e.documentElement,i=b.clientTop||c.clientTop||0,h=b.clientLeft||c.clientLeft||0,g=d.top+(self.pageYOffset||a.boxModel&&b.scrollTop||c.scrollTop)-i,f=d.left+(self.pageXOffset||a.boxModel&&b.scrollLeft||c.scrollLeft)-h;return{top:g,left:f}};else a.fn.offset=function(){if(!this[0])return{top:0,left:0};if(this[0]===this[0].ownerDocument.body)return a.offset.bodyOffset(this[0]);a.offset.initialized||a.offset.initialize();var b=this[0],h=b.offsetParent,l=b,j=b.ownerDocument,d,i=j.documentElement,f=j.body,k=j.defaultView,g=k.getComputedStyle(b,null),e=b.offsetTop,c=b.offsetLeft;while((b=b.parentNode)&&b!==f&&b!==i){d=k.getComputedStyle(b,null);e-=b.scrollTop,c-=b.scrollLeft;if(b===h){e+=b.offsetTop,c+=b.offsetLeft;if(a.offset.doesNotAddBorder&&!(a.offset.doesAddBorderForTableAndCells&&/^t(able|d|h)$/i.test(b.tagName)))e+=parseInt(d.borderTopWidth,10)||0,c+=parseInt(d.borderLeftWidth,10)||0;l=h,h=b.offsetParent}if(a.offset.subtractsBorderForOverflowNotVisible&&d.overflow!=="visible")e+=parseInt(d.borderTopWidth,10)||0,c+=parseInt(d.borderLeftWidth,10)||0;g=d}if(g.position==="relative"||g.position==="static")e+=f.offsetTop,c+=f.offsetLeft;if(g.position==="fixed")e+=Math.max(i.scrollTop,f.scrollTop),c+=Math.max(i.scrollLeft,f.scrollLeft);return{top:e,left:c}};a.offset={initialize:function(){if(this.initialized)return;var a=document.body,b=document.createElement("div"),c,e,j,g,f,d,h=a.style.marginTop,i='<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>';f={position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"};for(d in f)b.style[d]=f[d];b.innerHTML=i;a.insertBefore(b,a.firstChild);c=b.firstChild,e=c.firstChild,g=c.nextSibling.firstChild.firstChild;this.doesNotAddBorder=e.offsetTop!==5;this.doesAddBorderForTableAndCells=g.offsetTop===5;c.style.overflow="hidden",c.style.position="relative";this.subtractsBorderForOverflowNotVisible=e.offsetTop===-5;a.style.marginTop="1px";this.doesNotIncludeMarginInBodyOffset=a.offsetTop===0;a.style.marginTop=h;a.removeChild(b);this.initialized=true},bodyOffset:function(b){a.offset.initialized||a.offset.initialize();var d=b.offsetTop,c=b.offsetLeft;if(a.offset.doesNotIncludeMarginInBodyOffset)d+=parseInt(a.curCSS(b,"marginTop",true),10)||0,c+=parseInt(a.curCSS(b,"marginLeft",true),10)||0;return{top:d,left:c}}};a.fn.extend({position:function(){var f=0,e=0,d;if(this[0]){var b=this.offsetParent(),c=this.offset(),a=/^body|html$/i.test(b[0].tagName)?{top:0,left:0}:b.offset();c.top-=h(this,"marginTop");c.left-=h(this,"marginLeft");a.top+=h(b,"borderTopWidth");a.left+=h(b,"borderLeftWidth");d={top:c.top-a.top,left:c.left-a.left}}return d},offsetParent:function(){var b=this[0].offsetParent||document.body;while(b&&(!/^body|html$/i.test(b.tagName)&&a.css(b,"position")=="static"))b=b.offsetParent;return a(b)}});a.each(["Left","Top"],function(e,f){var d="scroll"+f;a.fn[d]=function(f){return!this[0]?null:f!==b?this.each(function(){this==c||this==document?c.scrollTo(!e?f:a(c).scrollLeft(),e?f:a(c).scrollTop()):(this[d]=f)}):this[0]==c||this[0]==document?self[e?"pageYOffset":"pageXOffset"]||a.boxModel&&document.documentElement[d]||document.body[d]:this[0][d]}});a.each(["Height","Width"],function(g,d){var h=g?"Left":"Top",i=g?"Right":"Bottom",f=d.toLowerCase();a.fn["inner"+d]=function(){return this[0]?a.css(this[0],f,false,"padding"):null};a.fn["outer"+d]=function(b){return this[0]?a.css(this[0],f,false,b?"margin":"border"):null};var e=d.toLowerCase();a.fn[e]=function(f){return this[0]==c?document.compatMode=="CSS1Compat"&&document.documentElement["client"+d]||document.body["client"+d]:this[0]==document?Math.max(document.documentElement["client"+d],document.body["scroll"+d],document.documentElement["scroll"+d],document.body["offset"+d],document.documentElement["offset"+d]):f===b?this.length?a.css(this[0],e):null:this.css(e,typeof f==="string"?f:f+"px")}})})();(function(a){a.fn.jqm=function(f){var d={overlay:50,overlayClass:"jqmOverlay",closeClass:"jqmClose",trigger:".jqModal",ajax:b,ajaxText:"",target:b,modal:b,toTop:b,onShow:b,onHide:b,onLoad:b};return this.each(function(){if(this._jqm)return c[this._jqm].c=a.extend({},c[this._jqm].c,f);e++;this._jqm=e;c[e]={c:a.extend(d,a.jqm.params,f),a:b,w:a(this).addClass("jqmID"+e),s:e};d.trigger&&a(this).jqmAddTrigger(d.trigger)})};a.fn.jqmAddClose=function(a){return h(this,a,"jqmHide")};a.fn.jqmAddTrigger=function(a){return h(this,a,"jqmShow")};a.fn.jqmShow=function(b){return this.each(function(){a.jqm.open(this._jqm,b)})};a.fn.jqmHide=function(b){return this.each(function(){a.jqm.close(this._jqm,b)})};a.jqm={hash:{},open:function(p,q){var e=c[p],f=e.c,j="."+f.closeClass,n=parseInt(e.w.css("z-index")),n=n>0?n:3e3,h=a("<div></div>").css({height:"100%",width:"100%",position:"fixed",left:0,top:0,"z-index":n-1,opacity:f.overlay/100});if(e.a)return b;e.t=q;e.a=true;e.w.css("z-index",n);if(f.modal){!d[0]&&l("bind");d.push(p)}else if(f.overlay>0)e.w.jqmAddClose(h);else h=b;e.o=h?h.addClass(f.overlayClass).prependTo("body"):b;if(g){a("html,body").css({height:"100%",width:"100%"});if(h){h=h.css({position:"absolute"})[0];for(var o in{Top:1,Left:1})h.style.setExpression(o.toLowerCase(),"(_=(document.documentElement.scroll"+o+" || document.body.scroll"+o+"))+'px'")}}if(f.ajax){var k=f.target||e.w,m=f.ajax,k=typeof k=="string"?a(k,e.w):a(k),m=m.substr(0,1)=="@"?a(q).attr(m.substring(1)):m;k.html(f.ajaxText).load(m,function(){f.onLoad&&f.onLoad.call(this,e);j&&e.w.jqmAddClose(a(j,e.w));i(e)})}else j&&e.w.jqmAddClose(a(j,e.w));f.toTop&&e.o&&e.w.before('<span id="jqmP'+e.w[0]._jqm+'"></span>').insertAfter(e.o);f.onShow?f.onShow(e):e.w.show();i(e);return b},close:function(f){var e=c[f];if(!e.a)return b;e.a=b;if(d[0]){d.pop();!d[0]&&l("unbind")}e.c.toTop&&e.o&&a("#jqmP"+e.w[0]._jqm).after(e.w).remove();if(e.c.onHide)e.c.onHide(e);else{e.w.hide();e.o&&e.o.remove()}return b},params:{}};var e=0,c=a.jqm.hash,d=[],g=a.browser.msie&&a.browser.version=="6.0",b=false,k=a('<iframe src="javascript:false;document.write(\'\');" class="jqm"></iframe>').css({opacity:0}),i=function(b){if(g)if(b.o)b.o.html('<p style="width:100%;height:100%"/>').prepend(k);else!a("iframe.jqm",b.w)[0]&&b.w.prepend(k);j(b)},j=function(b){try{a(":input:visible",b.w)[0].focus()}catch(c){}},l=function(b){a()[b]("keypress",f)[b]("keydown",f)[b]("mousedown",f)},f=function(f){var b=c[d[d.length-1]],e=!a(f.target).parents(".jqmID"+b.s)[0];e&&j(b);return!e},h=function(f,e,d){return f.each(function(){var f=this._jqm;a(e).each(function(){if(!this[d]){this[d]=[];a(this).click(function(){for(var a in{jqmShow:1,jqmHide:1})for(var d in this[a])c[this[a][d]]&&c[this[a][d]].w[a](this);return b})}this[d].push(f)})})}})(jQuery);jQuery.ui||function(a){var g=a.fn.remove,i=a.browser.mozilla&&parseFloat(a.browser.version)<1.9;a.ui={version:"1.7.2",plugin:{add:function(e,f,d){var c=a.ui[e].prototype;for(var b in d){c.plugins[b]=c.plugins[b]||[];c.plugins[b].push([f,d[b]])}},call:function(a,e,d){var b=a.plugins[e];if(!b||!a.element[0].parentNode)return;for(var c=0;c<b.length;c++)a.options[b[c][0]]&&b[c][1].apply(a.element,d)}},contains:function(a,b){return document.compareDocumentPosition?a.compareDocumentPosition(b)&16:a!==b&&a.contains(b)},hasScroll:function(b,e){if(a(b).css("overflow")=="hidden")return false;var c=e&&e=="left"?"scrollLeft":"scrollTop",d=false;if(b[c]>0)return true;b[c]=1;d=b[c]>0;b[c]=0;return d},isOverAxis:function(b,a,c){return b>a&&b<a+c},isOver:function(g,f,e,d,b,c){return a.ui.isOverAxis(g,e,b)&&a.ui.isOverAxis(f,d,c)},keyCode:{BACKSPACE:8,CAPS_LOCK:20,COMMA:188,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SHIFT:16,SPACE:32,TAB:9,UP:38}};if(i){var c=a.attr,e=a.fn.removeAttr,d="http://www.w3.org/2005/07/aaa",b=/^aria-/,f=/^wairole:/;a.attr=function(g,a,e){var h=e!==undefined;return a=="role"?h?c.call(this,g,a,"wairole:"+e):(c.apply(this,arguments)||"").replace(f,""):b.test(a)?h?g.setAttributeNS(d,a.replace(b,"aaa:"),e):c.call(this,g,a.replace(b,"aaa:")):c.apply(this,arguments)};a.fn.removeAttr=function(a){return b.test(a)?this.each(function(){this.removeAttributeNS(d,a.replace(b,""))}):e.call(this,a)}}a.fn.extend({remove:function(){a("*",this).add(this).each(function(){a(this).triggerHandler("remove")});return g.apply(this,arguments)},enableSelection:function(){return this.attr("unselectable","off").css("MozUserSelect","").unbind("selectstart.ui")},disableSelection:function(){return this.attr("unselectable","on").css("MozUserSelect","none").bind("selectstart.ui",function(){return false})},scrollParent:function(){var b;if(a.browser.msie&&/(static|relative)/.test(this.css("position"))||/absolute/.test(this.css("position")))b=this.parents().filter(function(){return/(relative|absolute|fixed)/.test(a.curCSS(this,"position",1))&&/(auto|scroll)/.test(a.curCSS(this,"overflow",1)+a.curCSS(this,"overflow-y",1)+a.curCSS(this,"overflow-x",1))}).eq(0);else b=this.parents().filter(function(){return/(auto|scroll)/.test(a.curCSS(this,"overflow",1)+a.curCSS(this,"overflow-y",1)+a.curCSS(this,"overflow-x",1))}).eq(0);return/fixed/.test(this.css("position"))||!b.length?a(document):b}});a.extend(a.expr[":"],{data:function(c,d,b){return!!a.data(c,b[3])},focusable:function(b){var c=b.nodeName.toLowerCase(),d=a.attr(b,"tabindex");return(/input|select|textarea|button|object/.test(c)?!b.disabled:"a"==c||"area"==c?b.href||!isNaN(d):!isNaN(d))&&!a(b)["area"==c?"parents":"closest"](":hidden").length},tabbable:function(c){var b=a.attr(c,"tabindex");return(isNaN(b)||b>=0)&&a(c).is(":focusable")}});function h(e,g,f,d){function c(c){var b=a[e][g][c]||[];return typeof b=="string"?b.split(/,?\s+/):b}var b=c("getter");if(d.length==1&&typeof d[0]=="string")b=b.concat(c("getterSetter"));return a.inArray(f,b)!=-1}a.widget=function(b,d){var c=b.split(".")[0];b=b.split(".")[1];a.fn[b]=function(d){var e=typeof d=="string",g=Array.prototype.slice.call(arguments,1);if(e&&d.substring(0,1)=="_")return this;if(e&&h(c,b,d,g)){var f=a.data(this[0],b);return f?f[d].apply(f,g):undefined}return this.each(function(){var f=a.data(this,b);!f&&!e&&a.data(this,b,new a[c][b](this,d))._init();f&&e&&a.isFunction(f[d])&&f[d].apply(f,g)})};a[c]=a[c]||{};a[c][b]=function(d,f){var e=this;this.namespace=c;this.widgetName=b;this.widgetEventPrefix=a[c][b].eventPrefix||b;this.widgetBaseClass=c+"-"+b;this.options=a.extend({},a.widget.defaults,a[c][b].defaults,a.metadata&&a.metadata.get(d)[b],f);this.element=a(d).bind("setData."+b,function(a,c,b){if(a.target==d)return e._setData(c,b)}).bind("getData."+b,function(a,b){if(a.target==d)return e._getData(b)}).bind("remove",function(){return e.destroy()})};a[c][b].prototype=a.extend({},a.widget.prototype,d);a[c][b].getterSetter="option"};a.widget.prototype={_init:function(){},destroy:function(){this.element.removeData(this.widgetName).removeClass(this.widgetBaseClass+"-disabled "+this.namespace+"-state-disabled").removeAttr("aria-disabled")},option:function(b,d){var c=b,e=this;if(typeof b=="string"){if(d===undefined)return this._getData(b);c={};c[b]=d}a.each(c,function(b,a){e._setData(b,a)})},_getData:function(a){return this.options[a]},_setData:function(b,a){this.options[b]=a;b=="disabled"&&this.element[a?"addClass":"removeClass"](this.widgetBaseClass+"-disabled "+this.namespace+"-state-disabled").attr("aria-disabled",a)},enable:function(){this._setData("disabled",false)},disable:function(){this._setData("disabled",true)},_trigger:function(c,b,f){var e=this.options[c],h=c==this.widgetEventPrefix?c:this.widgetEventPrefix+c;b=a.Event(b);b.type=h;if(b.originalEvent)for(var g=a.event.props.length,d;g;){d=a.event.props[--g];b[d]=b.originalEvent[d]}this.element.trigger(b,f);return!(a.isFunction(e)&&e.call(this.element[0],b,f)===false||b.isDefaultPrevented())}};a.widget.defaults={disabled:false};a.ui.mouse={_mouseInit:function(){var b=this;this.element.bind("mousedown."+this.widgetName,function(a){return b._mouseDown(a)}).bind("click."+this.widgetName,function(a){if(b._preventClickEvent){b._preventClickEvent=false;a.stopImmediatePropagation();return false}});if(a.browser.msie){this._mouseUnselectable=this.element.attr("unselectable");this.element.attr("unselectable","on")}this.started=false},_mouseDestroy:function(){this.element.unbind("."+this.widgetName);a.browser.msie&&this.element.attr("unselectable",this._mouseUnselectable)},_mouseDown:function(b){b.originalEvent=b.originalEvent||{};if(b.originalEvent.mouseHandled)return;this._mouseStarted&&this._mouseUp(b);this._mouseDownEvent=b;var c=this,e=b.which==1,d=typeof this.options.cancel=="string"?a(b.target).parents().add(b.target).filter(this.options.cancel).length:false;if(!e||d||!this._mouseCapture(b))return true;this.mouseDelayMet=!this.options.delay;if(!this.mouseDelayMet)this._mouseDelayTimer=setTimeout(function(){c.mouseDelayMet=true},this.options.delay);if(this._mouseDistanceMet(b)&&this._mouseDelayMet(b)){this._mouseStarted=this._mouseStart(b)!==false;if(!this._mouseStarted){b.preventDefault();return true}}this._mouseMoveDelegate=function(a){return c._mouseMove(a)};this._mouseUpDelegate=function(a){return c._mouseUp(a)};a(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate);a.browser.safari||b.preventDefault();b.originalEvent.mouseHandled=true;return true},_mouseMove:function(b){if(a.browser.msie&&!b.button)return this._mouseUp(b);if(this._mouseStarted){this._mouseDrag(b);return b.preventDefault()}if(this._mouseDistanceMet(b)&&this._mouseDelayMet(b)){this._mouseStarted=this._mouseStart(this._mouseDownEvent,b)!==false;this._mouseStarted?this._mouseDrag(b):this._mouseUp(b)}return!this._mouseStarted},_mouseUp:function(b){a(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate);if(this._mouseStarted){this._mouseStarted=false;this._preventClickEvent=b.target==this._mouseDownEvent.target;this._mouseStop(b)}return false},_mouseDistanceMet:function(a){return Math.max(Math.abs(this._mouseDownEvent.pageX-a.pageX),Math.abs(this._mouseDownEvent.pageY-a.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return true}};a.ui.mouse.defaults={cancel:null,distance:1,delay:0}}(jQuery);(function(a){a.widget("ui.sortable",a.extend({},a.ui.mouse,{_init:function(){var a=this.options;this.containerCache={};this.element.addClass("ui-sortable");this.refresh();this.floating=this.items.length?/left|right/.test(this.items[0].item.css("float")):false;this.offset=this.element.offset();this._mouseInit()},destroy:function(){this.element.removeClass("ui-sortable ui-sortable-disabled").removeData("sortable").unbind(".sortable");this._mouseDestroy();for(var a=this.items.length-1;a>=0;a--)this.items[a].item.removeData("sortable-item")},_mouseCapture:function(c,f){if(this.reverting)return false;if(this.options.disabled||this.options.type=="static")return false;this._refreshItems(c);var b=null,e=this,g=a(c.target).parents().each(function(){if(a.data(this,"sortable-item")==e){b=a(this);return false}});if(a.data(c.target,"sortable-item")==e)b=a(c.target);if(!b)return false;if(this.options.handle&&!f){var d=false;a(this.options.handle,b).find("*").andSelf().each(function(){if(this==c.target)d=true});if(!d)return false}this.currentItem=b;this._removeCurrentsFromItems();return true},_mouseStart:function(b,g,e){var c=this.options,f=this;this.currentContainer=this;this.refreshPositions();this.helper=this._createHelper(b);this._cacheHelperProportions();this._cacheMargins();this.scrollParent=this.helper.scrollParent();this.offset=this.currentItem.offset();this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left};this.helper.css("position","absolute");this.cssPosition=this.helper.css("position");a.extend(this.offset,{click:{left:b.pageX-this.offset.left,top:b.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()});this.originalPosition=this._generatePosition(b);this.originalPageX=b.pageX;this.originalPageY=b.pageY;c.cursorAt&&this._adjustOffsetFromHelper(c.cursorAt);this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]};this.helper[0]!=this.currentItem[0]&&this.currentItem.hide();this._createPlaceholder();c.containment&&this._setContainment();if(c.cursor){if(a("body").css("cursor"))this._storedCursor=a("body").css("cursor");a("body").css("cursor",c.cursor)}if(c.opacity){if(this.helper.css("opacity"))this._storedOpacity=this.helper.css("opacity");this.helper.css("opacity",c.opacity)}if(c.zIndex){if(this.helper.css("zIndex"))this._storedZIndex=this.helper.css("zIndex");this.helper.css("zIndex",c.zIndex)}if(this.scrollParent[0]!=document&&this.scrollParent[0].tagName!="HTML")this.overflowOffset=this.scrollParent.offset();this._trigger("start",b,this._uiHash());!this._preserveHelperProportions&&this._cacheHelperProportions();if(!e)for(var d=this.containers.length-1;d>=0;d--)this.containers[d]._trigger("activate",b,f._uiHash(this));if(a.ui.ddmanager)a.ui.ddmanager.current=this;a.ui.ddmanager&&!c.dropBehaviour&&a.ui.ddmanager.prepareOffsets(this,b);this.dragging=true;this.helper.addClass("ui-sortable-helper");this._mouseDrag(b);return true},_mouseDrag:function(c){this.position=this._generatePosition(c);this.positionAbs=this._convertPositionTo("absolute");if(!this.lastPositionAbs)this.lastPositionAbs=this.positionAbs;if(this.options.scroll){var b=this.options,d=false;if(this.scrollParent[0]!=document&&this.scrollParent[0].tagName!="HTML"){if(this.overflowOffset.top+this.scrollParent[0].offsetHeight-c.pageY<b.scrollSensitivity)this.scrollParent[0].scrollTop=d=this.scrollParent[0].scrollTop+b.scrollSpeed;else if(c.pageY-this.overflowOffset.top<b.scrollSensitivity)this.scrollParent[0].scrollTop=d=this.scrollParent[0].scrollTop-b.scrollSpeed;if(this.overflowOffset.left+this.scrollParent[0].offsetWidth-c.pageX<b.scrollSensitivity)this.scrollParent[0].scrollLeft=d=this.scrollParent[0].scrollLeft+b.scrollSpeed;else if(c.pageX-this.overflowOffset.left<b.scrollSensitivity)this.scrollParent[0].scrollLeft=d=this.scrollParent[0].scrollLeft-b.scrollSpeed}else{if(c.pageY-a(document).scrollTop()<b.scrollSensitivity)d=a(document).scrollTop(a(document).scrollTop()-b.scrollSpeed);else if(a(window).height()-(c.pageY-a(document).scrollTop())<b.scrollSensitivity)d=a(document).scrollTop(a(document).scrollTop()+b.scrollSpeed);if(c.pageX-a(document).scrollLeft()<b.scrollSensitivity)d=a(document).scrollLeft(a(document).scrollLeft()-b.scrollSpeed);else if(a(window).width()-(c.pageX-a(document).scrollLeft())<b.scrollSensitivity)d=a(document).scrollLeft(a(document).scrollLeft()+b.scrollSpeed)}d!==false&&a.ui.ddmanager&&!b.dropBehaviour&&a.ui.ddmanager.prepareOffsets(this,c)}this.positionAbs=this._convertPositionTo("absolute");if(!this.options.axis||this.options.axis!="y")this.helper[0].style.left=this.position.left+"px";if(!this.options.axis||this.options.axis!="x")this.helper[0].style.top=this.position.top+"px";for(var h=this.items.length-1;h>=0;h--){var f=this.items[h],e=f.item[0],g=this._intersectsWithPointer(f);if(!g)continue;if(e!=this.currentItem[0]&&this.placeholder[g==1?"next":"prev"]()[0]!=e&&!a.ui.contains(this.placeholder[0],e)&&(this.options.type=="semi-dynamic"?!a.ui.contains(this.element[0],e):true)){this.direction=g==1?"down":"up";if(this.options.tolerance=="pointer"||this._intersectsWithSides(f))this._rearrange(c,f);else break;this._trigger("change",c,this._uiHash());break}}this._contactContainers(c);a.ui.ddmanager&&a.ui.ddmanager.drag(this,c);this._trigger("sort",c,this._uiHash());this.lastPositionAbs=this.positionAbs;return false},_mouseStop:function(c,e){if(!c)return;a.ui.ddmanager&&!this.options.dropBehaviour&&a.ui.ddmanager.drop(this,c);if(this.options.revert){var b=this,d=b.placeholder.offset();b.reverting=true;a(this.helper).animate({left:d.left-this.offset.parent.left-b.margins.left+(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollLeft),top:d.top-this.offset.parent.top-b.margins.top+(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollTop)},parseInt(this.options.revert,10)||500,function(){b._clear(c)})}else this._clear(c,e);return false},cancel:function(){var c=this;if(this.dragging){this._mouseUp();if(this.options.helper=="original")this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper");else this.currentItem.show();for(var b=this.containers.length-1;b>=0;b--){this.containers[b]._trigger("deactivate",null,c._uiHash(this));if(this.containers[b].containerCache.over){this.containers[b]._trigger("out",null,c._uiHash(this));this.containers[b].containerCache.over=0}}}this.placeholder[0].parentNode&&this.placeholder[0].parentNode.removeChild(this.placeholder[0]);this.options.helper!="original"&&this.helper&&this.helper[0].parentNode&&this.helper.remove();a.extend(this,{helper:null,dragging:false,reverting:false,_noFinalSort:null});if(this.domPosition.prev)a(this.domPosition.prev).after(this.currentItem);else a(this.domPosition.parent).prepend(this.currentItem);return true},serialize:function(b){var d=this._getItemsAsjQuery(b&&b.connected),c=[];b=b||{};a(d).each(function(){var d=(a(b.item||this).attr(b.attribute||"id")||"").match(b.expression||/(.+)[-=_](.+)/);d&&c.push((b.key||d[1]+"[]")+"="+(b.key&&b.expression?d[1]:d[2]))});return c.join("&")},toArray:function(b){var d=this._getItemsAsjQuery(b&&b.connected),c=[];b=b||{};d.each(function(){c.push(a(b.item||this).attr(b.attribute||"id")||"")});return c},_intersectsWith:function(a){var b=this.positionAbs.left,k=b+this.helperProportions.width,c=this.positionAbs.top,l=c+this.helperProportions.height,d=a.left,i=d+a.width,e=a.top,h=e+a.height,g=this.offset.click.top,f=this.offset.click.left,j=c+g>e&&c+g<h&&b+f>d&&b+f<i;return this.options.tolerance=="pointer"||this.options.forcePointerForContainers||this.options.tolerance!="pointer"&&this.helperProportions[this.floating?"width":"height"]>a[this.floating?"width":"height"]?j:d<b+this.helperProportions.width/2&&k-this.helperProportions.width/2<i&&e<c+this.helperProportions.height/2&&l-this.helperProportions.height/2<h},_intersectsWithPointer:function(b){var e=a.ui.isOverAxis(this.positionAbs.top+this.offset.click.top,b.top,b.height),f=a.ui.isOverAxis(this.positionAbs.left+this.offset.click.left,b.left,b.width),g=e&&f,c=this._getDragVerticalDirection(),d=this._getDragHorizontalDirection();return!g?false:this.floating?d&&d=="right"||c=="down"?2:1:c&&(c=="down"?2:1)},_intersectsWithSides:function(b){var e=a.ui.isOverAxis(this.positionAbs.top+this.offset.click.top,b.top+b.height/2,b.height),f=a.ui.isOverAxis(this.positionAbs.left+this.offset.click.left,b.left+b.width/2,b.width),d=this._getDragVerticalDirection(),c=this._getDragHorizontalDirection();return this.floating&&c?c=="right"&&f||c=="left"&&!f:d&&(d=="down"&&e||d=="up"&&!e)},_getDragVerticalDirection:function(){var a=this.positionAbs.top-this.lastPositionAbs.top;return a!=0&&(a>0?"down":"up")},_getDragHorizontalDirection:function(){var a=this.positionAbs.left-this.lastPositionAbs.left;return a!=0&&(a>0?"right":"left")},refresh:function(a){this._refreshItems(a);this.refreshPositions()},_connectWith:function(){var a=this.options;return a.connectWith.constructor==String?[a.connectWith]:a.connectWith},_getItemsAsjQuery:function(i){var j=this,g=[],d=[],e=this._connectWith();if(e&&i)for(var c=e.length-1;c>=0;c--)for(var h=a(e[c]),f=h.length-1;f>=0;f--){var b=a.data(h[f],"sortable");b&&b!=this&&!b.options.disabled&&d.push([a.isFunction(b.options.items)?b.options.items.call(b.element):a(b.options.items,b.element).not(".ui-sortable-helper"),b])}d.push([a.isFunction(this.options.items)?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):a(this.options.items,this.element).not(".ui-sortable-helper"),this]);for(var c=d.length-1;c>=0;c--)d[c][0].each(function(){g.push(this)});return a(g)},_removeCurrentsFromItems:function(){for(var c=this.currentItem.find(":data(sortable-item)"),a=0;a<this.items.length;a++)for(var b=0;b<c.length;b++)c[b]==this.items[a].item[0]&&this.items.splice(a,1)},_refreshItems:function(i){this.items=[];this.containers=[this];var m=this.items,n=this,e=[[a.isFunction(this.options.items)?this.options.items.call(this.element[0],i,{item:this.currentItem}):a(this.options.items,this.element),this]],f=this._connectWith();if(f)for(var c=f.length-1;c>=0;c--)for(var k=a(f[c]),d=k.length-1;d>=0;d--){var b=a.data(k[d],"sortable");if(b&&b!=this&&!b.options.disabled){e.push([a.isFunction(b.options.items)?b.options.items.call(b.element[0],i,{item:this.currentItem}):a(b.options.items,b.element),b]);this.containers.push(b)}}for(var c=e.length-1;c>=0;c--)for(var g=e[c][1],h=e[c][0],d=0,l=h.length;d<l;d++){var j=a(h[d]);j.data("sortable-item",g);m.push({item:j,instance:g,width:0,height:0,left:0,top:0})}},refreshPositions:function(f){if(this.offsetParent&&this.helper)this.offset.parent=this._getParentOffset();for(var b=this.items.length-1;b>=0;b--){var c=this.items[b];if(c.instance!=this.currentContainer&&this.currentContainer&&c.item[0]!=this.currentItem[0])continue;var e=this.options.toleranceElement?a(this.options.toleranceElement,c.item):c.item;if(!f){c.width=e.outerWidth();c.height=e.outerHeight()}var d=e.offset();c.left=d.left;c.top=d.top}if(this.options.custom&&this.options.custom.refreshContainers)this.options.custom.refreshContainers.call(this);else for(var b=this.containers.length-1;b>=0;b--){var d=this.containers[b].element.offset();this.containers[b].containerCache.left=d.left;this.containers[b].containerCache.top=d.top;this.containers[b].containerCache.width=this.containers[b].element.outerWidth();this.containers[b].containerCache.height=this.containers[b].element.outerHeight()}},_createPlaceholder:function(e){var b=e||this,c=b.options;if(!c.placeholder||c.placeholder.constructor==String){var d=c.placeholder;c.placeholder={element:function(){var c=a(document.createElement(b.currentItem[0].nodeName)).addClass(d||b.currentItem[0].className+" ui-sortable-placeholder").removeClass("ui-sortable-helper")[0];if(!d)c.style.visibility="hidden";return c},update:function(e,a){if(d&&!c.forcePlaceholderSize)return;!a.height()&&a.height(b.currentItem.innerHeight()-parseInt(b.currentItem.css("paddingTop")||0,10)-parseInt(b.currentItem.css("paddingBottom")||0,10));!a.width()&&a.width(b.currentItem.innerWidth()-parseInt(b.currentItem.css("paddingLeft")||0,10)-parseInt(b.currentItem.css("paddingRight")||0,10))}}}b.placeholder=a(c.placeholder.element.call(b.element,b.currentItem));b.currentItem.after(b.placeholder);c.placeholder.update(b,b.placeholder)},_contactContainers:function(c){for(var b=this.containers.length-1;b>=0;b--)if(this._intersectsWith(this.containers[b].containerCache)){if(!this.containers[b].containerCache.over){if(this.currentContainer!=this.containers[b]){for(var g=1e4,e=null,f=this.positionAbs[this.containers[b].floating?"left":"top"],d=this.items.length-1;d>=0;d--){if(!a.ui.contains(this.containers[b].element[0],this.items[d].item[0]))continue;var h=this.items[d][this.containers[b].floating?"left":"top"];if(Math.abs(h-f)<g){g=Math.abs(h-f);e=this.items[d]}}if(!e&&!this.options.dropOnEmpty)continue;this.currentContainer=this.containers[b];e?this._rearrange(c,e,null,true):this._rearrange(c,null,this.containers[b].element,true);this._trigger("change",c,this._uiHash());this.containers[b]._trigger("change",c,this._uiHash(this));this.options.placeholder.update(this.currentContainer,this.placeholder)}this.containers[b]._trigger("over",c,this._uiHash(this));this.containers[b].containerCache.over=1}}else if(this.containers[b].containerCache.over){this.containers[b]._trigger("out",c,this._uiHash(this));this.containers[b].containerCache.over=0}},_createHelper:function(d){var c=this.options,b=a.isFunction(c.helper)?a(c.helper.apply(this.element[0],[d,this.currentItem])):c.helper=="clone"?this.currentItem.clone():this.currentItem;!b.parents("body").length&&a(c.appendTo!="parent"?c.appendTo:this.currentItem[0].parentNode)[0].appendChild(b[0]);if(b[0]==this.currentItem[0])this._storedCSS={width:this.currentItem[0].style.width,height:this.currentItem[0].style.height,position:this.currentItem.css("position"),top:this.currentItem.css("top"),left:this.currentItem.css("left")};(b[0].style.width==""||c.forceHelperSize)&&b.width(this.currentItem.width());(b[0].style.height==""||c.forceHelperSize)&&b.height(this.currentItem.height());return b},_adjustOffsetFromHelper:function(a){if(a.left!=undefined)this.offset.click.left=a.left+this.margins.left;if(a.right!=undefined)this.offset.click.left=this.helperProportions.width-a.right+this.margins.left;if(a.top!=undefined)this.offset.click.top=a.top+this.margins.top;if(a.bottom!=undefined)this.offset.click.top=this.helperProportions.height-a.bottom+this.margins.top},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var b=this.offsetParent.offset();if(this.cssPosition=="absolute"&&this.scrollParent[0]!=document&&a.ui.contains(this.scrollParent[0],this.offsetParent[0])){b.left+=this.scrollParent.scrollLeft();b.top+=this.scrollParent.scrollTop()}if(this.offsetParent[0]==document.body||this.offsetParent[0].tagName&&this.offsetParent[0].tagName.toLowerCase()=="html"&&a.browser.msie)b={top:0,left:0};return{top:b.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:b.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if(this.cssPosition=="relative"){var a=this.currentItem.position();return{top:a.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:a.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}else return{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.currentItem.css("marginLeft"),10)||0,top:parseInt(this.currentItem.css("marginTop"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var c=this.options;if(c.containment=="parent")c.containment=this.helper[0].parentNode;if(c.containment=="document"||c.containment=="window")this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,a(c.containment=="document"?document:window).width()-this.helperProportions.width-this.margins.left,(a(c.containment=="document"?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top];if(!/^(document|window|parent)$/.test(c.containment)){var b=a(c.containment)[0],d=a(c.containment).offset(),e=a(b).css("overflow")!="hidden";this.containment=[d.left+(parseInt(a(b).css("borderLeftWidth"),10)||0)+(parseInt(a(b).css("paddingLeft"),10)||0)-this.margins.left,d.top+(parseInt(a(b).css("borderTopWidth"),10)||0)+(parseInt(a(b).css("paddingTop"),10)||0)-this.margins.top,d.left+(e?Math.max(b.scrollWidth,b.offsetWidth):b.offsetWidth)-(parseInt(a(b).css("borderLeftWidth"),10)||0)-(parseInt(a(b).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,d.top+(e?Math.max(b.scrollHeight,b.offsetHeight):b.offsetHeight)-(parseInt(a(b).css("borderTopWidth"),10)||0)-(parseInt(a(b).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top]}},_convertPositionTo:function(f,c){if(!c)c=this.position;var b=f=="absolute"?1:-1,g=this.options,d=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&a.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,e=/(html|body)/i.test(d[0].tagName);return{top:c.top+this.offset.relative.top*b+this.offset.parent.top*b-(a.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollTop():e?0:d.scrollTop())*b),left:c.left+this.offset.relative.left*b+this.offset.parent.left*b-(a.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():e?0:d.scrollLeft())*b)}},_generatePosition:function(e){var b=this.options,h=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&a.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,i=/(html|body)/i.test(h[0].tagName);if(this.cssPosition=="relative"&&!(this.scrollParent[0]!=document&&this.scrollParent[0]!=this.offsetParent[0]))this.offset.relative=this._getRelativeOffset();var f=e.pageX,g=e.pageY;if(this.originalPosition){if(this.containment){if(e.pageX-this.offset.click.left<this.containment[0])f=this.containment[0]+this.offset.click.left;if(e.pageY-this.offset.click.top<this.containment[1])g=this.containment[1]+this.offset.click.top;if(e.pageX-this.offset.click.left>this.containment[2])f=this.containment[2]+this.offset.click.left;if(e.pageY-this.offset.click.top>this.containment[3])g=this.containment[3]+this.offset.click.top}if(b.grid){var d=this.originalPageY+Math.round((g-this.originalPageY)/b.grid[1])*b.grid[1];g=this.containment?!(d-this.offset.click.top<this.containment[1]||d-this.offset.click.top>this.containment[3])?d:!(d-this.offset.click.top<this.containment[1])?d-b.grid[1]:d+b.grid[1]:d;var c=this.originalPageX+Math.round((f-this.originalPageX)/b.grid[0])*b.grid[0];f=this.containment?!(c-this.offset.click.left<this.containment[0]||c-this.offset.click.left>this.containment[2])?c:!(c-this.offset.click.left<this.containment[0])?c-b.grid[0]:c+b.grid[0]:c}}return{top:g-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(a.browser.safari&&this.cssPosition=="fixed"?0:this.cssPosition=="fixed"?-this.scrollParent.scrollTop():i?0:h.scrollTop()),left:f-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+(a.browser.safari&&this.cssPosition=="fixed"?0:this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():i?0:h.scrollLeft())}},_rearrange:function(f,a,c,d){c?c[0].appendChild(this.placeholder[0]):a.item[0].parentNode.insertBefore(this.placeholder[0],this.direction=="down"?a.item[0]:a.item[0].nextSibling);this.counter=this.counter?++this.counter:1;var b=this,e=this.counter;window.setTimeout(function(){e==b.counter&&b.refreshPositions(!d)},0)},_clear:function(e,d){this.reverting=false;var c=[],f=this;!this._noFinalSort&&this.currentItem[0].parentNode&&this.placeholder.before(this.currentItem);this._noFinalSort=null;if(this.helper[0]==this.currentItem[0]){for(var b in this._storedCSS)if(this._storedCSS[b]=="auto"||this._storedCSS[b]=="static")this._storedCSS[b]="";this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper")}else this.currentItem.show();this.fromOutside&&!d&&c.push(function(a){this._trigger("receive",a,this._uiHash(this.fromOutside))});(this.fromOutside||this.domPosition.prev!=this.currentItem.prev().not(".ui-sortable-helper")[0]||this.domPosition.parent!=this.currentItem.parent()[0])&&!d&&c.push(function(a){this._trigger("update",a,this._uiHash())});if(!a.ui.contains(this.element[0],this.currentItem[0])){!d&&c.push(function(a){this._trigger("remove",a,this._uiHash())});for(var b=this.containers.length-1;b>=0;b--)if(a.ui.contains(this.containers[b].element[0],this.currentItem[0])&&!d){c.push(function(a){return function(b){a._trigger("receive",b,this._uiHash(this))}}.call(this,this.containers[b]));c.push(function(a){return function(b){a._trigger("update",b,this._uiHash(this))}}.call(this,this.containers[b]))}}for(var b=this.containers.length-1;b>=0;b--){!d&&c.push(function(a){return function(b){a._trigger("deactivate",b,this._uiHash(this))}}.call(this,this.containers[b]));if(this.containers[b].containerCache.over){c.push(function(a){return function(b){a._trigger("out",b,this._uiHash(this))}}.call(this,this.containers[b]));this.containers[b].containerCache.over=0}}this._storedCursor&&a("body").css("cursor",this._storedCursor);this._storedOpacity&&this.helper.css("opacity",this._storedOpacity);this._storedZIndex&&this.helper.css("zIndex",this._storedZIndex=="auto"?"":this._storedZIndex);this.dragging=false;if(this.cancelHelperRemoval){if(!d){this._trigger("beforeStop",e,this._uiHash());for(var b=0;b<c.length;b++)c[b].call(this,e);this._trigger("stop",e,this._uiHash())}return false}!d&&this._trigger("beforeStop",e,this._uiHash());this.placeholder[0].parentNode.removeChild(this.placeholder[0]);this.helper[0]!=this.currentItem[0]&&this.helper.remove();this.helper=null;if(!d){for(var b=0;b<c.length;b++)c[b].call(this,e);this._trigger("stop",e,this._uiHash())}this.fromOutside=false;return true},_trigger:function(){a.widget.prototype._trigger.apply(this,arguments)===false&&this.cancel()},_uiHash:function(c){var b=c||this;return{helper:b.helper,placeholder:b.placeholder||a([]),position:b.position,absolutePosition:b.positionAbs,offset:b.positionAbs,item:b.currentItem,sender:c?c.element:null}}}));a.extend(a.ui.sortable,{getter:"serialize toArray",version:"1.7.2",eventPrefix:"sort",defaults:{appendTo:"parent",axis:false,cancel:":input,option",connectWith:false,containment:false,cursor:"auto",cursorAt:false,delay:0,distance:1,dropOnEmpty:true,forcePlaceholderSize:false,forceHelperSize:false,grid:false,handle:false,helper:"original",items:"> *",opacity:false,placeholder:false,revert:false,scroll:true,scrollSensitivity:20,scrollSpeed:20,scope:"default",tolerance:"intersect",zIndex:1e3}})})(jQuery);(function(a){a.fn.jCarouselLite=function(b){b=a.extend({btnPrev:null,btnNext:null,btnGo:null,mouseWheel:false,auto:null,speed:200,easing:null,vertical:false,circular:true,visible:3,start:0,scroll:1,beforeStart:null,afterEnd:null},b||{});return this.each(function(){var n=false,m=b.vertical?"top":"left",p=b.vertical?"height":"width",k=a(this),i=a("ul",k),o=a("li",i),t=o.size(),e=b.visible;if(b.circular){i.prepend(o.slice(t-e-1+1).clone()).append(o.slice(0,e).clone());b.start+=e}var h=a("li",i),g=h.size(),f=b.start;k.css("visibility","visible");h.css({overflow:"hidden","float":b.vertical?"none":"left"});i.css({margin:"0",padding:"0",position:"relative","list-style-type":"none","z-index":"1"});k.css({overflow:"hidden",position:"relative","z-index":"2",left:"0px"});var j=b.vertical?c(h):d(h),s=j*g,r=j*e;h.css({width:h.width(),height:h.height()});i.css(p,s+"px").css(m,-(f*j));k.css(p,r+"px");b.btnPrev&&a(b.btnPrev).click(function(){return l(f-b.scroll)});b.btnNext&&a(b.btnNext).click(function(){return l(f+b.scroll)});b.btnGo&&a.each(b.btnGo,function(c,d){a(d).click(function(){return l(b.circular?b.visible+c:c)})});b.mouseWheel&&k.mousewheel&&k.mousewheel(function(c,a){return a>0?l(f-b.scroll):l(f+b.scroll)});b.auto&&setInterval(function(){l(f+b.scroll)},b.auto+b.speed);function q(){return h.slice(f).slice(0,e)}function l(c){if(!n){b.beforeStart&&b.beforeStart.call(this,q());if(b.circular)if(c<=b.start-e-1){i.css(m,-((g-e*2)*j)+"px");f=c==b.start-e-1?g-e*2-1:g-e*2-b.scroll}else if(c>=g-e+1){i.css(m,-(e*j)+"px");f=c==g-e+1?e+1:e+b.scroll}else f=c;else if(c<0||c>g-e)return;else f=c;n=true;i.animate(m=="left"?{left:-(f*j)}:{top:-(f*j)},b.speed,b.easing,function(){b.afterEnd&&b.afterEnd.call(this,q());n=false});if(!b.circular){a(b.btnPrev+","+b.btnNext).removeClass("disabled");a(f-b.scroll<0&&b.btnPrev||f+b.scroll>g-e&&b.btnNext||[]).addClass("disabled")}}return false}})};function b(c,b){return parseInt(a.css(c[0],b))||0}function d(a){return a[0].offsetWidth+b(a,"marginLeft")+b(a,"marginRight")}function c(a){return a[0].offsetHeight+b(a,"marginTop")+b(a,"marginBottom")}})(jQuery);function showChooseParentNode(){var b=function(a){$("select").addClass("selectElement");a.w.show()},a=function(a){$("select").removeClass("selectElement");$("#jqmParentWindow").hide();a.o.remove()};$("#jqmParentWindow").jqm({modal:true,onShow:b,onHide:a}).jqmAddClose("li a").jqmShow()}function showAward(a){if($(".jqmWindow").length!=0)return;$.getJSON("/Home/getAwardHandler/"+a,function(a){if($(".jqmWindow").length!=0)return;$("body").append('<div class="jqmWindow"></div>');$(".jqmWindow").html('<div class="closeButtonArea"><a class="jqmClose closeButton" href="#">Schliessen</a></div><h2>'+a.title+"</h2><p>"+a.data+"</p><p>"+a.image+"</p>");var c=function(a){$("select").addClass("selectElement");a.w.show()},b=function(a){$("select").removeClass("selectElement");$(".jqmWindow, .jqmOverlay").remove();a.o.remove()};$(".jqmWindow").jqm({modal:true,onShow:c,onHide:b}).jqmShow();return false})}function showProductImg(a){if($(".jqmViewer").length!=0)return;$("body").append('<div class="jqmViewer"></div>');$(".jqmViewer").html('<div class="closeButtonArea"><a class="jqmClose closeButton" href="#">Schliessen</a></div><div class="imageAreaPopup"><img src="'+a+'" width="780" height="516"></div>');var c=function(a){$("select").addClass("selectElement");a.w.show()},b=function(a){$("select").removeClass("selectElement");$(".jqmViewer, .jqmOverlay").remove();a.o.remove()};$(".jqmViewer").jqm({modal:true,onShow:c,onHide:b}).jqmShow()}$(document).ready(function(){var h=1,f=0,b=0,i=0,c=$("#actualCompaniesWorkFor ul li").length*2;$(".awardLink").click(function(){if($(this).hasClass("first")){b=1;showAward(b)}else{b=2;showAward(b)}});$(".subnav ul:first li").mouseover(function(){$(this).addClass("subnavover")});$(".subnav li.subnavover").live("mouseout",function(){$(this).removeClass("subnavover")});$(".thumbnailArea li img").click(function(){imageTag=$(this).siblings(".imgPopup").val();if(!imageTag=="")showProductImg(imageTag);else{imageTag="<img src="+$(this).attr("src")+" />";showProductImg(imageTag)}});$("#thumbNails li img").click(function(){imageTag=$(this).siblings(".imgPopup").val();if(!imageTag=="")showProductImg(imageTag);else{imageTag="<img src="+$(this).attr("src")+" />";showProductImg(imageTag)}});$("#thumbNails li img.imgColor").hide();$("#thumbNails li img.imgGray").mouseover(function(){$(this).siblings(".imgColor").show();$(this).hide()});$("#thumbNails li img.imgColor").mouseout(function(){$(this).siblings(".imgGray").show();$(this).hide()});$("#actualCompaniesWorkFor ul li").each(function(){$("#actualCompaniesWorkFor ul").append($(this).clone())});$("#actualCompaniesWorkFor ul li").each(function(){$("#actualCompaniesWorkFor ul").append($(this).clone())});var g=$("#actualCompaniesWorkFor ul li");while(c--)f+=$(g[c]).width();var a=0;setInterval(function(){a+=2;$("#actualCompaniesWorkFor ul").css({left:"-"+a+"px"});if(a==f)a=0},50);$("#breadCrumb a").after('<img src="/static/images/arrow.gif" width="3" height="7">');$("#breadCrumb img:first").remove();$("#breadCrumb a:first").html('<img src="/static/images/home.gif" class="first" width="9" height="9">');$(".subnav li ul").mouseenter(function(){$(this).closest("li").addClass("activeSubnav")});$(".subnav li ul").mouseleave(function(){$(this).closest("li").removeClass("activeSubnav")});$("a[rel*=external]").click(function(){$(this).attr("target","_blank")});$("#SearchTerm").val("Suche...");$("#SearchTerm").blur(function(){$(this).val()==""&&$(this).val("Suche..")}).focus(function(){$(this).val("")});if($("#teaser").length>0){var d=$("#teaser img").attr("src");$("#teaser").append('<img src="'+d.replace("1","2")+'" alt="Beeldassociatie producten en diensten"  width="999" height="301">');$("#teaser").append('<img src="'+d.replace("1","3")+'" alt="Beeldassociatie producten en diensten"  width="999" height="301">');setInterval("slideSwitch()",5e3)}$("#solutions p.caseExplainContent").each(function(){$(this).html()==""&&$(this).remove()});if($("#solutions p.caseExplainContent").size()>1){var e=true;$("#solutions p.caseExplainContent").each(function(){if(e)$(this).append('<span class="readmore"><p>Lesen Sie mehr...</p></span>');else $(this).hide();e=false})}$("#solutions p.caseExplainContent span.readmore").live("click",function(){$("#solutions p.caseExplainContent").show();$("span.readmore").remove()})});function slideSwitch(){var a=$("#teaser IMG.active");if(a.length==0)a=$("#teaser IMG:last");var b=a.next().length?a.next():$("#teaser IMG:first");a.addClass("last-active");b.css({opacity:0}).addClass("active").animate({opacity:1},1e3,function(){a.removeClass("active last-active")})}function bookmarksite(){if(document.all)window.external.AddFavorite(location.href,document.title);else window.sidebar&&window.sidebar.addPanel(document.title,location.href,"")}jQuery.ui||function(a){var i=a.fn.remove,f=a.browser.mozilla&&parseFloat(a.browser.version)<1.9;a.ui={version:"1.7.2",plugin:{add:function(e,f,d){var c=a.ui[e].prototype;for(var b in d){c.plugins[b]=c.plugins[b]||[];c.plugins[b].push([f,d[b]])}},call:function(a,e,d){var c=a.plugins[e];if(!c||!a.element[0].parentNode)return;for(var b=0;b<c.length;b++)a.options[c[b][0]]&&c[b][1].apply(a.element,d)}},contains:function(b,a){return document.compareDocumentPosition?b.compareDocumentPosition(a)&16:b!==a&&b.contains(a)},hasScroll:function(b,d){if(a(b).css("overflow")=="hidden")return false;var c=d&&d=="left"?"scrollLeft":"scrollTop",e=false;if(b[c]>0)return true;b[c]=1;e=b[c]>0;b[c]=0;return e},isOverAxis:function(b,a,c){return b>a&&b<a+c},isOver:function(g,c,f,e,b,d){return a.ui.isOverAxis(g,f,b)&&a.ui.isOverAxis(c,e,d)},keyCode:{BACKSPACE:8,CAPS_LOCK:20,COMMA:188,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SHIFT:16,SPACE:32,TAB:9,UP:38}};if(f){var c=a.attr,g=a.fn.removeAttr,d="http://www.w3.org/2005/07/aaa",b=/^aria-/,e=/^wairole:/;a.attr=function(f,a,g){var h=g!==undefined;return a=="role"?h?c.call(this,f,a,"wairole:"+g):(c.apply(this,arguments)||"").replace(e,""):b.test(a)?h?f.setAttributeNS(d,a.replace(b,"aaa:"),g):c.call(this,f,a.replace(b,"aaa:")):c.apply(this,arguments)};a.fn.removeAttr=function(a){return b.test(a)?this.each(function(){this.removeAttributeNS(d,a.replace(b,""))}):g.call(this,a)}}a.fn.extend({remove:function(){a("*",this).add(this).each(function(){a(this).triggerHandler("remove")});return i.apply(this,arguments)},enableSelection:function(){return this.attr("unselectable","off").css("MozUserSelect","").unbind("selectstart.ui")},disableSelection:function(){return this.attr("unselectable","on").css("MozUserSelect","none").bind("selectstart.ui",function(){return false})},scrollParent:function(){var b;if(a.browser.msie&&/(static|relative)/.test(this.css("position"))||/absolute/.test(this.css("position")))b=this.parents().filter(function(){return/(relative|absolute|fixed)/.test(a.curCSS(this,"position",1))&&/(auto|scroll)/.test(a.curCSS(this,"overflow",1)+a.curCSS(this,"overflow-y",1)+a.curCSS(this,"overflow-x",1))}).eq(0);else b=this.parents().filter(function(){return/(auto|scroll)/.test(a.curCSS(this,"overflow",1)+a.curCSS(this,"overflow-y",1)+a.curCSS(this,"overflow-x",1))}).eq(0);return/fixed/.test(this.css("position"))||!b.length?a(document):b}});a.extend(a.expr[":"],{data:function(c,d,b){return!!a.data(c,b[3])},focusable:function(b){var c=b.nodeName.toLowerCase(),d=a.attr(b,"tabindex");return(/input|select|textarea|button|object/.test(c)?!b.disabled:"a"==c||"area"==c?b.href||!isNaN(d):!isNaN(d))&&!a(b)["area"==c?"parents":"closest"](":hidden").length},tabbable:function(c){var b=a.attr(c,"tabindex");return(isNaN(b)||b>=0)&&a(c).is(":focusable")}});function h(e,f,g,d){function c(c){var b=a[e][f][c]||[];return typeof b=="string"?b.split(/,?\s+/):b}var b=c("getter");if(d.length==1&&typeof d[0]=="string")b=b.concat(c("getterSetter"));return a.inArray(g,b)!=-1}a.widget=function(b,d){var c=b.split(".")[0];b=b.split(".")[1];a.fn[b]=function(d){var e=typeof d=="string",g=Array.prototype.slice.call(arguments,1);if(e&&d.substring(0,1)=="_")return this;if(e&&h(c,b,d,g)){var f=a.data(this[0],b);return f?f[d].apply(f,g):undefined}return this.each(function(){var f=a.data(this,b);!f&&!e&&a.data(this,b,new a[c][b](this,d))._init();f&&e&&a.isFunction(f[d])&&f[d].apply(f,g)})};a[c]=a[c]||{};a[c][b]=function(d,f){var e=this;this.namespace=c;this.widgetName=b;this.widgetEventPrefix=a[c][b].eventPrefix||b;this.widgetBaseClass=c+"-"+b;this.options=a.extend({},a.widget.defaults,a[c][b].defaults,a.metadata&&a.metadata.get(d)[b],f);this.element=a(d).bind("setData."+b,function(b,a,c){if(b.target==d)return e._setData(a,c)}).bind("getData."+b,function(b,a){if(b.target==d)return e._getData(a)}).bind("remove",function(){return e.destroy()})};a[c][b].prototype=a.extend({},a.widget.prototype,d);a[c][b].getterSetter="option"};a.widget.prototype={_init:function(){},destroy:function(){this.element.removeData(this.widgetName).removeClass(this.widgetBaseClass+"-disabled "+this.namespace+"-state-disabled").removeAttr("aria-disabled")},option:function(b,d){var c=b,e=this;if(typeof b=="string"){if(d===undefined)return this._getData(b);c={};c[b]=d}a.each(c,function(a,b){e._setData(a,b)})},_getData:function(a){return this.options[a]},_setData:function(b,a){this.options[b]=a;b=="disabled"&&this.element[a?"addClass":"removeClass"](this.widgetBaseClass+"-disabled "+this.namespace+"-state-disabled").attr("aria-disabled",a)},enable:function(){this._setData("disabled",false)},disable:function(){this._setData("disabled",true)},_trigger:function(c,b,f){var g=this.options[c],h=c==this.widgetEventPrefix?c:this.widgetEventPrefix+c;b=a.Event(b);b.type=h;if(b.originalEvent)for(var e=a.event.props.length,d;e;){d=a.event.props[--e];b[d]=b.originalEvent[d]}this.element.trigger(b,f);return!(a.isFunction(g)&&g.call(this.element[0],b,f)===false||b.isDefaultPrevented())}};a.widget.defaults={disabled:false};a.ui.mouse={_mouseInit:function(){var b=this;this.element.bind("mousedown."+this.widgetName,function(a){return b._mouseDown(a)}).bind("click."+this.widgetName,function(a){if(b._preventClickEvent){b._preventClickEvent=false;a.stopImmediatePropagation();return false}});if(a.browser.msie){this._mouseUnselectable=this.element.attr("unselectable");this.element.attr("unselectable","on")}this.started=false},_mouseDestroy:function(){this.element.unbind("."+this.widgetName);a.browser.msie&&this.element.attr("unselectable",this._mouseUnselectable)},_mouseDown:function(b){b.originalEvent=b.originalEvent||{};if(b.originalEvent.mouseHandled)return;this._mouseStarted&&this._mouseUp(b);this._mouseDownEvent=b;var c=this,e=b.which==1,d=typeof this.options.cancel=="string"?a(b.target).parents().add(b.target).filter(this.options.cancel).length:false;if(!e||d||!this._mouseCapture(b))return true;this.mouseDelayMet=!this.options.delay;if(!this.mouseDelayMet)this._mouseDelayTimer=setTimeout(function(){c.mouseDelayMet=true},this.options.delay);if(this._mouseDistanceMet(b)&&this._mouseDelayMet(b)){this._mouseStarted=this._mouseStart(b)!==false;if(!this._mouseStarted){b.preventDefault();return true}}this._mouseMoveDelegate=function(a){return c._mouseMove(a)};this._mouseUpDelegate=function(a){return c._mouseUp(a)};a(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate);a.browser.safari||b.preventDefault();b.originalEvent.mouseHandled=true;return true},_mouseMove:function(b){if(a.browser.msie&&!b.button)return this._mouseUp(b);if(this._mouseStarted){this._mouseDrag(b);return b.preventDefault()}if(this._mouseDistanceMet(b)&&this._mouseDelayMet(b)){this._mouseStarted=this._mouseStart(this._mouseDownEvent,b)!==false;this._mouseStarted?this._mouseDrag(b):this._mouseUp(b)}return!this._mouseStarted},_mouseUp:function(b){a(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate);if(this._mouseStarted){this._mouseStarted=false;this._preventClickEvent=b.target==this._mouseDownEvent.target;this._mouseStop(b)}return false},_mouseDistanceMet:function(a){return Math.max(Math.abs(this._mouseDownEvent.pageX-a.pageX),Math.abs(this._mouseDownEvent.pageY-a.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return true}};a.ui.mouse.defaults={cancel:null,distance:1,delay:0}}(jQuery);(function(a){a.widget("ui.draggable",a.extend({},a.ui.mouse,{_init:function(){if(this.options.helper=="original"&&!/^(?:r|a|f)/.test(this.element.css("position")))this.element[0].style.position="relative";this.options.addClasses&&this.element.addClass("ui-draggable");this.options.disabled&&this.element.addClass("ui-draggable-disabled");this._mouseInit()},destroy:function(){if(!this.element.data("draggable"))return;this.element.removeData("draggable").unbind(".draggable").removeClass("ui-draggable ui-draggable-dragging ui-draggable-disabled");this._mouseDestroy()},_mouseCapture:function(b){var c=this.options;if(this.helper||c.disabled||a(b.target).is(".ui-resizable-handle"))return false;this.handle=this._getHandle(b);return!this.handle?false:true},_mouseStart:function(b){var c=this.options;this.helper=this._createHelper(b);this._cacheHelperProportions();if(a.ui.ddmanager)a.ui.ddmanager.current=this;this._cacheMargins();this.cssPosition=this.helper.css("position");this.scrollParent=this.helper.scrollParent();this.offset=this.element.offset();this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left};a.extend(this.offset,{click:{left:b.pageX-this.offset.left,top:b.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()});this.originalPosition=this._generatePosition(b);this.originalPageX=b.pageX;this.originalPageY=b.pageY;c.cursorAt&&this._adjustOffsetFromHelper(c.cursorAt);c.containment&&this._setContainment();this._trigger("start",b);this._cacheHelperProportions();a.ui.ddmanager&&!c.dropBehaviour&&a.ui.ddmanager.prepareOffsets(this,b);this.helper.addClass("ui-draggable-dragging");this._mouseDrag(b,true);return true},_mouseDrag:function(b,d){this.position=this._generatePosition(b);this.positionAbs=this._convertPositionTo("absolute");if(!d){var c=this._uiHash();this._trigger("drag",b,c);this.position=c.position}if(!this.options.axis||this.options.axis!="y")this.helper[0].style.left=this.position.left+"px";if(!this.options.axis||this.options.axis!="x")this.helper[0].style.top=this.position.top+"px";a.ui.ddmanager&&a.ui.ddmanager.drag(this,b);return false},_mouseStop:function(c){var b=false;if(a.ui.ddmanager&&!this.options.dropBehaviour)b=a.ui.ddmanager.drop(this,c);if(this.dropped){b=this.dropped;this.dropped=false}if(this.options.revert=="invalid"&&!b||this.options.revert=="valid"&&b||this.options.revert===true||a.isFunction(this.options.revert)&&this.options.revert.call(this.element,b)){var d=this;a(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){d._trigger("stop",c);d._clear()})}else{this._trigger("stop",c);this._clear()}return false},_getHandle:function(c){var b=!this.options.handle||!a(this.options.handle,this.element).length?true:false;a(this.options.handle,this.element).find("*").andSelf().each(function(){if(this==c.target)b=true});return b},_createHelper:function(d){var c=this.options,b=a.isFunction(c.helper)?a(c.helper.apply(this.element[0],[d])):c.helper=="clone"?this.element.clone():this.element;!b.parents("body").length&&b.appendTo(c.appendTo=="parent"?this.element[0].parentNode:c.appendTo);b[0]!=this.element[0]&&!/(fixed|absolute)/.test(b.css("position"))&&b.css("position","absolute");return b},_adjustOffsetFromHelper:function(a){if(a.left!=undefined)this.offset.click.left=a.left+this.margins.left;if(a.right!=undefined)this.offset.click.left=this.helperProportions.width-a.right+this.margins.left;if(a.top!=undefined)this.offset.click.top=a.top+this.margins.top;if(a.bottom!=undefined)this.offset.click.top=this.helperProportions.height-a.bottom+this.margins.top},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var b=this.offsetParent.offset();if(this.cssPosition=="absolute"&&this.scrollParent[0]!=document&&a.ui.contains(this.scrollParent[0],this.offsetParent[0])){b.left+=this.scrollParent.scrollLeft();b.top+=this.scrollParent.scrollTop()}if(this.offsetParent[0]==document.body||this.offsetParent[0].tagName&&this.offsetParent[0].tagName.toLowerCase()=="html"&&a.browser.msie)b={top:0,left:0};return{top:b.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:b.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if(this.cssPosition=="relative"){var a=this.element.position();return{top:a.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:a.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}else return{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.element.css("marginLeft"),10)||0,top:parseInt(this.element.css("marginTop"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var c=this.options;if(c.containment=="parent")c.containment=this.helper[0].parentNode;if(c.containment=="document"||c.containment=="window")this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,a(c.containment=="document"?document:window).width()-this.helperProportions.width-this.margins.left,(a(c.containment=="document"?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top];if(!/^(document|window|parent)$/.test(c.containment)&&c.containment.constructor!=Array){var b=a(c.containment)[0];if(!b)return;var d=a(c.containment).offset(),e=a(b).css("overflow")!="hidden";this.containment=[d.left+(parseInt(a(b).css("borderLeftWidth"),10)||0)+(parseInt(a(b).css("paddingLeft"),10)||0)-this.margins.left,d.top+(parseInt(a(b).css("borderTopWidth"),10)||0)+(parseInt(a(b).css("paddingTop"),10)||0)-this.margins.top,d.left+(e?Math.max(b.scrollWidth,b.offsetWidth):b.offsetWidth)-(parseInt(a(b).css("borderLeftWidth"),10)||0)-(parseInt(a(b).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,d.top+(e?Math.max(b.scrollHeight,b.offsetHeight):b.offsetHeight)-(parseInt(a(b).css("borderTopWidth"),10)||0)-(parseInt(a(b).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top]}else if(c.containment.constructor==Array)this.containment=c.containment},_convertPositionTo:function(f,c){if(!c)c=this.position;var b=f=="absolute"?1:-1,g=this.options,d=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&a.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,e=/(html|body)/i.test(d[0].tagName);return{top:c.top+this.offset.relative.top*b+this.offset.parent.top*b-(a.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollTop():e?0:d.scrollTop())*b),left:c.left+this.offset.relative.left*b+this.offset.parent.left*b-(a.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():e?0:d.scrollLeft())*b)}},_generatePosition:function(e){var b=this.options,h=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&a.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,i=/(html|body)/i.test(h[0].tagName);if(this.cssPosition=="relative"&&!(this.scrollParent[0]!=document&&this.scrollParent[0]!=this.offsetParent[0]))this.offset.relative=this._getRelativeOffset();var g=e.pageX,f=e.pageY;if(this.originalPosition){if(this.containment){if(e.pageX-this.offset.click.left<this.containment[0])g=this.containment[0]+this.offset.click.left;if(e.pageY-this.offset.click.top<this.containment[1])f=this.containment[1]+this.offset.click.top;if(e.pageX-this.offset.click.left>this.containment[2])g=this.containment[2]+this.offset.click.left;if(e.pageY-this.offset.click.top>this.containment[3])f=this.containment[3]+this.offset.click.top}if(b.grid){var d=this.originalPageY+Math.round((f-this.originalPageY)/b.grid[1])*b.grid[1];f=this.containment?!(d-this.offset.click.top<this.containment[1]||d-this.offset.click.top>this.containment[3])?d:!(d-this.offset.click.top<this.containment[1])?d-b.grid[1]:d+b.grid[1]:d;var c=this.originalPageX+Math.round((g-this.originalPageX)/b.grid[0])*b.grid[0];g=this.containment?!(c-this.offset.click.left<this.containment[0]||c-this.offset.click.left>this.containment[2])?c:!(c-this.offset.click.left<this.containment[0])?c-b.grid[0]:c+b.grid[0]:c}}return{top:f-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(a.browser.safari&&this.cssPosition=="fixed"?0:this.cssPosition=="fixed"?-this.scrollParent.scrollTop():i?0:h.scrollTop()),left:g-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+(a.browser.safari&&this.cssPosition=="fixed"?0:this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():i?0:h.scrollLeft())}},_clear:function(){this.helper.removeClass("ui-draggable-dragging");this.helper[0]!=this.element[0]&&!this.cancelHelperRemoval&&this.helper.remove();this.helper=null;this.cancelHelperRemoval=false},_trigger:function(c,d,b){b=b||this._uiHash();a.ui.plugin.call(this,c,[d,b]);if(c=="drag")this.positionAbs=this._convertPositionTo("absolute");return a.widget.prototype._trigger.call(this,c,d,b)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,absolutePosition:this.positionAbs,offset:this.positionAbs}}}));a.extend(a.ui.draggable,{version:"1.7.2",eventPrefix:"drag",defaults:{addClasses:true,appendTo:"parent",axis:false,cancel:":input,option",connectToSortable:false,containment:false,cursor:"auto",cursorAt:false,delay:0,distance:1,grid:false,handle:false,helper:"original",iframeFix:false,opacity:false,refreshPositions:false,revert:false,revertDuration:500,scope:"default",scroll:true,scrollSensitivity:20,scrollSpeed:20,snap:false,snapMode:"both",snapTolerance:20,stack:false,zIndex:false}});a.ui.plugin.add("draggable","connectToSortable",{start:function(d,e){var b=a(this).data("draggable"),f=b.options,c=a.extend({},e,{item:b.element});b.sortables=[];a(f.connectToSortable).each(function(){var e=a.data(this,"sortable");if(e&&!e.options.disabled){b.sortables.push({instance:e,shouldRevert:e.options.revert});e._refreshItems();e._trigger("activate",d,c)}})},stop:function(c,e){var b=a(this).data("draggable"),d=a.extend({},e,{item:b.element});a.each(b.sortables,function(){if(this.instance.isOver){this.instance.isOver=0;b.cancelHelperRemoval=true;this.instance.cancelHelperRemoval=false;if(this.shouldRevert)this.instance.options.revert=true;this.instance._mouseStop(c);this.instance.options.helper=this.instance.options._helper;b.options.helper=="original"&&this.instance.currentItem.css({top:"auto",left:"auto"})}else{this.instance.cancelHelperRemoval=false;this.instance._trigger("deactivate",c,d)}})},drag:function(c,e){var b=a(this).data("draggable"),d=this,f=function(b){var i=this.offset.click.top,h=this.offset.click.left,c=this.positionAbs.top,f=this.positionAbs.left,e=b.height,g=b.width,j=b.top,d=b.left;return a.ui.isOver(c+i,f+h,j,d,e,g)};a.each(b.sortables,function(){this.instance.positionAbs=b.positionAbs;this.instance.helperProportions=b.helperProportions;this.instance.offset.click=b.offset.click;if(this.instance._intersectsWith(this.instance.containerCache)){if(!this.instance.isOver){this.instance.isOver=1;this.instance.currentItem=a(d).clone().appendTo(this.instance.element).data("sortable-item",true);this.instance.options._helper=this.instance.options.helper;this.instance.options.helper=function(){return e.helper[0]};c.target=this.instance.currentItem[0];this.instance._mouseCapture(c,true);this.instance._mouseStart(c,true,true);this.instance.offset.click.top=b.offset.click.top;this.instance.offset.click.left=b.offset.click.left;this.instance.offset.parent.left-=b.offset.parent.left-this.instance.offset.parent.left;this.instance.offset.parent.top-=b.offset.parent.top-this.instance.offset.parent.top;b._trigger("toSortable",c);b.dropped=this.instance.element;b.currentItem=b.element;this.instance.fromOutside=b}this.instance.currentItem&&this.instance._mouseDrag(c)}else if(this.instance.isOver){this.instance.isOver=0;this.instance.cancelHelperRemoval=true;this.instance.options.revert=false;this.instance._trigger("out",c,this.instance._uiHash(this.instance));this.instance._mouseStop(c,true);this.instance.options.helper=this.instance.options._helper;this.instance.currentItem.remove();this.instance.placeholder&&this.instance.placeholder.remove();b._trigger("fromSortable",c);b.dropped=false}})}});a.ui.plugin.add("draggable","cursor",{start:function(){var b=a("body"),c=a(this).data("draggable").options;if(b.css("cursor"))c._cursor=b.css("cursor");b.css("cursor",c.cursor)},stop:function(){var b=a(this).data("draggable").options;b._cursor&&a("body").css("cursor",b._cursor)}});a.ui.plugin.add("draggable","iframeFix",{start:function(){var b=a(this).data("draggable").options;a(b.iframeFix===true?"iframe":b.iframeFix).each(function(){a('<div class="ui-draggable-iframeFix" style="background: #fff;"></div>').css({width:this.offsetWidth+"px",height:this.offsetHeight+"px",position:"absolute",opacity:"0.001",zIndex:1e3}).css(a(this).offset()).appendTo("body")})},stop:function(){a("div.ui-draggable-iframeFix").each(function(){this.parentNode.removeChild(this)})}});a.ui.plugin.add("draggable","opacity",{start:function(e,d){var b=a(d.helper),c=a(this).data("draggable").options;if(b.css("opacity"))c._opacity=b.css("opacity");b.css("opacity",c.opacity)},stop:function(d,c){var b=a(this).data("draggable").options;b._opacity&&a(c.helper).css("opacity",b._opacity)}});a.ui.plugin.add("draggable","scroll",{start:function(){var b=a(this).data("draggable");if(b.scrollParent[0]!=document&&b.scrollParent[0].tagName!="HTML")b.overflowOffset=b.scrollParent.offset()},drag:function(e){var c=a(this).data("draggable"),b=c.options,d=false;if(c.scrollParent[0]!=document&&c.scrollParent[0].tagName!="HTML"){if(!b.axis||b.axis!="x")if(c.overflowOffset.top+c.scrollParent[0].offsetHeight-e.pageY<b.scrollSensitivity)c.scrollParent[0].scrollTop=d=c.scrollParent[0].scrollTop+b.scrollSpeed;else if(e.pageY-c.overflowOffset.top<b.scrollSensitivity)c.scrollParent[0].scrollTop=d=c.scrollParent[0].scrollTop-b.scrollSpeed;if(!b.axis||b.axis!="y")if(c.overflowOffset.left+c.scrollParent[0].offsetWidth-e.pageX<b.scrollSensitivity)c.scrollParent[0].scrollLeft=d=c.scrollParent[0].scrollLeft+b.scrollSpeed;else if(e.pageX-c.overflowOffset.left<b.scrollSensitivity)c.scrollParent[0].scrollLeft=d=c.scrollParent[0].scrollLeft-b.scrollSpeed}else{if(!b.axis||b.axis!="x")if(e.pageY-a(document).scrollTop()<b.scrollSensitivity)d=a(document).scrollTop(a(document).scrollTop()-b.scrollSpeed);else if(a(window).height()-(e.pageY-a(document).scrollTop())<b.scrollSensitivity)d=a(document).scrollTop(a(document).scrollTop()+b.scrollSpeed);if(!b.axis||b.axis!="y")if(e.pageX-a(document).scrollLeft()<b.scrollSensitivity)d=a(document).scrollLeft(a(document).scrollLeft()-b.scrollSpeed);else if(a(window).width()-(e.pageX-a(document).scrollLeft())<b.scrollSensitivity)d=a(document).scrollLeft(a(document).scrollLeft()+b.scrollSpeed)}d!==false&&a.ui.ddmanager&&!b.dropBehaviour&&a.ui.ddmanager.prepareOffsets(c,e)}});a.ui.plugin.add("draggable","snap",{start:function(){var b=a(this).data("draggable"),c=b.options;b.snapElements=[];a(c.snap.constructor!=String?c.snap.items||":data(draggable)":c.snap).each(function(){var c=a(this),d=c.offset();this!=b.element[0]&&b.snapElements.push({item:this,width:c.outerWidth(),height:c.outerHeight(),top:d.top,left:d.left})})},drag:function(t,e){for(var b=a(this).data("draggable"),r=b.options,c=r.snapTolerance,k=e.offset.left,m=k+b.helperProportions.width,j=e.offset.top,l=j+b.helperProportions.height,d=b.snapElements.length-1;d>=0;d--){var g=b.snapElements[d].left,i=g+b.snapElements[d].width,f=b.snapElements[d].top,h=f+b.snapElements[d].height;if(!(g-c<k&&k<i+c&&f-c<j&&j<h+c||g-c<k&&k<i+c&&f-c<l&&l<h+c||g-c<m&&m<i+c&&f-c<j&&j<h+c||g-c<m&&m<i+c&&f-c<l&&l<h+c)){if(b.snapElements[d].snapping)b.options.snap.release&&b.options.snap.release.call(b.element,t,a.extend(b._uiHash(),{snapItem:b.snapElements[d].item}));b.snapElements[d].snapping=false;continue}if(r.snapMode!="inner"){var n=Math.abs(f-l)<=c,q=Math.abs(h-j)<=c,o=Math.abs(g-m)<=c,p=Math.abs(i-k)<=c;if(n)e.position.top=b._convertPositionTo("relative",{top:f-b.helperProportions.height,left:0}).top-b.margins.top;if(q)e.position.top=b._convertPositionTo("relative",{top:h,left:0}).top-b.margins.top;if(o)e.position.left=b._convertPositionTo("relative",{top:0,left:g-b.helperProportions.width}).left-b.margins.left;if(p)e.position.left=b._convertPositionTo("relative",{top:0,left:i}).left-b.margins.left}var s=n||q||o||p;if(r.snapMode!="outer"){var n=Math.abs(f-j)<=c,q=Math.abs(h-l)<=c,o=Math.abs(g-k)<=c,p=Math.abs(i-m)<=c;if(n)e.position.top=b._convertPositionTo("relative",{top:f,left:0}).top-b.margins.top;if(q)e.position.top=b._convertPositionTo("relative",{top:h-b.helperProportions.height,left:0}).top-b.margins.top;if(o)e.position.left=b._convertPositionTo("relative",{top:0,left:g}).left-b.margins.left;if(p)e.position.left=b._convertPositionTo("relative",{top:0,left:i-b.helperProportions.width}).left-b.margins.left}if(!b.snapElements[d].snapping&&(n||q||o||p||s))b.options.snap.snap&&b.options.snap.snap.call(b.element,t,a.extend(b._uiHash(),{snapItem:b.snapElements[d].item}));b.snapElements[d].snapping=n||q||o||p||s}}});a.ui.plugin.add("draggable","stack",{start:function(){var b=a(this).data("draggable").options,c=a.makeArray(a(b.stack.group)).sort(function(d,c){return(parseInt(a(d).css("zIndex"),10)||b.stack.min)-(parseInt(a(c).css("zIndex"),10)||b.stack.min)});a(c).each(function(a){this.style.zIndex=b.stack.min+a});this[0].style.zIndex=b.stack.min+c.length}});a.ui.plugin.add("draggable","zIndex",{start:function(e,d){var b=a(d.helper),c=a(this).data("draggable").options;if(b.css("zIndex"))c._zIndex=b.css("zIndex");b.css("zIndex",c.zIndex)},stop:function(d,c){var b=a(this).data("draggable").options;b._zIndex&&a(c.helper).css("zIndex",b._zIndex)}})})(jQuery);(function(a){a.widget("ui.droppable",{_init:function(){var c=this.options,b=c.accept;this.isover=0;this.isout=1;this.options.accept=this.options.accept&&a.isFunction(this.options.accept)?this.options.accept:function(a){return a.is(b)};this.proportions={width:this.element[0].offsetWidth,height:this.element[0].offsetHeight};a.ui.ddmanager.droppables[this.options.scope]=a.ui.ddmanager.droppables[this.options.scope]||[];a.ui.ddmanager.droppables[this.options.scope].push(this);this.options.addClasses&&this.element.addClass("ui-droppable")},destroy:function(){for(var c=a.ui.ddmanager.droppables[this.options.scope],b=0;b<c.length;b++)c[b]==this&&c.splice(b,1);this.element.removeClass("ui-droppable ui-droppable-disabled").removeData("droppable").unbind(".droppable")},_setData:function(c,b){if(c=="accept")this.options.accept=b&&a.isFunction(b)?b:function(a){return a.is(b)};else a.widget.prototype._setData.apply(this,arguments)},_activate:function(c){var b=a.ui.ddmanager.current;this.options.activeClass&&this.element.addClass(this.options.activeClass);b&&this._trigger("activate",c,this.ui(b))},_deactivate:function(c){var b=a.ui.ddmanager.current;this.options.activeClass&&this.element.removeClass(this.options.activeClass);b&&this._trigger("deactivate",c,this.ui(b))},_over:function(c){var b=a.ui.ddmanager.current;if(!b||(b.currentItem||b.element)[0]==this.element[0])return;if(this.options.accept.call(this.element[0],b.currentItem||b.element)){this.options.hoverClass&&this.element.addClass(this.options.hoverClass);this._trigger("over",c,this.ui(b))}},_out:function(c){var b=a.ui.ddmanager.current;if(!b||(b.currentItem||b.element)[0]==this.element[0])return;if(this.options.accept.call(this.element[0],b.currentItem||b.element)){this.options.hoverClass&&this.element.removeClass(this.options.hoverClass);this._trigger("out",c,this.ui(b))}},_drop:function(d,e){var b=e||a.ui.ddmanager.current;if(!b||(b.currentItem||b.element)[0]==this.element[0])return false;var c=false;this.element.find(":data(droppable)").not(".ui-draggable-dragging").each(function(){var d=a.data(this,"droppable");if(d.options.greedy&&a.ui.intersect(b,a.extend(d,{offset:d.element.offset()}),d.options.tolerance)){c=true;return false}});if(c)return false;if(this.options.accept.call(this.element[0],b.currentItem||b.element)){this.options.activeClass&&this.element.removeClass(this.options.activeClass);this.options.hoverClass&&this.element.removeClass(this.options.hoverClass);this._trigger("drop",d,this.ui(b));return this.element}return false},ui:function(a){return{draggable:a.currentItem||a.element,helper:a.helper,position:a.position,absolutePosition:a.positionAbs,offset:a.positionAbs}}});a.extend(a.ui.droppable,{version:"1.7.2",eventPrefix:"drop",defaults:{accept:"*",activeClass:false,addClasses:true,greedy:false,hoverClass:false,scope:"default",tolerance:"intersect"}});a.ui.intersect=function(b,d,o){if(!d.offset)return false;var f=(b.positionAbs||b.position.absolute).left,i=f+b.helperProportions.width,g=(b.positionAbs||b.position.absolute).top,k=g+b.helperProportions.height,c=d.offset.left,h=c+d.proportions.width,e=d.offset.top,j=e+d.proportions.height;switch(o){case"fit":return c<f&&i<h&&e<g&&k<j;break;case"intersect":return c<f+b.helperProportions.width/2&&i-b.helperProportions.width/2<h&&e<g+b.helperProportions.height/2&&k-b.helperProportions.height/2<j;break;case"pointer":var m=(b.positionAbs||b.position.absolute).left+(b.clickOffset||b.offset.click).left,n=(b.positionAbs||b.position.absolute).top+(b.clickOffset||b.offset.click).top,l=a.ui.isOver(n,m,e,c,d.proportions.height,d.proportions.width);return l;break;case"touch":return(g>=e&&g<=j||k>=e&&k<=j||g<e&&k>j)&&(f>=c&&f<=h||i>=c&&i<=h||f<c&&i>h);break;default:return false}};a.ui.ddmanager={current:null,droppables:{"default":[]},prepareOffsets:function(d,f){var c=a.ui.ddmanager.droppables[d.options.scope],h=f?f.type:null,g=(d.currentItem||d.element).find(":data(droppable)").andSelf();a:for(var b=0;b<c.length;b++){if(c[b].options.disabled||d&&!c[b].options.accept.call(c[b].element[0],d.currentItem||d.element))continue;for(var e=0;e<g.length;e++)if(g[e]==c[b].element[0]){c[b].proportions.height=0;continue a}c[b].visible=c[b].element.css("display")!="none";if(!c[b].visible)continue;c[b].offset=c[b].element.offset();c[b].proportions={width:c[b].element[0].offsetWidth,height:c[b].element[0].offsetHeight};h=="mousedown"&&c[b]._activate.call(c[b],f)}},drop:function(b,c){var d=false;a.each(a.ui.ddmanager.droppables[b.options.scope],function(){if(!this.options)return;if(!this.options.disabled&&this.visible&&a.ui.intersect(b,this,this.options.tolerance))d=this._drop.call(this,c);if(!this.options.disabled&&this.visible&&this.options.accept.call(this.element[0],b.currentItem||b.element)){this.isout=1;this.isover=0;this._deactivate.call(this,c)}});return d},drag:function(b,c){b.options.refreshPositions&&a.ui.ddmanager.prepareOffsets(b,c);a.each(a.ui.ddmanager.droppables[b.options.scope],function(){if(this.options.disabled||this.greedyChild||!this.visible)return;var g=a.ui.intersect(b,this,this.options.tolerance),e=!g&&this.isover==1?"isout":g&&this.isover==0?"isover":null;if(!e)return;var d;if(this.options.greedy){var f=this.element.parents(":data(droppable):eq(0)");if(f.length){d=a.data(f[0],"droppable");d.greedyChild=e=="isover"?1:0}}if(d&&e=="isover"){d.isover=0;d.isout=1;d._out.call(d,c)}this[e]=1;this[e=="isout"?"isover":"isout"]=0;this[e=="isover"?"_over":"_out"].call(this,c);if(d&&e=="isout"){d.isout=0;d.isover=1;d._over.call(d,c)}})}}})(jQuery);(function(a){a.widget("ui.slider",a.extend({},a.ui.mouse,{_init:function(){var b=this,c=this.options;this._keySliding=false;this._handleIndex=null;this._detectOrientation();this._mouseInit();this.element.addClass("ui-slider ui-slider-"+this.orientation+" ui-widget ui-widget-content ui-corner-all");this.range=a([]);if(c.range){if(c.range===true){this.range=a("<div></div>");if(!c.values)c.values=[this._valueMin(),this._valueMin()];if(c.values.length&&c.values.length!=2)c.values=[c.values[0],c.values[0]]}else this.range=a("<div></div>");this.range.appendTo(this.element).addClass("ui-slider-range");(c.range=="min"||c.range=="max")&&this.range.addClass("ui-slider-range-"+c.range);this.range.addClass("ui-widget-header")}a(".ui-slider-handle",this.element).length==0&&a('<a href="#"></a>').appendTo(this.element).addClass("ui-slider-handle");if(c.values&&c.values.length)while(a(".ui-slider-handle",this.element).length<c.values.length)a('<a href="#"></a>').appendTo(this.element).addClass("ui-slider-handle");this.handles=a(".ui-slider-handle",this.element).addClass("ui-state-default ui-corner-all");this.handle=this.handles.eq(0);this.handles.add(this.range).filter("a").click(function(a){a.preventDefault()}).hover(function(){!c.disabled&&a(this).addClass("ui-state-hover")},function(){a(this).removeClass("ui-state-hover")}).focus(function(){if(!c.disabled){a(".ui-slider .ui-state-focus").removeClass("ui-state-focus");a(this).addClass("ui-state-focus")}else a(this).blur()}).blur(function(){a(this).removeClass("ui-state-focus")});this.handles.each(function(b){a(this).data("index.ui-slider-handle",b)});this.handles.keydown(function(e){var g=true,f=a(this).data("index.ui-slider-handle");if(b.options.disabled)return;switch(e.keyCode){case a.ui.keyCode.HOME:case a.ui.keyCode.END:case a.ui.keyCode.UP:case a.ui.keyCode.RIGHT:case a.ui.keyCode.DOWN:case a.ui.keyCode.LEFT:g=false;if(!b._keySliding){b._keySliding=true;a(this).addClass("ui-state-active");b._start(e,f)}}var d,c,h=b._step();if(b.options.values&&b.options.values.length)d=c=b.values(f);else d=c=b.value();switch(e.keyCode){case a.ui.keyCode.HOME:c=b._valueMin();break;case a.ui.keyCode.END:c=b._valueMax();break;case a.ui.keyCode.UP:case a.ui.keyCode.RIGHT:if(d==b._valueMax())return;c=d+h;break;case a.ui.keyCode.DOWN:case a.ui.keyCode.LEFT:if(d==b._valueMin())return;c=d-h}b._slide(e,f,c);return g}).keyup(function(d){var c=a(this).data("index.ui-slider-handle");if(b._keySliding){b._stop(d,c);b._change(d,c);b._keySliding=false;a(this).removeClass("ui-state-active")}});this._refreshValue()},destroy:function(){this.handles.remove();this.range.remove();this.element.removeClass("ui-slider ui-slider-horizontal ui-slider-vertical ui-slider-disabled ui-widget ui-widget-content ui-corner-all").removeData("slider").unbind(".slider");this._mouseDestroy()},_mouseCapture:function(c){var e=this.options;if(e.disabled)return false;this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()};this.elementOffset=this.element.offset();var i={x:c.pageX,y:c.pageY},f=this._normValueFromMouse(i),g=this._valueMax()-this._valueMin()+1,b,j=this,d;this.handles.each(function(c){var e=Math.abs(f-j.values(c));if(g>e){g=e;b=a(this);d=c}});if(e.range==true&&this.values(1)==e.min)b=a(this.handles[++d]);this._start(c,d);j._handleIndex=d;b.addClass("ui-state-active").focus();var h=b.offset(),k=!a(c.target).parents().andSelf().is(".ui-slider-handle");this._clickOffset=k?{left:0,top:0}:{left:c.pageX-h.left-b.width()/2,top:c.pageY-h.top-b.height()/2-(parseInt(b.css("borderTopWidth"),10)||0)-(parseInt(b.css("borderBottomWidth"),10)||0)+(parseInt(b.css("marginTop"),10)||0)};f=this._normValueFromMouse(i);this._slide(c,d,f);return true},_mouseStart:function(){return true},_mouseDrag:function(a){var b={x:a.pageX,y:a.pageY},c=this._normValueFromMouse(b);this._slide(a,this._handleIndex,c);return false},_mouseStop:function(a){this.handles.removeClass("ui-state-active");this._stop(a,this._handleIndex);this._change(a,this._handleIndex);this._handleIndex=null;this._clickOffset=null;return false},_detectOrientation:function(){this.orientation=this.options.orientation=="vertical"?"vertical":"horizontal"},_normValueFromMouse:function(e){var b,c;if("horizontal"==this.orientation){b=this.elementSize.width;c=e.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)}else{b=this.elementSize.height;c=e.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)}var a=c/b;if(a>1)a=1;if(a<0)a=0;if("vertical"==this.orientation)a=1-a;var h=this._valueMax()-this._valueMin(),g=a*h,d=g%this.options.step,f=this._valueMin()+g-d;if(d>this.options.step/2)f+=this.options.step;return parseFloat(f.toFixed(5))},_start:function(c,b){var a={handle:this.handles[b],value:this.value()};if(this.options.values&&this.options.values.length){a.value=this.values(b);a.values=this.values()}this._trigger("start",c,a)},_slide:function(c,b,a){var g=this.handles[b];if(this.options.values&&this.options.values.length){var d=this.values(b?0:1);if(this.options.values.length==2&&this.options.range===true&&(b==0&&a>d||b==1&&a<d))a=d;if(a!=this.values(b)){var e=this.values();e[b]=a;var f=this._trigger("slide",c,{handle:this.handles[b],value:a,values:e}),d=this.values(b?0:1);f!==false&&this.values(b,a,c.type=="mousedown"&&this.options.animate,true)}}else if(a!=this.value()){var f=this._trigger("slide",c,{handle:this.handles[b],value:a});f!==false&&this._setData("value",a,c.type=="mousedown"&&this.options.animate)}},_stop:function(c,b){var a={handle:this.handles[b],value:this.value()};if(this.options.values&&this.options.values.length){a.value=this.values(b);a.values=this.values()}this._trigger("stop",c,a)},_change:function(c,b){var a={handle:this.handles[b],value:this.value()};if(this.options.values&&this.options.values.length){a.value=this.values(b);a.values=this.values()}this._trigger("change",c,a)},value:function(a){if(arguments.length){this._setData("value",a);this._change(null,0)}return this._value()},values:function(a,d,b,c){if(arguments.length>1){this.options.values[a]=d;this._refreshValue(b);!c&&this._change(null,a)}return arguments.length?this.options.values&&this.options.values.length?this._values(a):this.value():this._values()},_setData:function(c,d,b){a.widget.prototype._setData.apply(this,arguments);switch(c){case"disabled":if(d){this.handles.filter(".ui-state-focus").blur();this.handles.removeClass("ui-state-hover");this.handles.attr("disabled","disabled")}else this.handles.removeAttr("disabled");case"orientation":this._detectOrientation();this.element.removeClass("ui-slider-horizontal ui-slider-vertical").addClass("ui-slider-"+this.orientation);this._refreshValue(b);break;case"value":this._refreshValue(b)}},_step:function(){return this.options.step},_value:function(){var a=this.options.value;if(a<this._valueMin())a=this._valueMin();if(a>this._valueMax())a=this._valueMax();return a},_values:function(b){if(arguments.length){var a=this.options.values[b];if(a<this._valueMin())a=this._valueMin();if(a>this._valueMax())a=this._valueMax();return a}else return this.options.values},_valueMin:function(){return this.options.min},_valueMax:function(){return this.options.max},_refreshValue:function(c){var f=this.options.range,d=this.options,b=this;if(this.options.values&&this.options.values.length){var l,k;this.handles.each(function(f){var e=(b.values(f)-b._valueMin())/(b._valueMax()-b._valueMin())*100,g={};g[b.orientation=="horizontal"?"left":"bottom"]=e+"%";a(this).stop(1,1)[c?"animate":"css"](g,d.animate);if(b.options.range===true)if(b.orientation=="horizontal"){f==0&&b.range.stop(1,1)[c?"animate":"css"]({left:e+"%"},d.animate);f==1&&b.range[c?"animate":"css"]({width:e-lastValPercent+"%"},{queue:false,duration:d.animate})}else{f==0&&b.range.stop(1,1)[c?"animate":"css"]({bottom:e+"%"},d.animate);f==1&&b.range[c?"animate":"css"]({height:e-lastValPercent+"%"},{queue:false,duration:d.animate})}lastValPercent=e})}else{var j=this.value(),g=this._valueMin(),i=this._valueMax(),e=i!=g?(j-g)/(i-g)*100:0,h={};h[b.orientation=="horizontal"?"left":"bottom"]=e+"%";this.handle.stop(1,1)[c?"animate":"css"](h,d.animate);f=="min"&&this.orientation=="horizontal"&&this.range.stop(1,1)[c?"animate":"css"]({width:e+"%"},d.animate);f=="max"&&this.orientation=="horizontal"&&this.range[c?"animate":"css"]({width:100-e+"%"},{queue:false,duration:d.animate});f=="min"&&this.orientation=="vertical"&&this.range.stop(1,1)[c?"animate":"css"]({height:e+"%"},d.animate);f=="max"&&this.orientation=="vertical"&&this.range[c?"animate":"css"]({height:100-e+"%"},{queue:false,duration:d.animate})}}}));a.extend(a.ui.slider,{getter:"value values",version:"1.7.2",eventPrefix:"slide",defaults:{animate:false,delay:0,distance:0,max:100,min:0,orientation:"horizontal",range:false,step:1,value:0,values:null}})})(jQuery);jQuery.effects||function(a){a.effects={version:"1.7.2",save:function(c,b){for(var a=0;a<b.length;a++)b[a]!==null&&c.data("ec.storage."+b[a],c[0].style[b[a]])},restore:function(c,b){for(var a=0;a<b.length;a++)b[a]!==null&&c.css(b[a],c.data("ec.storage."+b[a]))},setMode:function(b,a){if(a=="toggle")a=b.is(":hidden")?"show":"hide";return a},getBaseline:function(c,d){var b,a;switch(c[0]){case"top":b=0;break;case"middle":b=.5;break;case"bottom":b=1;break;default:b=c[0]/d.height}switch(c[1]){case"left":a=0;break;case"center":a=.5;break;case"right":a=1;break;default:a=c[1]/d.width}return{x:a,y:b}},createWrapper:function(a){if(a.parent().is(".ui-effects-wrapper"))return a.parent();var e={width:a.outerWidth(true),height:a.outerHeight(true),"float":a.css("float")};a.wrap('<div class="ui-effects-wrapper" style="font-size:100%;background:transparent;border:none;margin:0;padding:0"></div>');var b=a.parent();if(a.css("position")=="static"){b.css({position:"relative"});a.css({position:"relative"})}else{var d=a.css("top");if(isNaN(parseInt(d,10)))d="auto";var c=a.css("left");if(isNaN(parseInt(c,10)))c="auto";b.css({position:a.css("position"),top:d,left:c,zIndex:a.css("z-index")}).show();a.css({position:"relative",top:0,left:0})}b.css(e);return b},removeWrapper:function(a){return a.parent().is(".ui-effects-wrapper")?a.parent().replaceWith(a):a},setTransition:function(d,e,c,b){b=b||{};a.each(e,function(e,a){unit=d.cssUnit(a);if(unit[0]>0)b[a]=unit[0]*c+unit[1]});return b},animateClass:function(b,g,c,e){var d=typeof c=="function"?c:e?e:null,f=typeof c=="string"?c:null;return this.each(function(){var k={},e=a(this),i=e.attr("style")||"";if(typeof i=="object")i=i.cssText;if(b.toggle)e.hasClass(b.toggle)?(b.remove=b.toggle):(b.add=b.toggle);var j=a.extend({},document.defaultView?document.defaultView.getComputedStyle(this,null):this.currentStyle);b.add&&e.addClass(b.add);b.remove&&e.removeClass(b.remove);var h=a.extend({},document.defaultView?document.defaultView.getComputedStyle(this,null):this.currentStyle);b.add&&e.removeClass(b.add);b.remove&&e.addClass(b.remove);for(var c in h)if(typeof h[c]!="function"&&h[c]&&c.indexOf("Moz")==-1&&c.indexOf("length")==-1&&h[c]!=j[c]&&(c.match(/color/i)||!c.match(/color/i)&&!isNaN(parseInt(h[c],10)))&&(j.position!="static"||j.position=="static"&&!c.match(/left|top|bottom|right/)))k[c]=h[c];e.animate(k,g,f,function(){if(typeof a(this).attr("style")=="object"){a(this).attr("style").cssText="";a(this).attr("style").cssText=i}else a(this).attr("style",i);b.add&&a(this).addClass(b.add);b.remove&&a(this).removeClass(b.remove);d&&d.apply(this,arguments)})})}};function b(b,e){var d=b[1]&&b[1].constructor==Object?b[1]:{};if(e)d.mode=e;var c=b[1]&&b[1].constructor!=Object?b[1]:d.duration?d.duration:b[2];c=a.fx.off?0:typeof c==="number"?c:a.fx.speeds[c]||a.fx.speeds._default;var f=d.callback||a.isFunction(b[1])&&b[1]||a.isFunction(b[2])&&b[2]||a.isFunction(b[3])&&b[3];return[b[0],d,c,f]}a.fn.extend({_show:a.fn.show,_hide:a.fn.hide,__toggle:a.fn.toggle,_addClass:a.fn.addClass,_removeClass:a.fn.removeClass,_toggleClass:a.fn.toggleClass,effect:function(b,c,d,e){return a.effects[b]?a.effects[b].call(this,{method:b,options:c||{},duration:d,callback:e}):null},show:function(){return!arguments[0]||(arguments[0].constructor==Number||/(slow|normal|fast)/.test(arguments[0]))?this._show.apply(this,arguments):this.effect.apply(this,b(arguments,"show"))},hide:function(){return!arguments[0]||(arguments[0].constructor==Number||/(slow|normal|fast)/.test(arguments[0]))?this._hide.apply(this,arguments):this.effect.apply(this,b(arguments,"hide"))},toggle:function(){return!arguments[0]||(arguments[0].constructor==Number||/(slow|normal|fast)/.test(arguments[0]))||(a.isFunction(arguments[0])||typeof arguments[0]=="boolean")?this.__toggle.apply(this,arguments):this.effect.apply(this,b(arguments,"toggle"))},addClass:function(c,b,e,d){return b?a.effects.animateClass.apply(this,[{add:c},b,e,d]):this._addClass(c)},removeClass:function(c,b,e,d){return b?a.effects.animateClass.apply(this,[{remove:c},b,e,d]):this._removeClass(c)},toggleClass:function(c,b,e,d){return typeof b!=="boolean"&&b?a.effects.animateClass.apply(this,[{toggle:c},b,e,d]):this._toggleClass(c,b)},morph:function(b,d,c,f,e){return a.effects.animateClass.apply(this,[{add:d,remove:b},c,f,e])},switchClass:function(){return this.morph.apply(this,arguments)},cssUnit:function(d){var b=this.css(d),c=[];a.each(["em","px","%","pt"],function(d,a){if(b.indexOf(a)>0)c=[parseFloat(b),a]});return c}});a.each(["backgroundColor","borderBottomColor","borderLeftColor","borderRightColor","borderTopColor","color","outlineColor"],function(c,b){a.fx.step[b]=function(a){if(a.state==0){a.start=e(a.elem,b);a.end=d(a.end)}a.elem.style[b]="rgb("+[Math.max(Math.min(parseInt(a.pos*(a.end[0]-a.start[0])+a.start[0],10),255),0),Math.max(Math.min(parseInt(a.pos*(a.end[1]-a.start[1])+a.start[1],10),255),0),Math.max(Math.min(parseInt(a.pos*(a.end[2]-a.start[2])+a.start[2],10),255),0)].join(",")+")"}});function d(d){var b;return d&&d.constructor==Array&&d.length==3?d:(b=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(d))?[parseInt(b[1],10),parseInt(b[2],10),parseInt(b[3],10)]:(b=/rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(d))?[parseFloat(b[1])*2.55,parseFloat(b[2])*2.55,parseFloat(b[3])*2.55]:(b=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(d))?[parseInt(b[1],16),parseInt(b[2],16),parseInt(b[3],16)]:(b=/#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(d))?[parseInt(b[1]+b[1],16),parseInt(b[2]+b[2],16),parseInt(b[3]+b[3],16)]:(b=/rgba\(0, 0, 0, 0\)/.exec(d))?c.transparent:c[a.trim(d).toLowerCase()]}function e(c,e){var b;do{b=a.curCSS(c,e);if(b!=""&&b!="transparent"||a.nodeName(c,"body"))break;e="backgroundColor"}while(c=c.parentNode);return d(b)}var c={aqua:[0,255,255],azure:[240,255,255],beige:[245,245,220],black:[0,0,0],blue:[0,0,255],brown:[165,42,42],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgrey:[169,169,169],darkgreen:[0,100,0],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkviolet:[148,0,211],fuchsia:[255,0,255],gold:[255,215,0],green:[0,128,0],indigo:[75,0,130],khaki:[240,230,140],lightblue:[173,216,230],lightcyan:[224,255,255],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightyellow:[255,255,224],lime:[0,255,0],magenta:[255,0,255],maroon:[128,0,0],navy:[0,0,128],olive:[128,128,0],orange:[255,165,0],pink:[255,192,203],purple:[128,0,128],violet:[128,0,128],red:[255,0,0],silver:[192,192,192],white:[255,255,255],yellow:[255,255,0],transparent:[255,255,255]};a.easing.jswing=a.easing.swing;a.extend(a.easing,{def:"easeOutQuad",swing:function(c,d,b,f,e){return a.easing[a.easing.def](c,d,b,f,e)},easeInQuad:function(e,a,b,d,c){return d*(a/=c)*a+b},easeOutQuad:function(e,a,b,d,c){return-d*(a/=c)*(a-2)+b},easeInOutQuad:function(e,a,b,c,d){return(a/=d/2)<1?c/2*a*a+b:-c/2*(--a*(a-2)-1)+b},easeInCubic:function(e,a,b,d,c){return d*(a/=c)*a*a+b},easeOutCubic:function(e,a,b,d,c){return d*((a=a/c-1)*a*a+1)+b},easeInOutCubic:function(e,a,b,c,d){return(a/=d/2)<1?c/2*a*a*a+b:c/2*((a-=2)*a*a+2)+b},easeInQuart:function(e,a,b,d,c){return d*(a/=c)*a*a*a+b},easeOutQuart:function(e,a,b,d,c){return-d*((a=a/c-1)*a*a*a-1)+b},easeInOutQuart:function(e,a,b,c,d){return(a/=d/2)<1?c/2*a*a*a*a+b:-c/2*((a-=2)*a*a*a-2)+b},easeInQuint:function(e,a,b,d,c){return d*(a/=c)*a*a*a*a+b},easeOutQuint:function(e,a,b,d,c){return d*((a=a/c-1)*a*a*a*a+1)+b},easeInOutQuint:function(e,a,b,c,d){return(a/=d/2)<1?c/2*a*a*a*a*a+b:c/2*((a-=2)*a*a*a*a+2)+b},easeInSine:function(e,c,b,a,d){return-a*Math.cos(c/d*(Math.PI/2))+a+b},easeOutSine:function(e,b,a,d,c){return d*Math.sin(b/c*(Math.PI/2))+a},easeInOutSine:function(e,b,a,d,c){return-d/2*(Math.cos(Math.PI*b/c)-1)+a},easeInExpo:function(e,b,a,d,c){return b==0?a:d*Math.pow(2,10*(b/c-1))+a},easeOutExpo:function(e,b,a,d,c){return b==c?a+d:d*(-Math.pow(2,-10*b/c)+1)+a},easeInOutExpo:function(e,a,b,c,d){return a==0?b:a==d?b+c:(a/=d/2)<1?c/2*Math.pow(2,10*(a-1))+b:c/2*(-Math.pow(2,-10*--a)+2)+b},easeInCirc:function(e,a,b,d,c){return-d*(Math.sqrt(1-(a/=c)*a)-1)+b},easeOutCirc:function(e,a,b,d,c){return d*Math.sqrt(1-(a=a/c-1)*a)+b},easeInOutCirc:function(e,a,b,c,d){return(a/=d/2)<1?-c/2*(Math.sqrt(1-a*a)-1)+b:c/2*(Math.sqrt(1-(a-=2)*a)+1)+b},easeInElastic:function(h,d,e,b,f){var g=1.70158,a=0,c=b;if(d==0)return e;if((d/=f)==1)return e+b;if(!a)a=f*.3;if(c<Math.abs(b)){c=b;var g=a/4}else var g=a/(2*Math.PI)*Math.asin(b/c);return-(c*Math.pow(2,10*(d-=1))*Math.sin((d*f-g)*(2*Math.PI)/a))+e},easeOutElastic:function(h,d,e,a,f){var g=1.70158,b=0,c=a;if(d==0)return e;if((d/=f)==1)return e+a;if(!b)b=f*.3;if(c<Math.abs(a)){c=a;var g=b/4}else var g=b/(2*Math.PI)*Math.asin(a/c);return c*Math.pow(2,-10*d)*Math.sin((d*f-g)*(2*Math.PI)/b)+a+e},easeInOutElastic:function(h,a,e,c,f){var g=1.70158,b=0,d=c;if(a==0)return e;if((a/=f/2)==2)return e+c;if(!b)b=f*(.3*1.5);if(d<Math.abs(c)){d=c;var g=b/4}else var g=b/(2*Math.PI)*Math.asin(c/d);return a<1?-.5*(d*Math.pow(2,10*(a-=1))*Math.sin((a*f-g)*(2*Math.PI)/b))+e:d*Math.pow(2,-10*(a-=1))*Math.sin((a*f-g)*(2*Math.PI)/b)*.5+c+e},easeInBack:function(f,b,c,e,d,a){if(a==undefined)a=1.70158;return e*(b/=d)*b*((a+1)*b-a)+c},easeOutBack:function(f,a,c,e,d,b){if(b==undefined)b=1.70158;return e*((a=a/d-1)*a*((b+1)*a+b)+1)+c},easeInOutBack:function(f,a,c,d,e,b){if(b==undefined)b=1.70158;return(a/=e/2)<1?d/2*(a*a*(((b*=1.525)+1)*a-b))+c:d/2*((a-=2)*a*(((b*=1.525)+1)*a+b)+2)+c},easeInBounce:function(e,f,d,c,b){return c-a.easing.easeOutBounce(e,b-f,0,c,b)+d},easeOutBounce:function(e,a,b,c,d){return(a/=d)<1/2.75?c*(7.5625*a*a)+b:a<2/2.75?c*(7.5625*(a-=1.5/2.75)*a+.75)+b:a<2.5/2.75?c*(7.5625*(a-=2.25/2.75)*a+.9375)+b:c*(7.5625*(a-=2.625/2.75)*a+.984375)+b},easeInOutBounce:function(f,c,e,d,b){return c<b/2?a.easing.easeInBounce(f,c*2,0,d,b)*.5+e:a.easing.easeOutBounce(f,c*2-b,0,d,b)*.5+d*.5+e}})}(jQuery);(function(a){a.effects.slide=function(b){return this.queue(function(){var c=a(this),i=["position","top","left"],g=a.effects.setMode(c,b.options.mode||"show"),d=b.options.direction||"left";a.effects.save(c,i);c.show();a.effects.createWrapper(c).css({overflow:"hidden"});var f=d=="up"||d=="down"?"top":"left",e=d=="up"||d=="left"?"pos":"neg",h=b.options.distance||(f=="top"?c.outerHeight({margin:true}):c.outerWidth({margin:true}));g=="show"&&c.css(f,e=="pos"?-h:h);var j={};j[f]=(g=="show"?e=="pos"?"+=":"-=":e=="pos"?"-=":"+=")+h;c.animate(j,{queue:false,duration:b.duration,easing:b.options.easing,complete:function(){g=="hide"&&c.hide();a.effects.restore(c,i);a.effects.removeWrapper(c);b.callback&&b.callback.apply(this,arguments);c.dequeue()}})})}})(jQuery);var constructorSimulaties=new Array(24);constructorSimulaties[0]={title:"Prosim Classic",branche:0,value1:3,value2:1,category:1,simulationText:"Wordt ingezet om de basis bedrijfseconomische principes en boekhouden te onderwijzen. De variabelen zijn beperkt waardoor de simulatie door eerste jaars studenten als zeer overzichtelijk wordt ervaren."};constructorSimulaties[1]={title:"ProSim Productie",branche:0,value1:1,value2:8,category:1,simulationText:"Geavanceerd simulatiespel voor hogere jaars studenten en professionals, waarin de productieketen van een chocoladefabriek zorgt voor ingewikkelde verbanden, die alleen zijn weggelegd voor gevorderde spelers."};constructorSimulaties[2]={title:"ProSim Advanced",branche:0,value1:3,value2:5,category:1,simulationText:"Meest populaire simulatie van Nederland over een handelsbedrijf met onderwerpen als strategie, balanced scorecard, marketing en hrm. Verbanden worden duidelijk, maar het is niet gemakkelijk de simulatie goed te spelen."};constructorSimulaties[3]={title:"Business Abroad Managementgame",branche:0,value1:3,value2:5,category:1,simulationText:"Handelen in het buitenland biedt kansen en uitdagingen, maar kent ook valkuilen. De Business Abroad Management simulatie maakt deelnemers hiervan bewust. Een vestigingskeus is opeens niet zo makkelijk meer."};constructorSimulaties[4]={title:"Businessklas",branche:0,value1:4,value2:1,category:1,simulationText:"Simulatie voor voortgezet onderwijs en MBO. Een eerste kennismaking met ondernemen en bedrijfseconomie."};constructorSimulaties[5]={title:"CityHall",branche:0,value1:8,value2:5,category:2,simulationText:"Gedurende 5 jaren ben je verantwoordelijk als college van Burgemeester &amp; Wethouders om zowel financiele als sociale doelstellingen te formuleren en te behalen."};constructorSimulaties[6]={title:"WoningCorporatieGame",branche:1,value1:5,value2:4,category:2,simulationText:"Hoe een balans te vinden tussen financieel resultaat en maatschappelijk rendement? Woningcorporaties dienen om te gaan met deze dubbele doelstellingen."};constructorSimulaties[7]={title:"CSR Game",branche:0,value1:7,value2:3,category:3,simulationText:"Weeg als het management van een fietsenfabriek diverse productiebeslissingen met maatschappelijke doelstellingen."};constructorSimulaties[8]={title:"Jong Ondernemen MBO",branche:0,value1:4,value2:1,category:3,simulationText:"De simulaties van de Stichting Jong Ondernemen zijn onderdeel van een standaard lespakket dat studenten stimuleert te gaan ondernemen."};constructorSimulaties[9]={title:"Jong Ondernemen HBO",branche:0,value1:4,value2:1,category:3,simulationText:"De simulaties van de Stichting Jong Ondernemen zijn onderdeel van een standaard lespakket dat studenten stimuleert te gaan ondernemen."};constructorSimulaties[10]={title:"Duurzaamheidskabinet",branche:0,value1:7,value2:2,category:3,simulationText:"Binnen het duurzaamheidskabinet ben je verantwoordelijk voor het runnen van de BV Nederland met als doel een toekomstperspectief te bieden voor nieuwe generaties."};constructorSimulaties[11]={title:"SBCM sociale werkplaats",branche:2,value1:9,value2:6,category:2,simulationText:"De Sociale Werkplaats Simulatie simuleert het reilen en zeilen binnen een SW bedrijf."};constructorSimulaties[12]={title:"Marketingcommunicatiegame",branche:0,value1:7,value2:4,category:4,simulationText:"Simulatiespel waarbinnen de deelnemers verantwoordelijk zijn voor het maken en uitvoeren van het beleid van een marketingcommunicatie afdeling van een groot bedrijf."};constructorSimulaties[13]={title:"AWBZ Simulatie",branche:2,value1:8,value2:3,category:5,simulationText:"Ben verantwoordelijk voor het dagelijks beleid van een AWBZ instelling en houdt rekening met overheid, patienten en medewerkers."};constructorSimulaties[14]={title:"Ziekenhuissimulatie",branche:2,value1:8,value2:6,category:5,simulationText:"Run een ziekenhuis en neem beslissingen over het zorgproces en alle bijkomende aspecten."};constructorSimulaties[15]={title:"De Pharma Game",branche:2,value1:5,value2:6,category:5,simulationText:"Marketingsimulatie voor de pharmacie, deze simulatie wordt aangeboden in samenwerking met Healthcare Management School."};constructorSimulaties[16]={title:"Touroperatorgame",branche:0,value1:3,value2:4,category:6,simulationText:"Binnen de touroperatorsimulatie ben je verantwoordelijk voor het strategisch beleid van een touroperator. Kies bestemmingen, regel alle financien en bepaal de capaciteiten."};constructorSimulaties[17]={title:"Supply Chain Managementgame",branche:0,value1:4,value2:6,category:7,simulationText:"In deze simulatie vormen diverse teams verschillende partijen binnen een logistieke keten. Kunnen de teams met elkaar een efficiente keten in het leven roepen?"};constructorSimulaties[18]={title:"Portfolio Manager Simulatie",branche:2,value1:1,value2:5,category:8,simulationText:"Als portfoliobeheerder van een beleggingsfonds dient een deelnemer op basis van een bepaald risicoprofiel het rendement te maximaliseren."};constructorSimulaties[19]={title:"Asset Management Simulation",branche:2,value1:5,value2:5,category:8,simulationText:"De Asset Management Simulatie is gebouwd voor managers van grote assets, zoals spooremplacementen en energiecentrales. Werk met de PAS55 norm om risico's te beheersen en resultaatdoelstellingen te behalen."};constructorSimulaties[20]={title:"De Beste Boer",branche:2,value1:4,value2:3,category:9,simulationText:"Als ondernemer van een gemengd agrarisch bedrijf wordt je gevraagd om diverse doelstellingen te behalen en het management te voeren over vee, financien en personeel."};constructorSimulaties[21]={title:"EnergyBoard",branche:2,value1:7,value2:6,category:9,simulationText:"Hoe om te gaan met strategisch voorraadbeheer, de leveringsplicht en de splitsingswet? EnergyBoard zet een energiebedrijf in de 'spotlights'."};constructorSimulaties[22]={title:"Rechtbank Casus Game",branche:0,value1:10,value2:4,category:10,simulationText:"Simulaties over het rechtsproces en het maken van wetten worden steeds belangrijker in een wereld die uit steeds meer procedures en regels bestaat. Deze game is nog in ontwikkeling. Wilt u een bijdrage leveren neem dan contact met ons op."};constructorSimulaties[23]={title:"Wellsociety simulator",branche:2,value1:9,value2:7,category:3,simulationText:"In Wellsocietysimulator leren deelnemers wat Maatschappelijk Betrokken Ondernemen (MBO) inhoudt en hoe zij dit bij een organisatie kunnen toepassen."};$(document).ready(function(){$(".choiseSlider").slider({handle:".ui-slider-handle",min:0,max:10,step:1,animate:true,value:5,change:function(){},start:function(){},stop:function(){},slide:function(b,a){$(this).find("input.choiseSliderValue").val(a.value);changeValue()}});$(".threeStepChoiseSlider").slider({handle:".ui-slider-handle",min:0,max:2,step:1,animate:true,value:1,change:function(){},start:function(){},stop:function(){},slide:function(b,a){$(this).find("input.choiseSliderValue").val(a.value);changeValue()}});$("#categoryDropdown").change(function(){changeValue()});changeValue()});function changeValue(){var l=0,e=9999,k=-1,c=constructorSimulaties.length,j=parseInt($("#brancheSlider input.choiseSliderValue").val()),h=parseInt($("#focusSlider input.choiseSliderValue").val()),i=parseInt($("#levelSlider input.choiseSliderValue").val()),d=parseInt($("#categoryDropdown").val());while(c--){var a=constructorSimulaties[c],b=0;b+=Math.abs(h-a.value1);b+=Math.abs(i-a.value2);if((d==0||a.category==d)&&b<e&&a.branche==j)e=b}c=constructorSimulaties.length;$("#simulationShow").html("");var g=1;while(c--){var a=constructorSimulaties[c],b=0;b+=Math.abs(h-a.value1);b+=Math.abs(i-a.value2);if((d==0||a.category==d)&&b==e&&g<5){var f=constructorSimulaties[c];$("#simulationShow").append("<h2>"+f.title+"</h2>");$("#simulationShow").append("<p>"+f.simulationText+"</p>");g++}}}var constructorSimulatiesB=new Array(4);constructorSimulatiesB[0]={title:"Prosim Classic",branche:0,value1:1,value2:1,category:1,simulationText:"hier de tekst over Prosim Classic"};constructorSimulatiesB[1]={title:"Prosim Advanced",branche:1,value1:3,value2:6,category:1,simulationText:"hier de tekst over "};constructorSimulatiesB[2]={title:"BAM",branche:2,value1:1,value2:2,category:2,simulationText:"hier de tekst over "};constructorSimulatiesB[3]={title:"BAM2",branche:2,value1:10,value2:10,category:10,simulationText:"hier de tekst over "};$(document).ready(function(){$(".choiseSliderB").slider({handle:".ui-slider-handle",min:0,max:10,step:1,animate:true,value:5,change:function(){},start:function(){},stop:function(){},slide:function(b,a){$(this).find("input.choiseSliderValueB").val(a.value);changeValueB()}});$(".threeStepChoiseSliderB").slider({handle:".ui-slider-handle",min:0,max:2,step:1,animate:true,value:1,change:function(){},start:function(){},stop:function(){},slide:function(b,a){$(this).find("input.choiseSliderValueB").val(a.value);changeValueB()}});$("#categoryDropdownB").change(function(){changeValueB()});changeValueB()});function changeValueB(){var k=0,g=9999,d=-1,c=constructorSimulatiesB.length,h=parseInt($("#brancheSlider input.choiseSliderValueB").val()),i=parseInt($("#onlineSlider input.choiseSliderValueB").val()),j=parseInt($("#educationSlider input.choiseSliderValueB").val()),f=parseInt($("#categoryDropdownB").val());while(c--){var a=constructorSimulatiesB[c],b=0;b+=Math.abs(i-a.value1);b+=Math.abs(j-a.value2);if((f==0||a.category==f)&&b<g&&a.branche==h){g=b;d=c}}if(d>-1){var e=constructorSimulatiesB[d];$("#simulationShowB").html("");$("#simulationShowB").append("<h2>"+e.title+"</h2>");$("#simulationShowB").append("<p>"+e.simulationText+"</p>")}}var constructorCaseSimulaties=new Array(22);constructorCaseSimulaties[0]={title:"Interpolis",link:"/over-ons-bedrijf/onze-klanten/interpolis",branche:0,value1:10,value2:7,category:0,simulationText:"<img src='/static/images/cases/interpolis.jpg' alt='Interpolis' />"};constructorCaseSimulaties[1]={title:"Ernst&Young",link:"/over-ons-bedrijf/onze-klanten/ernstenyoung",branche:0,value1:7,value2:8,category:0,simulationText:"<img src='/static/images/cases/ernstYoung.jpg' alt='Ernst & Young' />"};constructorCaseSimulaties[2]={title:"Fontys Hogescholen",link:"/over-ons-bedrijf/onze-klanten/fontys-hogescholen",branche:0,value1:0,value2:3,category:0,simulationText:"<img src='/static/images/cases/caseElse.jpg' alt='BAM' />"};constructorCaseSimulaties[3]={title:"Provincie Zuid-Holland",link:"/over-ons-bedrijf/onze-klanten/provincie-zuid-holland",branche:0,value1:6,value2:7,category:0,simulationText:"<img src='/static/images/cases/zuidHolland.jpg' alt='Provincie Zuid Holland' />"};constructorCaseSimulaties[4]={title:"Marug Studievereniging",link:"/over-ons-bedrijf/onze-klanten/marug-studievereniging",branche:0,value1:4,value2:7,category:0,simulationText:"<img src='/static/images/cases/marug.jpg' alt='Marug Studievereniging' />"};constructorCaseSimulaties[5]={title:"Gemeente Den Haag",link:"/over-ons-bedrijf/onze-klanten/gemeente-den-haag",branche:0,value1:5,value2:8,category:0,simulationText:"<img src='/static/images/cases/cityhallDenhaag.jpg' alt='Gemeente Den Haag' />"};constructorCaseSimulaties[6]={title:"TU Delft",link:"/over-ons-bedrijf/onze-klanten/tu-delft",branche:0,value1:5,value2:9,category:0,simulationText:"<img src='/static/images/cases/tuDelft.jpg' alt='TU Delft' />"};constructorCaseSimulaties[7]={title:"ABN AMRO",link:"/over-ons-bedrijf/onze-klanten/abnamro",branche:0,value1:5,value2:8,category:0,simulationText:"<img src='/static/images/cases/abnAmro.jpg' alt='ABN AMBRO' />"};constructorCaseSimulaties[8]={title:"ING",link:"/over-ons-bedrijf/onze-klanten/ing",branche:0,value1:8,value2:2,category:0,simulationText:"<img src='/static/images/cases/ING.jpg' alt='ING' />"};constructorCaseSimulaties[9]={title:"KPMG",link:"/over-ons-bedrijf/onze-klanten/kpmg",branche:0,value1:4,value2:4,category:0,simulationText:"<img src='/static/images/cases/KPMG.jpg' alt='KPMG' />"};constructorCaseSimulaties[10]={title:"Robeco",link:"/over-ons-bedrijf/onze-klanten/robeco",branche:0,value1:8,value2:8,category:0,simulationText:"<img src='/static/images/cases/robeco.jpg' alt='Robeco' />"};constructorCaseSimulaties[11]={title:"Essent",link:"/over-ons-bedrijf/onze-klanten/essent",branche:0,value1:9,value2:8,category:0,simulationText:"<img src='/static/images/cases/essent.jpg' alt='Essent' />"};constructorCaseSimulaties[12]={title:"De Woningstichting",link:"/over-ons-bedrijf/onze-klanten/de-woningstichting",branche:0,value1:9,value2:6,category:0,simulationText:"<img src='/static/images/cases/woningStichting.jpg' alt='De Woningstichting' />"};constructorCaseSimulaties[13]={title:"Hondsrug College",link:"/over-ons-bedrijf/onze-klanten/hondsrug-college",branche:0,value1:0,value2:1,category:0,simulationText:"<img src='/static/images/cases/hondsrug.jpg' alt='Hondsrug College' />"};constructorCaseSimulaties[14]={title:"Hogeschool van Amsterdam",link:"/over-ons-bedrijf/onze-klanten/hogeschool-van-amsterdam",branche:0,value1:2,value2:6,category:0,simulationText:"<img src='/static/images/cases/hva.jpg' alt='Hogeschool van Amsterdam' />"};constructorCaseSimulaties[15]={title:"VanLanschot Bankiers",link:"/over-ons-bedrijf/onze-klanten/vanlanschot-bankiers",branche:0,value1:6,value2:8,category:0,simulationText:"<img src='/static/images/cases/vanLanschot.jpg' alt='VanLanschot Bankiers' />"};constructorCaseSimulaties[16]={title:"Swisscom",link:"/over-ons-bedrijf/onze-klanten/swisscom",branche:0,value1:9,value2:5,category:0,simulationText:"<img src='/static/images/cases/swissCom.jpg' alt='Swisscom' />"};constructorCaseSimulaties[17]={title:"Equens",link:"/over-ons-bedrijf/onze-klanten/equens",branche:0,value1:8,value2:6,category:0,simulationText:"<img src='/static/images/cases/equens.jpg' alt='Equens' />"};constructorCaseSimulaties[18]={title:"Capgemini",link:"/over-ons-bedrijf/onze-klanten/capgemini",branche:0,value1:7,value2:7,category:0,simulationText:"<img src='/static/images/cases/capGemini.jpg' alt='Capgemini' />"};constructorCaseSimulaties[19]={title:"VRT Businessmaster",link:"/over-ons-bedrijf/onze-klanten/vrt-businessmaster",branche:0,value1:5,value2:5,category:0,simulationText:"<img src='/static/images/cases/vrt.jpg' alt='VRT Businessmaster' />"};constructorCaseSimulaties[20]={title:"Inholland Belgie Nederland Competitie",link:"/over-ons-bedrijf/onze-klanten/inholland-belgie-nederland-competitie",branche:0,value1:2,value2:6,category:0,simulationText:"<img src='/static/images/cases/belgNed.jpg' alt='Inholland Belgie Nederland' />"};constructorCaseSimulaties[21]={title:"Hondsrug College",link:"/over-ons-bedrijf/onze-klanten/hondsrug-college",branche:0,value1:1,value2:1,category:0,simulationText:"<img src='/static/images/cases/hondsrug.jpg' alt='Hondsrug College' />"};$(document).ready(function(){$(".choiseCaseSliderFocus").slider({handle:".ui-slider-handle",min:0,max:10,step:1,animate:true,value:$(".choiseCaseSliderFocus input.choiseCaseSliderValue").val(),change:function(){},start:function(){},stop:function(){},slide:function(b,a){$(this).find("input.choiseCaseSliderValue").val(a.value);changeCaseValue()}});$(".choiseCaseSliderLevel").slider({handle:".ui-slider-handle",min:0,max:10,step:1,animate:true,value:$(".choiseCaseSliderLevel input.choiseCaseSliderValue").val(),change:function(){},start:function(){},stop:function(){},slide:function(b,a){$(this).find("input.choiseCaseSliderValue").val(a.value);changeCaseValue()}});$("#categoryDropdownCase").change(function(){changeCaseValue()});changeCaseValue()});function changeCaseValue(){var l=0,f=9999,k=-1,c=constructorCaseSimulaties.length,j=parseInt($("input.choiseCaseBrancheValue").val()),g=parseInt($("#focusSlider input.choiseCaseSliderValue").val()),i=parseInt($("#levelSlider input.choiseCaseSliderValue").val()),e=parseInt($("input.categoryCaseDropdown").val());while(c--){var a=constructorCaseSimulaties[c],b=0;b+=Math.abs(g-a.value1);b+=Math.abs(i-a.value2);if((e==0||a.category==e)&&b<f&&a.value1==g&&a.branche==j)f=b}c=constructorCaseSimulaties.length;$("#simulationCaseShow").html("");var h=1;while(c--){var a=constructorCaseSimulaties[c],b=0;b+=Math.abs(g-a.value1);b+=Math.abs(i-a.value2);if((e==0||a.category==e)&&b==f&&h<5){var d=constructorCaseSimulaties[c];$("#simulationCaseShow").append('<h2 class="productTitle"><a href="'+d.link+'" >'+d.title+"</a></h2>");$("#simulationCaseShow").append('<p><a href="'+d.link+'" >'+d.simulationText+"</a></p>");h++}}}var constructorProductSimulaties=new Array(50);constructorProductSimulaties[0]={title:"Prosim Classic",link:"/simulaties-en-games/catalogus-simulaties-en-games/economie_-handel-en-bedrijf/prosim-classic",branche:0,value1:7,value2:1,simulationText:"Wordt ingezet om de basis bedrijfseconomische principes en boekhouden te onderwijzen. De variabelen zijn beperkt waardoor de simulatie door eerste jaars studenten als zeer overzichtelijk wordt ervaren."};constructorProductSimulaties[1]={title:"Prosim Classic",link:"/simulaties-en-games/catalogus-simulaties-en-games/economie_-handel-en-bedrijf/prosim-classic",branche:3,value1:7,value2:1,simulationText:"Wordt ingezet om de basis bedrijfseconomische principes en boekhouden te onderwijzen. De variabelen zijn beperkt waardoor de simulatie door eerste jaars studenten als zeer overzichtelijk wordt ervaren."};constructorProductSimulaties[2]={title:"ProSim Productie",link:"/simulaties-en-games/catalogus-simulaties-en-games/economie_-handel-en-bedrijf/ProSim-Productie",branche:0,value1:9,value2:8,simulationText:"Geavanceerd simulatiespel voor hogere jaars studenten en professionals, waarin de productieketen van een chocoladefabriek zorgt voor ingewikkelde verbanden, die alleen zijn weggelegd voor gevorderde spelers."};constructorProductSimulaties[3]={title:"ProSim Productie",link:"/simulaties-en-games/catalogus-simulaties-en-games/economie_-handel-en-bedrijf/ProSim-Productie",branche:2,value1:9,value2:8,simulationText:"Geavanceerd simulatiespel voor hogere jaars studenten en professionals, waarin de productieketen van een chocoladefabriek zorgt voor ingewikkelde verbanden, die alleen zijn weggelegd voor gevorderde spelers."};constructorProductSimulaties[4]={title:"ProSim Advanced",link:"/simulaties-en-games/catalogus-simulaties-en-games/economie_-handel-en-bedrijf/ProSim-Advanced",branche:0,value1:7,value2:5,simulationText:"Meest populaire simulatie van Nederland over een handelsbedrijf met onderwerpen als strategie, balanced scorecard, marketing en hrm. Verbanden worden duidelijk, maar het is niet gemakkelijk de simulatie goed te spelen."};constructorProductSimulaties[5]={title:"ProSim Advanced",link:"/simulaties-en-games/catalogus-simulaties-en-games/economie_-handel-en-bedrijf/ProSim-Advanced",branche:1,value1:7,value2:5,simulationText:"Meest populaire simulatie van Nederland over een handelsbedrijf met onderwerpen als strategie, balanced scorecard, marketing en hrm. Verbanden worden duidelijk, maar het is niet gemakkelijk de simulatie goed te spelen."};constructorProductSimulaties[6]={title:"ProSim Advanced",link:"/simulaties-en-games/catalogus-simulaties-en-games/economie_-handel-en-bedrijf/ProSim-Advanced",branche:2,value1:7,value2:5,simulationText:"Meest populaire simulatie van Nederland over een handelsbedrijf met onderwerpen als strategie, balanced scorecard, marketing en hrm. Verbanden worden duidelijk, maar het is niet gemakkelijk de simulatie goed te spelen."};constructorProductSimulaties[7]={title:"Business Abroad Managementgame",link:"/simulaties-en-games/catalogus-simulaties-en-games/economie_-handel-en-bedrijf/Business-Abroad-Managementgame",branche:0,value1:7,value2:5,simulationText:"Handelen in het buitenland biedt kansen en uitdagingen, maar kent ook valkuilen. De Business Abroad Management simulatie maakt deelnemers hiervan bewust. Een vestigingskeus is opeens niet zo makkelijk meer."};constructorProductSimulaties[8]={title:"Businessklas",link:"/simulaties-en-games/catalogus-simulaties-en-games/economie_-handel-en-bedrijf/Businessklas",branche:0,value1:6,value2:1,simulationText:"Simulatie voor voortgezet onderwijs en MBO. Een eerste kennismaking met ondernemen en bedrijfseconomie."};constructorProductSimulaties[9]={title:"CityHall",link:"/simulaties-en-games/catalogus-simulaties-en-games/overheid/CityHall",branche:0,value1:2,value2:5,simulationText:"Gedurende 5 jaren ben je verantwoordelijk als college van Burgemeester &amp; Wethouders om zowel financiele als sociale doelstellingen te formuleren en te behalen."};constructorProductSimulaties[10]={title:"CityHall",link:"/simulaties-en-games/catalogus-simulaties-en-games/overheid/CityHall",branche:1,value1:2,value2:5,simulationText:"Gedurende 5 jaren ben je verantwoordelijk als college van Burgemeester &amp; Wethouders om zowel financiele als sociale doelstellingen te formuleren en te behalen."};constructorProductSimulaties[11]={title:"WoningCorporatieGame",link:"/simulaties-en-games/catalogus-simulaties-en-games/overheid/WoningCorporatieGame",branche:0,value1:5,value2:4,simulationText:"Hoe een balans te vinden tussen financieel resultaat en maatschappelijk rendement? Woningcorporaties dienen om te gaan met deze dubbele doelstellingen."};constructorProductSimulaties[12]={title:"WoningCorporatieGame",link:"/simulaties-en-games/catalogus-simulaties-en-games/overheid/WoningCorporatieGame",branche:1,value1:5,value2:4,simulationText:"Hoe een balans te vinden tussen financieel resultaat en maatschappelijk rendement? Woningcorporaties dienen om te gaan met deze dubbele doelstellingen."};constructorProductSimulaties[13]={title:"WoningCorporatieGame",link:"/simulaties-en-games/catalogus-simulaties-en-games/overheid/WoningCorporatieGame",branche:2,value1:5,value2:4,simulationText:"Hoe een balans te vinden tussen financieel resultaat en maatschappelijk rendement? Woningcorporaties dienen om te gaan met deze dubbele doelstellingen."};constructorProductSimulaties[14]={title:"CSR Game",link:"/simulaties-en-games/catalogus-simulaties-en-games/(maatschappelijk)-ondernemen/CSR-Game",branche:0,value1:3,value2:3,simulationText:"Weeg als het management van een fietsenfabriek diverse productiebeslissingen met maatschappelijke doelstellingen."};constructorProductSimulaties[15]={title:"CSR Game",link:"/simulaties-en-games/catalogus-simulaties-en-games/(maatschappelijk)-ondernemen/CSR-Game",branche:1,value1:3,value2:3,simulationText:"Weeg als het management van een fietsenfabriek diverse productiebeslissingen met maatschappelijke doelstellingen."};constructorProductSimulaties[16]={title:"CSR Game",link:"/simulaties-en-games/catalogus-simulaties-en-games/(maatschappelijk)-ondernemen/CSR-Game",branche:2,value1:3,value2:3,simulationText:"Weeg als het management van een fietsenfabriek diverse productiebeslissingen met maatschappelijke doelstellingen."};constructorProductSimulaties[17]={title:"Jong Ondernemen MBO",link:"/simulaties-en-games/catalogus-simulaties-en-games/(maatschappelijk)-ondernemen/Jong-Ondernemen-MBO",branche:0,value1:6,value2:1,simulationText:"De simulaties van de Stichting Jong Ondernemen zijn onderdeel van een standaard lespakket dat studenten stimuleert te gaan ondernemen."};constructorProductSimulaties[18]={title:"Jong Ondernemen HBO",link:"/simulaties-en-games/catalogus-simulaties-en-games/(maatschappelijk)-ondernemen/Jong-Ondernemen-HBO",branche:0,value1:6,value2:1,simulationText:"De simulaties van de Stichting Jong Ondernemen zijn onderdeel van een standaard lespakket dat studenten stimuleert te gaan ondernemen."};constructorProductSimulaties[19]={title:"Duurzaamheidskabinet",link:"/simulaties-en-games/catalogus-simulaties-en-games/(maatschappelijk)-ondernemen/Duurzaamheidskabinet",branche:0,value1:3,value2:2,simulationText:"Binnen het duurzaamheidskabinet ben je verantwoordelijk voor het runnen van de BV Nederland met als doel een toekomstperspectief te bieden voor nieuwe generaties."};constructorProductSimulaties[20]={title:"Duurzaamheidskabinet",link:"/simulaties-en-games/catalogus-simulaties-en-games/(maatschappelijk)-ondernemen/Duurzaamheidskabinet",branche:1,value1:3,value2:2,simulationText:"Binnen het duurzaamheidskabinet ben je verantwoordelijk voor het runnen van de BV Nederland met als doel een toekomstperspectief te bieden voor nieuwe generaties."};constructorProductSimulaties[21]={title:"Duurzaamheidskabinet",link:"/simulaties-en-games/catalogus-simulaties-en-games/(maatschappelijk)-ondernemen/Duurzaamheidskabinet",branche:2,value1:3,value2:2,simulationText:"Binnen het duurzaamheidskabinet ben je verantwoordelijk voor het runnen van de BV Nederland met als doel een toekomstperspectief te bieden voor nieuwe generaties."};constructorProductSimulaties[22]={title:"Duurzaamheidskabinet",link:"/simulaties-en-games/catalogus-simulaties-en-games/(maatschappelijk)-ondernemen/Duurzaamheidskabinet",branche:3,value1:3,value2:2,simulationText:"Binnen het duurzaamheidskabinet ben je verantwoordelijk voor het runnen van de BV Nederland met als doel een toekomstperspectief te bieden voor nieuwe generaties."};constructorProductSimulaties[23]={title:"SBCM sociale werkplaats",link:"/simulaties-en-games/catalogus-simulaties-en-games/(maatschappelijk)-ondernemen/SBCM-sociale-werkplaats",branche:1,value1:1,value2:6,simulationText:"De Sociale Werkplaats Simulatie simuleert het reilen en zeilen binnen een SW bedrijf."};constructorProductSimulaties[24]={title:"SBCM sociale werkplaats",link:"/simulaties-en-games/catalogus-simulaties-en-games/(maatschappelijk)-ondernemen/SBCM-sociale-werkplaats",branche:2,value1:1,value2:6,simulationText:"De Sociale Werkplaats Simulatie simuleert het reilen en zeilen binnen een SW bedrijf."};constructorProductSimulaties[25]={title:"Marketingcommunicatiegame",link:"/simulaties-en-games/catalogus-simulaties-en-games/communicatie/MarketingcommunicatieGame",branche:0,value1:2,value2:4,simulationText:"Simulatiespel waarbinnen de deelnemers verantwoordelijk zijn voor het maken en uitvoeren van het beleid van een marketingcommunicatie afdeling van een groot bedrijf."};constructorProductSimulaties[26]={title:"AWBZ Simulatie",link:"/simulaties-en-games/catalogus-simulaties-en-games/zorg/AWBZ-Simulatie",branche:0,value1:2,value2:3,simulationText:"Ben verantwoordelijk voor het dagelijks beleid van een AWBZ instelling en houdt rekening met overheid, patienten en medewerkers."};constructorProductSimulaties[27]={title:"AWBZ Simulatie",link:"/simulaties-en-games/catalogus-simulaties-en-games/zorg/AWBZ-Simulatie",branche:1,value1:2,value2:3,simulationText:"Ben verantwoordelijk voor het dagelijks beleid van een AWBZ instelling en houdt rekening met overheid, patienten en medewerkers."};constructorProductSimulaties[28]={title:"AWBZ Simulatie",link:"/simulaties-en-games/catalogus-simulaties-en-games/zorg/AWBZ-Simulatie",branche:2,value1:2,value2:3,simulationText:"Ben verantwoordelijk voor het dagelijks beleid van een AWBZ instelling en houdt rekening met overheid, patienten en medewerkers."};constructorProductSimulaties[29]={title:"Ziekenhuissimulatie",link:"/simulaties-en-games/catalogus-simulaties-en-games/zorg/Ziekenhuissimulatie",branche:0,value1:2,value2:6,simulationText:"Run een ziekenhuis en neem beslissingen over het zorgproces en alle bijkomende aspecten."};constructorProductSimulaties[30]={title:"Ziekenhuissimulatie",link:"/simulaties-en-games/catalogus-simulaties-en-games/zorg/Ziekenhuissimulatie",branche:1,value1:2,value2:6,simulationText:"Run een ziekenhuis en neem beslissingen over het zorgproces en alle bijkomende aspecten."};constructorProductSimulaties[31]={title:"Ziekenhuissimulatie",link:"/simulaties-en-games/catalogus-simulaties-en-games/zorg/Ziekenhuissimulatie",branche:2,value1:2,value2:6,simulationText:"Run een ziekenhuis en neem beslissingen over het zorgproces en alle bijkomende aspecten."};constructorProductSimulaties[32]={title:"De Pharma Game",link:"/simulaties-en-games/catalogus-simulaties-en-games/zorg/De-Pharma-Game",branche:2,value1:6,value2:6,simulationText:"Marketingsimulatie voor de pharmacie, deze simulatie wordt aangeboden in samenwerking met Healthcare Management School."};constructorProductSimulaties[33]={title:"Touroperatorgame",link:"/simulaties-en-games/catalogus-simulaties-en-games/toerisme-en-vrije-tijd/Touroperatorgame",branche:0,value1:7,value2:4,simulationText:"Binnen de touroperatorsimulatie ben je verantwoordelijk voor het strategisch beleid van een touroperator. Kies bestemmingen, regel alle financien en bepaal de capaciteiten."};constructorProductSimulaties[34]={title:"Touroperatorgame",link:"/simulaties-en-games/catalogus-simulaties-en-games/toerisme-en-vrije-tijd/Touroperatorgame",branche:2,value1:7,value2:4,simulationText:"Binnen de touroperatorsimulatie ben je verantwoordelijk voor het strategisch beleid van een touroperator. Kies bestemmingen, regel alle financien en bepaal de capaciteiten."};constructorProductSimulaties[35]={title:"Supply Chain Managementgame",link:"/simulaties-en-games/catalogus-simulaties-en-games/logistiek/Supply-Chain-Managementgame",branche:0,value1:6,value2:6,simulationText:"In deze simulatie vormen diverse teams verschillende partijen binnen een logistieke keten. Kunnen de teams met elkaar een efficiente keten in het leven roepen?"};constructorProductSimulaties[36]={title:"Supply Chain Managementgame",link:"/simulaties-en-games/catalogus-simulaties-en-games/logistiek/Supply-Chain-Managementgame",branche:2,value1:6,value2:6,simulationText:"In deze simulatie vormen diverse teams verschillende partijen binnen een logistieke keten. Kunnen de teams met elkaar een efficiente keten in het leven roepen?"};constructorProductSimulaties[37]={title:"Portfolio Manager Simulatie",link:"/simulaties-en-games/catalogus-simulaties-en-games/vastgoed-en-beleggen/Portfolio-Manager-Simulatie",branche:1,value1:1,value2:9,simulationText:"Als portfoliobeheerder van een beleggingsfonds dient een deelnemer op basis van een bepaald risicoprofiel het rendement te maximaliseren."};constructorProductSimulaties[38]={title:"Portfolio Manager Simulatie",link:"/simulaties-en-games/catalogus-simulaties-en-games/vastgoed-en-beleggen/Portfolio-Manager-Simulatie",branche:2,value1:1,value2:9,simulationText:"Als portfoliobeheerder van een beleggingsfonds dient een deelnemer op basis van een bepaald risicoprofiel het rendement te maximaliseren."};constructorProductSimulaties[39]={title:"Asset Management Simulation",link:"/simulaties-en-games/catalogus-simulaties-en-games/vastgoed-en-beleggen/Asset-Management-Simulation",branche:2,value1:5,value2:5,simulationText:"De Asset Management Simulatie is gebouwd voor managers van grote assets, zoals spooremplacementen en energiecentrales. Werk met de PAS55 norm om risico's te beheersen en resultaatdoelstellingen te behalen."};constructorProductSimulaties[40]={title:"De Beste Boer",link:"/simulaties-en-games/catalogus-simulaties-en-games/energie-en-agrarisch/De-Beste-Boer",branche:0,value1:4,value2:3,simulationText:"Als ondernemer van een gemengd agrarisch bedrijf wordt je gevraagd om diverse doelstellingen te behalen en het management te voeren over vee, financien en personeel."};constructorProductSimulaties[41]={title:"De Beste Boer",link:"/simulaties-en-games/catalogus-simulaties-en-games/energie-en-agrarisch/De-Beste-Boer",branche:2,value1:4,value2:3,simulationText:"Als ondernemer van een gemengd agrarisch bedrijf wordt je gevraagd om diverse doelstellingen te behalen en het management te voeren over vee, financien en personeel."};constructorProductSimulaties[42]={title:"EnergyBoard",link:"/simulaties-en-games/catalogus-simulaties-en-games/energie-en-agrarisch/EnergyBoard",branche:2,value1:7,value2:6,simulationText:"Hoe om te gaan met strategisch voorraadbeheer, de leveringsplicht en de splitsingswet? EnergyBoard zet een energiebedrijf in de 'spotlights'."};constructorProductSimulaties[43]={title:"Rechtbank Casus Game",link:"/simulaties-en-games/catalogus-simulaties-en-games/juridisch/rechtbank-casus-game",branche:0,value1:0,value2:4,simulationText:"Simulaties over het rechtsproces en het maken van wetten worden steeds belangrijker in een wereld die uit steeds meer procedures en regels bestaat. Deze game is nog in ontwikkeling. Wilt u een bijdrage leveren neem dan contact met ons op."};constructorProductSimulaties[44]={title:"Wellsociety simulator",link:"/simulaties-en-games/catalogus-simulaties-en-games/(maatschappelijk)-ondernemen/WellSociety Simulator",branche:1,value1:1,value2:7,simulationText:"In Wellsocietysimulator leren deelnemers wat Maatschappelijk Betrokken Ondernemen (MBO) inhoudt en hoe zij dit bij een organisatie kunnen toepassen."};constructorProductSimulaties[45]={title:"Wellsociety simulator",link:"/simulaties-en-games/catalogus-simulaties-en-games/(maatschappelijk)-ondernemen/WellSociety Simulator",branche:2,value1:1,value2:7,simulationText:"In Wellsocietysimulator leren deelnemers wat Maatschappelijk Betrokken Ondernemen (MBO) inhoudt en hoe zij dit bij een organisatie kunnen toepassen."};constructorProductSimulaties[46]={title:"WK beurs competitie",link:"#",branche:0,value1:4,value2:4,simulationText:"Bij het Wereld Kampioenschap voetbal heeft Bedrijfssimulaties.nl samen met haar partner CareerID een spel bedacht. In het spel dienen deelnemers te handelen in de aandelen van een landenteam."};constructorProductSimulaties[47]={title:"WK beurs competitie",link:"#",branche:1,value1:4,value2:4,simulationText:"Bij het Wereld Kampioenschap voetbal heeft Bedrijfssimulaties.nl samen met haar partner CareerID een spel bedacht. In het spel dienen deelnemers te handelen in de aandelen van een landenteam."};constructorProductSimulaties[48]={title:"WK beurs competitie",link:"#",branche:2,value1:4,value2:4,simulationText:"Bij het Wereld Kampioenschap voetbal heeft Bedrijfssimulaties.nl samen met haar partner CareerID een spel bedacht. In het spel dienen deelnemers te handelen in de aandelen van een landenteam."};constructorProductSimulaties[49]={title:"WK beurs competitie",link:"#",branche:3,value1:4,value2:4,simulationText:"Bij het Wereld Kampioenschap voetbal heeft Bedrijfssimulaties.nl samen met haar partner CareerID een spel bedacht. In het spel dienen deelnemers te handelen in de aandelen van een landenteam."};$(document).ready(function(){$(".choiseProductSlider").slider({handle:".ui-slider-handle",min:0,max:10,step:1,animate:true,value:$(".choiseProductSlider").children("input.choiseProductSliderValue").val(),change:function(){},start:function(){},stop:function(){},slide:function(b,a){$(this).find("input.choiseProductSliderValue").val(a.value);changeProductValue()}});var b=$("input.choiseProdBranche").val(),a=$("#option"+b);$(a).attr("selected","selected");$("#brancheDropdown").change(function(){changeProductValue()});changeProductValue()});function changeProductValue(){var k=0,f=9999,j=-1,b=constructorProductSimulaties.length,h=$("#focusSlider input.choiseProductSliderValue").val(),i=$("#levelSlider input.choiseProductSliderValue").val(),e=$("#brancheDropdown").val();while(b--){var c=constructorProductSimulaties[b],a=0;a+=Math.abs(h-c.value1);a+=Math.abs(i-c.value2);if((e==0||c.branche==e)&&a<f)f=a}b=constructorProductSimulaties.length;$("#simulationProductShow").html("");var g=1;while(b--){var c=constructorProductSimulaties[b],a=0;a+=Math.abs(h-c.value1);a+=Math.abs(i-c.value2);if(c.branche==e&&a==f&&g<5){var d=constructorProductSimulaties[b];$("#simulationProductShow").append('<h2><a href="'+d.link+'">'+d.title+"</a></h2>");$("#simulationProductShow").append("<p>"+d.simulationText+"</p>");g++}}}function playMovie(e,b){$("#movieContent").append('<div class="closeButton"><span class="jqmClose">Sluiten</span></div>');$("#movieContent").append('<div id="movieObject"><div class="backgroundMovieObject"><p>U dient Adobe Flash Player 7.0 of hoger geinstalleerd te hebben om de film te bekijken.</p></div></div>');var d=function(a){$("#movieObject").remove();$("#movieContent .closeButton").remove();a.o.remove();$(".jqmMovie").hide()};$(".jqmMovie").jqm({onHide:d}).jqmShow();var c;if($.browser.msie)c={file:b,controlbar:"bottom",autostart:"true"};else c={file:b,autostart:"true"};var a=new SWFObject("/static/movie/mediaplayer.swf","ply","640","380","7","#ffffff");a.addParam("allowfullscreen","true");a.addParam("transition","blocks");a.addVariable("file",b);a.addVariable("autostart",1);a.write("movieObject")}$(document).ready(function(){$("#movieHome img").click(function(){playMovie("movieContent","intro.flv")});$("#movieHomeEN img").click(function(){playMovie("movieContent","intro.flv")});$("#movieHomeDE img").click(function(){playMovie("movieContent","intro.flv")});$("div.moviestripImage").hide();$("imageMapItem").each(function(){jQuery("<img>").attr("src",$(this).attr("alt"))});$(".imageMapItem").click(function(){return false});$(".imageMapItem").mouseover(function(){$(".moviestripImage").show();$(".moviestripImage").append("<img />");$(".moviestripImage img").attr("src",$(this).attr("alt"));for(var c=$(this).attr("alt"),a=4,b=1;b<5;b++)if(c.indexOf("_"+b)>-1)a=b;if(a==1||a==2)$(".moviestripImage").css("margin-left",26+(a-1)*174+"px");else $(".moviestripImage").css("margin-left",-164+(a-1)*174+"px")});$(".imageMapItem").mouseout(function(){$(".moviestripImage img").remove();$(".moviestripImage").hide()})});if(typeof deconcept=="undefined")var deconcept={};if(typeof deconcept.util=="undefined")deconcept.util={};if(typeof deconcept.SWFObjectUtil=="undefined")deconcept.SWFObjectUtil={};deconcept.SWFObject=function(b,a,j,i,c,h,d,e,f,g){if(!document.getElementById)return;this.DETECT_KEY=g?g:"detectflash";this.skipDetect=deconcept.util.getRequestParameter(this.DETECT_KEY);this.params={};this.variables={};this.attributes=[];b&&this.setAttribute("swf",b);a&&this.setAttribute("id",a);j&&this.setAttribute("width",j);i&&this.setAttribute("height",i);c&&this.setAttribute("version",new deconcept.PlayerVersion(c.toString().split(".")));this.installedVer=deconcept.SWFObjectUtil.getPlayerVersion();if(!window.opera&&document.all&&this.installedVer.major>7)deconcept.SWFObject.doPrepUnload=true;h&&this.addParam("bgcolor",h);var l=d?d:"high";this.addParam("quality",l);this.setAttribute("useExpressInstall",false);this.setAttribute("doExpressInstall",false);var k=e?e:window.location;this.setAttribute("xiRedirectUrl",k);this.setAttribute("redirectUrl","");f&&this.setAttribute("redirectUrl",f)};deconcept.SWFObject.prototype={useExpressInstall:function(a){this.xiSWFPath=!a?"expressinstall.swf":a;this.setAttribute("useExpressInstall",true)},setAttribute:function(a,b){this.attributes[a]=b},getAttribute:function(a){return this.attributes[a]},addParam:function(a,b){this.params[a]=b},getParams:function(){return this.params},addVariable:function(a,b){this.variables[a]=b},getVariable:function(a){return this.variables[a]},getVariables:function(){return this.variables},getVariablePairs:function(){var b=[],a,c=this.getVariables();for(a in c)b[b.length]=a+"="+c[a];return b},getSWFHTML:function(){var a="";if(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length){if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","PlugIn");this.setAttribute("swf",this.xiSWFPath)}a='<embed type="application/x-shockwave-flash" src="'+this.getAttribute("swf")+'" width="'+this.getAttribute("width")+'" height="'+this.getAttribute("height")+'" style="'+this.getAttribute("style")+'"';a+=' id="'+this.getAttribute("id")+'" name="'+this.getAttribute("id")+'" ';var c=this.getParams();for(var b in c)a+=[b]+'="'+c[b]+'" ';var d=this.getVariablePairs().join("&");if(d.length>0)a+='flashvars="'+d+'"';a+="/>"}else{if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","ActiveX");this.setAttribute("swf",this.xiSWFPath)}a='<object id="'+this.getAttribute("id")+'" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+this.getAttribute("width")+'" height="'+this.getAttribute("height")+'" style="'+this.getAttribute("style")+'">';a+='<param name="movie" value="'+this.getAttribute("swf")+'" />';var e=this.getParams();for(var b in e)a+='<param name="'+b+'" value="'+e[b]+'" />';var f=this.getVariablePairs().join("&");if(f.length>0)a+='<param name="flashvars" value="'+f+'" />';a+="</object>"}return a},write:function(a){if(this.getAttribute("useExpressInstall")){var b=new deconcept.PlayerVersion([6,0,65]);if(this.installedVer.versionIsValid(b)&&!this.installedVer.versionIsValid(this.getAttribute("version"))){this.setAttribute("doExpressInstall",true);this.addVariable("MMredirectURL",escape(this.getAttribute("xiRedirectUrl")));document.title=document.title.slice(0,47)+" - Flash Player Installation";this.addVariable("MMdoctitle",document.title)}}if(this.skipDetect||this.getAttribute("doExpressInstall")||this.installedVer.versionIsValid(this.getAttribute("version"))){var c=typeof a=="string"?document.getElementById(a):a;c.innerHTML=this.getSWFHTML();return true}else this.getAttribute("redirectUrl")!=""&&document.location.replace(this.getAttribute("redirectUrl"));return false}};deconcept.SWFObjectUtil.getPlayerVersion=function(){var b=new deconcept.PlayerVersion([0,0,0]);if(navigator.plugins&&navigator.mimeTypes.length){var d=navigator.plugins["Shockwave Flash"];if(d&&d.description)b=new deconcept.PlayerVersion(d.description.replace(/([a-zA-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split("."))}else if(navigator.userAgent&&navigator.userAgent.indexOf("Windows CE")>=0){var a=1,c=3;while(a)try{c++;a=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+c);b=new deconcept.PlayerVersion([c,0,0])}catch(e){a=null}}else{try{var a=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7")}catch(e){try{var a=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");b=new deconcept.PlayerVersion([6,0,21]);a.AllowScriptAccess="always"}catch(e){if(b.major==6)return b}try{a=new ActiveXObject("ShockwaveFlash.ShockwaveFlash")}catch(e){}}if(a!=null)b=new deconcept.PlayerVersion(a.GetVariable("$version").split(" ")[1].split(","))}return b};deconcept.PlayerVersion=function(a){this.major=a[0]!=null?parseInt(a[0]):0;this.minor=a[1]!=null?parseInt(a[1]):0;this.rev=a[2]!=null?parseInt(a[2]):0};deconcept.PlayerVersion.prototype.versionIsValid=function(a){return this.major<a.major?false:this.major>a.major?true:this.minor<a.minor?false:this.minor>a.minor?true:this.rev<a.rev?false:true};deconcept.util={getRequestParameter:function(d){var c=document.location.search||document.location.hash;if(d==null)return c;if(c)for(var b=c.substring(1).split("&"),a=0;a<b.length;a++)if(b[a].substring(0,b[a].indexOf("="))==d)return b[a].substring(b[a].indexOf("=")+1);return""}};deconcept.SWFObjectUtil.cleanupSWFs=function(){for(var b=document.getElementsByTagName("OBJECT"),a=b.length-1;a>=0;a--){b[a].style.display="none";for(var c in b[a])if(typeof b[a][c]=="function")b[a][c]=function(){}}};if(deconcept.SWFObject.doPrepUnload)if(!deconcept.unloadSet){deconcept.SWFObjectUtil.prepUnload=function(){__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){};window.attachEvent("onunload",deconcept.SWFObjectUtil.cleanupSWFs)};window.attachEvent("onbeforeunload",deconcept.SWFObjectUtil.prepUnload);deconcept.unloadSet=true}if(!document.getElementById&&document.all)document.getElementById=function(a){return document.all[a]};var getQueryParamValue=deconcept.util.getRequestParameter,FlashObject=deconcept.SWFObject,SWFObject=deconcept.SWFObject
