
$(document).ready(function(){var termsArray=new Array("monthly","3mo","1y","2y","3y","4y","5y","10y","20y","100y");var termsClassArray=new Array("term-monthly","term-3mo","term-1y","term-2y","term-3y","term-4y","term-5y","term-10y","term-20y","term-100y");var removedHashHistory=null;var reloading=false;$.historyInit(function(hash){if(hash!=null&&hash.length>0&&removedHashHistory==null){var items=hash.split(",");var cnt=items.length;for(var k=0;k<cnt;k++){if($('#'+items[k]).length>0){var url=location.href.split('#');location.href=url[0];reloading=true;return false;}}}});if(reloading){return false;}
var updateCartTotals=function(totalPrice,totalSaving,totalDeferredPrice,totalMonthlyProrated){var tSavings=$('#overallTotal');if(totalPrice==null){tSavings.html('<img src="/img/animated/loading-circle-green-small.gif" />');}else{tSavings.html(totalPrice);}
var oSavings=$('#overallSavings');if(totalSaving==null||totalSaving=="0"){oSavings.html('');}else{oSavings.html('<span>'+totalSaving+'</span> savings');}
var oMonthlyProrated=$('#overallMonthlyProrated');if(totalMonthlyProrated==null||totalMonthlyProrated=="0"){oMonthlyProrated.html('');$('#ongoingMonthlyChargeDisclaimer').hide();}else{oMonthlyProrated.html('<span>'+totalMonthlyProrated+'</span> Ongoing Monthly Charges &#135;');$('#ongoingMonthlyChargeDisclaimer').show();}
var oDeferred=$('#overallDeferred');if(totalDeferredPrice==null||totalDeferredPrice=="0"){oDeferred.html('');}else{oDeferred.html('<span>'+totalDeferredPrice+'</span> deferred*');}};var changeItemPrices=function(row,stdPrice,discountPrice,discountPriceNumeric,savings,isMonthlyProrated,isDeferredCharge){var col=row.find('td.price:eq(0)');if(stdPrice==null){col.html('');}else if(discountPrice!=null&&stdPrice==discountPrice){col.html(stdPrice+'<br />');}else{col.html('<del>'+stdPrice+'</del><br />');}
col=row.find('td.price:eq(1)');if(discountPrice==null&&discountPriceNumeric==null&&stdPrice==null&&savings==null&&isMonthlyProrated==null&&isDeferredCharge==null){col.html('<img src="/img/animated/loading-circle-green-small.gif" />');}else{sTxt="<strong>";if(discountPriceNumeric!=null&&discountPriceNumeric=="0.0"){sTxt+="FREE!";}else{sTxt+=discountPrice;}
if(isMonthlyProrated==true){sTxt+="&#167;";}else if(isDeferredCharge==true){sTxt+="*";}
sTxt+="</strong><br/>";if(savings!="0"){sTxt+="<span>"+savings+"</span> savings<br />";}else{sTxt+="<br />";}
col.html(sTxt);}};var handleItemError=function(row,errorMsg){var locating=true;var nextRow=null;var itrRow=row.next();while(locating){nextRow=itrRow.next();if(itrRow.hasClass('attached')){if(itrRow.hasClass('errorMessage')){itrRow.remove();}
itrRow=nextRow;}else{locating=false;}}
if(errorMsg!=null&&errorMsg.length>0){var html='<tr class="attached errorMessage">';html+='<td class="alert" colspan="6">';html+='<div class="pointer" style="margin-left: 100px;">';html+='<img border="0" alt="" src="/img/icons/cart-alert-bg-pointer.gif" />';html+='</div>';html+='<div class="message">'+errorMsg+'</div>';html+='</td>';html+='</tr>';row.after(html);}}
var handleCartResponse=function(response){var tmp=response;updateCartTotals(tmp['totalPrice'],tmp['totalSaving'],tmp['totalDeferredPrice'],tmp['totalMonthlyProratedPrice']);tmp=tmp['products'];var cnt=tmp.length;var obj=null;var row=null;var sTxt=null;var attributes=null;var attributesLen=null;var isMonthlyProrated=false;var isDeferredCharge=false;for(var r=0;r<cnt;r++){obj=tmp[r];row=$('#'+obj['productId']).closest('tr');isMonthlyProrated=(obj['isMonthlyProrated']=="true");isDeferredCharge=(obj['isDeferredCharge']=="true");changeItemPrices(row,obj['stdPrice'],obj['discountPrice'],obj['numericDiscountPrice'],obj['savings'],isMonthlyProrated,isDeferredCharge);handleItemError(row,obj['errorMessage']);attributes=obj['attributes'];if(attributes!=null){attributesLen=attributes.length;for(var k=0;k<attributesLen;k++){obj=attributes[k];row=$('#attr'+obj['attributeId']).closest('tr');isDeferredCharge=(obj['isDeferredCharge']=="true");changeItemPrices(row,obj['attrStdPrice'],obj['attrDiscountPrice'],obj['numericDiscountPrice'],obj['attrSavings'],null,isDeferredCharge);handleItemError(row,obj['errorMessage']);}}}};var termChangeRequest=function(productIDs,term){var dataArray=null;if(!(productIDs&&!(productIDs.propertyIsEnumerable('length'))&&typeof productIDs==='object'&&typeof productIDs.length==='number')){productIDs=[productIDs];}
dataArray={"termChangeRequest":{"productIds":productIDs,"currentTerm":term}};var cnt=productIDs.length;var row=null;var col=null;var attribute=null;for(var k=0;k<cnt;k++){row=$('#'+productIDs[k]).closest('tr');changeItemPrices(row,null,null,null,null,null,null);attribute=row.next();while(attribute.hasClass("attribute")){changeItemPrices(attribute,null,null,null,null,null,null);attribute=attribute.next();}}
updateCartTotals(null,null,null,null);var contButton=$('input[name=method-continue]');contButton.attr('disabled','disabled');var dataToPass='default-method=termChangeForNewCart&data='+JSONstring.make(dataArray);$.ajax({type:"POST",url:'/jsonShoppingCart.do',dataType:"json",cache:false,data:dataToPass,success:function(response){if(!response.errorResponse){if(response['shoppingCartResponse']!=null){handleCartResponse(response['shoppingCartResponse']);}else{alert("Cart Error: Unsupported response type");}}else{alert("Error: "+response.errorResponse.message);}
contButton.attr('disabled','');},error:function(request,status,err){alert("Error: "+err);contButton.attr('disabled','');window.location.reload(true);}});};$(".ns-slider").each(function(intIndex){var itm=$(this);var tbl=itm.closest('table').next();var itms=tbl.find('.text-sm');var totalItms=itms.length-1;var selIdx=0;itms.each(function(idx){if($(this).hasClass("selected")){selIdx=idx;return true;}});itm.slider({value:selIdx,min:0,max:totalItms,step:1,stop:function(event,ui){var slideObj=$(this);var val=slideObj.slider('option','value');var table=slideObj.closest('table.itemDetails');var manualRefresh=true;if(manualRefresh==true){var valTable=slideObj.closest('table').next();var term=valTable.find('.text-sm:eq('+val+')');var selTermInput=valTable.parent().find('input.selTerm');selTermInput.val(term.attr('rel'));termChangeRequest(parseInt(selTermInput.attr('id'),10),term.text());}}});});$('.removeOne').click(function(){var img=$(this);var uID=parseInt(img.attr('rel').replace('uid',''),10);var productID=img.closest('tr').find('.selTerm').attr('id');if(img.attr('src')=='/img/animated/loading-circle-red-small.gif'){return false;}else{img.attr('src','/img/animated/loading-circle-red-small.gif');}
updateCartTotals(null,null,null,null);var dataArray={"removeRequest":[{"productId":productID,"uniqueId":uID}]};var dataToPass='default-method=remove&data='+JSONstring.make(dataArray);$.ajax({type:"POST",url:'/jsonShoppingCart.do',dataType:"json",cache:false,data:dataToPass,success:function(response){var removeSuccessResponse=response['removeSuccessResponse'];if(removeSuccessResponse!=null){if(img.hasClass("forceRefresh")){window.location.reload(true);return;}
handleCartResponse(removeSuccessResponse);var productIDList=new Array();if(removeSuccessResponse['dependentProductIds']!=null){productIDList=removeSuccessResponse['dependentProductIds'];}
productIDList[productIDList.length]=productID;var table=null;var checkbox=null;var curProductID=null;var productIDCount=productIDList.length;for(var i=0;i<productIDCount;i++){curProductID=productIDList[i];row=$('#'+curProductID).closest('tr');row.addClass('removingItem');table=row.closest('table.itemDetails');checkbox=table.find('.linkterms');if(checkbox.is(':checked')){if(table.find('.selTerm:eq(0)').attr('id')==curProductID){checkbox.attr("checked","");table.find('.ns-slider').each(function(index){if(index>0){$(this).slider('enable');}});}}
var contDel=true;var category=row.closest('.cartItem');var itemCount=(category.find('td.product').length+category.find('td.subproduct').length)-(category.find('.removingItem').length);if(itemCount<=0){contDel=false;category.fadeOut('slow',function callback(){if($('.cartItem').length==1){$('#cartItems').replaceWith('<div class="clr"></div><div id="noItemsInCart">No Items In Your Cart</div>');}else{$(this).remove();}});}
if(contDel==true){var nextRow=row.next();row.fadeOut('slow',function callback(){$(this).remove();});row=nextRow;var deleting=true;while(deleting){nextRow=row.next();if(row.hasClass('attached')){row.remove();row=nextRow;}else{deleting=false;}}}}
if(removedHashHistory==null){removedHashHistory=productIDList.join(',');}else{removedHashHistory+=","+productIDList.join(',');}
$.historyLoad(removedHashHistory);}else if(response['removeConfirmResponse']){var tmp=response['removeConfirmResponse'];var url='/purchase-it/view-your-order.jsp?action=remove&productToRemove='+encodeURIComponent(tmp['productToRemove'])+'&shoppingCartAction=remove&productRemovalConfirmUrl=%2fpurchase-it%2fproduct-removal-confirm.jsp&repointedProductRemovalUrl=%2fpurchase-it%2frepointed-product-removal.jsp&discountedProductRemovalUrl=%2fpurchase-it%2fdiscounted-product-removal.jsp'
location.href=url;}else if(response['errorResponse']){alert("Error: "+response.errorResponse.message);}else{alert("Invalid response received!");}},error:function(request,status,err){alert("Error: "+err);window.location.reload(true);}});return false;});$('.removeAll').click(function(){var obj=$(this);obj.hide();obj.next().show();return false;});$('.removeAllCancelled').click(function(){var obj=$(this).parent();obj.hide();obj.prev().show();return false;});$('.removeAllConfirmation').click(function(){var container=$(this);var category=container.closest('.cartItem');var table=category.find('table:eq(0)');container.html('Removing all items...');var items=new Array();var obj=null;var uID=null;table.find('.removeOne').each(function(sIdx){obj=$(this);obj.attr('src','/img/animated/loading-circle-red-small.gif');uID=parseInt(obj.attr('rel').replace('uid',''),10);productID=obj.closest('tr').find('.selTerm').attr('id');items[sIdx]={"uniqueId":uID,"productId":productID};if(removedHashHistory==null){removedHashHistory=productID;}else{removedHashHistory+=","+productID;}});$.historyLoad(removedHashHistory);if(items.length==0){category.fadeOut('slow',function callback(){if($('.cartItem').length==1){$('#cartItems').replaceWith('<div class="clr"></div><div id="noItemsInCart">No Items In Your Cart</div>');}else{$(this).remove();}});return false;}
updateCartTotals(null,null,null,null);var dataArray={"removeRequest":items};var dataToPass='default-method=removeAll&data='+JSONstring.make(dataArray);$.ajax({type:"POST",url:'/jsonShoppingCart.do',dataType:"json",cache:false,data:dataToPass,success:function(response){if(response['removeSuccessResponse']!=null){if(category.find('.forceRefresh').length>0){window.location.reload(true);return;}
handleCartResponse(response['removeSuccessResponse']);category.fadeOut('slow',function callback(){if($('.cartItem').length==1){$('#cartItems').replaceWith('<div class="clr"></div><div id="noItemsInCart">No Items In Your Cart</div>');}else{$(this).remove();}});}else if(response['removeConfirmResponse']){var tmp=response['removeConfirmResponse'];var url='/purchase-it/view-your-order.jsp?action=remove&productToRemove='+encodeURIComponent(tmp['productToRemove'])+'&shoppingCartAction=remove&productRemovalConfirmUrl=%2fpurchase-it%2fproduct-removal-confirm.jsp&repointedProductRemovalUrl=%2fpurchase-it%2frepointed-product-removal.jsp&discountedProductRemovalUrl=%2fpurchase-it%2fdiscounted-product-removal.jsp'
location.href=url;}else if(response['errorResponse']){alert("Error: "+response.errorResponse.message);}else{alert("Invalid response received!");}},error:function(request,status,err){alert("Error: "+err);window.location.reload(true);}});return false;});$('.showdetails').click(function(){$(this).next().slideToggle();return false;});});;jQuery.ui||(function($){var _remove=$.fn.remove,isFF2=$.browser.mozilla&&(parseFloat($.browser.version)<1.9);$.ui={version:"1.7.1",plugin:{add:function(module,option,set){var proto=$.ui[module].prototype;for(var i in set){proto.plugins[i]=proto.plugins[i]||[];proto.plugins[i].push([option,set[i]]);}},call:function(instance,name,args){var set=instance.plugins[name];if(!set||!instance.element[0].parentNode){return;}
for(var i=0;i<set.length;i++){if(instance.options[set[i][0]]){set[i][1].apply(instance.element,args);}}}},contains:function(a,b){return document.compareDocumentPosition?a.compareDocumentPosition(b)&16:a!==b&&a.contains(b);},hasScroll:function(el,a){if($(el).css('overflow')=='hidden'){return false;}
var scroll=(a&&a=='left')?'scrollLeft':'scrollTop',has=false;if(el[scroll]>0){return true;}
el[scroll]=1;has=(el[scroll]>0);el[scroll]=0;return has;},isOverAxis:function(x,reference,size){return(x>reference)&&(x<(reference+size));},isOver:function(y,x,top,left,height,width){return $.ui.isOverAxis(y,top,height)&&$.ui.isOverAxis(x,left,width);},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(isFF2){var attr=$.attr,removeAttr=$.fn.removeAttr,ariaNS="http://www.w3.org/2005/07/aaa",ariaState=/^aria-/,ariaRole=/^wairole:/;$.attr=function(elem,name,value){var set=value!==undefined;return(name=='role'?(set?attr.call(this,elem,name,"wairole:"+value):(attr.apply(this,arguments)||"").replace(ariaRole,"")):(ariaState.test(name)?(set?elem.setAttributeNS(ariaNS,name.replace(ariaState,"aaa:"),value):attr.call(this,elem,name.replace(ariaState,"aaa:"))):attr.apply(this,arguments)));};$.fn.removeAttr=function(name){return(ariaState.test(name)?this.each(function(){this.removeAttributeNS(ariaNS,name.replace(ariaState,""));}):removeAttr.call(this,name));};}
$.fn.extend({remove:function(){$("*",this).add(this).each(function(){$(this).triggerHandler("remove");});return _remove.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 scrollParent;if(($.browser.msie&&(/(static|relative)/).test(this.css('position')))||(/absolute/).test(this.css('position'))){scrollParent=this.parents().filter(function(){return(/(relative|absolute|fixed)/).test($.curCSS(this,'position',1))&&(/(auto|scroll)/).test($.curCSS(this,'overflow',1)+$.curCSS(this,'overflow-y',1)+$.curCSS(this,'overflow-x',1));}).eq(0);}else{scrollParent=this.parents().filter(function(){return(/(auto|scroll)/).test($.curCSS(this,'overflow',1)+$.curCSS(this,'overflow-y',1)+$.curCSS(this,'overflow-x',1));}).eq(0);}
return(/fixed/).test(this.css('position'))||!scrollParent.length?$(document):scrollParent;}});$.extend($.expr[':'],{data:function(elem,i,match){return!!$.data(elem,match[3]);},focusable:function(element){var nodeName=element.nodeName.toLowerCase(),tabIndex=$.attr(element,'tabindex');return(/input|select|textarea|button|object/.test(nodeName)?!element.disabled:'a'==nodeName||'area'==nodeName?element.href||!isNaN(tabIndex):!isNaN(tabIndex))&&!$(element)['area'==nodeName?'parents':'closest'](':hidden').length;},tabbable:function(element){var tabIndex=$.attr(element,'tabindex');return(isNaN(tabIndex)||tabIndex>=0)&&$(element).is(':focusable');}});function getter(namespace,plugin,method,args){function getMethods(type){var methods=$[namespace][plugin][type]||[];return(typeof methods=='string'?methods.split(/,?\s+/):methods);}
var methods=getMethods('getter');if(args.length==1&&typeof args[0]=='string'){methods=methods.concat(getMethods('getterSetter'));}
return($.inArray(method,methods)!=-1);}
$.widget=function(name,prototype){var namespace=name.split(".")[0];name=name.split(".")[1];$.fn[name]=function(options){var isMethodCall=(typeof options=='string'),args=Array.prototype.slice.call(arguments,1);if(isMethodCall&&options.substring(0,1)=='_'){return this;}
if(isMethodCall&&getter(namespace,name,options,args)){var instance=$.data(this[0],name);return(instance?instance[options].apply(instance,args):undefined);}
return this.each(function(){var instance=$.data(this,name);(!instance&&!isMethodCall&&$.data(this,name,new $[namespace][name](this,options))._init());(instance&&isMethodCall&&$.isFunction(instance[options])&&instance[options].apply(instance,args));});};$[namespace]=$[namespace]||{};$[namespace][name]=function(element,options){var self=this;this.namespace=namespace;this.widgetName=name;this.widgetEventPrefix=$[namespace][name].eventPrefix||name;this.widgetBaseClass=namespace+'-'+name;this.options=$.extend({},$.widget.defaults,$[namespace][name].defaults,$.metadata&&$.metadata.get(element)[name],options);this.element=$(element).bind('setData.'+name,function(event,key,value){if(event.target==element){return self._setData(key,value);}}).bind('getData.'+name,function(event,key){if(event.target==element){return self._getData(key);}}).bind('remove',function(){return self.destroy();});};$[namespace][name].prototype=$.extend({},$.widget.prototype,prototype);$[namespace][name].getterSetter='option';};$.widget.prototype={_init:function(){},destroy:function(){this.element.removeData(this.widgetName).removeClass(this.widgetBaseClass+'-disabled'+' '+this.namespace+'-state-disabled').removeAttr('aria-disabled');},option:function(key,value){var options=key,self=this;if(typeof key=="string"){if(value===undefined){return this._getData(key);}
options={};options[key]=value;}
$.each(options,function(key,value){self._setData(key,value);});},_getData:function(key){return this.options[key];},_setData:function(key,value){this.options[key]=value;if(key=='disabled'){this.element
[value?'addClass':'removeClass'](this.widgetBaseClass+'-disabled'+' '+
this.namespace+'-state-disabled').attr("aria-disabled",value);}},enable:function(){this._setData('disabled',false);},disable:function(){this._setData('disabled',true);},_trigger:function(type,event,data){var callback=this.options[type],eventName=(type==this.widgetEventPrefix?type:this.widgetEventPrefix+type);event=$.Event(event);event.type=eventName;if(event.originalEvent){for(var i=$.event.props.length,prop;i;){prop=$.event.props[--i];event[prop]=event.originalEvent[prop];}}
this.element.trigger(event,data);return!($.isFunction(callback)&&callback.call(this.element[0],event,data)===false||event.isDefaultPrevented());}};$.widget.defaults={disabled:false};$.ui.mouse={_mouseInit:function(){var self=this;this.element.bind('mousedown.'+this.widgetName,function(event){return self._mouseDown(event);}).bind('click.'+this.widgetName,function(event){if(self._preventClickEvent){self._preventClickEvent=false;event.stopImmediatePropagation();return false;}});if($.browser.msie){this._mouseUnselectable=this.element.attr('unselectable');this.element.attr('unselectable','on');}
this.started=false;},_mouseDestroy:function(){this.element.unbind('.'+this.widgetName);($.browser.msie&&this.element.attr('unselectable',this._mouseUnselectable));},_mouseDown:function(event){event.originalEvent=event.originalEvent||{};if(event.originalEvent.mouseHandled){return;}
(this._mouseStarted&&this._mouseUp(event));this._mouseDownEvent=event;var self=this,btnIsLeft=(event.which==1),elIsCancel=(typeof this.options.cancel=="string"?$(event.target).parents().add(event.target).filter(this.options.cancel).length:false);if(!btnIsLeft||elIsCancel||!this._mouseCapture(event)){return true;}
this.mouseDelayMet=!this.options.delay;if(!this.mouseDelayMet){this._mouseDelayTimer=setTimeout(function(){self.mouseDelayMet=true;},this.options.delay);}
if(this._mouseDistanceMet(event)&&this._mouseDelayMet(event)){this._mouseStarted=(this._mouseStart(event)!==false);if(!this._mouseStarted){event.preventDefault();return true;}}
this._mouseMoveDelegate=function(event){return self._mouseMove(event);};this._mouseUpDelegate=function(event){return self._mouseUp(event);};$(document).bind('mousemove.'+this.widgetName,this._mouseMoveDelegate).bind('mouseup.'+this.widgetName,this._mouseUpDelegate);($.browser.safari||event.preventDefault());event.originalEvent.mouseHandled=true;return true;},_mouseMove:function(event){if($.browser.msie&&!event.button){return this._mouseUp(event);}
if(this._mouseStarted){this._mouseDrag(event);return event.preventDefault();}
if(this._mouseDistanceMet(event)&&this._mouseDelayMet(event)){this._mouseStarted=(this._mouseStart(this._mouseDownEvent,event)!==false);(this._mouseStarted?this._mouseDrag(event):this._mouseUp(event));}
return!this._mouseStarted;},_mouseUp:function(event){$(document).unbind('mousemove.'+this.widgetName,this._mouseMoveDelegate).unbind('mouseup.'+this.widgetName,this._mouseUpDelegate);if(this._mouseStarted){this._mouseStarted=false;this._preventClickEvent=(event.target==this._mouseDownEvent.target);this._mouseStop(event);}
return false;},_mouseDistanceMet:function(event){return(Math.max(Math.abs(this._mouseDownEvent.pageX-event.pageX),Math.abs(this._mouseDownEvent.pageY-event.pageY))>=this.options.distance);},_mouseDelayMet:function(event){return this.mouseDelayMet;},_mouseStart:function(event){},_mouseDrag:function(event){},_mouseStop:function(event){},_mouseCapture:function(event){return true;}};$.ui.mouse.defaults={cancel:null,distance:1,delay:0};})(jQuery);
(function($){$.widget("ui.slider",$.extend({},$.ui.mouse,{_init:function(){var self=this,o=this.options;this._keySliding=false;this._handleIndex=null;this._detectOrientation();this._mouseInit();this.element.addClass("ui-slider"
+" ui-slider-"+this.orientation
+" ui-widget"
+" ui-widget-content"
+" ui-corner-all");this.range=$([]);if(o.range){if(o.range===true){this.range=$('<div></div>');if(!o.values)o.values=[this._valueMin(),this._valueMin()];if(o.values.length&&o.values.length!=2){o.values=[o.values[0],o.values[0]];}}else{this.range=$('<div></div>');}
this.range.appendTo(this.element).addClass("ui-slider-range");if(o.range=="min"||o.range=="max"){this.range.addClass("ui-slider-range-"+o.range);}
this.range.addClass("ui-widget-header");}
if($(".ui-slider-handle",this.element).length==0)
$('<a href="#"></a>').appendTo(this.element).addClass("ui-slider-handle");if(o.values&&o.values.length){while($(".ui-slider-handle",this.element).length<o.values.length)
$('<a href="#"></a>').appendTo(this.element).addClass("ui-slider-handle");}
this.handles=$(".ui-slider-handle",this.element).addClass("ui-state-default"
+" ui-corner-all");this.handle=this.handles.eq(0);this.handles.add(this.range).filter("a").click(function(event){event.preventDefault();}).hover(function(){$(this).addClass('ui-state-hover');},function(){$(this).removeClass('ui-state-hover');}).focus(function(){$(".ui-slider .ui-state-focus").removeClass('ui-state-focus');$(this).addClass('ui-state-focus');}).blur(function(){$(this).removeClass('ui-state-focus');});this.handles.each(function(i){$(this).data("index.ui-slider-handle",i);});this.handles.keydown(function(event){var ret=true;var index=$(this).data("index.ui-slider-handle");if(self.options.disabled)
return;switch(event.keyCode){case $.ui.keyCode.HOME:case $.ui.keyCode.END:case $.ui.keyCode.UP:case $.ui.keyCode.RIGHT:case $.ui.keyCode.DOWN:case $.ui.keyCode.LEFT:ret=false;if(!self._keySliding){self._keySliding=true;$(this).addClass("ui-state-active");self._start(event,index);}
break;}
var curVal,newVal,step=self._step();if(self.options.values&&self.options.values.length){curVal=newVal=self.values(index);}else{curVal=newVal=self.value();}
switch(event.keyCode){case $.ui.keyCode.HOME:newVal=self._valueMin();break;case $.ui.keyCode.END:newVal=self._valueMax();break;case $.ui.keyCode.UP:case $.ui.keyCode.RIGHT:if(curVal==self._valueMax())return;newVal=curVal+step;break;case $.ui.keyCode.DOWN:case $.ui.keyCode.LEFT:if(curVal==self._valueMin())return;newVal=curVal-step;break;}
self._slide(event,index,newVal);return ret;}).keyup(function(event){var index=$(this).data("index.ui-slider-handle");if(self._keySliding){self._stop(event,index);self._change(event,index);self._keySliding=false;$(this).removeClass("ui-state-active");}});this._refreshValue();},destroy:function(){this.handles.remove();this.range.remove();this.element.removeClass("ui-slider"
+" ui-slider-horizontal"
+" ui-slider-vertical"
+" ui-slider-disabled"
+" ui-widget"
+" ui-widget-content"
+" ui-corner-all").removeData("slider").unbind(".slider");this._mouseDestroy();},_mouseCapture:function(event){var o=this.options;if(o.disabled)
return false;this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()};this.elementOffset=this.element.offset();var position={x:event.pageX,y:event.pageY};var normValue=this._normValueFromMouse(position);var distance=this._valueMax()-this._valueMin()+1,closestHandle;var self=this,index;this.handles.each(function(i){var thisDistance=Math.abs(normValue-self.values(i));if(distance>thisDistance){distance=thisDistance;closestHandle=$(this);index=i;}});if(o.range==true&&this.values(1)==o.min){closestHandle=$(this.handles[++index]);}
this._start(event,index);self._handleIndex=index;closestHandle.addClass("ui-state-active").focus();var offset=closestHandle.offset();var mouseOverHandle=!$(event.target).parents().andSelf().is('.ui-slider-handle');this._clickOffset=mouseOverHandle?{left:0,top:0}:{left:event.pageX-offset.left-(closestHandle.width()/2),top:event.pageY-offset.top
-(closestHandle.height()/2)
-(parseInt(closestHandle.css('borderTopWidth'),10)||0)
-(parseInt(closestHandle.css('borderBottomWidth'),10)||0)
+(parseInt(closestHandle.css('marginTop'),10)||0)};normValue=this._normValueFromMouse(position);this._slide(event,index,normValue);return true;},_mouseStart:function(event){return true;},_mouseDrag:function(event){var position={x:event.pageX,y:event.pageY};var normValue=this._normValueFromMouse(position);this._slide(event,this._handleIndex,normValue);return false;},_mouseStop:function(event){this.handles.removeClass("ui-state-active");this._stop(event,this._handleIndex);this._change(event,this._handleIndex);this._handleIndex=null;this._clickOffset=null;return false;},_detectOrientation:function(){this.orientation=this.options.orientation=='vertical'?'vertical':'horizontal';},_normValueFromMouse:function(position){var pixelTotal,pixelMouse;if('horizontal'==this.orientation){pixelTotal=this.elementSize.width;pixelMouse=position.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0);}else{pixelTotal=this.elementSize.height;pixelMouse=position.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0);}
var percentMouse=(pixelMouse/pixelTotal);if(percentMouse>1)percentMouse=1;if(percentMouse<0)percentMouse=0;if('vertical'==this.orientation)
percentMouse=1-percentMouse;var valueTotal=this._valueMax()-this._valueMin(),valueMouse=percentMouse*valueTotal,valueMouseModStep=valueMouse%this.options.step,normValue=this._valueMin()+valueMouse-valueMouseModStep;if(valueMouseModStep>(this.options.step/2))
normValue+=this.options.step;return parseFloat(normValue.toFixed(5));},_start:function(event,index){var uiHash={handle:this.handles[index],value:this.value()};if(this.options.values&&this.options.values.length){uiHash.value=this.values(index)
uiHash.values=this.values()}
this._trigger("start",event,uiHash);},_slide:function(event,index,newVal){var handle=this.handles[index];if(this.options.values&&this.options.values.length){var otherVal=this.values(index?0:1);if((index==0&&newVal>=otherVal)||(index==1&&newVal<=otherVal))
newVal=otherVal;if(newVal!=this.values(index)){var newValues=this.values();newValues[index]=newVal;var allowed=this._trigger("slide",event,{handle:this.handles[index],value:newVal,values:newValues});var otherVal=this.values(index?0:1);if(allowed!==false){this.values(index,newVal,(event.type=='mousedown'&&this.options.animate),true);}}}else{if(newVal!=this.value()){var allowed=this._trigger("slide",event,{handle:this.handles[index],value:newVal});if(allowed!==false){this._setData('value',newVal,(event.type=='mousedown'&&this.options.animate));}}}},_stop:function(event,index){var uiHash={handle:this.handles[index],value:this.value()};if(this.options.values&&this.options.values.length){uiHash.value=this.values(index)
uiHash.values=this.values()}
this._trigger("stop",event,uiHash);},_change:function(event,index){var uiHash={handle:this.handles[index],value:this.value()};if(this.options.values&&this.options.values.length){uiHash.value=this.values(index)
uiHash.values=this.values()}
this._trigger("change",event,uiHash);},value:function(newValue){if(arguments.length){this._setData("value",newValue);this._change(null,0);}
return this._value();},values:function(index,newValue,animated,noPropagation){if(arguments.length>1){this.options.values[index]=newValue;this._refreshValue(animated);if(!noPropagation)this._change(null,index);}
if(arguments.length){if(this.options.values&&this.options.values.length){return this._values(index);}else{return this.value();}}else{return this._values();}},_setData:function(key,value,animated){$.widget.prototype._setData.apply(this,arguments);switch(key){case'orientation':this._detectOrientation();this.element.removeClass("ui-slider-horizontal ui-slider-vertical").addClass("ui-slider-"+this.orientation);this._refreshValue(animated);break;case'value':this._refreshValue(animated);break;}},_step:function(){var step=this.options.step;return step;},_value:function(){var val=this.options.value;if(val<this._valueMin())val=this._valueMin();if(val>this._valueMax())val=this._valueMax();return val;},_values:function(index){if(arguments.length){var val=this.options.values[index];if(val<this._valueMin())val=this._valueMin();if(val>this._valueMax())val=this._valueMax();return val;}else{return this.options.values;}},_valueMin:function(){var valueMin=this.options.min;return valueMin;},_valueMax:function(){var valueMax=this.options.max;return valueMax;},_refreshValue:function(animate){var oRange=this.options.range,o=this.options,self=this;if(this.options.values&&this.options.values.length){var vp0,vp1;this.handles.each(function(i,j){var valPercent=(self.values(i)-self._valueMin())/(self._valueMax()-self._valueMin())*100;var _set={};_set[self.orientation=='horizontal'?'left':'bottom']=valPercent+'%';$(this).stop(1,1)[animate?'animate':'css'](_set,o.animate);if(self.options.range===true){if(self.orientation=='horizontal'){(i==0)&&self.range.stop(1,1)[animate?'animate':'css']({left:valPercent+'%'},o.animate);(i==1)&&self.range[animate?'animate':'css']({width:(valPercent-lastValPercent)+'%'},{queue:false,duration:o.animate});}else{(i==0)&&self.range.stop(1,1)[animate?'animate':'css']({bottom:(valPercent)+'%'},o.animate);(i==1)&&self.range[animate?'animate':'css']({height:(valPercent-lastValPercent)+'%'},{queue:false,duration:o.animate});}}
lastValPercent=valPercent;});}else{var value=this.value(),valueMin=this._valueMin(),valueMax=this._valueMax(),valPercent=valueMax!=valueMin?(value-valueMin)/(valueMax-valueMin)*100:0;var _set={};_set[self.orientation=='horizontal'?'left':'bottom']=valPercent+'%';this.handle.stop(1,1)[animate?'animate':'css'](_set,o.animate);(oRange=="min")&&(this.orientation=="horizontal")&&this.range.stop(1,1)[animate?'animate':'css']({width:valPercent+'%'},o.animate);(oRange=="max")&&(this.orientation=="horizontal")&&this.range[animate?'animate':'css']({width:(100-valPercent)+'%'},{queue:false,duration:o.animate});(oRange=="min")&&(this.orientation=="vertical")&&this.range.stop(1,1)[animate?'animate':'css']({height:valPercent+'%'},o.animate);(oRange=="max")&&(this.orientation=="vertical")&&this.range[animate?'animate':'css']({height:(100-valPercent)+'%'},{queue:false,duration:o.animate});}}}));$.extend($.ui.slider,{getter:"value values",version:"1.7.1",eventPrefix:"slide",defaults:{animate:false,delay:0,distance:0,max:100,min:0,orientation:'horizontal',range:false,step:1,value:0,values:null}});})(jQuery);
JSONstring={compactOutput:false,includeProtos:false,includeFunctions:false,detectCirculars:true,restoreCirculars:true,make:function(arg,restore){this.restore=restore;this.mem=[];this.pathMem=[];return this.toJsonStringArray(arg).join('');},toObject:function(x){if(!this.cleaner){try{this.cleaner=new RegExp('^("(\\\\.|[^"\\\\\\n\\r])*?"|[,:{}\\[\\]0-9.\\-+Eaeflnr-u \\n\\r\\t])+?$')}
catch(a){this.cleaner=/^(true|false|null|\[.*\]|\{.*\}|".*"|\d+|\d+\.\d+)$/}};if(!this.cleaner.test(x)){return{}};eval("this.myObj="+x);if(!this.restoreCirculars||!alert){return this.myObj};if(this.includeFunctions){var x=this.myObj;for(var i in x){if(typeof x[i]=="string"&&!x[i].indexOf("JSONincludedFunc:")){x[i]=x[i].substring(17);eval("x[i]="+x[i])}}};this.restoreCode=[];this.make(this.myObj,true);var r=this.restoreCode.join(";")+";";eval('r=r.replace(/\\W([0-9]{1,})(\\W)/g,"[$1]$2").replace(/\\.\\;/g,";")');eval(r);return this.myObj},toJsonStringArray:function(arg,out){if(!out){this.path=[]};out=out||[];var u;switch(typeof arg){case'object':this.lastObj=arg;if(this.detectCirculars){var m=this.mem;var n=this.pathMem;for(var i=0;i<m.length;i++){if(arg===m[i]){out.push('"JSONcircRef:'+n[i]+'"');return out}};m.push(arg);n.push(this.path.join("."));};if(arg){if(arg.constructor==Array){out.push('[');for(var i=0;i<arg.length;++i){this.path.push(i);if(i>0)
out.push(',\n');this.toJsonStringArray(arg[i],out);this.path.pop();}
out.push(']');return out;}else if(typeof arg.toString!='undefined'){out.push('{');var first=true;for(var i in arg){if(!this.includeProtos&&arg[i]===arg.constructor.prototype[i]){continue};this.path.push(i);var curr=out.length;if(!first)
out.push(this.compactOutput?',':',\n');this.toJsonStringArray(i,out);out.push(':');this.toJsonStringArray(arg[i],out);if(out[out.length-1]==u)
out.splice(curr,out.length-curr);else
first=false;this.path.pop();}
out.push('}');return out;}
return out;}
out.push('null');return out;case'unknown':case'undefined':case'function':if(!this.includeFunctions){out.push(u);return out};arg="JSONincludedFunc:"+arg;out.push('"');var a=['\n','\\n','\r','\\r','"','\\"'];arg+="";for(var i=0;i<6;i+=2){arg=arg.split(a[i]).join(a[i+1])};out.push(arg);out.push('"');return out;case'string':if(this.restore&&arg.indexOf("JSONcircRef:")==0){this.restoreCode.push('this.myObj.'+this.path.join(".")+"="+arg.split("JSONcircRef:").join("this.myObj."));};out.push('"');var a=['\n','\\n','\r','\\r','"','\\"'];arg+="";for(var i=0;i<6;i+=2){arg=arg.split(a[i]).join(a[i+1])};out.push(arg);out.push('"');return out;default:out.push(String(arg));return out;}}};
(function($){var ie6=$.browser.msie&&parseInt($.browser.version)==6&&typeof window['XMLHttpRequest']!="object",ieQuirks=null,w=[];$.modal=function(data,options){return $.modal.impl.init(data,options);};$.modal.close=function(){$.modal.impl.close();};$.fn.modal=function(options){return $.modal.impl.init(this,options);};$.modal.defaults={opacity:50,overlayId:'simplemodal-overlay',overlayCss:{},containerId:'simplemodal-container',containerCss:{},dataCss:{},zIndex:1000,close:true,closeHTML:'<a class="modalCloseImg" title="Close"></a>',closeClass:'simplemodal-close',positionType:'fixed',position:null,persist:false,onOpen:null,onShow:null,onClose:null};$.modal.impl={opts:null,dialog:{},init:function(data,options){if(this.dialog.data){return false;}
ieQuirks=$.browser.msie&&!$.boxModel;this.opts=$.extend({},$.modal.defaults,options);this.zIndex=this.opts.zIndex;this.occb=false;if(typeof data=='object'){data=data instanceof jQuery?data:$(data);if(data.parent().parent().size()>0){this.dialog.parentNode=data.parent();if(!this.opts.persist){this.dialog.orig=data.clone(true);}}}
else if(typeof data=='string'||typeof data=='number'){data=$('<div/>').html(data);}
else{alert('SimpleModal Error: Unsupported data type: '+typeof data);return false;}
this.dialog.data=data.addClass('simplemodal-data').css(this.opts.dataCss);data=null;this.create();this.open();if($.isFunction(this.opts.onShow)){this.opts.onShow.apply(this,[this.dialog]);}
return this;},create:function(){w=this.getDimensions();if(ie6){this.dialog.iframe=$('<iframe src="javascript:false;"/>').css($.extend(this.opts.iframeCss,{display:'none',opacity:0,position:this.opts.positionType,height:$("#wrapper").height(),width:$("html").width(),zIndex:this.opts.zIndex,top:0,left:0})).appendTo('body');}
this.dialog.overlay=$('<div/>').attr('id',this.opts.overlayId).addClass('simplemodal-overlay').css($.extend(this.opts.overlayCss,{display:'none',opacity:this.opts.opacity/100,height:$("#wrapper").height(),width:$("html").width(),position:this.opts.positionType,left:0,top:0,zIndex:this.opts.zIndex+1})).appendTo('body');this.dialog.container=$('<div/>').attr('id',this.opts.containerId).addClass('simplemodal-container').css($.extend(this.opts.containerCss,{display:'none',position:this.opts.positionType,zIndex:this.opts.zIndex+2})).append(this.opts.close?$(this.opts.closeHTML).addClass(this.opts.closeClass):'').appendTo('body');this.setPosition();if(ie6||ieQuirks){if(this.opts.positionType=="fixed"){this.fixIE();}}
this.dialog.container.append(this.dialog.data.hide());},bindEvents:function(){var self=this;$('.'+this.opts.closeClass).bind('click.simplemodal',function(e){e.preventDefault();self.close();});var positionType=this.opts.positionType;$(window).bind('resize.simplemodal',function(){w=self.getDimensions();self.setPosition();if(ie6||ieQuirks){if(positionType=="fixed"){self.fixIE();}}
else{self.dialog.iframe&&self.dialog.iframe.css({height:w[0],width:w[1]});self.dialog.overlay.css({height:w[0],width:w[1]});}});},unbindEvents:function(){$('.'+this.opts.closeClass).unbind('click.simplemodal');$(window).unbind('resize.simplemodal');},fixIE:function(){var p=this.opts.position;$.each([this.dialog.iframe||null,this.dialog.overlay,this.dialog.container],function(i,el){if(el){var bch='document.body.clientHeight',bcw='document.body.clientWidth',bsh='document.body.scrollHeight',bsl='document.body.scrollLeft',bst='document.body.scrollTop',bsw='document.body.scrollWidth',ch='document.documentElement.clientHeight',cw='document.documentElement.clientWidth',sl='document.documentElement.scrollLeft',st='document.documentElement.scrollTop',s=el[0].style;s.position='absolute';if(i<2){s.removeExpression('height');s.removeExpression('width');s.setExpression('height',''+bsh+' > '+bch+' ? '+bsh+' : '+bch+' + "px"');s.setExpression('width',''+bsw+' > '+bcw+' ? '+bsw+' : '+bcw+' + "px"');}
else{var te,le;if(p&&p.constructor==Array){var top=p[0]?typeof p[0]=='number'?p[0].toString():p[0].replace(/px/,''):el.css('top').replace(/px/,'');te=top.indexOf('%')==-1?top+' + (t = '+st+' ? '+st+' : '+bst+') + "px"':parseInt(top.replace(/%/,''))+' * (('+ch+' || '+bch+') / 100) + (t = '+st+' ? '+st+' : '+bst+') + "px"';if(p[1]){var left=typeof p[1]=='number'?p[1].toString():p[1].replace(/px/,'');le=left.indexOf('%')==-1?left+' + (t = '+sl+' ? '+sl+' : '+bsl+') + "px"':parseInt(left.replace(/%/,''))+' * (('+cw+' || '+bcw+') / 100) + (t = '+sl+' ? '+sl+' : '+bsl+') + "px"';}}
else{te='('+ch+' || '+bch+') / 2 - (this.offsetHeight / 2) + (t = '+st+' ? '+st+' : '+bst+') + "px"';le='('+cw+' || '+bcw+') / 2 - (this.offsetWidth / 2) + (t = '+sl+' ? '+sl+' : '+bsl+') + "px"';}
s.removeExpression('top');s.removeExpression('left');s.setExpression('top',te);s.setExpression('left',le);}}});},getDimensions:function(){var el=$(window);var h=$.browser.opera&&$.browser.version>'9.5'&&$.fn.jquery<='1.2.6'?document.documentElement['clientHeight']:el.height();return[h,el.width()];},setPosition:function(){var top,left,hCenter=document.documentElement['scrollTop'],vCenter=(w[1]/2)-((this.dialog.container.width()||this.dialog.data.width())/2);if(this.opts.position&&this.opts.position.constructor==Array){top=this.opts.position[0]||hCenter;left=this.opts.position[1]||vCenter;}else{top=hCenter;left=vCenter;}
this.dialog.container.css({left:left,top:top});},open:function(){this.dialog.iframe&&this.dialog.iframe.show();if($.isFunction(this.opts.onOpen)){this.opts.onOpen.apply(this,[this.dialog]);}
else{this.dialog.overlay.show();this.dialog.container.show();this.dialog.data.show();}
this.bindEvents();},close:function(){if(!this.dialog.data){return false;}
if($.isFunction(this.opts.onClose)&&!this.occb){this.occb=true;this.opts.onClose.apply(this,[this.dialog]);}
else{if(this.dialog.parentNode){if(this.opts.persist){this.dialog.data.hide().appendTo(this.dialog.parentNode);}
else{this.dialog.data.remove();this.dialog.orig.appendTo(this.dialog.parentNode);}}
else{this.dialog.data.remove();}
this.dialog.container.remove();this.dialog.overlay.remove();this.dialog.iframe&&this.dialog.iframe.remove();this.dialog={};}
this.unbindEvents();}};})(jQuery);$(document).ready(function(){$("a").bind("click",function(e){var popupTarget=$(this).attr("target");switch(popupTarget){case"glossary":e.preventDefault();popupGallery($(this).attr("href"));break;case"popupFAQ":e.preventDefault();popupFaq($(this).attr("href"));break;case"sample":e.preventDefault();popupSample($(this).attr("href"));break;}});$(".popup-controller").bind("click",function(e){e.preventDefault();var popupId=$(this).attr("id")?$(this).attr("id"):"";if(popupId){$("."+popupId+".popup-container").modal({close:false,closeClass:'popup-close',zIndex:99999,positionType:'absolute',onOpen:function(dialog){dialog.overlay.show(function(){dialog.container.show(function(){dialog.data.show();var contentHeight=$("."+popupId+".popup-container .content").height();$("."+popupId+".popup-container .side").height(contentHeight);});});}});}else{$(".popup-container").modal({close:false,closeClass:'popup-close',zIndex:99999,positionType:'absolute',onOpen:function(dialog){dialog.overlay.show(function(){dialog.container.show(function(){dialog.data.show();var contentHeight=$(".popup-container .content").height();$(".popup-container .side").height(contentHeight);});});}});}});});function popupGallery(href){var glossary_window=window.open(href,"glossary_window","left=110,top=90,width=571,height=489,resizable=1,scrollbars=1,toolbar=0,status=0,location=0,directories=0,menubar=0");try{glossary_window.focus();}catch(err){}}
function popupSample(href){var sample_window=window.open(href,"sample_window","left=120,top=100,width=1100,height=800,resizable=1,scrollbars=1,toolbar=0,status=0,location=0,directories=0,menubar=0");try{sample_window.focus();}catch(err){}}
function popupFaq(href){var faq_window=window.open(href,"faq_window","left=110,top=90,width=400,height=300,resizable=1,scrollbars=1,toolbar=0,status=0,location=0,directories=0,menubar=0");try{faq_window.focus();}catch(err){}}
jQuery.extend({historyCurrentHash:undefined,historyCallback:undefined,historyInit:function(callback){jQuery.historyCallback=callback;var current_hash=location.hash.replace(/\?.*$/,'');jQuery.historyCurrentHash=current_hash;if((jQuery.browser.msie)&&(jQuery.browser.version<8)){if(jQuery.historyCurrentHash==''){jQuery.historyCurrentHash='#';}
$("body").prepend('<iframe id="jQuery_history" src="/img/blank.gif" style="display: none;"></iframe>');var ihistory=$("#jQuery_history")[0];var iframe=ihistory.contentWindow.document;iframe.open();iframe.close();iframe.location.hash=current_hash;}
else if($.browser.safari){jQuery.historyBackStack=[];jQuery.historyBackStack.length=history.length;jQuery.historyForwardStack=[];jQuery.isFirst=true;}
jQuery.historyCallback(current_hash.replace(/^#/,''));setInterval(jQuery.historyCheck,100);},historyAddHistory:function(hash){jQuery.historyBackStack.push(hash);jQuery.historyForwardStack.length=0;this.isFirst=true;},historyCheck:function(){if((jQuery.browser.msie)&&(jQuery.browser.version<8)){var ihistory=$("#jQuery_history")[0];var iframe=ihistory.contentDocument||ihistory.contentWindow.document;var current_hash=iframe.location.hash.replace(/\?.*$/,'');if(current_hash!=jQuery.historyCurrentHash){location.hash=current_hash;jQuery.historyCurrentHash=current_hash;jQuery.historyCallback(current_hash.replace(/^#/,''));}}else if($.browser.safari){if(!jQuery.dontCheck){var historyDelta=history.length-jQuery.historyBackStack.length;if(historyDelta){jQuery.isFirst=false;if(historyDelta<0){for(var i=0;i<Math.abs(historyDelta);i++)jQuery.historyForwardStack.unshift(jQuery.historyBackStack.pop());}else{for(var i=0;i<historyDelta;i++)jQuery.historyBackStack.push(jQuery.historyForwardStack.shift());}
var cachedHash=jQuery.historyBackStack[jQuery.historyBackStack.length-1];if(cachedHash!=undefined){jQuery.historyCurrentHash=location.hash.replace(/\?.*$/,'');jQuery.historyCallback(cachedHash);}}else if(jQuery.historyBackStack[jQuery.historyBackStack.length-1]==undefined&&!jQuery.isFirst){if(document.URL.indexOf('#')>=0){jQuery.historyCallback(document.URL.split('#')[1]);}else{var current_hash=location.hash;jQuery.historyCallback('');}
jQuery.isFirst=true;}}}else{var current_hash=location.hash.replace(/\?.*$/,'');if(current_hash!=jQuery.historyCurrentHash){jQuery.historyCurrentHash=current_hash;jQuery.historyCallback(current_hash.replace(/^#/,''));}}},historyLoad:function(hash){var newhash;hash=hash.replace(/\?.*$/,'');if(jQuery.browser.safari){newhash=hash;}
else{newhash='#'+hash;location.hash=newhash;}
jQuery.historyCurrentHash=newhash;if((jQuery.browser.msie)&&(jQuery.browser.version<8)){var ihistory=$("#jQuery_history")[0];var iframe=ihistory.contentWindow.document;iframe.open();iframe.close();iframe.location.hash=newhash;jQuery.historyCallback(hash);}
else if(jQuery.browser.safari){jQuery.dontCheck=true;this.historyAddHistory(hash);var fn=function(){jQuery.dontCheck=false;};window.setTimeout(fn,200);jQuery.historyCallback(hash);location.hash=newhash;}
else{jQuery.historyCallback(hash);}}});