if(!this.JSON){JSON={}}(function(){function f(n){return n<10?"0"+n:n}if(typeof Date.prototype.toJSON!=="function"){Date.prototype.toJSON=function(key){return this.getUTCFullYear()+"-"+f(this.getUTCMonth()+1)+"-"+f(this.getUTCDate())+"T"+f(this.getUTCHours())+":"+f(this.getUTCMinutes())+":"+f(this.getUTCSeconds())+"Z"};String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(key){return this.valueOf()}}var cx=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,escapable=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,gap,indent,meta={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},rep;function quote(string){escapable.lastIndex=0;return escapable.test(string)?'"'+string.replace(escapable,function(a){var c=meta[a];return typeof c==="string"?c:"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+string+'"'}function str(key,holder){var i,k,v,length,mind=gap,partial,value=holder[key];if(value&&typeof value==="object"&&typeof value.toJSON==="function"){value=value.toJSON(key)}if(typeof rep==="function"){value=rep.call(holder,key,value)}switch(typeof value){case"string":return quote(value);case"number":return isFinite(value)?String(value):"null";case"boolean":case"null":return String(value);case"object":if(!value){return"null"}gap+=indent;partial=[];if(Object.prototype.toString.apply(value)==="[object Array]"){length=value.length;for(i=0;i<length;i+=1){partial[i]=str(i,value)||"null"}v=partial.length===0?"[]":gap?"[\n"+gap+partial.join(",\n"+gap)+"\n"+mind+"]":"["+partial.join(",")+"]";gap=mind;return v}if(rep&&typeof rep==="object"){length=rep.length;for(i=0;i<length;i+=1){k=rep[i];if(typeof k==="string"){v=str(k,value);if(v){partial.push(quote(k)+(gap?": ":":")+v)}}}}else{for(k in value){if(Object.hasOwnProperty.call(value,k)){v=str(k,value);if(v){partial.push(quote(k)+(gap?": ":":")+v)}}}}v=partial.length===0?"{}":gap?"{\n"+gap+partial.join(",\n"+gap)+"\n"+mind+"}":"{"+partial.join(",")+"}";gap=mind;return v}}if(typeof JSON.stringify!=="function"){JSON.stringify=function(value,replacer,space){var i;gap="";indent="";if(typeof space==="number"){for(i=0;i<space;i+=1){indent+=" "}}else{if(typeof space==="string"){indent=space}}rep=replacer;if(replacer&&typeof replacer!=="function"&&(typeof replacer!=="object"||typeof replacer.length!=="number")){throw new Error("JSON.stringify")}return str("",{"":value})}}if(typeof JSON.parse!=="function"){JSON.parse=function(text,reviver){var j;function walk(holder,key){var k,v,value=holder[key];if(value&&typeof value==="object"){for(k in value){if(Object.hasOwnProperty.call(value,k)){v=walk(value,k);if(v!==undefined){value[k]=v}else{delete value[k]}}}}return reviver.call(holder,key,value)}cx.lastIndex=0;if(cx.test(text)){text=text.replace(cx,function(a){return"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)})}if(/^[\],:{}\s]*$/.test(text.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,""))){j=eval("("+text+")");return typeof reviver==="function"?walk({"":j},""):j}throw new SyntaxError("JSON.parse")}}})();jQuery.fn.selectToUISlider=function(f){var k=jQuery(this);var q=jQuery.extend({labels:3,tooltip:true,tooltipSrc:"text",labelSrc:"value",sliderOptions:null},f);var h=(function(){var j=[];k.each(function(){j.push("handle_"+jQuery(this).attr("id"))});return j})();var a=(function(){var j=[];k.eq(0).find("option").each(function(){j.push({value:jQuery(this).attr("value"),text:jQuery(this).text()})});return j})();var b=(function(){if(k.eq(0).find("optgroup").size()>0){var j=[];k.eq(0).find("optgroup").each(function(r){j[r]={};j[r].label=jQuery(this).attr("label");j[r].options=[];jQuery(this).find("option").each(function(){j[r].options.push({text:jQuery(this).text(),value:jQuery(this).attr("value")})})});return j}else{return null}})();function i(j){return j.constructor==Array}function m(j){return(q.tooltipSrc=="text")?a[j].text:a[j].value}var p={step:1,min:0,orientation:"horizontal",max:a.length-1,range:k.length>1,slide:function(u,t){var s=jQuery(t.handle);var r=m(t.value);s.attr("aria-valuetext",r).attr("aria-valuenow",t.value).find(".ui-slider-tooltip").text(r);var j=jQuery("#"+s.attr("id").split("handle_")[1]);j.find("option").eq(t.value).attr("selected","selected")},values:(function(){var j=[];k.each(function(){j.push(jQuery(this).get(0).selectedIndex)});return j})()};q.sliderOptions=(f)?jQuery.extend(p,f.sliderOptions):p;k.bind("change keyup click",function(){var r=jQuery(this).get(0).selectedIndex;var j=jQuery("#handle_"+jQuery(this).attr("id"));var s=j.data("handleNum");j.parents(".ui-slider:eq(0)").slider("values",s,r)});var d=jQuery("<div></div>");k.each(function(r){var s="";var u=$("label[for="+$(this).attr("id")+"]");var t=(u.size()>0)?"Slider control for "+u.text()+"":"";var j=u.attr("id")||u.attr("id","label_"+h[r]).attr("id");if(q.tooltip==false){s=' style="display: none;"'}jQuery('<a href="#" tabindex="0" id="'+h[r]+'" class="ui-slider-handle" role="slider" aria-labelledby="'+j+'" aria-valuemin="'+q.sliderOptions.min+'" aria-valuemax="'+q.sliderOptions.max+'" aria-valuenow="'+q.sliderOptions.values[r]+'" aria-valuetext="'+m(q.sliderOptions.values[r])+'" ><span class="screenReaderContext">'+t+'</span><span class="ui-slider-tooltip ui-widget-content ui-corner-all"'+s+"></span></a>").data("handleNum",r).appendTo(d)});if(b){var c=0;var e=d.append('<dl class="ui-slider-scale ui-helper-reset"></dl>').find(".ui-slider-scale:eq(0)");jQuery(b).each(function(r){e.append('<dt style="width: '+(100/b.length).toFixed(2)+"%; left:"+(r/(b.length-1)*100).toFixed(2)+'%"><span>'+this.label+"</span></dt>");var j=this.options;jQuery(this.options).each(function(s){var t=(c==a.length-1||c==0)?'style="display: none;"':"";var u=(q.labelSrc=="text")?j[s].text:j[s].value;e.append('<dd style="left:'+n(c)+'"><span class="ui-slider-label">'+u+'</span><span class="ui-slider-tic ui-widget-content"'+t+"></span></dd>");c++})})}else{var e=d.append('<ol class="ui-slider-scale ui-helper-reset"></ol>').find(".ui-slider-scale:eq(0)");jQuery(a).each(function(j){var r=(j==a.length-1||j==0)?'style="display: none;"':"";var s=(q.labelSrc=="text")?this.text:this.value;e.append('<li style="left:'+n(j)+'"><span class="ui-slider-label">'+s+'</span><span class="ui-slider-tic ui-widget-content"'+r+"></span></li>")})}function n(j){return(j/(a.length-1)*100).toFixed(2)+"%"}if(q.labels>1){d.find(".ui-slider-scale li:last span.ui-slider-label, .ui-slider-scale dd:last span.ui-slider-label").addClass("ui-slider-label-show")}var l=Math.round(a.length/q.labels);for(var g=0;g<a.length;g+=l){if((a.length-g)>l){d.find(".ui-slider-scale li:eq("+g+") span.ui-slider-label, .ui-slider-scale dd:eq("+g+") span.ui-slider-label").addClass("ui-slider-label-show")}}d.find(".ui-slider-scale dt").each(function(j){jQuery(this).css({left:((100/(b.length))*j).toFixed(2)+"%"})});d.insertAfter(jQuery(this).eq(this.length-1)).slider(q.sliderOptions).attr("role","application").find(".ui-slider-label").each(function(){jQuery(this).css("marginLeft",-jQuery(this).width()/2)});var o=d.slider("values");if(i(o)){$(o).each(function(j){d.find(".ui-slider-tooltip").eq(j).html(m(this))})}else{d.find(".ui-slider-tooltip").eq(0).html(m(o))}return this};(function(a){a.fn.extend({autocomplete:function(b,c){var d=typeof b=="string";c=a.extend({},a.Autocompleter.defaults,{url:d?b:null,data:d?null:b,delay:d?a.Autocompleter.defaults.delay:10,max:c&&!c.scroll?10:150},c);c.highlight=c.highlight||function(e){return e};c.formatMatch=c.formatMatch||c.formatItem;return this.each(function(){new a.Autocompleter(this,c)})},result:function(b){return this.bind("result",b)},search:function(b){return this.trigger("search",[b])},flushCache:function(){return this.trigger("flushCache")},setOptions:function(b){return this.trigger("setOptions",[b])
},unautocomplete:function(){return this.trigger("unautocomplete")}});a.Autocompleter=function(l,g){var c={UP:38,DOWN:40,DEL:46,TAB:9,RETURN:13,ESC:27,COMMA:188,PAGEUP:33,PAGEDOWN:34,BACKSPACE:8};var b=a(l).attr("autocomplete","off").addClass(g.inputClass);var j;var p="";var m=a.Autocompleter.Cache(g);var e=0;var u;var x={mouseDownOnSelect:false};var r=a.Autocompleter.Select(g,l,d,x);var w;a.browser.opera&&a(l.form).bind("submit.autocomplete",function(){if(w){w=false;return false}});b.bind((a.browser.opera?"keypress":"keydown")+".autocomplete",function(y){u=y.keyCode;switch(y.keyCode){case c.UP:y.preventDefault();if(r.visible()){r.prev()}else{t(0,true)}break;case c.DOWN:y.preventDefault();if(r.visible()){r.next()}else{t(0,true)}break;case c.PAGEUP:y.preventDefault();if(r.visible()){r.pageUp()}else{t(0,true)}break;case c.PAGEDOWN:y.preventDefault();if(r.visible()){r.pageDown()}else{t(0,true)}break;case g.multiple&&a.trim(g.multipleSeparator)==","&&c.COMMA:case c.TAB:case c.RETURN:if(d()){y.preventDefault();w=true;return false}break;case c.ESC:r.hide();break;default:clearTimeout(j);j=setTimeout(t,g.delay);break}}).focus(function(){e++}).blur(function(){e=0;if(!x.mouseDownOnSelect){s()}}).click(function(){if(e++>1&&!r.visible()){t(0,true)}}).bind("search",function(){var y=(arguments.length>1)?arguments[1]:null;function z(D,C){var A;if(C&&C.length){for(var B=0;B<C.length;B++){if(C[B].result.toLowerCase()==D.toLowerCase()){A=C[B];break}}}if(typeof y=="function"){y(A)}else{b.trigger("result",A&&[A.data,A.value])}}a.each(h(b.val()),function(A,B){f(B,z,z)})}).bind("flushCache",function(){m.flush()}).bind("setOptions",function(){a.extend(g,arguments[1]);if("data" in arguments[1]){m.populate()}}).bind("unautocomplete",function(){r.unbind();b.unbind();a(l.form).unbind(".autocomplete")});function d(){var z=r.selected();if(!z){return false}var y=z.result;p=y;if(g.multiple){var A=h(b.val());if(A.length>1){y=A.slice(0,A.length-1).join(g.multipleSeparator)+g.multipleSeparator+y}y+=g.multipleSeparator}b.val(y);v();b.trigger("result",[z.data,z.value]);return true}function t(A,z){if(u==c.DEL){r.hide();return}var y=b.val();if(!z&&y==p){return}p=y;y=i(y);if(y.length>=g.minChars){b.addClass(g.loadingClass);if(!g.matchCase){y=y.toLowerCase()}f(y,k,v)}else{n();r.hide()}}function h(z){if(!z){return[""]}var A=z.split(g.multipleSeparator);var y=[];a.each(A,function(B,C){if(a.trim(C)){y[B]=a.trim(C)}});return y}function i(y){if(!g.multiple){return y}var z=h(y);return z[z.length-1]}function q(y,z){if(g.autoFill&&(i(b.val()).toLowerCase()==y.toLowerCase())&&u!=c.BACKSPACE){b.val(b.val()+z.substring(i(p).length));a.Autocompleter.Selection(l,p.length,p.length+z.length)}}function s(){clearTimeout(j);j=setTimeout(v,200)}function v(){var y=r.visible();r.hide();clearTimeout(j);n();if(g.mustMatch){b.search(function(z){if(!z){if(g.multiple){var A=h(b.val()).slice(0,-1);b.val(A.join(g.multipleSeparator)+(A.length?g.multipleSeparator:""))}else{b.val("")}}})}if(y){a.Autocompleter.Selection(l,l.value.length,l.value.length)}}function k(z,y){if(y&&y.length&&e){n();r.display(y,z);q(z,y[0].value);r.show()}else{v()}}function f(z,B,y){if(!g.matchCase){z=z.toLowerCase()}var A=m.load(z);if(A&&A.length){B(z,A)}else{if((typeof g.url=="string")&&(g.url.length>0)){var C={timestamp:+new Date()};a.each(g.extraParams,function(D,E){C[D]=typeof E=="function"?E():E});a.ajax({mode:"abort",port:"autocomplete"+l.name,dataType:g.dataType,url:g.url,data:a.extend({q:i(z),limit:g.max},C),success:function(E){var D=g.parse&&g.parse(E)||o(E);m.add(z,D);B(z,D)}})}else{r.emptyList();y(z)}}}function o(B){var y=[];var A=B.split("\n");for(var z=0;z<A.length;z++){var C=a.trim(A[z]);if(C){C=C.split("|");y[y.length]={data:C,value:C[0],result:g.formatResult&&g.formatResult(C,C[0])||C[0]}}}return y}function n(){b.removeClass(g.loadingClass)}};a.Autocompleter.defaults={inputClass:"ac_input",resultsClass:"ac_results",loadingClass:"ac_loading",minChars:1,delay:400,matchCase:false,matchSubset:true,matchContains:false,cacheLength:10,max:100,mustMatch:false,extraParams:{},selectFirst:true,formatItem:function(b){return b[0]},formatMatch:null,autoFill:false,width:0,multiple:false,multipleSeparator:", ",highlight:function(c,b){return c.replace(new RegExp("(?![^&;]+;)(?!<[^<>]*)("+b.replace(/([\^\$\(\)\[\]\{\}\*\.\+\?\|\\])/gi,"\\$1")+")(?![^<>]*>)(?![^&;]+;)","gi"),"<strong>$1</strong>")},scroll:true,scrollHeight:180};a.Autocompleter.Cache=function(c){var f={};var d=0;function h(l,k){if(!c.matchCase){l=l.toLowerCase()}var j=l.indexOf(k);if(j==-1){return false}return j==0||c.matchContains}function g(j,i){if(d>c.cacheLength){b()}if(!f[j]){d++}f[j]=i}function e(){if(!c.data){return false}var k={},j=0;if(!c.url){c.cacheLength=1}k[""]=[];for(var m=0,l=c.data.length;m<l;m++){var p=c.data[m];p=(typeof p=="string")?[p]:p;var o=c.formatMatch(p,m+1,c.data.length);if(o===false){continue}var n=o.charAt(0).toLowerCase();if(!k[n]){k[n]=[]}var q={value:o,data:p,result:c.formatResult&&c.formatResult(p)||o};k[n].push(q);if(j++<c.max){k[""].push(q)}}a.each(k,function(r,s){c.cacheLength++;g(r,s)})}setTimeout(e,25);function b(){f={};d=0}return{flush:b,add:g,populate:e,load:function(n){if(!c.cacheLength||!d){return null}if(!c.url&&c.matchContains){var m=[];for(var j in f){if(j.length>0){var o=f[j];a.each(o,function(p,k){if(h(k.value,n)){m.push(k)}})}}return m}else{if(f[n]){return f[n]}else{if(c.matchSubset){for(var l=n.length-1;l>=c.minChars;l--){var o=f[n.substr(0,l)];if(o){var m=[];a.each(o,function(p,k){if(h(k.value,n)){m[m.length]=k}});return m}}}}}return null}}};a.Autocompleter.Select=function(e,j,l,p){var i={ACTIVE:"ac_over"};var k,f=-1,r,m="",s=true,c,o;function n(){if(!s){return}c=a("<div/>").hide().addClass(e.resultsClass).css("position","absolute").appendTo(document.body);o=a("<ul/>").appendTo(c).mouseover(function(t){if(q(t).nodeName&&q(t).nodeName.toUpperCase()=="LI"){f=a("li",o).removeClass(i.ACTIVE).index(q(t));a(q(t)).addClass(i.ACTIVE)}}).click(function(t){a(q(t)).addClass(i.ACTIVE);l();j.focus();return false}).mousedown(function(){p.mouseDownOnSelect=true}).mouseup(function(){p.mouseDownOnSelect=false});if(e.width>0){c.css("width",e.width)}s=false}function q(u){var t=u.target;while(t&&t.tagName!="LI"){t=t.parentNode}if(!t){return[]}return t}function h(t){k.slice(f,f+1).removeClass(i.ACTIVE);g(t);var v=k.slice(f,f+1).addClass(i.ACTIVE);if(e.scroll){var u=0;k.slice(0,f).each(function(){u+=this.offsetHeight});if((u+v[0].offsetHeight-o.scrollTop())>o[0].clientHeight){o.scrollTop(u+v[0].offsetHeight-o.innerHeight())}else{if(u<o.scrollTop()){o.scrollTop(u)}}}}function g(t){f+=t;if(f<0){f=k.size()-1}else{if(f>=k.size()){f=0}}}function b(t){return e.max&&e.max<t?e.max:t}function d(){o.empty();var u=b(r.length);for(var v=0;v<u;v++){if(!r[v]){continue}var w=e.formatItem(r[v].data,v+1,u,r[v].value,m);if(w===false){continue}var t=a("<li/>").html(e.highlight(w,m)).addClass(v%2==0?"ac_even":"ac_odd").appendTo(o)[0];a.data(t,"ac_data",r[v])}k=o.find("li");if(e.selectFirst){k.slice(0,1).addClass(i.ACTIVE);f=0}if(a.fn.bgiframe){o.bgiframe()}}return{display:function(u,t){n();r=u;m=t;d()},next:function(){h(1)},prev:function(){h(-1)},pageUp:function(){if(f!=0&&f-8<0){h(-f)}else{h(-8)}},pageDown:function(){if(f!=k.size()-1&&f+8>k.size()){h(k.size()-1-f)}else{h(8)}},hide:function(){c&&c.hide();k&&k.removeClass(i.ACTIVE);f=-1},visible:function(){return c&&c.is(":visible")},current:function(){return this.visible()&&(k.filter("."+i.ACTIVE)[0]||e.selectFirst&&k[0])},show:function(){var v=a(j).offset();c.css({width:typeof e.width=="string"||e.width>0?e.width:a(j).width(),top:v.top+j.offsetHeight,left:v.left}).show();if(e.scroll){o.scrollTop(0);o.css({maxHeight:e.scrollHeight,overflow:"auto"});if(a.browser.msie&&typeof document.body.style.maxHeight==="undefined"){var t=0;k.each(function(){t+=this.offsetHeight});var u=t>e.scrollHeight;o.css("height",u?e.scrollHeight:t);if(!u){k.width(o.width()-parseInt(k.css("padding-left"))-parseInt(k.css("padding-right")))}}}},selected:function(){var t=k&&k.filter("."+i.ACTIVE).removeClass(i.ACTIVE);
return t&&t.length&&a.data(t[0],"ac_data")},emptyList:function(){o&&o.empty()},unbind:function(){c&&c.remove()}}};a.Autocompleter.Selection=function(d,e,c){if(d.createTextRange){var b=d.createTextRange();b.collapse(true);b.moveStart("character",e);b.moveEnd("character",c);b.select()}else{if(d.setSelectionRange){d.setSelectionRange(e,c)}else{if(d.selectionStart){d.selectionStart=e;d.selectionEnd=c}}}d.focus()}})(jQuery);(function(b){function a(){this._curHash="";this._callback=function(c){}}b.extend(a.prototype,{init:function(d){this._callback=d;this._curHash=location.hash;if(b.browser.msie){if(this._curHash==""){this._curHash="#"}b("body").prepend('<iframe id="jQuery_history" style="display: none;"></iframe>');var c=b("#jQuery_history")[0].contentWindow.document;c.open();c.close();c.location.hash=this._curHash}else{if(b.browser.safari){this._historyBackStack=[];this._historyBackStack.length=history.length;this._historyForwardStack=[];this._isFirst=true;this._dontCheck=false}}this._callback(this._curHash.replace(/^#/,""));setInterval(this._check,100)},add:function(c){this._historyBackStack.push(c);this._historyForwardStack.length=0;this._isFirst=true},_check:function(){if(b.browser.msie){var c=b("#jQuery_history")[0];var f=c.contentDocument||c.contentWindow.document;var h=f.location.hash;if(h!=b.history._curHash){location.hash=h;b.history._curHash=h;b.history._callback(h.replace(/^#/,""))}}else{if(b.browser.safari){if(!b.history._dontCheck){var d=history.length-b.history._historyBackStack.length;if(d){b.history._isFirst=false;if(d<0){for(var e=0;e<Math.abs(d);e++){b.history._historyForwardStack.unshift(b.history._historyBackStack.pop())}}else{for(var e=0;e<d;e++){b.history._historyBackStack.push(b.history._historyForwardStack.shift())}}var g=b.history._historyBackStack[b.history._historyBackStack.length-1];if(g!=undefined){b.history._curHash=location.hash;b.history._callback(g)}}else{if(b.history._historyBackStack[b.history._historyBackStack.length-1]==undefined&&!b.history._isFirst){if(document.URL.indexOf("#")>=0){b.history._callback(document.URL.split("#")[1])}else{b.history._callback("")}b.history._isFirst=true}}}}else{var h=location.hash;if(h!=b.history._curHash){b.history._curHash=h;b.history._callback(h.replace(/^#/,""))}}}},load:function(f){var g;if(b.browser.safari){g=f}else{g="#"+f;location.hash=g}this._curHash=g;if(b.browser.msie){var c=b("#jQuery_history")[0];var e=c.contentWindow.document;e.open();e.close();e.location.hash=g;this._callback(f)}else{if(b.browser.safari){this._dontCheck=true;this.add(f);var d=function(){b.history._dontCheck=false};window.setTimeout(d,200);this._callback(f);location.hash=g}else{this._callback(f)}}}});b(document).ready(function(){b.history=new a()})})(jQuery);(function(a){var b={onClick:function(){a(this).find(">a").each(function(){if(this.href){window.location=this.href}})},arrowSrc:"",subDelay:300,mainDelay:10};a.fn.clickMenu=function(f){var c=false;var q=((a.browser.msie)?4:2);var p=a.extend({},b,f);var d=function(y,x){if(y.timer&&!y.isVisible){clearTimeout(y.timer)}else{if(y.timer){return}}if(y.isVisible){y.timer=setTimeout(function(){a(k(h(y,"UL"),"LI")).unbind("mouseover",i).unbind("mouseout",r).unbind("click",p.onClick);a(y).hide();y.isVisible=false;y.timer=null},x)}};var m=function(y,x){if(y.timer){clearTimeout(y.timer)}if(!y.isVisible){y.timer=setTimeout(function(){if(!v(y.parentNode,"hover")){return}a(k(h(y,"UL"),"LI")).mouseover(i).mouseout(r).click(p.onClick);if(!v(y.parentNode,"main")){a(y).css("left",y.parentNode.offsetWidth-q)}y.isVisible=true;a(y).show();if(a.browser.msie){var z=a(h(y,"UL")).width();if(z<100){z=100}a(y).css("width",z)}y.timer=null},x)}};var w=function(y){var x=(y.type=="mouseover"?y.fromElement:y.toElement)||y.relatedTarget;while(x&&x!=this){try{x=x.parentNode}catch(y){x=this}}if(x==this){return false}return true};var s=function(A){var x=k(this.parentNode,"LI");var z=new RegExp("(^|\\s)hover(\\s|$)");for(var y=0;y<x.length;y++){if(z.test(x[y].className)){a(x[y]).removeClass("hover")}}a(this).addClass("hover");if(c){o(this,p.mainDelay)}};var i=function(x){if(!w(x)){return false}if(x.target!=this){if(!j(this,x.target)){return}}o(this,p.subDelay)};var g=function(x){var y=a(x).parents(".disabled_provider");if(y.length>0){return}};var o=function(x,y){var A=h(x,"DIV");var C=x.parentNode.firstChild;for(;C;C=C.nextSibling){if(C.nodeType==1&&C.nodeName.toUpperCase()=="LI"){var B=h(C,"DIV");if(B&&B.timer&&!B.isVisible){clearTimeout(B.timer);B.timer=null}}}var z=x.parentNode;for(;z;z=z.parentNode){if(z.nodeType==1&&z.nodeName.toUpperCase()=="DIV"){if(z.timer){clearTimeout(z.timer);z.timer=null;a(z.parentNode).addClass("hover")}}}a(x).addClass("hover");if(A&&A.isVisible){if(A.timer){clearTimeout(A.timer);A.timer=null}else{return}}a(x.parentNode.getElementsByTagName("DIV")).each(function(){if(this!=A&&this.isVisible){d(this,y);a(this.parentNode).removeClass("hover")}});if(A){m(A,y)}};var r=function(x){if(!w(x)){return false}if(x.target!=this){if(!j(this,x.target)){return}}var y=h(this,"DIV");if(!y){a(this).removeClass("hover")}else{if(!y.isVisible){a(this).removeClass("hover")}}};var t=function(z){var A=h(this,"DIV");var y=z.relatedTarget||z.toElement;var x;if(!c){a(this).removeClass("hover")}else{if(!A&&y){x=e(z.target,"UL","clickMenu");if(x.contains(y)){a(this).removeClass("hover")}}else{if(y){x=e(z.target,"UL","clickMenu");if(!A.isVisible&&(x.contains(y))){a(this).removeClass("hover")}}}}};var l=function(){var x=h(this,"DIV");if(x&&x.isVisible){n();a(this).addClass("hover")}else{o(this,p.mainDelay);c=true;a(document).bind("mousedown",u)}return false};var u=function(z){var y=false;var x=e(z.target,"UL","clickMenu");if(x){a(x.getElementsByTagName("DIV")).each(function(){if(this.isVisible){y=true}})}if(!y){n()}};var n=function(){a("ul.clickMenu div.outerbox").each(function(){if(this.timer){clearTimeout(this.timer);this.timer=null}if(this.isVisible){a(this).hide();this.isVisible=false}});a("ul.clickMenu li").removeClass("hover");a("ul.clickMenu>li li").unbind("mouseover",i).unbind("mouseout",r).unbind("click",p.onClick);a(document).unbind("mousedown",u);c=false};var h=function(y,x){if(!y){return null}var z=y.firstChild;for(;z;z=z.nextSibling){if(z.nodeType==1&&z.nodeName.toUpperCase()==x){return z}}return null};var k=function(z,x){if(!z){return[]}var y=[];var A=z.firstChild;for(;A;A=A.nextSibling){if(A.nodeType==1&&A.nodeName.toUpperCase()==x){y[y.length]=A}}return y};var e=function(z,y,B){var x=z.parentNode;var A=new RegExp("(^|\\s)"+B+"(\\s|$)");for(;x;x=x.parentNode){if(x.nodeType==1&&x.nodeName.toUpperCase()==y&&A.test(x.className)){return x}}return null};var v=function(x,z){var y=new RegExp("(^|\\s)"+z+"(\\s|$)");if(y.test(x.className)){return true}return false};var j=function(y,x){var z=y.firstChild;for(;z;z=z.nextSibling){if(z==x){return true}}return false};return this.each(function(){if(window.Node&&Node.prototype&&!Node.prototype.contains){Node.prototype.contains=function(z){return !!(this.compareDocumentPosition(z)&16)}}if(!v(this,"clickMenu")){a(this).addClass("clickMenu")}a("ul",this).shadowBox();if(a.browser.msie&&(!a.browser.version||parseInt(a.browser.version)<=6)){if(a.fn.bgiframe){a("div.outerbox",this).bgiframe()}else{a("div.outerbox",this).append('<iframe style="display:block;position:absolute;top:0;left:0;z-index:-1;filter:mask();width:expression(this.parentNode.offsetWidth);height:expression(this.parentNode.offsetHeight)"/>')}}a(this).bind("closemenu",function(){n()});var x=k(this,"LI");for(var y=0;y<x.length;y++){if(h(h(h(x[y],"DIV"),"UL"),"LI")){a(x[y]).click(l)}}a(x).hover(s,t).addClass("main").find(">div").addClass("inner");if(p.arrowSrc){a("div.inner div.outerbox",this).before('<img src="'+p.arrowSrc+'" class="liArrow" />')}a(this).wrap('<div class="cmDiv"></div>').after('<div style="clear: both; visibility: hidden;"></div>')})};a.fn.clickMenu.setDefaults=function(c){a.extend(b,c)}})(jQuery);(function(a){a.fn.shadowBox=function(){return this.each(function(){var b=a('<div class="outerbox"></div>').get(0);
if(a(this).css("position")=="absolute"){a(b).css({position:"relative",width:this.offsetWidth,height:this.offsetHeight})}else{a(b).css("position","absolute")}a(this).addClass("innerBox").wrap(b).before('<div class="shadowbox1"></div><div class="shadowbox2"></div><div class="shadowbox3"></div>')})}})(jQuery);var each=function(a,e){var c=[];for(var b=0;b<a.length;b++){var f=a[b];var d=e(f);c.push(d)}return c};var data={icons:{"google.com":[0,0],"search.live.com":[1,0],"yahoo.com":[2,0],"www.baidu.com":[3,0],"search.dmoz.org":[4,0],"www.cuil.com":[5,0],"www.ask.com":[6,0],"a9.com":[7,0],"yandex.ru":[8,0],"www.flickr.com":[9,0],"profile.imageshack.us":[0,1],"photobucket.com":[1,1],"tinypic.com":[2,1],"ask.com":[3,1],"www.smugmug.com":[4,1],"zooomr.com":[5,1],"www.picsearch.com":[6,1],"www.pixsy.com":[7,1],"www.exalead.com":[8,1],"www.gettyimages.com":[9,1],"istockphoto.com":[0,2],"www.mininova.org":[1,2],"www.torrentz.com":[2,2],"btjunkie.org":[3,2],"www.youtorrent.com":[4,2],"www.vuze.com":[5,2],"thepiratebay.org":[6,2],"www.demonoid.com":[7,2],"isohunt.com":[8,2],"www.torrentreactor.net":[9,2],"www.torrentbox.com":[0,3],"www.amazon.com":[1,3],"search.barnesandnoble.com":[2,3],"www.gutenberg.org":[3,3],"www.chapters.indigo.ca":[4,3],"www.ebookee.com":[5,3],"kayak.com":[6,3],"expedia.com":[7,3],"dictionary.reference.com":[8,3],"www.dict.org":[9,3],"thesaurus.reference.com":[0,4],"www.merriam-webster.com":[1,4],"en.wiktionary.org":[2,4],"www.urbandictionary.com":[3,4],"search.money.cnn.com":[4,4],"search.bloomberg.com":[5,4],"moneycentral.msn.com":[6,4],"search.us.reuters.com":[7,4],"search.businessweek.com":[8,4],"search.forbes.com":[9,4],"search.ft.com":[0,5],"www.marketwatch.com":[1,5],"online.wsj.com":[2,5],"www.thestreet.com":[3,5],"query.nytimes.com":[4,5],"www.economist.com":[5,5],"alexa.com":[6,5],"who.is":[7,5],"web.archive.org":[8,5],"siteanalytics.compete.com":[9,5],"www.ip-adress.com":[0,6],"www.aboutus.org":[1,6],"dns-tools.domaintools.com":[2,6],"search.twitter.com":[3,6],"www.icerocket.com":[4,6],"www.technorati.com":[5,6],"www.blogpulse.com":[6,6],"www.blogdigger.com":[7,6],"www.syndic8.com":[8,6],"www.bloglines.com":[9,6],"search.allrecipes.com":[0,7],"cookeatshare.com":[1,7],"www.foodista.com":[2,7],"www.recipepuppy.com":[3,7],"www.recipekey.com":[4,7],"www.nibbledish.com":[5,7],"www.tastebook.com":[6,7],"www.familyoven.com":[7,7],"www.foodchannel.com":[8,7],"www.recipezaar.com":[9,7],"www.cookstr.com":[0,8],"www.cookthink.com":[1,8],"www.cooking.com":[2,8],"www.cookingforengineers.com":[3,8],"tastyplanner.com":[4,8],"www.recipesource.com":[5,8],"www.epicurious.com":[6,8],"www.mapquest.com":[7,8],"wikimapia.org":[8,8],"mappery.com":[9,8],"www.facebook.com":[0,9],"www.whitepages.com":[1,9],"www.linkedin.com":[2,9],"wink.com":[3,9],"www.123people.com":[4,9],"www.twellow.com":[5,9],"www.spock.com":[6,9],"www.crunchbase.com":[7,9],"www.zabasearch.com":[8,9],"www.zoominfo.com":[9,9],"www.squidoo.com":[0,10],"en.wikipedia.org":[1,10],"search.about.com":[2,10],"www.howstuffworks.com":[3,10],"www.freebase.com":[4,10],"www.imdb.com":[5,10],"www.wikihow.com":[6,10],"www.wolframalpha.com":[7,10],"uncyclopedia.org":[8,10],"digg.com":[9,10],"slashdot.org":[0,11],"www.propeller.com":[1,11],"www.reddit.com":[2,11],"delicious.com":[3,11],"www.stumbleupon.com":[4,11],"clipmarks.com":[5,11],"rapidlibrary.com":[6,11],"www.shareminer.com":[7,11],"www.craigslist.org":[8,11],"www.become.com":[9,11],"bountii.com":[0,12],"www.gotodaily.com":[1,12],"www.8coupons.com":[2,12],"www.youtube.com":[3,12],"www.viddler.com":[4,12],"rutube.ru":[5,12],"www.justin.tv":[6,12],"www.megavideo.com":[7,12],"www.metacafe.com":[8,12],"blip.tv":[9,12],"revver.com":[0,13],"video.aol.com":[1,13],"www.hulu.com":[2,13],"www.veoh.com":[3,13]},pages:[{id:"general",d:"Most popular search system and catalogs.",providers:[{icon:"google.com",id:"google",title:"Google",val:"q",t:"http://www.google.com/search?",customControls:[{label:"Results For",param:"as_qdr",type:"slider",options:[{value:"all",_body:"anytime",selected:true},{value:"d",_body:"past 24 hours"},{value:"d3",_body:"past 3 days"},{value:"w",_body:"past week"},{value:"w2",_body:"past 2 weeks"},{value:"m",_body:"past month"},{value:"m2",_body:"past 2 months"},{value:"m3",_body:"past 3 months"},{value:"m6",_body:"past 6 months"},{value:"y",_body:"past year"}]},{label:"Filetypes",param:"as_filetype",type:"select",options:each("all pdf ps dwf kml kmz xls ppt doc rtf swf".split(" "),function(b){var a={value:(b=="all"?"":b),_body:(b+" files")};if(b=="all"){a.selected=true}return a})},{label:"Number of Results",param:"num",type:"slider",options:each("10 20 30 40 50 70 100".split(" "),function(a){var b={value:a,_body:(a+" per page")};if(a==20){b.selected=true}return b})}]},{t:"http://search.live.com/results.aspx?q=%s",title:"Live"},{t:"http://www.bing.com/search?q=%s"},{t:"http://search.yahoo.com/search?",val:"p",title:"Yahoo",customControls:[{label:"Results For",param:"vd",type:"slider",options:[{value:"all",_body:"anytime",selected:true},{value:"m3",_body:"past 3 months"},{value:"m6",_body:"past 6 months"},{value:"y",_body:"past year"}]},{label:"Filetypes",param:"vf",type:"select",options:each("all html pdf xl ppt msword rss txt".split(" "),function(b){var a={value:b,_body:(b+" files")};if(b=="all"){a.selected=true}return a})},{label:"Number of Results",param:"n",type:"slider",options:each("10 20 30 40 50 70 100".split(" "),function(a){var b={value:a,_body:(a+" per page")};if(a==20){b.selected=true}return b})}]},{t:"http://www.baidu.com/s?wd=%s",name:"Baidu"},{t:"http://search.dmoz.org/cgi-bin/search?search=%s",name:"Dmoz open directory"},{t:"http://www.cuil.com/search?q=%s",name:"Cuil"},{t:"http://www.ask.com/web?",name:"Ask",val:"q",customControls:[{label:"Results For",param:"last",type:"slider",options:[{value:"",_body:"anytime",selected:true},{value:"week",_body:"past week"},{value:"2weeks",_body:"past 2 weeks"},{value:"month",_body:"past month"},{value:"3months",_body:"past 3 months"},{value:"6months",_body:"past 6 months"},{value:"year",_body:"past year"},{value:"2years",_body:"past 2 years"}]}]},{t:"http://a9.com/?q=%s",n:"A-9"},{t:"http://www.viewzi.com/search/power_grid/%s"},{t:"http://www.oneriot.com/search?q=%s&st=web&ot=PULSE"},{t:"http://yandex.ru/yandsearch?",val:"text",n:"Yandex",customControls:[{label:"Filetypes",param:"mime",type:"select",options:each("all html pdf rtf doc xls ppt swf".split(" "),function(b){var a={value:b,_body:(b+" files")};if(b=="all"){a.selected=true}return a})},{label:"Number of Results",param:"numdoc",type:"slider",options:each("10 20 30 50".split(" "),function(a){var b={value:a,_body:(a+" per page")};if(a==20){b.selected=true}return b})}]}]},{id:"pictures",d:"Image hostings and search systems.",providers:[{t:"http://www.flickr.com/search/?",val:"q",customControls:[{label:"Search in Tags",type:"checkbox",param:"m",values:["text","tags"],checked:false},{label:"min exposure(sec)",param:"xel",type:"text"},{label:"max exposure(sec)",param:"xeh",type:"text"},{label:"min focal length(mm)",param:"xfl",type:"text"},{label:"max focal length(mm)",param:"xfh",type:"text"},{label:"min aperture(f-number)",param:"xal",type:"text"},{label:"max aperture(f-number)",param:"xah",type:"text"}]},{t:"http://images.google.com/images?",val:"q",customControls:[{label:"Size",param:"imgsz",type:"select",options:[{value:"",_body:"All image sizes",selected:true},{value:"huge",_body:"Extra Large images"},{value:"xxlarge",_body:"Large images"},{value:"small|medium|large|xlarge",_body:"Medium images"},{value:"icon",_body:"Small images"}]},{label:"Type",param:"imgtype",type:"select",options:[{value:"",_body:"Any content",selected:true},{value:"news",_body:"News content"},{value:"face",_body:"Faces"},{value:"clipart",_body:"Clip art"},{value:"lineart",_body:"Line drawings"},{value:"photo",_body:"Photo content"}]},{label:"Color",param:"imgcolor",type:"select",options:each("any black blue brown gray green orange pink pink purple red teal white yellow".split(" "),function(a){return{_body:a,value:a}
})},{label:"Safe Search",type:"checkbox",param:"safe",values:["off","on"],checked:true}]},{t:"http://images.search.yahoo.com/search/images?p=%s"},{t:"http://profile.imageshack.us/search.php?q=%s",n:"Imageshack"},{t:"http://photobucket.com/images/%s/"},{t:"http://search.pbase.com/search?q=%s"},{t:"http://tinypic.com/search.php?type=images&tag=%s"},{t:"http://ask.com/pictures?",val:"q",customControls:[{label:"Size",param:"imgs",type:"slider",options:[{value:"",_body:"All sizes",selected:true},{value:"i",_body:"Buddy icon"},{value:"s",_body:"Small"},{value:"m",_body:"Medium"},{value:"l",_body:"Large"},{value:"w",_body:"Wallpaper"}]},{label:"File Type",param:"imgt",type:"select",options:[{value:"",_body:"All file types",selected:true},{value:"jpg",_body:"JPG"},{value:"gif",_body:"GIF"},{value:"bmp",_body:"BMP"},{value:"png",_body:"PNG"}]}]},{t:"http://www.smugmug.com/search/index.mg?searchWords=%s"},{t:"http://www.bing.com/images/search?q=%s&go=&scope=images&filt=all"},{t:"http://zooomr.com/search/photos/?q=%s"},{t:"http://www.picsearch.com/search.cgi?q=%s"},{t:"http://www.pixsy.com/search.aspx?q=%s"},{t:"http://www.exalead.com/image/results/%s/"},{t:"http://picasaweb.google.com/lh/view?q=%s&psc=G&filter=1#"},{t:"http://www.gettyimages.com/Search/Search.aspx?contractUrl=2&language=en-US&family=editorial&p=%s&assetType=image&src=quick"},{t:"http://www.picapp.com/Search.aspx?term=%s"},{t:"http://istockphoto.com/file_search.php?action=file&text=%s"}]},{id:"torrents",d:"Search torrents at most popular torrent trackers and over the Web.",providers:[{t:"http://www.mininova.org/search/?",val:"search",customControls:[{label:"Category",param:"cat",type:"select",options:[{value:"0",_body:"All torrents",selected:true},{value:"10",_body:"Featured"},{value:"1",_body:"Anime"},{value:"2",_body:"Books"},{value:"3",_body:"Games"},{value:"4",_body:"Movies"},{value:"5",_body:"Music"},{value:"6",_body:"Pictures"},{value:"7",_body:"Software"},{value:"8",_body:"TV Shows"},{value:"9",_body:"Other"}]}]},{t:"http://www.torrentz.com/search?q=%s"},{t:"http://btjunkie.org/search?q=%s"},{t:"http://www.youtorrent.com/tag/?q=%s"},{t:"http://www.vuze.com/search?q=%s"},{t:"http://thepiratebay.org/search/%s",title:"The Pirate Bay",newwindow:true},{t:"http://www.demonoid.com/files/?query=%s"},{t:"http://isohunt.com/torrents/?ihq=%s"},{t:"http://www.google.com/search?q=%s&btnG=Search&q=filetype%3Atorrent"},{t:"http://www.torrentbox.com/torrents-search.php?search=%s"}]},{id:"books",p:"Downloadable and paper books.",providers:[{id:"amazon_books",title:"Amazon Books",icon:"amazon.com",val:"field-keywords",t:"http://www.amazon.com/gp/search/ref=sr_adv_b/?search-alias=stripbooks&unfiltered=1&field-publisher=&node=&url=&field-feature_browse-bin=&tag=ajaxy-20&field-binding_browse-bin=&field-subject=&field-language=&field-dateop=&field-datemod=&field-dateyear=&sort=relevancerank&Adv-Srch-Books-Submit.x=35&Adv-Srch-Books-Submit.y=12&",customControls:[{label:"Author",param:"field-author",type:"text",t:"http://search.barnesandnoble.com/booksearch/results.asp?"},{label:"Title",param:"field-title",type:"text"},{label:"ISBN",param:"field-isbn",type:"text"}]},{id:"bn_books",title:"Barnes&Noble",val:"WRD",t:"http://search.barnesandnoble.com/booksearch/results.asp?",icon:"barnesandnoble.com",customControls:[{label:"Author",param:"ATH",type:"text"},{label:"Title",param:"TTL",type:"text"}]},{title:"Google Book Search",val:"q",icon:"google.com",t:"http://books.google.com/books?",customControls:[{label:"Show",param:"as_brr",type:"select",options:[{value:"0",_body:"All books",selected:true},{value:"3",_body:"Limited preview and full view"},{value:"1",_body:"Full view only"}]},{label:"Author",param:"as_auth",type:"text"},{label:"ISBN",param:"as_isbn",type:"text"},{label:"Number of Results",param:"num",type:"slider",options:each("10 20 30 40 50 70 100".split(" "),function(a){var b={value:a,_body:(a+" per page")};if(a==20){b.selected=true}return b})}]},{t:"http://www.gutenberg.org/catalog/world/results?",val:"fulltext",customControls:[{label:"Author",param:"author",type:"text"},{label:"Title",param:"title",type:"text"},{label:"Subject",param:"subject",type:"text"}]},{t:"http://www.chapters.indigo.ca/books/search?keywords=%s&pageSize=10"},{t:"http://www.ebookee.com/search.php?q=%s&sa=Search"}]},{id:"flight_tickets",title:"Flight Tickets",providers:[{id:"kayak_flight",title:"Kayak",icon:"kayak.com"},{id:"expedia_flight",title:"Expedia",icon:"expedia.com"}]},{id:"dictionaries",providers:[{t:"http://dictionary.reference.com/search?q=%s"},{t:"http://www.dict.org/bin/Dict?Query=%s&Form=Dict1&Strategy=*&Database=*"},{t:"http://thesaurus.reference.com/search?q=%s",title:"Thesaurus"},{t:"http://www.merriam-webster.com/dictionary/%s"},{t:"http://www.pronouncenames.com/search?name=%s"},{t:"http://en.wiktionary.org/wiki/%s"},{t:"http://www.urbandictionary.com/define.php?term=%s"}]},{id:"finance",title:"Bisiness and Finance",providers:[{t:"http://finance.yahoo.com/search?type=&s=%s"},{t:"http://search.money.cnn.com/pages/search.jsp?magazine=web&source=money&query=&invocationType=search%252Ftop&QueryText=%s"},{t:"http://search.bloomberg.com/search?site=wnews&client=wnews&proxystylesheet=wnews&output=xml_no_dtd&ie=UTF-8&oe=UTF-8&filter=p&getfields=wnnis&sort=date%3AD%3AS%3Ad1&q=%s"},{t:"http://moneycentral.msn.com/money.search?q=%s"},{t:"http://www.business.com/search/rslt_default.asp?vt=all&type=web&query=%s&x=0&y=0"},{t:"http://search.us.reuters.com/rsearch/rcomSearch.do?blob=%s"},{t:"http://search.businessweek.com/Search?searchTerm=%s"},{t:"http://www.yelp.com/search?",val:"find_desc",customControls:[{label:"Near",param:"find_loc",type:"text"}]},{t:"http://search.forbes.com/search/find?MT=%s"},{t:"http://search.ft.com/search?queryText=%s"},{t:"http://www.marketwatch.com/search/?value=%s"},{t:"http://online.wsj.com/public/search/page/3_0466.html?KEYWORDS=%s",title:"Wall Street Journal"},{t:"http://www.thestreet.com/search/result.html?topicSearch=%s"},{t:"http://query.nytimes.com/search/business?query=%s"},{t:"http://www.thomasnet.com/prodsearch.html?",val:"what",customControls:[{label:"What",type:"select",param:"which",options:[{value:"prod",_body:"Product/Service"},{value:"comp",_body:"Company Name"},{value:"brand",_body:"Brand"},{_body:"White Papers",value:"whitepapers"}]},{label:"State",type:"select",param:"cov",options:[{value:"NA",_body:"All States/Provinces"},{value:"AL",_body:"Alabama	"},{value:"AK",_body:"Alaska	"},{value:"AB",_body:"Alberta	"},{value:"AZ",_body:"Arizona	"},{value:"AR",_body:"Arkansas	"},{value:"BC",_body:"British Columbia	"},{value:"CN",_body:"California - Northern	"},{value:"CS",_body:"California - Southern	"},{value:"CO",_body:"Colorado	"},{value:"CT",_body:"Connecticut	"},{value:"DE",_body:"Delaware	"},{value:"DC",_body:"District of Columbia"},{value:"FL",_body:"Florida	"},{value:"GA",_body:"Georgia	"},{value:"HI",_body:"Hawaii	"},{value:"ID",_body:"Idaho	"},{value:"IL",_body:"Illino	"},{value:"IN",_body:"Indiana	"},{value:"IA",_body:"Iowa	"},{value:"KS",_body:"Kansas	"},{value:"KY",_body:"Kentucky	"},{value:"LA",_body:"Louisiana	"},{value:"ME",_body:"Maine	"},{value:"MB",_body:"Manitoba	"},{value:"MD",_body:"Maryland	"},{value:"EM",_body:"Massachusetts - Eastern	"},{value:"WM",_body:"Massachusetts - Western	"},{value:"MI",_body:"Michigan	"},{value:"MN",_body:"Minnesota	"},{value:"MS",_body:"Mississippi	"},{value:"MO",_body:"Missouri	"},{value:"MT",_body:"Montana	"},{value:"NE",_body:"Nebraska"},{value:"NV",_body:"Nevada	"},{value:"NB",_body:"New Brunswick	"},{value:"NH",_body:"New Hampshire	"},{value:"JN",_body:"New Jersey - Northern	"},{value:"JS",_body:"New Jersey - Southern	"},{value:"NM",_body:"New Mexico	"},{value:"DN",_body:"New York - Metro	"},{value:"UN",_body:"New York - Upstate	"},{value:"NL",_body:"Newfoundland and Labrador	"},{value:"NC",_body:"North Carolina	"},{value:"ND",_body:"North Dakota	"},{value:"NW",_body:"Northwest Territories	"},{value:"NS",_body:"Nova Scotia	"},{value:"NU",_body:"Nunavut	"},{value:"NO",_body:"Ohio - Northern	"},{value:"SO",_body:"Ohio - Southern	"},{value:"OK",_body:"Oklahoma	"},{value:"ON",_body:"Ontario	"},{value:"OR",_body:"Oregon	"},{value:"EP",_body:"Pennsylvania - Eastern	"},{value:"WP",_body:"Pennsylvania - Western	"},{value:"PE",_body:"Prince Edward Island	"},{value:"PR",_body:"Puerto Rico	"},{value:"QC",_body:"Quebec	"},{value:"RI",_body:"Rhode Island	"},{value:"SK",_body:"Saskatchewan	"},{value:"SC",_body:"South Carolina	"},{value:"SD",_body:"South Dakota	"},{value:"TN",_body:"Tennessee	"},{value:"NT",_body:"Texas - North	"},{value:"GT",_body:"Texas - South	"},{value:"UT",_body:"Utah	"},{value:"VT",_body:"Vermont	"},{value:"VI",_body:"Virgin Islands	"},{value:"VA",_body:"Virginia	"},{value:"WA",_body:"Washington	"},{value:"WV",_body:"West Virginia	"},{value:"WI",_body:"Wisconsin	"},{value:"WY",_body:"Wyoming	"},{value:"YT",_body:"Yukon"}]}]},{t:"http://www.economist.com/search/search.cfm?rv=2&qr=%s"}]},{id:"stock_quotes",title:"Stock Quotes",providers:[{t:"http://finance.yahoo.com/q?s=%s"},{t:"http://moneycentral.msn.com/investor/common/findsymbol.asp?Company=%s&nextpage=http%3a%2f%2fmoneycentral.msn.com%2fdetail%2fstock_quote"},{t:"http://www.quote.com/us/stocks/quote.action?s=%s"},{t:"http://finance.google.com/finance?q=%s"}]},{id:"site_tools",title:"Web Site Tools",small:"site URL, for example formgle.com",providers:[{t:"http://alexa.com/siteinfo/%s"},{t:"http://who.is/whois/%s/",n:"WhoIs"},{t:"http://web.archive.org/web/*/%s",n:"Web Archive"},{t:"http://siteanalytics.compete.com/%s/"},{t:"http://www.ip-adress.com/reverse_ip/%s",n:"IP-adress.com"},{t:"http://www.aboutus.org/%s"},{t:"http://www.google.com/search?q=site%3A%s",n:"Google Indexing"},{t:"http://search.yahoo.com/search?p=site%3A%s",n:"Yahoo Indexing"},{t:"http://trends.google.com/websites?q=%s&geo=all&date=all",title:"Google Trends for Websites"},{t:"http://dns-tools.domaintools.com/?",val:"q",customControls:[{label:"Type",param:"m",type:"select",options:[{value:"ping",_body:"Ping",selected:true},{value:"traceroute",_body:"Traceroute"},{value:"dns",_body:"DNS"}]}]}]},{id:"blogs",providers:[{t:"http://search.twitter.com/search?q=%s"},{t:"http://blogsearch.google.com/blogsearch?hl=en&q=%s",title:"Google Blog Search"},{t:"http://www.icerocket.com/search?q=%s"},{t:"http://www.technorati.com/search/%s"},{t:"http://www.blogscope.net/?",val:"q",customControls:[{label:"Rank results based on",type:"select",param:"sco",options:[{value:"recent_top",_body:"combination of recency and relevance"},{value:"lucene",_body:"their relevance"},{value:"date",_body:"their recency"},{value:"date_isome",_body:"their recency (at least some influence)"},{value:"date_ilot",_body:"their recency (high influence)"},{value:"influence",_body:"their influence"}]}]},{t:"http://www.blogpulse.com/search?query=%s"},{t:"http://www.blogdigger.com/search?q=%s"},{t:"http://www.syndic8.com/feedlist.php?ShowMatch=%s&ShowStatus=all"},{t:"http://www.bloglines.com/search?q=%s"}]},{id:"recipes",providers:[{t:"http://search.allrecipes.com/recipe/quick.asp?q1=%s&lnkid=65&x=10&y=7"},{t:"http://cookeatshare.com/recipes/search/%s"},{t:"http://www.foodista.com/search?query=%s"},{t:"http://www.recipepuppy.com/?i=&q=%s"},{t:"http://www.recipekey.com/search_results.php?s=%s"},{t:"http://www.nibbledish.com/recipes/search/%s"},{t:"http://www.tastebook.com/search?query=%s"},{t:"http://www.familyoven.com/search.jsp?search_name=%s"},{t:"http://www.foodchannel.com/search?search[search_term]=%s&search[search_type]=Recipe"},{t:"http://www.recipezaar.com/recipes.php?s_type=/recipes.php&q=%s"},{t:"http://www.cookstr.com/searches/new?query=%s"},{t:"http://www.cookthink.com/recipe/search?page=0&query=%s"},{t:"http://www.cooking.com/products/shprodli.asp?Keywords=%s"},{t:"http://www.cookingforengineers.com/search/%s"},{t:"http://tastyplanner.com/recipes/search?query=%s"},{t:"http://www.google.com/base/html?q=%s&a_n0=recipes&a_y0=9&view=list&hl=en&gl=US"},{t:"http://www.recipesource.com/cgi-bin/search.cgi?search_string=%s"},{t:"http://www.epicurious.com/recipes/find/results?search=%s&x=0&y=0"}]},{id:"maps",providers:[{t:"http://maps.google.com/maps?q=%s"},{t:"http://www.mapquest.com/maps/%s"},{t:"http://wikimapia.org/#search=%s"},{t:"http://mappery.com/searchmap.php?kw=%s"},{t:"http://maps.yahoo.com/?ard=1&q1=%s"}]},{id:"people",providers:[{t:"http://www.facebook.com/srch.php?nm=%s"},{t:"http://www.google.com/profiles?q=%s"},{t:"http://www.whitepages.com/search/FindPerson?post_back=1&firstname=%first&name=%last"},{t:"http://www.peekyou.com/?first_name=%first&last_name=%last&username=or+username&loc_drop=&tag=tags&tag_type=life&form=true"},{t:"http://www.linkedin.com/ns?search=&sik=1224111318417&name=%s",title:"LinkedIn"},{t:"http://wink.com/people/nm/%s/"},{t:"http://www.123people.com/s/%s"},{t:"http://www.twellow.com/search?q=%s&search_cat="},{t:"http://www.spock.com/q/%s"},{t:"http://www.crunchbase.com/search?query=%s"},{t:"http://www.zabasearch.com/query1_zaba.php?sname=%s&state=ALL&ref=&se=&doby=&city=&name_style=1&tm=&tmr=",title:""},{t:"http://www.zoominfo.com/search/PersonQuery.aspx?searchSource=basic_ssb&singleSearchBox=%s",title:""}]},{id:"info",providers:[{t:"http://www.squidoo.com/search/results/%s"},{t:"http://knol.google.com/k/knol/system/knol/pages/Search?restrict=general&q=%s",title:"Google Knol"},{t:"http://en.wikipedia.org/wiki/Special:Search?search=%s&go=Go"},{t:"http://search.about.com/fullsearch.htm?terms=%s"},{t:"http://www.google.com/squared/search?q=%s",title:"Google Squared"},{t:"http://www.howstuffworks.com/search.php?terms=%s"},{t:"http://www.freebase.com/search?limit=30&start=0&query=%s"},{t:"http://www.imdb.com/find?",val:"q",customControls:[{label:"",param:"s",type:"select",options:[{value:"all",_body:"all",selected:true},{value:"tt",_body:"titles"},{value:"ep",_body:"tv episodes"},{value:"My Movies",_body:"my movies"},{value:"nm",_body:"names"},{value:"kw",_body:"keywords"},{value:"char",_body:"characters"},{value:"Quotes",_body:"quotes"},{value:"Bios",_body:"bios"},{value:"Plots",_body:"plots"}]}]},{t:"http://www.wikihow.com/Special:GoogSearch?cx=016562026678751929112:ohfdgqnedms&cof=FORID:10&ie=UTF-8&q=%s&sa=Search"},{t:"http://www.wolframalpha.com/input/?i=%s"},{t:"http://uncyclopedia.org/wiki/Special:Search?search=%s&go=Go"}]},{id:"news",providers:[{t:"http://news.google.com/news?num=100&hl=en&lr=&tab=wn&ie=UTF-8&q=%s&scoring=d"},{t:"http://news.search.yahoo.com/news/rss?ei=UTF-8&p=%s&c=&eo=UTF-8"},{t:"http://buzz.yahoo.com/search?p=%s"},{t:"http://digg.com/search?section=all&s=%s"},{t:"http://slashdot.org/search.pl?query=%s"},{t:"http://www.propeller.com/search/?q=%s"},{t:"http://www.reddit.com/search?q=%s"}]},{id:"bookmarks",providers:[{t:"http://delicious.com/search/?fr=del_icio_us&p=%s"},{t:"http://www.stumbleupon.com/search.php?q=%s"},{t:"http://clipmarks.com/search/%s/"}]},{id:"files",providers:[{t:"http://rapidlibrary.com/index.php?",val:"q",customControls:[{label:"Fily Type",type:"select",param:"filetype",options:[{value:"0",_body:"All files"},{value:"1",_body:"Archives"},{value:"2",_body:"Audio"},{value:"3",_body:"Video"},{value:"4",_body:"Docs"},{value:"5",_body:"Pictures"},{value:"6",_body:"Aplications"},{value:"7",_body:"CD, DVD"}]}]},{t:"http://www.shareminer.com/search?",val:"q",customControls:[{label:"File type",type:"select",param:"type",options:[{value:"files",_body:"All files"},{value:"software",_body:"Software"},{value:"games",_body:"Games"},{value:"videos",_body:"Videos"},{value:"music",_body:"Music"},{value:"documents",_body:"Documents & EBooks"},{value:"archives",_body:"ZIP/RAR Files"}]}]}]},{id:"shopping",title:"Shopping and Classifieds",providers:[{t:"http://www.craigslist.org/search/sss?query=%s"},{t:"http://www.become.com/start?q=%s"},{t:"http://bountii.com/search.php?item=%s"},{t:"http://www.gotodaily.com/search_keyword?q=%s&x=0&y=0&search_by=keywords"},{t:"http://www.8coupons.com/search/show?search_string=%s"}]},{id:"videos",providers:[{t:"http://www.youtube.com/results?search_type=search_videos&search_sort=relevance&search_query=%s&search=Search"},{t:"http://www.viddler.com/search_detailed/?searchString=%s"},{t:"http://rutube.ru/search.html?page=index&search=%s&x=0&y=0"},{t:"http://www.justin.tv/search?q=%s"},{t:"http://www.bing.com/videos/search?q=%s&go=&scope=video&filt=all"},{t:"http://www.megavideo.com/?s=%s"},{t:"http://www.metacafe.com/tags/%s/"},{t:"http://www.blinkx.com/videos/%s"},{t:"http://blip.tv/search?q=%s&x=0&y=0"},{t:"http://revver.com/find/video/?query=%s&search_on=search"},{t:"http://video.aol.com/video-search/query/%s"},{t:"http://www.oneriot.com/search?q=%s&st=video&ot=PULSE"},{t:"http://www.hulu.com/videos/search?query=%s"},{t:"http://www.veoh.com/search.html?type=v&search=%s"}]}]};
(function(){var D=function(F){return document.createElement(F)};var v=document.all;var k=function(F){if(typeof F==="string"){return document.getElementById(F)}else{return F}};var x=function(){return window.gadgets};var o=function(G){if(window.pageTracker){var F=(x()?"g_":"s_")+G;window.pageTracker._trackPageview(F)}};var b=function(){if(x()){_IG_AdjustIFrameHeight()}};var w=function(){document.getElementsByTagName("body")[0].setAttribute("id",x()?"ggt":"wd")};var y=function(){return !x()};var n=function(){if(formgleConfig.site!="SITE_URL"){return"http://"+formgleConfig.site+"/"}else{if(window.location.href.indexOf("href")===0){return"http://www.formgle.com/"}else{return"./"}}};var p=function(F){return F.charAt(0).toUpperCase()+F.substring(1).toLowerCase()};var B=function(I,H){for(var G in H){if(H.hasOwnProperty(G)){if(G=="_body"){if(typeof H[G]=="string"){var K=document.createTextNode(H[G]);while(I.firstChild){I.removeChild(I.firstChild)}I.appendChild(K)}else{I.appendChild(H[G])}}else{if(G=="class"){I.setAttribute("class",H[G]);I.setAttribute("className",H[G])}else{if(G=="style"){for(var F in H[G]){if(H[G].hasOwnProperty(F)){var J=H[G][F];I.style[F]=J}}}else{I.setAttribute(G,H[G])}}}}}};var q=function(F){return(F.getMonth()+1)+"/"+F.getDate()+"/"+F.getFullYear()};var E=function(H,I,F){if(typeof I=="string"){var G=D(I);B(G,F);H.appendChild(G);return G}else{B(I,F);H.appendChild(I);return I}};var t=function(F,M,K,N){var P=[];var O=D("table");var I=D("tbody");O.appendChild(I);for(var J=0;J<K;J++){var L=D("tr");I.appendChild(L);for(var H=0;H<M;H++){var G=D("td");L.appendChild(G);P.push(G);if(N&&N.td_style){B(G,{style:N.td_style})}}}if(F){F.appendChild(O)}if(N&&N.table_style){B(O,{style:N.table_style})}return P};var c=function(F){return E(F,"div",{style:{clear:"both"}})};var l=function(K,I,H,F,J){var G=K.createElement("input");B(G,{name:H,type:F,value:J});I.appendChild(G)};var s=function(G,H,F){F=F||1000;var I=new Date();I.setDate(I.getDate()+F);document.cookie=G+"="+window.escape(H)+((F===null)?"":";expires="+I.toGMTString())};var C=function(G){if(document.cookie.length>0){var I=document.cookie.indexOf(G+"=");if(I!=-1){I=I+G.length+1;var F=document.cookie.indexOf(";",I);if(F==-1){F=document.cookie.length}var H=window.unescape(document.cookie.substring(I,F));return H}}return""};var a=function(G){var F=/^http:\/\/([^\/]+).*/.exec(G);if(F){return F[1]}};var d=function(F){var G=a(F.template)||F.icon;if(G){if(G.match(/google\.com$/)){G="google.com"}else{if(G.match(/yahoo\.com$/)){G="yahoo.com"}}}return G};var f=function(I,F,G){var J;return function H(){var M=this,L=arguments;function K(){if(!G){I.apply(M,L)}J=null}if(J){window.clearTimeout(J)}else{if(G){I.apply(M,L)}}J=window.setTimeout(K,F||100)}};var j=function(F){if(k("log")){k("log").innerHTML+=F+"\r\n"}};var e=function(F,I){for(var H=0;H<F.length;H++){var J=F[H];var G;if(typeof I==="function"){G=I(J)}else{G=I===J}if(G){return H}}};var i=function(H){var G=[];for(var F in H){if(H.hasOwnProperty(F)){G[G.length]=F+"="+encodeURIComponent(H[F])}}return G.join("&")};var r=1;var u=function(H,G,J){this.value=J||G[0].value;var F=this;this.disabled=false;var I=function(L){var K=e(G,function(M){return M.value==L});return G[K]};this.render=function(N){var M=t(N,3,1,{table_style:{},cell_style:{}});E(M[0],"label",{_body:H});var O=E(M[1],"ul",{"class":"select_menu"});var L=E(O,"li");var K=E(L,"span");var Q=E(L,"ul");var P=function(){var T=I(F.value);var S=T?T._body:"undefined";B(K,{_body:S})};P();each(G,function(T){var S=E(Q,"li",{style:{whiteSpace:"nowrap"}});E(S,"a",{_body:T._body,href:"#"+T.value})});var R=$(O).clickMenu({onClick:function(){$(this).find(">a").each(function(){if(this.href){var S=this.href;var T=S.indexOf("#")+1;var U=S.substr(T);F.value=U;R.trigger("closemenu")}});P();return false}})}};var A=function(H){var F=null;var G=null;this.render1=function(L){var K=E(L,"span");F=E(K,"input",{type:"text",value:""});var J=E(L,"span");var M=this;var I=function(){var N=M.parseDate();if(N){J.innerHTML=""+N}else{J.innerHTML="Input date should be in format month/day or year/month/day"}};$(F).bind("change keyup",I);I()};this.render=function(J){var I=E(J,"span");E(I,"label",{_body:H});F=E(I,"input",{type:"text",value:""});G=$(F).datepicker({numberOfMonths:2,minDate:new Date()})};this.getDate=function(){return $(F).datepicker("getDate")}};var m=function(K){var O=null;var G=null;var I=null;var J;var R;var H;var L;var F;if(!m.airports){m.airports={listeners:[]};var N=document.getElementsByTagName("head")[0];E(N,"script",{type:"text/javascript",src:(n()+"js/airports.js?ver="+formgleConfig.resourcesId)})}m.airports.listeners.push(this);var Q=function(S){var T='<table style="margin: 0; padding: 0;"><tr><td style="width: 18px; height: 16px; border: 0px solid red;; margin: 0; padding: 0;">';if(S[1]&&S[1].length>0){var U=n()+"images/flags/"+S[3]+".png?ver="+formgleConfig.resourcesId;T+='<img src="'+U+'">'}T+=' </td><td style="border: 0px solid red; margin: 0; padding: 0;"><b> ';T+=S[0];T+="</b> ";T+=S[1];T+="</td></tr></table>";return T};var M=function(){if(m.airports.data&&O){G=$(O).autocomplete(m.airports.data,{minChars:0,selectFirst:true,mustMatch:true,scroll:false,matchContains:true,formatItem:function(V,U,S,T){return Q(V)},formatMatch:function(S){return S[0]+" "+S[1]}});G.result(function(T,S){H=S;L.innerHTML=Q(S);B(F,{style:{display:"block"}});B(O,{style:{display:"none"}})})}};var P=function(){O=E(R,"input",{type:"text",value:"",style:{width:"90%"}});F=E(R,"table",{style:{display:"none"}});var T=E(F,"tbody");var V=E(T,"tr");L=E(V,"td");var U=E(V,"td");var S=E(U,"button",{_body:"Change","class":"fg-button ui-state-default"});S.onclick=function(){B(F,{style:{display:"none"}});B(O,{style:{display:"block"}});O.value="";O.focus()};M();O.focus()};this.render=function(S){E(S,"label",{_body:K});R=E(S,"div",{"class":"input"});var T=E(R,"button",{_body:"Select Airport","class":"fg-button ui-state-default"});T.onclick=function(){R.removeChild(T);P()}};this.airportsLoaded=function(){if(O){M()}};this.getAirport=function(){return H}};formgleConfig.airportsDataReady=function(F){m.airports.data=F;each(m.airports.listeners,function(G){G.airportsLoaded()})};var z=function(H){var G={};var I=function(O){var Y=false;var ac=this;this.pageInfo=O;var ag=function(aj){var ai=null;if(aj.t){aj.template=aj.t}var ao=function(){var aq=aj.title||aj.name||aj.n;var ap;if(!aq){ap=/^http:\/\/www\.([^\/]+).*/.exec(aj.template);if(ap){aq=ap[1]}ap=/(\w+)\.com/.exec(aq)}if(!aq){ap=/^http:\/\/([^\/]+).*/.exec(aj.template);aq=ap[1];ap=/(\w+)\.com/.exec(aq)}if(ap){aq=p(ap[1])}return aq};this.getId=function(){this.id=this.id||aj.id||a(aj.template);return this.id};this.trackSearch=function(){o(ac.pageInfo.id+"/"+this.getId())};var ak=function(){var aq=d(aj);if(aq){var ap=H.icons[aq];return ap}};this.searchWithForm=function(aq){var ap=document.getElementsByTagName("body")[0];aq.setAttribute("target","_blank");ap.appendChild(aq);aq.submit();ap.removeChild(aq)};var al=function(ar,av,au){var aq=t(ar,2,1);var aw="cs:"+(r++);var ap=E(aq[0],"label",{_body:" "+av});var at=au(aq[1],aw);B(ap,{"for":aw});return at};this.createCustomControlsByData=function(aq,ap){each(ap,function(aA){var ax=E(aq,"div",{"class":"custom_control"});if(aA.type=="checkbox"){aA.control=al(ax,aA.label,function(aD,aC){var aB=E(aD,"input",{type:"checkbox"});aB.checked=aA.checked;aB.id=aC;return aB})}else{if(aA.type=="select1"){aA.control=al(ax,aA.label,function(aC){var aB=E(aC,"select",{type:"checkbox"});each(aA.options,function(aD){var aE=E(aB,"option",aD)});return aB})}else{if(aA.type=="slider1"){var az=E(ax,"table",{style:{width:"300px"}});var aw=E(az,"tbody");var ay=E(aw,"tr");var av=E(ay,"td",{style:{width:"35%"}});var au=E(ay,"td",{style:{width:"15%"}});var at=E(ay,"td",{style:{width:"50%"}});E(av,"label",{_body:aA.label});var ar=E(at,"div",{style:{}});aA.control=$(ar).slider({min:0,max:aA.options.length-1,slide:function(aE,aD){var aC=jQuery(aD.handle);var aB=aA.options[aD.value]._body;aC.attr("aria-valuetext",aB).attr("aria-valuenow",aD.value).find(".ui-slider-tooltip").text(aB)
}})}else{if(aA.type=="select"||aA.type=="slider"){aA.control=new u(aA.label,aA.options);aA.control.render(ax)}else{if(aA.type=="text"){aA.control=al(ax,aA.label,function(aC){var aB=E(aC,"input",{type:"text","class":"text_input"});return aB})}}}}}})};this.createCustomControls=function(ap){if(aj.customControls){this.createCustomControlsByData(ap,aj.customControls)}};this.createRow=function(aB){this.li=E(aB,"div",{"class":"provider"});var aG=E(this.li,"table",{"class":"provider"});var aw=E(aG,"tbody");var ay=E(aw,"tr");var au=E(ay,"td",{rowSpan:2,"class":"check"});var ar=E(ay,"td",{style:{width:"16px"}});var ap=E(ay,"td",{style:{width:"100%"}});var av=E(aw,"tr");var aF=E(av,"td");var aD=E(av,"td",{"class":"custom_constrols"});this.createCustomControls(aD);var aE=this;this.enableRow=function(){if(this.isChecked()){$(this.li).removeClass("disabled_provider");$([ar,ap,aF,aD]).removeClass("ui-state-disabled");$("select, input, label",aD).each(function(aH){$(this).removeAttr("disabled")})}else{$(this.li).addClass("disabled_provider");$([ar,ap,aF,aD]).addClass("ui-state-disabled");$("select, input, label",aD).each(function(aH){$(this).attr("disabled")})}};var aA="li:providers:"+(r++);ai=E(au,"input",{type:"checkbox",id:aA,name:aA,"class":"provider_select"});$(ai).bind("change keyup",function(){ac.saveState();aE.enableRow()});var az=ak();if(az){var ax=n()+"images/icons.png?ver="+formgleConfig.resourcesId;var aq=-16*az[0];var aC=-16*az[1];E(ar,"div",{style:{"float":"left",width:"16px",height:"16px",background:"transparent url("+ax+") "+aq+"px "+aC+"px no-repeat"}})}var at=E(ap,"label",{"for":aA});E(at,"div",{_body:ao(),"class":"name",style:{"float":"left"}});if(v){$(at).bind("click",function(){ai.checked=!ai.checked;aE.enableRow()})}};this.selectCheck=function(ap){if(ai){ai.checked=ap}this.enableRow()};this.searchIfChecked=function(ap){if(this.isChecked()){this.search(ap)}};this.search=function(aq){var ap=this.createUrl(aq);window.open(ap,"_blank");this.trackSearch()};this.isChecked=function(){return ai&&ai.checked};var an=function(ar){var ap=[];for(var aq in ar){if(ar.hasOwnProperty(aq)){ap.push(aq+"="+encodeURIComponent(ar[aq]))}}return ap.join("&")};var am=function(ar){var ap=aj.template&&aj.template.indexOf("%s")>0;if(!ap){for(var aq in ar){if(ar.hasOwnProperty(aq)){if(aj.template.indexOf("%"+aq)>0){return true}}}}return ap};this.createUrl=function(at){if(am(at)){var aq=aj.template;for(var ar in at){if(at.hasOwnProperty(ar)){if(ar=="val"){aq=aq.replace("%s",encodeURIComponent(at.val))}else{aq=aq.replace("%"+ar,encodeURIComponent(at[ar]))}}}return aq}else{if(aj.template){var ap={};ap[aj.val]=at.val;if(aj.customControls){each(aj.customControls,function(au){if(au.type=="checkbox"){ap[au.param]=au.control.checked?au.values[1]:au.values[0]}else{ap[au.param]=au.control.value}})}return aj.template+an(ap)}}}};var N=function(ai){var aj=new ag(ai);aj.createUrl=function(am){var al=am.isbns;if(al&&al.length>5){return"http://search.barnesandnoble.com/booksearch/isbnInquiry.asp?ISBSRC=Y&ISBN="+encodeURIComponent(al)}else{var ak="http://search.barnesandnoble.com/booksearch/results.asp?"+i({TTL:am.title,ATH:am.author,WRD:am.keywords});return ak}};return aj};var ae=function(ai){var aj=new ag(ai);aj.createUrl=function(al){var ak="http://www.amazon.com/gp/search/ref=sr_adv_b/?search-alias=stripbooks&unfiltered=1&field-keywords="+al.keywords+"&field-author="+al.author+"&field-title="+al.title+"&field-isbn="+al.isbns+"&field-publisher=&node=&url=&field-feature_browse-bin=&field-binding_browse-bin=&field-subject=&field-language=&field-dateop=&field-datemod=&field-dateyear=&sort=relevancerank&Adv-Srch-Books-Submit.x=35&Adv-Srch-Books-Submit.y=12";return ak};return aj};var ah=function(ai){var aj=new ag(ai);aj.search=function(ao){var an=document;var al=an.createElement("form");B(al,{style:{display:"none"}});var am={Search:"Search+multiple+sites","Search.x":65,"Search.y":7,action:"doflights",basicmode:false,cabin:"e",datelimit:"01/08/2005",depart_date_flex:"exact",depart_time:"a",destcode:"",fid:"",oneway:"n",origincode:"",personality:"",po:"",provider:"",r9debug:"",r9secret:"",return_date_flex:"exact",return_time:"a",tab:"flights",depart_date:q(ao.from),return_date:q(ao.to),origin:ao.depart[0],destination:ao.ret[0],travelers:(ao.adults||1)};for(var ak in am){if(am.hasOwnProperty(ak)){l(an,al,ak,"hidden",am[ak])}}al.method="POST";al.action="http://www.kayak.com/flights";this.searchWithForm(al);aj.trackSearch()};return aj};var af=function(ai){var aj=new ag(ai);aj.search=function(ao){var an=document;var al=an.createElement("form");B(al,{style:{display:"none"}});var am={qscr:"fexp",flag:"q",time1:362,time2:362,cSen:"",cChi:"",cInf:"",infs:"",tktt:"",trpt:2,ecrc:"",eccn:"",qryt:8,load:1,rdct:1,rfrr:429,date1:q(ao.from),date2:q(ao.to),city1:ao.depart[0],citd1:ao.ret[0],cAdu:(ao.adults||1)};for(var ak in am){if(am.hasOwnProperty(ak)){l(an,al,ak,"hidden",am[ak])}}al.method="POST";al.action="http://www.expedia.com/pub/agent.dll?";this.searchWithForm(al);this.trackSearch()};return aj};G.bn_books=N;G.kayak_flight=ah;G.expedia_flight=af;var L=each(O.providers,function(ai){if(ai){if(G[ai.id]){return G[ai.id](ai)}else{return new ag(ai)}}else{return{}}});var J=function(){for(var ai=0;ai<L.length;ai++){var aj=L[ai];if(!aj.isChecked()){return false}}return true};var ad=function(){for(var ai=0;ai<L.length;ai++){var aj=L[ai];if(aj.isChecked()){return false}}return true};var W=function(){var aj=[];for(var ai=0;ai<L.length;ai++){var ak=L[ai];if(ak.isChecked()){aj.push(ak)}}return aj};var Z=function(){var aj=5;for(var ai=0;ai<L.length;ai++){var ak=L[ai];ak.selectCheck(ai<aj)}};this.saveState=function(){if(Y){return}var ai={};if(ad()){ai.checked="none"}else{if(J()){ai.checked="all"}else{ai.checked=each(W(),function(aj){return aj.getId()})}}s("page_"+this.getId(),JSON.stringify(ai))};this.restoreState=function(){var aj="page_"+this.getId();var ak=C(aj);if(ak.length>0){var ai=JSON.parse(ak);if(ai.checked){switch(ai.checked){case"none":each(L,function(al){al.selectCheck(false)});break;case"all":each(L,function(al){al.selectCheck(true)});break;default:each(L,function(am){var an=am.getId();var al=e(ai.checked,an);if(al===undefined){am.selectCheck(false)}else{am.selectCheck(true)}})}}}else{Z()}};this.getId=function(){return O.id};var X=function(ak,ai){var am=E(ak,"div",{"class":"fg-buttonset allnone"});var al=E(am,"button",{"class":"fg-button ui-state-default ui-corner-left"});var aj=E(am,"button",{"class":"fg-button ui-state-default ui-corner-right"});al.innerHTML="All";aj.innerHTML="None";al.onclick=function(){each(L,function(an){an.selectCheck(true)});if(ai){ai()}};aj.onclick=function(){each(L,function(an){an.selectCheck(false)});if(ai){ai()}};return[al,aj]};var P=function(ao,ap,at){var ar=null;E(ao,"br");var au=E(ao,"table",{"class":"search_buttons"});var am=E(au,"tbody");var aq=E(am,"tr");var al=E(aq,"td",{style:{width:"100%"}});var ak=E(aq,"td");var aj=E(aq,"td");var ai=E(aq,"td");ar=E(ak,"button",{_body:"Search","class":"ui-state-default ui-corner-all search"});ar.onclick=at;E(aj,"span",{_body:" or "});var an=E(ai,"a",{href:"#",_body:"cancel"});an.onclick=function(){if(y()){$.history.load("")}else{h.createMainPage()}return false};return ar};var aa=function(aj,ai){if(ai){$(aj).removeAttr("disabled");$(aj).removeClass("ui-state-disabled")}else{$(aj).attr("disabled","disabled");$(aj).addClass("ui-state-disabled")}};var ab=function(aj,ai){if(ai){$(aj).removeClass("ui-state-active")}else{$(aj).addClass("ui-state-active")}};var U=function(){var ai=false;each(L,function(aj){ai=ai||aj.isChecked()});return ai};var S=function(aj,al,ak,an,ai){var am=f(function(){aa(al,ai());aa(ak,!J());aa(an,!ad())},100);$([ak,an,aj]).bind("change keyup click",am);each(L,function(ao){$(ao.cb).bind("change keyup click",am)});am()};var R=function(ai){var aj=E(ai,"div",{"class":"providers ui-corner-all"});each(L,function(ak){ak.createRow(aj)})};var Q=function(ai,aj){$(ai).keypress(function(ak){if(ak.keyCode==13){return aj()}})};var K={people:function(aj,ak){var ai=function(){var al=E(aj,"div",{"class":"form ui-corner-all"});
var ap=function(az){var aA="ib:"+(r++);var ax=E(al,"label");var ay=E(al,"input");ax.setAttribute("for",aA);B(ay,{"class":"secondary_input"});ay.id=aA;ax.innerHTML=az;c(al);return ay};var au=ap("First Name");var av=ap("Last Name");E(al,"p",{_body:"or"});var am=ap("Name");var aq=f(function(){am.value=au.value+((au.value.length>0&&av.value.length>0)?" ":"")+av.value},100);var ao=f(function(){var ax=am.value.split(" ");if(ax.length==1){au.value="";av.value=ax[0]}else{if(ax.length==2){au.value=ax[0];av.value=ax[1]}else{au.value=ax.slice(0,ax.length-1).join(" ");av.value=ax[ax.length-1]}}},100);$([au,av]).bind("change keyup",aq);$(am).bind("change keyup",ao);var an=function(){return U()&&(au.value.length+av.value.length+am.value.length)>0};var aw=function(){if(an()){each(L,function(ax){ax.searchIfChecked({val:am.value,first:au.value,last:av.value})})}};each([au,av,am],function(ax){Q(ax,aw)});var at=P(al,ak,aw);var ar=X(aj);R(aj);S([au,av,am],at,ar[0],ar[1],an);an()};ai()},flight_tickets:function(aj,ak){var ai=function(){var al=E(aj,"div",{"class":"form ui-corner-all"});E(al,"h1",{_body:"Trip Information"});E(al,"p",{_body:"Please enter your trip information."});var ax=t(al,2,5);var ao=0;E(ax[ao++],"label",{_body:"From"});var ap=new A("");ap.render(ax[ao++]);E(ax[ao++],"label",{_body:"Depart"});var au=new m("");au.render(ax[ao++]);E(ax[ao++],"label",{_body:"To"});var aw=new A("");aw.render(ax[ao++]);E(ax[ao++],"label",{_body:"Return"});var aq=new m("");aq.render(ax[ao++]);E(ax[ao++],"label",{_body:"Travelers"});var av=E(ax[ao++],"select",{"class":"input"});for(var an=1;an<7;an++){E(av,"option",{value:an,_body:(" "+an)})}var am=function(){return true};var ay=function(){each(L,function(az){az.searchIfChecked({from:ap.getDate(),depart:au.getAirport(),to:aw.getDate(),ret:aq.getAirport(),adults:av.value})})};var at=P(al,ak,function(){if(am()){ay()}});var ar=X(aj);R(aj);S([ap,au,aw,aq],at,ar[0],ar[1],am);each([ap,au,aw,aq],function(az){Q(az,ay)})};ai(aj)}};var M=function(ak,al){var ai=E(ak,"div",{"class":"form ui-corner-all",style:{}});var ap=E(ai,"input",{"class":"main_input",type:"text"});var ao=al.pageInfo.small?al.pageInfo.small:(al.pageInfo.input_label?al.pageInfo.input_label:"keywords");E(ai,"span",{_body:ao,"class":"label_helper"});var aj=function(){return U()&&(ap.value.length>0||O.id=="books")};var aq=function(){if(aj()){each(L,function(ar){ar.searchIfChecked({val:ap.value})})}};Q(ap,aq);var an=P(ai,al,aq);var am=X(ak);R(ak);S(ap,an,am[0],am[1],aj)};var T=function(aj,ak){var ai=K[O.id]||M;ai(aj,ak)};var V=function(){return O.title||p(O.id)};this.openSearchPage=function(){k("main").innerHTML="";var ai=E(k("page_title"),"span",{"class":"page_title"});ai.innerHTML=" / "+V();T(k("main"),this);this.restoreState();b();o(this.pageInfo.id)};this.createMainPageRow=function(ak){var ai=E(ak,"div",{"class":"item"});var aj=E(ai,"a");var al=this;aj.href="#"+O.id;aj.onclick=function(){if(y()){$.history.load(O.id)}else{al.openSearchPage()}};aj.innerHTML=V()}};var F=each(H.pages,function(J){return new I(J)});this.createMainPage=function(){k("main").innerHTML="";k("page_title").innerHTML="";var J=E(k("main"),"div",{"class":"items ui-corner-all"});each(F,function(K){if(K.pageInfo.id=="flight_tickets"&&x()){return}K.createMainPageRow(J)});b()};this.processNavigation=function(J){if(J===""){h.createMainPage()}else{each(F,function(K){if(K.getId()==J){K.openSearchPage()}})}}};var h=new z(data);$(document).ready(function(){w();if(y()){$.history.init(function(F){h.processNavigation(F)})}else{h.createMainPage()}});var g=function(){var I=k("icons");if(!I){return}var K={};each(data.pages,function(M){each(M.providers,function(O){var N=d(O);if(N){K[N]=1}})});var G=[];var J=[];var L=[];var H=0;for(var F in K){if(K.hasOwnProperty(F)){L.push("<div style='width: 16px;height: 16px; float: left;'><img width='16' height='16' src='http://"+F+"/favicon.ico' alt='' border='0' /></div>");if(L.length>9){J.push(L.join("")+"<br style='clear: both;'/>");L=[]}G.push("'"+F+"': ["+(H%10)+", "+Math.floor(H/10)+"]");H+=1}}I.innerHTML="<br/>"+J.join("")+"<br/>"+G.join(", ")}})();