
(function(c){var i=c.fn.remove,d=c.browser.mozilla&&(parseFloat(c.browser.version)<1.9);c.ui={version:"1.6rc6",plugin:{add:function(k,l,n){var m=c.ui[k].prototype;for(var j in n){m.plugins[j]=m.plugins[j]||[];m.plugins[j].push([l,n[j]])}},call:function(j,l,k){var n=j.plugins[l];if(!n){return}for(var m=0;m<n.length;m++){if(j.options[n[m][0]]){n[m][1].apply(j.element,k)}}}},contains:function(k,j){return document.compareDocumentPosition?k.compareDocumentPosition(j)&16:k!==j&&k.contains(j)},cssCache:{},css:function(j){if(c.ui.cssCache[j]){return c.ui.cssCache[j]}var k=c('<div class="ui-gen"></div>').addClass(j).css({position:"absolute",top:"-5000px",left:"-5000px",display:"block"}).appendTo("body");c.ui.cssCache[j]=!!((!(/auto|default/).test(k.css("cursor"))||(/^[1-9]/).test(k.css("height"))||(/^[1-9]/).test(k.css("width"))||!(/none/).test(k.css("backgroundImage"))||!(/transparent|rgba\(0, 0, 0, 0\)/).test(k.css("backgroundColor"))));try{c("body").get(0).removeChild(k.get(0))}catch(l){}return c.ui.cssCache[j]},hasScroll:function(m,k){if(c(m).css("overflow")=="hidden"){return false}var j=(k&&k=="left")?"scrollLeft":"scrollTop",l=false;if(m[j]>0){return true}m[j]=1;l=(m[j]>0);m[j]=0;return l},isOverAxis:function(k,j,l){return(k>j)&&(k<(j+l))},isOver:function(o,k,n,m,j,l){return c.ui.isOverAxis(o,n,j)&&c.ui.isOverAxis(k,m,l)},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(d){var f=c.attr,e=c.fn.removeAttr,h="http://www.w3.org/2005/07/aaa",a=/^aria-/,b=/^wairole:/;c.attr=function(k,j,l){var m=l!==undefined;return(j=="role"?(m?f.call(this,k,j,"wairole:"+l):(f.apply(this,arguments)||"").replace(b,"")):(a.test(j)?(m?k.setAttributeNS(h,j.replace(a,"aaa:"),l):f.call(this,k,j.replace(a,"aaa:"))):f.apply(this,arguments)))};c.fn.removeAttr=function(j){return(a.test(j)?this.each(function(){this.removeAttributeNS(h,j.replace(a,""))}):e.call(this,j))}}c.fn.extend({remove:function(){c("*",this).add(this).each(function(){c(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 j;if((c.browser.msie&&(/(static|relative)/).test(this.css("position")))||(/absolute/).test(this.css("position"))){j=this.parents().filter(function(){return(/(relative|absolute|fixed)/).test(c.curCSS(this,"position",1))&&(/(auto|scroll)/).test(c.curCSS(this,"overflow",1)+c.curCSS(this,"overflow-y",1)+c.curCSS(this,"overflow-x",1))}).eq(0)}else{j=this.parents().filter(function(){return(/(auto|scroll)/).test(c.curCSS(this,"overflow",1)+c.curCSS(this,"overflow-y",1)+c.curCSS(this,"overflow-x",1))}).eq(0)}return(/fixed/).test(this.css("position"))||!j.length?c(document):j}});c.extend(c.expr[":"],{data:function(l,k,j){return!!c.data(l,j[3])},focusable:function(k){var l=k.nodeName.toLowerCase(),j=c.attr(k,"tabindex");return(/input|select|textarea|button|object/.test(l)?!k.disabled:"a"==l||"area"==l?k.href||!isNaN(j):!isNaN(j))&&!c(k)["area"==l?"parents":"closest"](":hidden").length},tabbable:function(k){var j=c.attr(k,"tabindex");return(isNaN(j)||j>=0)&&c(k).is(":focusable")}});function g(m,n,o,l){function k(q){var p=c[m][n][q]||[];return(typeof p=="string"?p.split(/,?\s+/):p)}var j=k("getter");if(l.length==1&&typeof l[0]=="string"){j=j.concat(k("getterSetter"))}return(c.inArray(o,j)!=-1)}c.widget=function(k,j){var l=k.split(".")[0];k=k.split(".")[1];c.fn[k]=function(p){var n=(typeof p=="string"),o=Array.prototype.slice.call(arguments,1);if(n&&p.substring(0,1)=="_"){return this}if(n&&g(l,k,p,o)){var m=c.data(this[0],k);return(m?m[p].apply(m,o):undefined)}return this.each(function(){var q=c.data(this,k);(!q&&!n&&c.data(this,k,new c[l][k](this,p))._init());(q&&n&&c.isFunction(q[p])&&q[p].apply(q,o))})};c[l]=c[l]||{};c[l][k]=function(o,n){var m=this;this.namespace=l;this.widgetName=k;this.widgetEventPrefix=c[l][k].eventPrefix||k;this.widgetBaseClass=l+"-"+k;this.options=c.extend({},c.widget.defaults,c[l][k].defaults,c.metadata&&c.metadata.get(o)[k],n);this.element=c(o).bind("setData."+k,function(q,p,r){if(q.target==o){return m._setData(p,r)}}).bind("getData."+k,function(q,p){if(q.target==o){return m._getData(p)}}).bind("remove",function(){return m.destroy()})};c[l][k].prototype=c.extend({},c.widget.prototype,j);c[l][k].getterSetter="option"};c.widget.prototype={_init:function(){},destroy:function(){this.element.removeData(this.widgetName).removeClass(this.widgetBaseClass+"-disabled "+this.namespace+"-state-disabled").removeAttr("aria-disabled")},option:function(l,m){var k=l,j=this;if(typeof l=="string"){if(m===undefined){return this._getData(l)}k={};k[l]=m}c.each(k,function(n,o){j._setData(n,o)})},_getData:function(j){return this.options[j]},_setData:function(j,k){this.options[j]=k;if(j=="disabled"){this.element[k?"addClass":"removeClass"](this.widgetBaseClass+"-disabled "+this.namespace+"-state-disabled").attr("aria-disabled",k)}},enable:function(){this._setData("disabled",false)},disable:function(){this._setData("disabled",true)},_trigger:function(l,m,n){var p=this.options[l],j=(l==this.widgetEventPrefix?l:this.widgetEventPrefix+l);m=c.Event(m);m.type=j;if(m.originalEvent){for(var k=c.event.props.length,o;k;){o=c.event.props[--k];m[o]=m.originalEvent[o]}}this.element.trigger(m,n);return!(c.isFunction(p)&&p.call(this.element[0],m,n)===false||m.isDefaultPrevented())}};c.widget.defaults={disabled:false};c.ui.mouse={_mouseInit:function(){var j=this;this.element.bind("mousedown."+this.widgetName,function(k){return j._mouseDown(k)}).bind("click."+this.widgetName,function(k){if(j._preventClickEvent){j._preventClickEvent=false;return false}});if(c.browser.msie){this._mouseUnselectable=this.element.attr("unselectable");this.element.attr("unselectable","on")}this.started=false},_mouseDestroy:function(){this.element.unbind("."+this.widgetName);(c.browser.msie&&this.element.attr("unselectable",this._mouseUnselectable))},_mouseDown:function(l){if(l.originalEvent.mouseHandled){return}(this._mouseStarted&&this._mouseUp(l));this._mouseDownEvent=l;var k=this,m=(l.which==1),j=(typeof this.options.cancel=="string"?c(l.target).parents().add(l.target).filter(this.options.cancel).length:false);if(!m||j||!this._mouseCapture(l)){return true}this.mouseDelayMet=!this.options.delay;if(!this.mouseDelayMet){this._mouseDelayTimer=setTimeout(function(){k.mouseDelayMet=true},this.options.delay)}if(this._mouseDistanceMet(l)&&this._mouseDelayMet(l)){this._mouseStarted=(this._mouseStart(l)!==false);if(!this._mouseStarted){l.preventDefault();return true}}this._mouseMoveDelegate=function(n){return k._mouseMove(n)};this._mouseUpDelegate=function(n){return k._mouseUp(n)};c(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate);(c.browser.safari||l.preventDefault());l.originalEvent.mouseHandled=true;return true},_mouseMove:function(j){if(c.browser.msie&&!j.button){return this._mouseUp(j)}if(this._mouseStarted){this._mouseDrag(j);return j.preventDefault()}if(this._mouseDistanceMet(j)&&this._mouseDelayMet(j)){this._mouseStarted=(this._mouseStart(this._mouseDownEvent,j)!==false);(this._mouseStarted?this._mouseDrag(j):this._mouseUp(j))}return!this._mouseStarted},_mouseUp:function(j){c(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate);if(this._mouseStarted){this._mouseStarted=false;this._preventClickEvent=true;this._mouseStop(j)}return false},_mouseDistanceMet:function(j){return(Math.max(Math.abs(this._mouseDownEvent.pageX-j.pageX),Math.abs(this._mouseDownEvent.pageY-j.pageY))>=this.options.distance)},_mouseDelayMet:function(j){return this.mouseDelayMet},_mouseStart:function(j){},_mouseDrag:function(j){},_mouseStop:function(j){},_mouseCapture:function(j){return true}};c.ui.mouse.defaults={cancel:null,distance:1,delay:0}})(jQuery);;(function(d){d.effects=d.effects||{};d.extend(d.effects,{version:"1.6rc6",save:function(g,h){for(var f=0;f<h.length;f++){if(h[f]!==null){g.data("ec.storage."+h[f],g[0].style[h[f]])}}},restore:function(g,h){for(var f=0;f<h.length;f++){if(h[f]!==null){g.css(h[f],g.data("ec.storage."+h[f]))}}},setMode:function(f,g){if(g=="toggle"){g=f.is(":hidden")?"show":"hide"}return g},getBaseline:function(g,h){var i,f;switch(g[0]){case"top":i=0;break;case"middle":i=0.5;break;case"bottom":i=1;break;default:i=g[0]/h.height}switch(g[1]){case"left":f=0;break;case"center":f=0.5;break;case"right":f=1;break;default:f=g[1]/h.width}return{x:f,y:i}},createWrapper:function(f){if(f.parent().is(".ui-effects-wrapper")){return f.parent()}var g={width:f.outerWidth(true),height:f.outerHeight(true),"float":f.css("float")};f.wrap('<div class="ui-effects-wrapper" style="font-size:100%;background:transparent;border:none;margin:0;padding:0"></div>');var j=f.parent();if(f.css("position")=="static"){j.css({position:"relative"});f.css({position:"relative"})}else{var i=f.css("top");if(isNaN(parseInt(i,10))){i="auto"}var h=f.css("left");if(isNaN(parseInt(h,10))){h="auto"}j.css({position:f.css("position"),top:i,left:h,zIndex:f.css("z-index")}).show();f.css({position:"relative",top:0,left:0})}j.css(g);return j},removeWrapper:function(f){if(f.parent().is(".ui-effects-wrapper")){return f.parent().replaceWith(f)}return f},setTransition:function(g,i,f,h){h=h||{};d.each(i,function(k,j){unit=g.cssUnit(j);if(unit[0]>0){h[j]=unit[0]*f+unit[1]}});return h},animateClass:function(h,i,k,j){var f=(typeof k=="function"?k:(j?j:null));var g=(typeof k=="string"?k:null);return this.each(function(){var q={};var o=d(this);var p=o.attr("style")||"";if(typeof p=="object"){p=p.cssText}if(h.toggle){o.hasClass(h.toggle)?h.remove=h.toggle:h.add=h.toggle}var l=d.extend({},(document.defaultView?document.defaultView.getComputedStyle(this,null):this.currentStyle));if(h.add){o.addClass(h.add)}if(h.remove){o.removeClass(h.remove)}var m=d.extend({},(document.defaultView?document.defaultView.getComputedStyle(this,null):this.currentStyle));if(h.add){o.removeClass(h.add)}if(h.remove){o.addClass(h.remove)}for(var r in m){if(typeof m[r]!="function"&&m[r]&&r.indexOf("Moz")==-1&&r.indexOf("length")==-1&&m[r]!=l[r]&&(r.match(/color/i)||(!r.match(/color/i)&&!isNaN(parseInt(m[r],10))))&&(l.position!="static"||(l.position=="static"&&!r.match(/left|top|bottom|right/)))){q[r]=m[r]}}o.animate(q,i,g,function(){if(typeof d(this).attr("style")=="object"){d(this).attr("style")["cssText"]="";d(this).attr("style")["cssText"]=p}else{d(this).attr("style",p)}if(h.add){d(this).addClass(h.add)}if(h.remove){d(this).removeClass(h.remove)}if(f){f.apply(this,arguments)}})})}});function c(g,f){var i=g[1]&&g[1].constructor==Object?g[1]:{};if(f){i.mode=f}var h=g[1]&&g[1].constructor!=Object?g[1]:i.duration;h=d.fx.off?0:typeof h==="number"?h:d.fx.speeds[h]||d.fx.speeds._default;var j=i.callback||(d.isFunction(g[2])&&g[2])||(d.isFunction(g[3])&&g[3]);return[g[0],i,h,j]}d.fn.extend({_show:d.fn.show,_hide:d.fn.hide,__toggle:d.fn.toggle,_addClass:d.fn.addClass,_removeClass:d.fn.removeClass,_toggleClass:d.fn.toggleClass,effect:function(g,f,h,i){return d.effects[g]?d.effects[g].call(this,{method:g,options:f||{},duration:h,callback:i}):null},show:function(){if(!arguments[0]||(arguments[0].constructor==Number||(/(slow|normal|fast)/).test(arguments[0]))){return this._show.apply(this,arguments)}else{return this.effect.apply(this,c(arguments,"show"))}},hide:function(){if(!arguments[0]||(arguments[0].constructor==Number||(/(slow|normal|fast)/).test(arguments[0]))){return this._hide.apply(this,arguments)}else{return this.effect.apply(this,c(arguments,"hide"))}},toggle:function(){if(!arguments[0]||(arguments[0].constructor==Number||(/(slow|normal|fast)/).test(arguments[0]))||(arguments[0].constructor==Function)){return this.__toggle.apply(this,arguments)}else{return this.effect.apply(this,c(arguments,"toggle"))}},addClass:function(g,f,i,h){return f?d.effects.animateClass.apply(this,[{add:g},f,i,h]):this._addClass(g)},removeClass:function(g,f,i,h){return f?d.effects.animateClass.apply(this,[{remove:g},f,i,h]):this._removeClass(g)},toggleClass:function(g,f,i,h){return((typeof f!=="boolean")&&f)?d.effects.animateClass.apply(this,[{toggle:g},f,i,h]):this._toggleClass(g,f)},morph:function(f,h,g,j,i){return d.effects.animateClass.apply(this,[{add:h,remove:f},g,j,i])},switchClass:function(){return this.morph.apply(this,arguments)},cssUnit:function(f){var g=this.css(f),h=[];d.each(["em","px","%","pt"],function(j,k){if(g.indexOf(k)>0){h=[parseFloat(g),k]}});return h}});d.each(["backgroundColor","borderBottomColor","borderLeftColor","borderRightColor","borderTopColor","color","outlineColor"],function(g,f){d.fx.step[f]=function(h){if(h.state==0){h.start=e(h.elem,f);h.end=b(h.end)}h.elem.style[f]="rgb("+[Math.max(Math.min(parseInt((h.pos*(h.end[0]-h.start[0]))+h.start[0],10),255),0),Math.max(Math.min(parseInt((h.pos*(h.end[1]-h.start[1]))+h.start[1],10),255),0),Math.max(Math.min(parseInt((h.pos*(h.end[2]-h.start[2]))+h.start[2],10),255),0)].join(",")+")"}});function b(g){var f;if(g&&g.constructor==Array&&g.length==3){return g}if(f=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(g)){return[parseInt(f[1],10),parseInt(f[2],10),parseInt(f[3],10)]}if(f=/rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(g)){return[parseFloat(f[1])*2.55,parseFloat(f[2])*2.55,parseFloat(f[3])*2.55]}if(f=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(g)){return[parseInt(f[1],16),parseInt(f[2],16),parseInt(f[3],16)]}if(f=/#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(g)){return[parseInt(f[1]+f[1],16),parseInt(f[2]+f[2],16),parseInt(f[3]+f[3],16)]}if(f=/rgba\(0, 0, 0, 0\)/.exec(g)){return a.transparent}return a[d.trim(g).toLowerCase()]}function e(h,f){var g;do{g=d.curCSS(h,f);if(g!=""&&g!="transparent"||d.nodeName(h,"body")){break}f="backgroundColor"}while(h=h.parentNode);return b(g)}var a={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]};d.easing.jswing=d.easing.swing;d.extend(d.easing,{def:"easeOutQuad",swing:function(g,h,f,j,i){return d.easing[d.easing.def](g,h,f,j,i)},easeInQuad:function(g,h,f,j,i){return j*(h/=i)*h+f},easeOutQuad:function(g,h,f,j,i){return-j*(h/=i)*(h-2)+f},easeInOutQuad:function(g,h,f,j,i){if((h/=i/2)<1){return j/2*h*h+f}return-j/2*((--h)*(h-2)-1)+f},easeInCubic:function(g,h,f,j,i){return j*(h/=i)*h*h+f},easeOutCubic:function(g,h,f,j,i){return j*((h=h/i-1)*h*h+1)+f},easeInOutCubic:function(g,h,f,j,i){if((h/=i/2)<1){return j/2*h*h*h+f}return j/2*((h-=2)*h*h+2)+f},easeInQuart:function(g,h,f,j,i){return j*(h/=i)*h*h*h+f},easeOutQuart:function(g,h,f,j,i){return-j*((h=h/i-1)*h*h*h-1)+f},easeInOutQuart:function(g,h,f,j,i){if((h/=i/2)<1){return j/2*h*h*h*h+f}return-j/2*((h-=2)*h*h*h-2)+f},easeInQuint:function(g,h,f,j,i){return j*(h/=i)*h*h*h*h+f},easeOutQuint:function(g,h,f,j,i){return j*((h=h/i-1)*h*h*h*h+1)+f},easeInOutQuint:function(g,h,f,j,i){if((h/=i/2)<1){return j/2*h*h*h*h*h+f}return j/2*((h-=2)*h*h*h*h+2)+f},easeInSine:function(g,h,f,j,i){return-j*Math.cos(h/i*(Math.PI/2))+j+f},easeOutSine:function(g,h,f,j,i){return j*Math.sin(h/i*(Math.PI/2))+f},easeInOutSine:function(g,h,f,j,i){return-j/2*(Math.cos(Math.PI*h/i)-1)+f},easeInExpo:function(g,h,f,j,i){return(h==0)?f:j*Math.pow(2,10*(h/i-1))+f},easeOutExpo:function(g,h,f,j,i){return(h==i)?f+j:j*(-Math.pow(2,-10*h/i)+1)+f},easeInOutExpo:function(g,h,f,j,i){if(h==0){return f}if(h==i){return f+j}if((h/=i/2)<1){return j/2*Math.pow(2,10*(h-1))+f}return j/2*(-Math.pow(2,-10*--h)+2)+f},easeInCirc:function(g,h,f,j,i){return-j*(Math.sqrt(1-(h/=i)*h)-1)+f},easeOutCirc:function(g,h,f,j,i){return j*Math.sqrt(1-(h=h/i-1)*h)+f},easeInOutCirc:function(g,h,f,j,i){if((h/=i/2)<1){return-j/2*(Math.sqrt(1-h*h)-1)+f}return j/2*(Math.sqrt(1-(h-=2)*h)+1)+f},easeInElastic:function(g,i,f,m,l){var j=1.70158;var k=0;var h=m;if(i==0){return f}if((i/=l)==1){return f+m}if(!k){k=l*0.3}if(h<Math.abs(m)){h=m;var j=k/4}else{var j=k/(2*Math.PI)*Math.asin(m/h)}return-(h*Math.pow(2,10*(i-=1))*Math.sin((i*l-j)*(2*Math.PI)/k))+f},easeOutElastic:function(g,i,f,m,l){var j=1.70158;var k=0;var h=m;if(i==0){return f}if((i/=l)==1){return f+m}if(!k){k=l*0.3}if(h<Math.abs(m)){h=m;var j=k/4}else{var j=k/(2*Math.PI)*Math.asin(m/h)}return h*Math.pow(2,-10*i)*Math.sin((i*l-j)*(2*Math.PI)/k)+m+f},easeInOutElastic:function(g,i,f,m,l){var j=1.70158;var k=0;var h=m;if(i==0){return f}if((i/=l/2)==2){return f+m}if(!k){k=l*(0.3*1.5)}if(h<Math.abs(m)){h=m;var j=k/4}else{var j=k/(2*Math.PI)*Math.asin(m/h)}if(i<1){return-0.5*(h*Math.pow(2,10*(i-=1))*Math.sin((i*l-j)*(2*Math.PI)/k))+f}return h*Math.pow(2,-10*(i-=1))*Math.sin((i*l-j)*(2*Math.PI)/k)*0.5+m+f},easeInBack:function(g,h,f,k,j,i){if(i==undefined){i=1.70158}return k*(h/=j)*h*((i+1)*h-i)+f},easeOutBack:function(g,h,f,k,j,i){if(i==undefined){i=1.70158}return k*((h=h/j-1)*h*((i+1)*h+i)+1)+f},easeInOutBack:function(g,h,f,k,j,i){if(i==undefined){i=1.70158}if((h/=j/2)<1){return k/2*(h*h*(((i*=(1.525))+1)*h-i))+f}return k/2*((h-=2)*h*(((i*=(1.525))+1)*h+i)+2)+f},easeInBounce:function(g,h,f,j,i){return j-d.easing.easeOutBounce(g,i-h,0,j,i)+f},easeOutBounce:function(g,h,f,j,i){if((h/=i)<(1/2.75)){return j*(7.5625*h*h)+f}else{if(h<(2/2.75)){return j*(7.5625*(h-=(1.5/2.75))*h+0.75)+f}else{if(h<(2.5/2.75)){return j*(7.5625*(h-=(2.25/2.75))*h+0.9375)+f}else{return j*(7.5625*(h-=(2.625/2.75))*h+0.984375)+f}}}},easeInOutBounce:function(g,h,f,j,i){if(h<i/2){return d.easing.easeInBounce(g,h*2,0,j,i)*0.5+f}return d.easing.easeOutBounce(g,h*2-i,0,j,i)*0.5+j*0.5+f}})})(jQuery);;(function($){$.effects.highlight=function(o){return this.queue(function(){var el=$(this),props=['backgroundImage','backgroundColor','opacity'];var mode=$.effects.setMode(el,o.options.mode||'show');var color=o.options.color||"#ffff99";var oldColor=el.css("backgroundColor");$.effects.save(el,props);el.show();el.css({backgroundImage:'none',backgroundColor:color});var animation={backgroundColor:oldColor};if(mode=="hide")animation['opacity']=0;el.animate(animation,{queue:false,duration:o.duration,easing:o.options.easing,complete:function(){if(mode=="hide")el.hide();$.effects.restore(el,props);if(mode=="show"&&$.browser.msie)this.style.removeAttribute('filter');if(o.callback)o.callback.apply(this,arguments);el.dequeue();}});});};})(jQuery);if(typeof(G4TV.Search)==='undefined'){G4TV.Search={};}
var tmpArray=[];G4TV.Search.Filters=[];G4TV.Search.Filters["genre"]=new Array();tmpArray["filter_title"]="Genres";tmpArray["Educational"]="Educational";tmpArray["Compilation"]="Compilation";tmpArray["Editor"]="Editor";tmpArray["Fighting"]="Fighting";tmpArray["Casino"]="Casino";tmpArray["Action"]="Action";tmpArray["Card"]="Card";tmpArray["Battle"]="Battle";tmpArray["Board"]="Board";tmpArray["Adventure"]="Adventure";tmpArray["Party"]="Party";tmpArray["Hunting"]="Hunting";tmpArray["Music"]="Music";tmpArray["Flight"]="Flight";tmpArray["Hardware"]="Hardware";tmpArray["RPG"]="RPG";tmpArray["Platformer"]="Platformer";tmpArray["Other"]="Other";tmpArray["Pinball"]="Pinball";tmpArray["Racing"]="Racing";tmpArray["Productivity"]="Productivity";tmpArray["Shooter"]="Shooter";tmpArray["Sampler"]="Sampler";tmpArray["Puzzle"]="Puzzle";tmpArray["Simulation"]="Simulation";tmpArray["Sports"]="Sports";tmpArray["Strategy"]="Strategy";tmpArray["Video"]="Video";tmpArray["Wrestling"]="Wrestling";tmpArray["Trivia"]="Trivia";tmpArray["Virtual-Pet"]="Virtual Pet";G4TV.Search.Filters["genre"]=tmpArray;tmpArray=[];G4TV.Search.Filters["platform"]=new Array();tmpArray["filter_title"]="Platforms";tmpArray["Xbox-360"]="Xbox 360";tmpArray["PlayStation-3"]="PlayStation 3";tmpArray["Wii"]="Wii";tmpArray["PC"]="PC";tmpArray["Nintendo-DS"]="Nintendo DS";tmpArray["PlayStation-Portable"]="PlayStation Portable";tmpArray["PSP"]="PSP";tmpArray["PlayStation-2"]="PlayStation 2";tmpArray["Xbox"]="Xbox";tmpArray["GameCube"]="GameCube";tmpArray["PlayStation"]="PlayStation";tmpArray["Nintendo-64"]="Nintendo 64";tmpArray["Super-NES"]="Super NES";tmpArray["iQue"]="iQue";tmpArray["NES"]="NES";tmpArray["Amiga-CD32"]="Amiga CD32";tmpArray["Amiga"]="Amiga";tmpArray["AmstradSchneider-CPC"]="Amstrad/Schneider CPC";tmpArray["Apple-IIecc"]="Apple IIe/c/c+";tmpArray["Arcade"]="Arcade";tmpArray["3DO"]="3DO";tmpArray["Atari-2600"]="Atari 2600";tmpArray["BS-X-Satellaview-Super-Famicom"]="BS-X: Satellaview (Super Famicom)";tmpArray["CD-i"]="CD-i";tmpArray["Dreamcast"]="Dreamcast";tmpArray["Famicom-Disk-System"]="Famicom Disk System";tmpArray["Commodore-64128"]="Commodore 64/128";tmpArray["DVD--HD-Video-Game"]="DVD / HD Video Game";tmpArray["GP32"]="GP32";tmpArray["Game--Watch"]="Game & Watch";tmpArray["Game-Boy"]="Game Boy";tmpArray["Game-Boy-Adv"]="Game Boy Adv";tmpArray["Game-Boy-Advance"]="Game Boy Advance";tmpArray["Game-Boy-Color"]="Game Boy Color";tmpArray["Game-Gear"]="Game Gear";tmpArray["GameCom"]="Game.Com";tmpArray["Genesis"]="Genesis";tmpArray["Gizmondo"]="Gizmondo";tmpArray["Jaguar"]="Jaguar";tmpArray["LCD-games"]="LCD games";tmpArray["Linux"]="Linux";tmpArray["N-Gage"]="N-Gage";tmpArray["Macintosh"]="Macintosh";tmpArray["Lynx"]="Lynx";tmpArray["MSX-2"]="MSX 2";tmpArray["Macintosh----Intel-Mac"]="Macintosh -- Intel Mac";tmpArray["Master-System"]="Master System";tmpArray["NeoGeo"]="NeoGeo";tmpArray["NeoGeo-Pocket-Color"]="NeoGeo Pocket Color";tmpArray["Palm-Organizer"]="Palm Organizer";tmpArray["Pinball"]="Pinball";tmpArray["Playdia"]="Playdia";tmpArray["Pocket-PC"]="Pocket PC";tmpArray["Saturn"]="Saturn";tmpArray["Sega-32X"]="Sega 32X";tmpArray["Sega-CD"]="Sega CD";tmpArray["Sinclair-ZX-Spectrum"]="Sinclair ZX Spectrum";tmpArray["TV-game-systems"]="TV game systems";tmpArray["Tapwave-Zodiac"]="Tapwave Zodiac";tmpArray["TurboGrafx-CD"]="TurboGrafx-CD";tmpArray["Tiger-R-Zone"]="Tiger R-Zone";tmpArray["TurboGrafx-16"]="TurboGrafx-16";tmpArray["Web-Games"]="Web Games";tmpArray["iPhone"]="iPhone";tmpArray["iPod"]="iPod";tmpArray["Wireless"]="Wireless";tmpArray["WonderSwan-Color"]="WonderSwan Color";tmpArray["digiBLAST"]="digiBLAST";tmpArray["Apple-IIGS"]="Apple IIGS";tmpArray["Atari-400800XLXE"]="Atari 400/800/XL/XE";tmpArray["Atari-5200"]="Atari 5200";tmpArray["Atari-7800"]="Atari 7800";tmpArray["Atari-ST"]="Atari ST";tmpArray["Colecovision"]="Colecovision";tmpArray["Commodore-VIC-20"]="Commodore VIC-20";tmpArray["Emerson-Arcadia-2001"]="Emerson Arcadia 2001";tmpArray["Intellivision"]="Intellivision";tmpArray["LeapPad"]="LeapPad";tmpArray["NeoGeo-CD"]="NeoGeo CD";tmpArray["PC-FX"]="PC-FX";tmpArray["PocketStation"]="PocketStation";tmpArray["Sega-Pico"]="Sega Pico";tmpArray["Sharp-X68000"]="Sharp X68000";tmpArray["TI-994a"]="TI-99/4a";tmpArray["VSmile-TV-Learning-System"]="V.Smile TV Learning System";tmpArray["WOW-Action-Max"]="WOW Action Max";tmpArray["WonderSwan"]="WonderSwan";G4TV.Search.Filters["platform"]=tmpArray;tmpArray=[];G4TV.Search.Filters["type"]=new Array();tmpArray["filter_title"]="Content Type";tmpArray["Game"]="Game";tmpArray["GameReview"]=["Game Review","GameReview"];tmpArray["Video"]="Video";tmpArray["BlogThread"]=["News","BlogThread"];tmpArray["PhotoCategory"]=["Photo Gallery","PhotoCategory"];tmpArray["SegmentArticle"]=["Show Segment","SegmentArticle"];tmpArray["AotsEpisode"]=["Episode","AotsEpisode"];tmpArray["Show"]=["Show Pages","Show"];tmpArray["Article"]="Article";G4TV.Search.Filters["type"]=tmpArray;tmpArray=[];G4TV.Search.Filters["eventName"]=new Array();tmpArray["filter_title"]="Events";tmpArray["CES-2009"]="CES 2009";tmpArray["E3-08-Live"]="E3 '08 Live";tmpArray["Tokyo-Game-Show-2008"]="Tokyo Game Show 2008";tmpArray["Leipzig-GC-2008"]="Leipzig GC 2008";tmpArray["Comic-Con-2008"]="Comic-Con 2008";tmpArray["AEE-2008"]="AEE 2008";tmpArray["E3-07-Live"]="E3 '07 Live";tmpArray["E3-06-Live"]="E3 06 Live";tmpArray["E3-05-Live"]="E3 05 Live";tmpArray["E3-2004"]="E3-2004";tmpArray["E3-2003"]="E3-2003";tmpArray["CES-2005"]="CES 2005";tmpArray["CES2008"]="CES2008";tmpArray["Comic-Con-2006"]="Comic-Con 2006";tmpArray["Comic-Con-2007"]="Comic-Con 2007";tmpArray["G-Phoria-2005"]="G-Phoria 2005";tmpArray["G-Phoria-2006"]="G-Phoria 2006";tmpArray["Tokyo-Game-Show-2007"]="Tokyo Game Show 2007";tmpArray["Tokyo-Game-Show-2006"]="Tokyo Game Show 2006";tmpArray["TGS-2005-"]="TGS 2005 ";G4TV.Search.Filters["eventName"]=tmpArray;tmpArray=[];G4TV.Search.Filters["showName"]=new Array();tmpArray["filter_title"]="Shows";tmpArray["Attack-of-the-Show"]="Attack of the Show";tmpArray["Anime-Unleashed"]="Anime Unleashed";tmpArray["X-Play"]="X-Play";tmpArray["Blister"]="Blister";tmpArray["Brainiac"]="Brainiac";tmpArray["Call-For-Help"]="Call For Help";tmpArray["Cheat"]="Cheat!";tmpArray["Cinematech"]="Cinematech";tmpArray["Cinematech-Nocturnal-Emissions"]="Cinematech: Nocturnal Emissions";tmpArray["Code-Monkeys"]="Code Monkeys";tmpArray["Ed-the-Socks-Night-Party"]="Ed the Sock's Night Party";tmpArray["Fastlane"]="Fastlane";tmpArray["Filter"]="Filter";tmpArray["Filter-old"]="Filter (old)";tmpArray["Formula-D"]="Formula D";tmpArray["Free-Stuff"]="Free Stuff";tmpArray["Freestyle-101"]="Freestyle 101";tmpArray["Fresh-Gear"]="Fresh Gear";tmpArray["Fresh-Ink"]="Fresh Ink";tmpArray["Future-Fighting-Machines"]="Future Fighting Machines";tmpArray["G-Phoria-2005"]="G-Phoria 2005";tmpArray["G4-Specials"]="G4 Specials";tmpArray["G4s-Training-Camp-"]="G4's Training Camp ";tmpArray["G4tvcom"]="G4tv.com";tmpArray["Game-Makers"]="Game Makers";tmpArray["Game-Makers-old"]="Game Makers (old)";tmpArray["Geek-Out"]="Geek Out";tmpArray["Happy-Tree-Friends"]="Happy Tree Friends";tmpArray["Human-Wrecking-Balls"]="Human Wrecking Balls";tmpArray["Icons"]="Icons";tmpArray["Judgment-Day"]="Judgment Day";tmpArray["Late-Night-Peep-Show"]="Late Night Peep Show";tmpArray["MOVIES"]="MOVIES";tmpArray["Meet-the-Sess"]="Meet the Sess";tmpArray["Nerd-Nation"]="Nerd Nation";tmpArray["Ninja-Warrior"]="Ninja Warrior";tmpArray["Players"]="Players";tmpArray["Pulse"]="Pulse";tmpArray["Sesslers-Soapbox"]="Sessler's Soapbox";tmpArray["Street-Fury"]="Street Fury";tmpArray["Tech-News-Countdown"]="Tech News Countdown";tmpArray["The-Block"]="The Block";tmpArray["The-Electric-Playground"]="The Electric Playground";tmpArray["The-MMO-Report"]="The MMO Report";tmpArray["The-Man-Show"]="The Man Show";tmpArray["The-Peter-Serafinowicz-Show"]="The Peter Serafinowicz Show";tmpArray["The-Screen-Savers"]="The Screen Savers";tmpArray["Unbeatable-Banzuke"]="Unbeatable Banzuke";tmpArray["Unscrewed-with-Martin-Sargent"]="Unscrewed with Martin Sargent";tmpArray["Video-Game-Vixens"]="Video Game Vixens";G4TV.Search.Filters["showName"]=tmpArray;tmpArray=[];G4TV.Search.Filters["publisher"]=new Array();tmpArray["filter_title"]="Publishers";tmpArray["Electronic-Arts"]="Electronic Arts";tmpArray["Activision"]="Activision";tmpArray["THQ"]="THQ";tmpArray["Ubisoft"]="Ubisoft";tmpArray["Konami"]="Konami";tmpArray["Nintendo"]="Nintendo";tmpArray["Sony-Computer-Entertainment"]="Sony Computer Entertainment";tmpArray["SEGA"]="SEGA";tmpArray["Capcom"]="Capcom";tmpArray["Atari"]="Atari";tmpArray["Microsoft"]="Microsoft";tmpArray["Namco"]="Namco";tmpArray["Infogrames"]="Infogrames";tmpArray["Majesco"]="Majesco";tmpArray["Acclaim-Entertainment"]="Acclaim Entertainment";tmpArray["Midway--Games"]="Midway  Games";tmpArray["Take-Two"]="Take Two";tmpArray["LucasArts"]="LucasArts";tmpArray["Vivendi-Universal"]="Vivendi Universal";tmpArray["Eidos-Interactive"]="Eidos Interactive";tmpArray["Interplay"]="Interplay";tmpArray["Sierra"]="Sierra";tmpArray["Gameloft"]="Gameloft";tmpArray["Atlus"]="Atlus";tmpArray["TBA"]="TBA";tmpArray["Midway"]="Midway";tmpArray["Codemasters"]="Codemasters";tmpArray["Eidos"]="Eidos";tmpArray["Vivendi-Games"]="Vivendi Games";tmpArray["3DO"]="3DO";tmpArray["Disney-Interactive-Studios"]="Disney Interactive Studios";tmpArray["DreamCatcher-Interactive"]="DreamCatcher Interactive";tmpArray["KOEI"]="KOEI";tmpArray["Bandai"]="Bandai";tmpArray["Hasbro-Interactive"]="Hasbro Interactive";tmpArray["Aspyr"]="Aspyr";tmpArray["Destination-Software-Inc-DSI"]="Destination Software, Inc. (DSI)";tmpArray["Strategy-First"]="Strategy First";tmpArray["Activision-Value"]="Activision Value";tmpArray["ValuSoft"]="ValuSoft";tmpArray["Crave-Entertainment"]="Crave Entertainment";tmpArray["Crave"]="Crave";tmpArray["Disney-Interactive"]="Disney Interactive";tmpArray["GT-Interactive"]="GT Interactive";tmpArray["Virgin-Interactive"]="Virgin Interactive";tmpArray["Take-Two-Interactive-"]="Take-Two Interactive ";tmpArray["Hudson--Soft"]="Hudson  Soft";tmpArray["Mindscape"]="Mindscape";tmpArray["Natsume"]="Natsume";tmpArray["Psygnosis"]="Psygnosis";tmpArray["Independent-Project"]="Independent Project";tmpArray["THQ-Wireless"]="THQ Wireless";tmpArray["Mumbo-Jumbo"]="Mumbo Jumbo";tmpArray["Square-Enix"]="Square Enix";tmpArray["Tecmo"]="Tecmo";tmpArray["Sierra-On-Line"]="Sierra On-Line";tmpArray["I-play"]="I-play";tmpArray["SNK"]="SNK";tmpArray["Acclaim"]="Acclaim";tmpArray["Microprose"]="Microprose";tmpArray["Sony-Online-Entertainment"]="Sony Online Entertainment";tmpArray["Destineer"]="Destineer";tmpArray["Agetec"]="Agetec";tmpArray["Buena-Vista-Games"]="Buena Vista Games";tmpArray["D3P"]="D3P";tmpArray["Jaleco"]="Jaleco";tmpArray["Empire-Interactive"]="Empire Interactive";tmpArray["Encore"]="Encore";tmpArray["Game-Factory"]="Game Factory";tmpArray["Global-Star"]="Global Star";tmpArray["cdv-Software-Entertainment"]="cdv Software Entertainment";tmpArray["Bethesda--Softworks"]="Bethesda  Softworks";tmpArray["TDK-Mediactive"]="TDK Mediactive";tmpArray["Mattel--Interactive"]="Mattel  Interactive";tmpArray["Namco-Bandai"]="Namco Bandai";tmpArray["Ignition-Entertainment"]="Ignition Entertainment";tmpArray["Matrix-Games"]="Matrix Games";tmpArray["Accolade"]="Accolade";tmpArray["Conspiracy-Entertainment"]="Conspiracy Entertainment";tmpArray["EA-Mobile"]="EA Mobile";tmpArray["Glu-Mobile"]="Glu Mobile";tmpArray["Simon--Schuster-Interactive"]="Simon & Schuster Interactive";tmpArray["Hands-On-Mobile-aka-MFORMA"]="Hands-On Mobile (aka MFORMA)";tmpArray["Strategic-Simulations-Inc-SSI"]="Strategic Simulations, Inc. (SSI)";tmpArray["Titus"]="Titus";tmpArray["Taito"]="Taito";tmpArray["UFO-Interactive"]="UFO Interactive";tmpArray["Globalstar"]="Globalstar";tmpArray["SouthPeak-Interactive"]="SouthPeak Interactive";tmpArray["Digital-Chocolate"]="Digital Chocolate";tmpArray["WizardWorks"]="WizardWorks";tmpArray["JoWood-Productions"]="JoWood Productions";tmpArray["DSI-Games"]="DSI Games";tmpArray["Gathering-of-Developers-aka-GOD-Games"]="Gathering of Developers (aka GOD Games)";tmpArray["Kemco"]="Kemco";tmpArray["XS-Games"]="XS Games";tmpArray["BAM-Entertainment"]="BAM! Entertainment";tmpArray["MacPlay"]="MacPlay";tmpArray["eGames"]="eGames";G4TV.Search.Filters["publisher"]=tmpArray;tmpArray=[];G4TV.Search.Filters["developer"]=new Array();tmpArray["filter_title"]="Developers";tmpArray["Konami"]="Konami";tmpArray["Electronic-Arts"]="Electronic Arts";tmpArray["Capcom"]="Capcom";tmpArray["Various"]="Various";tmpArray["EA-Canada"]="EA Canada";tmpArray["Namco"]="Namco";tmpArray["TBA"]="TBA";tmpArray["Gameloft"]="Gameloft";tmpArray["Midway--Games"]="Midway  Games";tmpArray["Tiburon"]="Tiburon";tmpArray["Hudson--Soft"]="Hudson  Soft";tmpArray["Nintendo"]="Nintendo";tmpArray["SEGA"]="SEGA";tmpArray["Ubisoft-Montreal"]="Ubisoft Montreal";tmpArray["Ubisoft"]="Ubisoft";tmpArray["Taito"]="Taito";tmpArray["Unknown"]="Unknown";tmpArray["Vicarious-Visions"]="Vicarious Visions";tmpArray["Digital-Eclipse-Software"]="Digital Eclipse Software";tmpArray["Maxis"]="Maxis";tmpArray["Visual-Concepts"]="Visual Concepts";tmpArray["Independent-Project"]="Independent Project";tmpArray["A2M-Artificial-Mind-and-Movement"]="A2M (Artificial Mind and Movement)";tmpArray["Eurocom"]="Eurocom";tmpArray["Blitz-Games"]="Blitz Games";tmpArray["LucasArts"]="LucasArts";tmpArray["Activision"]="Activision";tmpArray["Radical-Entertainment"]="Radical Entertainment";tmpArray["Travellers-Tales"]="Traveller's Tales";tmpArray["Neversoft-Entertainment"]="Neversoft Entertainment";tmpArray["Natsume"]="Natsume";tmpArray["SNK"]="SNK";tmpArray["3DO"]="3DO";tmpArray["Microprose"]="Microprose";tmpArray["Climax-Studios"]="Climax Studios";tmpArray["Codemasters"]="Codemasters";tmpArray["Tecmo"]="Tecmo";tmpArray["Interplay"]="Interplay";tmpArray["Microsoft"]="Microsoft";tmpArray["Rare"]="Rare";tmpArray["Sierra"]="Sierra";tmpArray["High-Voltage-Software"]="High Voltage Software";tmpArray["Psygnosis"]="Psygnosis";tmpArray["THQ"]="THQ";tmpArray["Crystal-Dynamics"]="Crystal Dynamics";tmpArray["Humongous"]="Humongous";tmpArray["Origin-Systems"]="Origin Systems";tmpArray["Sierra-On-Line"]="Sierra On-Line";tmpArray["Square-Enix"]="Square Enix";tmpArray["Team17-Software"]="Team17 Software";tmpArray["Sonic-Team"]="Sonic Team";tmpArray["Backbone-Entertainment"]="Backbone Entertainment";tmpArray["Torus-Games"]="Torus Games";tmpArray["Treyarch"]="Treyarch";tmpArray["Harmonix"]="Harmonix";tmpArray["Konami-TYO"]="Konami TYO";tmpArray["CORE-Design-Limited"]="CORE Design Limited";tmpArray["Red-Storm-Entertainment"]="Red Storm Entertainment";tmpArray["Argonaut-Games"]="Argonaut Games";tmpArray["Nintendo-EAD"]="Nintendo EAD";tmpArray["Digital-Chocolate"]="Digital Chocolate";tmpArray["Omega-Force"]="Omega Force";tmpArray["Square"]="Square";tmpArray["Avalanche-Software-USA"]="Avalanche Software (USA)";tmpArray["Glu-Mobile"]="Glu Mobile";tmpArray["Griptonite-Games"]="Griptonite Games";tmpArray["Infogrames"]="Infogrames";tmpArray["Sony-Computer-Entertainment"]="Sony Computer Entertainment";tmpArray["Bandai"]="Bandai";tmpArray["Left-Field--Productions-Inc"]="Left Field  Productions, Inc.";tmpArray["RETROSPEC"]="RETROSPEC";tmpArray["Raven-Software"]="Raven Software";tmpArray["Dynamix"]="Dynamix";tmpArray["KOEI"]="KOEI";tmpArray["PopCap-Games"]="PopCap Games";tmpArray["SCE-Studios-London"]="SCE Studios London";tmpArray["SEGA-AM2"]="SEGA-AM2";tmpArray["Telltale-Games"]="Telltale Games";tmpArray["Terminal-Reality"]="Terminal Reality";tmpArray["Eutechnyx"]="Eutechnyx";tmpArray["Jaleco"]="Jaleco";tmpArray["Konami-OSA-KCEO"]="Konami OSA (KCEO)";tmpArray["Milestone"]="Milestone";tmpArray["Rebellion"]="Rebellion";tmpArray["EA-Redwood-Shores"]="EA Redwood Shores";tmpArray["Kush-Games"]="Kush Games";tmpArray["Mindscape"]="Mindscape";tmpArray["Sony-Online-Entertainment"]="Sony Online Entertainment";tmpArray["Tantalus"]="Tantalus";tmpArray["Yukes-Media-Creations"]="Yuke's Media Creations";tmpArray["Amaze-Entertainment"]="Amaze Entertainment";tmpArray["Bethesda--Softworks"]="Bethesda  Softworks";tmpArray["Blizzard-Entertainment"]="Blizzard Entertainment";tmpArray["Capcom-Production-Studio-3"]="Capcom Production Studio 3";tmpArray["Data-Design-Interactive"]="Data Design Interactive";tmpArray["Data-East"]="Data East";tmpArray["Digital-Illusions-CE-DICE"]="Digital Illusions CE (DICE)";tmpArray["Heavy-Iron-Studios"]="Heavy Iron Studios";tmpArray["Black-Box"]="Black Box";G4TV.Search.Filters["developer"]=tmpArray;tmpArray=[];G4TV.Search.Filters["subType"]=new Array();tmpArray["filter_title"]="Content Types";G4TV.Search.Filters["subType"]=tmpArray;tmpArray=[];(function($){G4TV.ui.mod.Search=function(el,config){this.currentKeyword=$.trim($(config.searchId).find('input.search-input').val());var self=this;var searchFilters=[];var origContentUrl=config.contentURL;var filterMaps=[];this.updateCallback=function(){G4TV.ui.GameToolTips.init("tooltip game");G4Ratings=new G4TV.ui.Rating();delete G4Ratings;}
$(config.searchId).find('input.search-input').click(function(){var searchInputValue=$.trim($(this).val());if(searchInputValue==config.defaultInputValue||searchInputValue=='Please enter a search term...'){$(this).val('');}}).blur(function(){var searchInputValue=$.trim($(this).val());if(searchInputValue==''){$(this).val(config.defaultInputValue);}});var getContentUrl=function(){var strParams="";for(i in searchFilters){var value=$.trim(searchFilters[i]);if(value!=""&&value!="|"&&value!=null){var value=searchFilters[i].indexOf("|")===0?searchFilters[i].substring(1):searchFilters[i];strParams+="&"+i+"="+value;}}
return origContentUrl+strParams;}
$(el+" div.search_media_filter ul li:not(.more):visible a").live("click",function(e){var evt=e;if(evt.button!==2){$('#current_filters_wrap h5').text('Filters used:');var facetRel=$(this).attr('rel').replace('search-','');var filter=facetRel.split('_')[0];var value=urlencode(facetRel.split('_')[1]);var title=$(this).text();var filterValueId=value.replace(/[^a-zA-Z0-9/]/gi,'').toLowerCase();filterMaps[filterValueId]=value;G4Search.config.page=1;if(typeof(searchFilters[filter])!=="undefined"){searchFilters[filter]+="|"+value;}else{searchFilters[filter]="|"+value;}
G4Search.config.contentURL=getContentUrl();G4Search.update();if($('#st__'+filterValueId).length===0){var filterTitle=$(this).parents('div.search_media_filter').find('h6').clone();filterTitle.find('span.count').remove();filterTitle=filterTitle.text();if($('#st__filter__'+filter).length===0){filterHtml='<div id="st__filter__'+filter+'"><h6>'+filterTitle+'</h6><ul>';filterHtml+='<li style="display:none;"><a href="#" rel="search-'+filter+'_'+filterValueId+'">'+title+'</a></li>';filterHtml+='</ul></div>';$('#current_filters').append(filterHtml);}else{$('#st__filter__'+filter+' ul').append('<li style="display:none;"><a href="#" rel="search-'+filter+'_'+filterValueId+'">'+title+'</a></li>');}
$('#st__filter__'+filter+' li:last').slideDown('fast',function(){$(this).effect("highlight",{},500);});}
$('div#current_filters_wrap').slideDown('fast');return false;}else{}});$("#current_filters a").live("click",function(e){var evt=e;if(evt.button!==2){$('#current_filters_wrap h5').text('Filters used:');G4Search.config.page=1;var facetRel=$(this).attr('rel').replace('search-','');var filter=facetRel.split('_')[0];var mapValue=facetRel.split('_')[1];var value=filterMaps[mapValue]
searchFilters[filter]=searchFilters[filter].replace("|"+value,'');$(this).parent('li').animate({"height":"0px","opacity":0},"fast",null,function(){$(this).remove();if($('#current_filters ul li').length<1){$('#current_filters').html('');$('#current_filters_wrap').slideUp('fast');}else{$('#current_filters ul').each(function(){if($(this).find('li').length<1){$(this).parent().remove();}});}});G4Search.config.contentURL=getContentUrl();G4Search.update();return false;}});$(".search_media_filter ul li.more a").live("click",function(e){var evt=e;if(evt.button!==2){var rel=$(this).attr('rel');var parentLi=$(this).parents('li');var hiddenFacets=parentLi.parents('ul').find('li.hidden-facet:hidden');if(hiddenFacets.length>0){for(i=0;i<10;i++){$(hiddenFacets[i]).slideDown('fast');}
var hiddenFacetsCount=(hiddenFacets.length-10)>0?(hiddenFacets.length-10):0;if(hiddenFacetsCount>0){$(this).find('span.count em').text(addCommas(hiddenFacetsCount)).effect("highlight",{},200);}else{$(this).html($(this).html().replace('More','Less'));$(this).find('span.count').hide();$(this).addClass('less');}}else{parentLi.parents('ul').find('li.hidden-facet').hide();$(this).removeClass('less');$(this).html($(this).html().replace('Less','More'));var spanCount=$(this).find('span.count');spanCount.show();spanCount.find('em').text(addCommas(parentLi.parents('ul').find('li.hidden-facet').length)).effect("highlight",{},200);}
return false;}});$('#remove_all_filters a').click(function(){searchFilters=[];$('div#current_filters').html('');$('div#current_filters_wrap').slideUp('fast');G4Search.config.contentURL=getContentUrl();G4Search.update();return false;});$(config.searchId).find('form').bind('submit',function(){var searchInputValue=$.trim($(this).find('input.search-input').val());if(searchInputValue!==self.currentKeyword&&searchInputValue!==config.defaultInputValue&&searchInputValue!=='Please enter a search term...'){$(this).find('input.search-input, input.submit-search').addClass('loading');self.doSearch($(this).find('input.search-input').val(),config.searchId);}else if(searchInputValue!==self.currentKeyword){$(this).find('input.search-input').addClass('error').val('Please enter a search term...').bind('click',function(){$(this).removeClass('error').val('');});}
return false;});this.doSearch=function(searchTerm,searchFormId){this.config.vars.keyword=searchTerm;this.currentKeyword=searchTerm;self.currentKeyword=searchTerm;this.config.page=1;self.config.page=1;this.update();};this.superclass.apply(this,arguments);if(this.currentKeyword!==config.defaultInputValue||this.currentKeyword=='Please enter a search term...'){}};$.Class.extend(G4TV.ui.mod.Search,G4TV.ui.Module);})(jQuery);(function($){G4TV.ui.Rating=function(){var ratingKeys=new Array();var ratingKeyScores=new Array();var ratingAction=String;var getRatingUrl=String;var ratingAction='/ratings/set/index.html';var getRatingUrl='/ratings/get/index.html';var self=this;this.pushRatingKey=function(ratingKey){ratingKeys.push(ratingKey);};this.getKeyScore=function(ratingKey){return typeof(ratingKeyScores[ratingKey])!=='undefined'?ratingKeyScores[ratingKey]:0;};this.renderStars=function(){$('.rating-controls').each(function(){var jSelector=$(this);var ratingKey=jSelector.find('input[name=key]').val();var setScore=0;if(jSelector.find('input[type=radio]:checked').length>0){setScore=parseInt(jSelector.find('input[type=radio]:checked').val());}
jSelector.find('form').replaceWith('<div class="rating rating-'+setScore+' disabled" id="rating_'+ratingKey+'">'+'<span class="star-1">1</span><span class="star-2">2</span><span class="star-3">3</span>'+'<span class="star-4">4</span><span class="star-5">5</span>'+'<span class="set-score">'+setScore+'</span>'+'<span class="msg">Login to rate</span>'+'</div>');jSelector.find('div.rating span:not(.set-score .msg)').mouseover(function(){if(!$(this).parent('div.rating').hasClass('disabled')&&!$(this).parent('div.rating').hasClass('successful-rating')){jSelector.find('div.rating').attr('class','rating').addClass('rating-'+$(this).text()).addClass('hover');}}).bind('click',function(){if(G4TV.ui.User.isLoggedIn()){var score=parseInt($(this).text());$.ajax({type:"POST",url:ratingAction,data:"score="+score+"&key="+ratingKey+"&ajax=true",success:function(response){if(response.toLowerCase()==='true'){jSelector.find('span.set-score').text(score);jSelector.find('div.rating').addClass('successful-rating').addClass('rated');jSelector.find('span.msg').text('Thanks for rating!');setTimeout(function(){jSelector.find('div.rating').removeClass('successful-rating');},5000);}}});}else{G4TV.ui.User.loginDialog('You must be logged in to rate content.');}});jSelector.find('div.rating').mouseleave(function(){setTimeout(function(){var score=parseInt(jSelector.find('span.set-score').text());if(!jSelector.find('div.rating').hasClass('disabled')&&!jSelector.find('div.rating').hasClass('successful-rating')){jSelector.find('div.rating').attr('class','rating').addClass('rating-'+score).removeClass('hover');}},100);});if(!G4TV.ui.User.isLoggedIn()){G4TV.ui.User.addOnLoginCallback(function(){setTimeout(function(){var G4Ratings=new G4TV.ui.Rating();},500);jSelector.find('div.rating').removeClass('disabled');});}else{jSelector.find('div.rating').removeClass('disabled');}});};if(G4TV.ui.User.isLoggedIn()){if($('.rating-controls').length===1){var ratingKey=$('.rating-controls').find('input[name=key]').length>0?$('.rating-controls').find('input[name=key]').val():$('.rating-controls div.rating').attr('id').replace('rating_','');$.ajax({type:"GET",url:getRatingUrl,data:"key="+ratingKey+"&ajax=true",ascync:true,cache:false,success:function(score){if(score.toLowerCase()!=="false"){intScore=parseInt(score);if(intScore>0){$('.rating-controls').addClass('rated');$('#rating-form-'+ratingKey+' input[value="'+score+'"]').attr('checked',true);$('#rating_'+ratingKey+' span.set-score').text(score);}
self.renderStars();}}});}else if($('.rating-controls').length>1){var ratingKeys=new Array();$('.rating-controls').each(function(){ratingKeys.push($(this).find('input[name=key]').length>0?$(this).find('input[name=key]').val():$(this).find('div.rating').attr('id').replace('rating_',''));});$.ajax({type:"GET",url:getRatingUrl,data:"key="+ratingKeys.join(',')+"&ajax=true",ascync:true,success:function(response){scoreResponses=response.split(',');var iCount=0;for(var i=0;i<ratingKeys.length;i++){userScore=parseInt(scoreResponses[i]);if(userScore>0&&$('#rating-form-'+ratingKeys[i]).length>0){$('#rating-form-'+ratingKeys[i]).parent('div.rating-controls').addClass('rated');$('#rating-form-'+ratingKeys[i]+' input[value="'+userScore+'"]').attr('checked',true);$('#rating_'+ratingKeys[i]+' span.set-score').text(parseInt(scoreResponses[i]));}
iCount++;if(iCount>=ratingKeys.length){self.renderStars();}}}});}}else{self.renderStars();}};})(jQuery);G4TV.Dom.ready(function(){G4Ratings=new G4TV.ui.Rating();delete G4Ratings;});(function($){G4TV.ui.GameToolTips={init:function(toolTipParentClass){var tipLinks=$('a.game');var settings=G4TV.gbl.defaults[0]['simpleTipSettings'];settings.parentClass=typeof(toolTipParentClass)!=="undefined"?toolTipParentClass:'tooltip game';$.each(tipLinks,function(){var content=$(this).closest('li').find('.tooltip-content:first');if(content.length>0){var tooltip=$(this).simpletip(content.html(),settings);}});$('.tooltip.game').each(function(){if($(this).find('arrow').length===0){$('.tooltip.game').append('<div class="arrow"></div><div class="btm"></div><div class="rt"></div><div class="crnr"></div>');}});},remove:function(selector){$(selector).remove();}}})(jQuery);(function($){G4TV.ui.mod.SimpleSearch=function(el,config){this.currentKeyword=$.trim($(config.searchId).find('input.search-input').val());var self=this;$(config.searchId).find('input.search-input').click(function(){var searchInputValue=$.trim($(this).val());if(searchInputValue==config.defaultInputValue||searchInputValue=='Please enter a search term...'){$(this).val('');}}).blur(function(){var searchInputValue=$.trim($(this).val());if(searchInputValue==''){$(this).val(config.defaultInputValue);}});$(config.searchId).find('form').bind('submit',function(){var searchInputValue=$.trim($(this).find('input.search-input').val());if(searchInputValue!==self.currentKeyword&&searchInputValue!==config.defaultInputValue&&searchInputValue!=='Please enter a search term...'){$(this).find('input.search-input, input.submit-search').addClass('loading');self.doSearch($(this).find('input.search-input').val(),config.searchId);}else if(searchInputValue!==self.currentKeyword){$(this).find('input.search-input').addClass('error').val('Please enter a search term...').bind('click',function(){$(this).removeClass('error').val('');});}
return false;});this.doSearch=function(searchTerm,searchFormId){this.config.vars.keyword=searchTerm;this.currentKeyword=searchTerm;self.currentKeyword=searchTerm;this.config.page=1;self.config.page=1;this.update(function(){$(searchFormId).find('input.search-input, input.submit-search').removeClass('loading');});};this.superclass.apply(this,arguments);if(this.currentKeyword!==config.defaultInputValue||this.currentKeyword=='Please enter a search term...'){this.doSearch(this.currentKeyword,config.searchId);}};jQuery.Class.extend(G4TV.ui.mod.SimpleSearch,G4TV.ui.Module);})(jQuery);(function($){$.fn.jCarouselLite=function(o){o=$.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},o||{});return this.each(function(){var self=this;self.running=false;var animCss=o.vertical?"top":"left",sizeCss=o.vertical?"height":"width";var div=$(this),ul=$(this).find("ul.carousel:visible",div),tLi=$(this).find("li.carousel-item",ul),tl=tLi.size(),v=o.visible;if(o.circular){ul.prepend(tLi.slice(tl-v-1+1).clone()).append(tLi.slice(0,v).clone());o.start+=v;}
var li=$(ul).find("li.carousel-item",ul),itemLength=li.size(),curr=o.start;div.css("visibility","visible");li.css({overflow:"hidden",float:o.vertical?"none":"left"});ul.css({margin:"0",padding:"0",position:"relative","list-style-type":"none","z-index":"1"});div.css({overflow:"hidden",position:"relative","z-index":"2",left:"0px"});var liSize=o.vertical?height(li):width(li);var ulSize=liSize*itemLength;var divSize=liSize*v;li.css({width:li.width(),height:li.height()});ul.css(sizeCss,ulSize+"px").css(animCss,-(curr*liSize));div.css(sizeCss,divSize+"px");if(o.btnPrev)
$(o.btnPrev).click(function(){if(!$(this).hasClass('disabled')){return go(curr-o.scroll);}});if(o.btnNext)
$(o.btnNext).click(function(){if(!$(this).hasClass('disabled')){return go(curr+o.scroll);}});if(o.btnGo)
$.each(o.btnGo,function(i,val){$(val).click(function(){if(!$(this).parent().hasClass('disabled')){return go(o.circular?o.visible+i:i);}else{return false;}});});if(o.mouseWheel&&div.mousewheel)
div.mousewheel(function(e,d){return d>0?go(curr-o.scroll):go(curr+o.scroll);});if(o.auto)
setInterval(function(){go(curr+o.scroll);},o.auto+o.speed);function vis(){return li.slice(curr).slice(0,v);};function go(to){if(!self.running){if(o.beforeStart)
o.beforeStart.call(this,vis());if(o.circular){if(to<=o.start-v-1){ul.css(animCss,-((itemLength-(v*2))*liSize)+"px");curr=to==o.start-v-1?itemLength-(v*2)-1:itemLength-(v*2)-o.scroll;}else if(to>=itemLength-v+1){ul.css(animCss,-((v)*liSize)+"px");curr=to==itemLength-v+1?v+1:v+o.scroll;}else curr=to;}else{if(to<0||to>itemLength-v)return;else curr=to;}
if(ul.is(':visible')){self.running=true;$(self).addClass("active");ul.animate(animCss=="left"?{left:-(curr*liSize)}:{top:-(curr*liSize)},o.speed,o.easing,function(){if(o.afterEnd)
o.afterEnd.call(this,vis());self.running=false;$(self).removeClass("active");});}
if(!o.circular){$(o.btnPrev+","+o.btnNext).removeClass("disabled");$((curr-o.scroll<0&&o.btnPrev)||(curr+o.scroll>itemLength-v&&o.btnNext)||[]).addClass("disabled");}}
return false;};});};function css(el,prop){return parseInt($.css(el[0],prop))||0;};function width(el){return el[0].offsetWidth+css(el,'marginLeft')+css(el,'marginRight');};function height(el){return el[0].offsetHeight+css(el,'marginTop')+css(el,'marginBottom');};})(jQuery);(function($){G4TV.ui.mod.TvShows=function(el,config){var self=this;this.initEvents=function(){self.superclass.prototype.initEvents.apply(self);$(self.el).find('.expand').bind('click',function(){$(self.el).find('.expanded').slideToggle('fast');$(self.el).find('.expand').toggleClass('on');return false;});};this.superclass.apply(this,arguments);};jQuery.Class.extend(G4TV.ui.mod.TvShows,G4TV.ui.Module);})(jQuery);var google_ad_client='';var google_ad_channel='';var google_ad_output='';var google_max_num_ads=4;var google_ad_type='';var google_image_size='';var google_feedback='';(function($){G4TV.ui.CustomGoogleAds={AdsenseUrl:'http://pagead2.googlesyndication.com/pagead/show_ads.js',Item:function(){var NumberOfAds;var AdType;var AdSize;var PartnerId;var AdOutput;var DebugMode;var AdChannel;var DivId;var Feedback;var Active='false';},Clear:function(){var self=this;this.Item.PartnerId='';this.Item.AdChannel='';this.Item.AdOutput='';this.Item.NumberOfAds='';this.Item.AdType='';this.Item.AdSize='';this.Item.Feedback='';this.Item.Active='';google_ad_client=this.Item.PartnerId;google_ad_channel=this.Item.AdChannel;google_ad_output=this.Item.AdOutput;google_max_num_ads=this.Item.NumberOfAds;google_ad_type=this.Item.AdType;google_image_size=this.Item.AdSize;google_feedback=this.Item.Feedback;},Run:function(){var self=this;if(this.Item.Active=='true'){google_ad_client=this.Item.PartnerId;google_ad_channel=this.Item.AdChannel;google_ad_output=this.Item.AdOutput;google_max_num_ads=this.Item.NumberOfAds;google_ad_type=this.Item.AdType;google_image_size=this.Item.AdSize;google_feedback=this.Item.Feedback;document.write('<script src="',this.AdsenseUrl,'" type="text/JavaScript"><\/script>');}},DoTextAd:function(objItem,objAds){var self=this;var strDivId=objItem.DivId;var objContent=$('#'+strDivId);var strTemplate=$('#'+strDivId+'_TextAdTemplate').html().replaceAll('%5B%5B','[[').replaceAll('%5D%5D',']]');objContent.html('');objContent.append('<ul>');for(i=0;i<objAds.length;++i){var strHtml=strTemplate;strHtml=strHtml.replaceAll('[[Url]]',objAds[i].url);strHtml=strHtml.replaceAll('[[TitleText]]',objAds[i].line1.titleCase());strHtml=strHtml.replaceAll('[[Description]]',objAds[i].line2+' '+objAds[i].line3+'<br/>');strHtml=strHtml.replaceAll('[[VisibleUrl]]',objAds[i].visible_url);objContent.find('ul').append(strHtml);}
objContent.append('</ul>');},DoImageAd:function(objItem,objAds){var self=this;var strDivId=objItem.DivId;var objContent=$('#'+strDivId);objContent.html('');objContent.append('<ul>');var strHtml='';strHtml+='<a href="'+objAds[0].url+'" target="_top" title="Go To '+objAds[0].visible_url+'"><img border="0" src="'+objAds[0].image_url+'"width="'+objAds[0].image_width+'"height="'+objAds[0].image_height+'"></a>';objContent.find('ul').append(strHtml);objContent.append('</ul>');},DoFlashAd:function(objItem,objAds){var self=this;var strDivId=objItem.DivId;var objContent=$('#'+strDivId);objContent.html('');objContent.append('<ul>');var strHtml='';strHtml+='<li><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" ';strHtml+='codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" ';strHtml+='WIDTH="'+objAds[0].image_width+'" HEIGHT="'+objAds[0].image_height+'"> <PARAM NAME="movie" VALUE="'+objAds[0].image_url+'">';strHtml+='<PARAM NAME="quality" VALUE="high">'+'<PARAM NAME="AllowScriptAccess" VALUE="never">'+'<EMBED src="'
strHtml+=objAds[0].image_url+'" WIDTH="'+objAds[0].image_width+'" HEIGHT="'+objAds[0].image_height+'" TYPE="application/x-shockwave-flash"';strHtml+=' AllowScriptAccess="never" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED></OBJECT></li>';objContent.find('ul').append(strHtml);objContent.append('</ul>');}}})(jQuery);function google_ad_request_done(google_ads){if(typeof(G4TV.ui.CustomGoogleAds=='undefined')&&G4TV.ui.CustomGoogleAds.Item.Active!='true')
return false;var objItem=G4TV.ui.CustomGoogleAds.Item;if(objItem.Active=='true'){if(objItem.AdType=='text'&&google_ads.length>0)
G4TV.ui.CustomGoogleAds.DoTextAd(objItem,google_ads);else if(objItem.AdType=='image'&&google_ads.length>0)
G4TV.ui.CustomGoogleAds.DoImageAd(objItem,google_ads);else if(objItem.AdType=='flash+image+html'&&google_ads.length>0)
G4TV.ui.CustomGoogleAds.DoFlashAd(objItem,google_ads);if(typeof(google_info.feedback_url)!='undefined'){var strParentDiv=objItem.DivId.substring(objItem.DivId.indexOf('_')+1);jQuery('#'+strParentDiv).find('h3 a').attr('href',google_info.feedback_url).attr('target','_blank');}}}