/* Copyright (c) 2008 Brandon Aaron (http://brandonaaron.net)
 * Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php) 
 * and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses.
 *
 * Version: 1.0.3
 * Requires jQuery 1.1.3+
 * Docs: http://docs.jquery.com/Plugins/livequery
 */
(function($){$.extend($.fn,{livequery:function(type,fn,fn2){var self=this,q;if($.isFunction(type))
fn2=fn,fn=type,type=undefined;$.each($.livequery.queries,function(i,query){if(self.selector==query.selector&&self.context==query.context&&type==query.type&&(!fn||fn.$lqguid==query.fn.$lqguid)&&(!fn2||fn2.$lqguid==query.fn2.$lqguid))
return(q=query)&&false;});q=q||new $.livequery(this.selector,this.context,type,fn,fn2);q.stopped=false;q.run();return this;},expire:function(type,fn,fn2){var self=this;if($.isFunction(type))
fn2=fn,fn=type,type=undefined;$.each($.livequery.queries,function(i,query){if(self.selector==query.selector&&self.context==query.context&&(!type||type==query.type)&&(!fn||fn.$lqguid==query.fn.$lqguid)&&(!fn2||fn2.$lqguid==query.fn2.$lqguid)&&!this.stopped)
$.livequery.stop(query.id);});return this;}});$.livequery=function(selector,context,type,fn,fn2){this.selector=selector;this.context=context||document;this.type=type;this.fn=fn;this.fn2=fn2;this.elements=[];this.stopped=false;this.id=$.livequery.queries.push(this)-1;fn.$lqguid=fn.$lqguid||$.livequery.guid++;if(fn2)fn2.$lqguid=fn2.$lqguid||$.livequery.guid++;return this;};$.livequery.prototype={stop:function(){var query=this;if(this.type)
this.elements.unbind(this.type,this.fn);else if(this.fn2)
this.elements.each(function(i,el){query.fn2.apply(el);});this.elements=[];this.stopped=true;},run:function(){if(this.stopped)return;var query=this;var oEls=this.elements,els=$(this.selector,this.context),nEls=els.not(oEls);this.elements=els;if(this.type){nEls.bind(this.type,this.fn);if(oEls.length>0)
$.each(oEls,function(i,el){if($.inArray(el,els)<0)
$.event.remove(el,query.type,query.fn);});}
else{nEls.each(function(){query.fn.apply(this);});if(this.fn2&&oEls.length>0)
$.each(oEls,function(i,el){if($.inArray(el,els)<0)
query.fn2.apply(el);});}}};$.extend($.livequery,{guid:0,queries:[],queue:[],running:false,timeout:null,checkQueue:function(){if($.livequery.running&&$.livequery.queue.length){var length=$.livequery.queue.length;while(length--)
$.livequery.queries[$.livequery.queue.shift()].run();}},pause:function(){$.livequery.running=false;},play:function(){$.livequery.running=true;$.livequery.run();},registerPlugin:function(){$.each(arguments,function(i,n){if(!$.fn[n])return;var old=$.fn[n];$.fn[n]=function(){var r=old.apply(this,arguments);$.livequery.run();return r;}});},run:function(id){if(id!=undefined){if($.inArray(id,$.livequery.queue)<0)
$.livequery.queue.push(id);}
else
$.each($.livequery.queries,function(id){if($.inArray(id,$.livequery.queue)<0)
$.livequery.queue.push(id);});if($.livequery.timeout)clearTimeout($.livequery.timeout);$.livequery.timeout=setTimeout($.livequery.checkQueue,20);},stop:function(id){if(id!=undefined)
$.livequery.queries[id].stop();else
$.each($.livequery.queries,function(id){$.livequery.queries[id].stop();});}});$.livequery.registerPlugin('append','prepend','after','before','wrap','attr','removeAttr','addClass','removeClass','toggleClass','empty','remove');$(function(){$.livequery.play();});var init=$.prototype.init;$.prototype.init=function(a,c){var r=init.apply(this,arguments);if(a&&a.selector)
r.context=a.context,r.selector=a.selector;if(typeof a=='string')
r.context=c||document,r.selector=a;return r;};$.prototype.init.prototype=$.prototype;})(jQuery);;(function($){$.fn.printElement=function(options){var mainOptions=$.extend({},$.fn.printElement.defaults,options);$("[id^='printElement_']").remove();return this.each(function(){var opts=$.meta?$.extend({},mainOptions,$this.data()):mainOptions;_printElement($(this),opts);});};$.fn.printElement.defaults={printMode:'iframe',pageTitle:'',overrideElementCSS:[],printBodyOptions:{styleToAdd:'padding:10px;margin:10px;',classNameToAdd:''},leaveOpen:false,iframeElementOptions:{styleToAdd:'position:absolute;width:0px;height:0px;',classNameToAdd:''}};function _printElement(element,opts){var $elementToPrint=$(element);var html=_getMarkup($elementToPrint,opts);var popupOrIframe=null;var documentToWriteTo=null;if(opts.printMode.toLowerCase()=='popup'){popupOrIframe=window.open('','printElementWindow','width=650,height=440,scrollbars=yes');documentToWriteTo=popup.document;}
else{var printElementID="printElement_"+(Math.random()*99999).toString();iframe=document.createElement('IFRAME');$(iframe).attr({style:opts.iframeElementOptions.styleToAdd,id:printElementID,className:opts.iframeElementOptions.classNameToAdd});document.body.appendChild(iframe);documentToWriteTo=iframe.contentWindow.document;var iframe=document.frames?document.frames[printElementID]:document.getElementById(printElementID);popupOrIframe=iframe.contentWindow||iframe;}
documentToWriteTo.open();documentToWriteTo.write(html);documentToWriteTo.close();popupOrIframe.focus();};function _getMarkup(element,opts){var $elementToPrint=$(element);var html=new Array();html.push('<html><head><title>'+opts.pageTitle+'</title>');if(opts.overrideElementCSS&&opts.overrideElementCSS.length>0){for(var x=0;x<opts.overrideElementCSS.length;x++){html.push('<link type="text/css" rel="stylesheet" href="'+opts.overrideElementCSS[x]+'" >');}}
else{$(document).find("link ").filter(function(){return $(this).attr("rel").toLowerCase()=="stylesheet";}).each(function(){html.push('<link type="text/css" rel="stylesheet" href="'+$(this).attr("href")+'" >');});}
html.push('</head><body onload="printPage();" style="'+opts.printBodyOptions.styleToAdd+'" class="'+opts.printBodyOptions.classNameToAdd+'">');html.push('<div class="'+$elementToPrint.attr("class")+'">'+$elementToPrint.html()+'</div>');html.push('<script type="text/javascript">function printPage() { focus();print();'+(opts.leaveOpen?'':'close();')+'}</script></body></html>');return html.join('');};})(jQuery);;(function($){var keyString="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";var uTF8Encode=function(string){string=string.replace(/\x0d\x0a/g,"\x0a");var output="";for(var n=0;n<string.length;n++){var c=string.charCodeAt(n);if(c<128){output+=String.fromCharCode(c);}else if((c>127)&&(c<2048)){output+=String.fromCharCode((c>>6)|192);output+=String.fromCharCode((c&63)|128);}else{output+=String.fromCharCode((c>>12)|224);output+=String.fromCharCode(((c>>6)&63)|128);output+=String.fromCharCode((c&63)|128);}}
return output;};var uTF8Decode=function(input){var string="";var i=0;var c=c1=c2=0;while(i<input.length){c=input.charCodeAt(i);if(c<128){string+=String.fromCharCode(c);i++;}else if((c>191)&&(c<224)){c2=input.charCodeAt(i+1);string+=String.fromCharCode(((c&31)<<6)|(c2&63));i+=2;}else{c2=input.charCodeAt(i+1);c3=input.charCodeAt(i+2);string+=String.fromCharCode(((c&15)<<12)|((c2&63)<<6)|(c3&63));i+=3;}}
return string;}
$.extend({base64Encode:function(input){var output="";var chr1,chr2,chr3,enc1,enc2,enc3,enc4;var i=0;input=uTF8Encode(input);while(i<input.length){chr1=input.charCodeAt(i++);chr2=input.charCodeAt(i++);chr3=input.charCodeAt(i++);enc1=chr1>>2;enc2=((chr1&3)<<4)|(chr2>>4);enc3=((chr2&15)<<2)|(chr3>>6);enc4=chr3&63;if(isNaN(chr2)){enc3=enc4=64;}else if(isNaN(chr3)){enc4=64;}
output=output+keyString.charAt(enc1)+keyString.charAt(enc2)+keyString.charAt(enc3)+keyString.charAt(enc4);}
return output;},base64Decode:function(input){var output="";var chr1,chr2,chr3;var enc1,enc2,enc3,enc4;var i=0;input=input.replace(/[^A-Za-z0-9\+\/\=]/g,"");while(i<input.length){enc1=keyString.indexOf(input.charAt(i++));enc2=keyString.indexOf(input.charAt(i++));enc3=keyString.indexOf(input.charAt(i++));enc4=keyString.indexOf(input.charAt(i++));chr1=(enc1<<2)|(enc2>>4);chr2=((enc2&15)<<4)|(enc3>>2);chr3=((enc3&3)<<6)|enc4;output=output+String.fromCharCode(chr1);if(enc3!=64){output=output+String.fromCharCode(chr2);}
if(enc4!=64){output=output+String.fromCharCode(chr3);}}
output=uTF8Decode(output);return output;}});})(jQuery);;(function($){$.widget("ui.selectmenu",{_init:function(){var self=this,o=this.options;var num=Math.round(Math.random()*1000);this.ids=[this.element.attr('id')+'_'+'button'+'_'+num,this.element.attr('id')+'_'+'menu'+'_'+num];this._safemouseup=true;this.newelement=$('<a class="'+this.widgetBaseClass+' ui-widget ui-state-default ui-corner-all" id="'+this.ids[0]+'" role="button" href="#" aria-haspopup="true" aria-owns="'+this.ids[1]+'" aria-expanded="false"></a>').insertAfter(this.element);var tabindex=this.element.attr('tabindex')||'0';this.newelement.attr('tabindex',tabindex);this.newelement.data('selectelement',this.element);this.selectmenuIcon=$('<span class="'+this.widgetBaseClass+'-icon ui-icon"></span>').prependTo(this.newelement).addClass((o.style=="popup")?'ui-icon-triangle-2-n-s':'ui-icon-triangle-1-s');$('label[for='+this.element.attr('id')+']').attr('for',this.ids[0]).bind('click',function(){self.newelement.focus();return false;});this.newelement.bind('mousedown',function(event){self._toggle(event);if(o.style=="popup"){self._safemouseup=false;setTimeout(function(){self._safemouseup=true;},300);}
return false;}).bind('click',function(){return false;}).keydown(function(event){var ret=true;switch(event.keyCode){case $.ui.keyCode.ENTER:ret=true;break;case $.ui.keyCode.SPACE:ret=false;self._toggle(event);break;case $.ui.keyCode.UP:case $.ui.keyCode.LEFT:ret=false;self._moveSelection(-1);break;case $.ui.keyCode.DOWN:case $.ui.keyCode.RIGHT:ret=false;self._moveSelection(1);break;case $.ui.keyCode.TAB:ret=true;break;default:ret=false;self._typeAhead(event.keyCode,'mouseup');break;}
return ret;}).bind('mouseover focus',function(){$(this).addClass(self.widgetBaseClass+'-focus ui-state-hover');}).bind('mouseout blur',function(){$(this).removeClass(self.widgetBaseClass+'-focus ui-state-hover');});$(document).mousedown(function(event){self.close(event);});this.element.click(function(){this._refreshValue();}).focus(function(){this.newelement.focus();});var cornerClass=(o.style=="dropdown")?" ui-corner-bottom":" ui-corner-all"
this.list=$('<ul class="'+self.widgetBaseClass+'-menu ui-widget ui-widget-content'+cornerClass+'" aria-hidden="true" role="listbox" aria-multiselectable="false" aria-labelledby="'+this.ids[0]+'" id="'+this.ids[1]+'"></ul>').appendTo('body');var selectOptionData=[];this.element.find('option').each(function(){selectOptionData.push({value:$(this).attr('value'),text:self._formatText(jQuery(this).text()),selected:$(this).attr('selected'),classes:$(this).attr('class'),parentOptGroup:$(this).parent('optgroup').attr('label')});});var activeClass=(self.options.style=="popup")?" ui-state-active":"";for(var i in selectOptionData){var thisLi=$('<li><a href="#" tabindex="-1" role="option" aria-selected="false">'+selectOptionData[i].text+'</a></li>').data('index',i).addClass(selectOptionData[i].classes).data('optionClasses',selectOptionData[i].classes).mouseup(function(event){if(self._safemouseup){var changed=$(this).data('index')!=self._selectedIndex();self.value($(this).data('index'));self.select(event);if(changed){self.change(event);}
self.close(event,true);}
return false;}).click(function(){return false;}).bind('mouseover focus',function(){self._selectedOptionLi().addClass(activeClass);self._focusedOptionLi().removeClass(self.widgetBaseClass+'-item-focus ui-state-hover');$(this).removeClass('ui-state-active').addClass(self.widgetBaseClass+'-item-focus ui-state-hover');}).bind('mouseout blur',function(){if($(this).is(self._selectedOptionLi())){$(this).addClass(activeClass);}
$(this).removeClass(self.widgetBaseClass+'-item-focus ui-state-hover');});if(selectOptionData[i].parentOptGroup){var optGroupName=self.widgetBaseClass+'-group-'+selectOptionData[i].parentOptGroup;if(this.list.find('li.'+optGroupName).size()){this.list.find('li.'+optGroupName+':last ul').append(thisLi);}
else{$('<li class="'+self.widgetBaseClass+'-group '+optGroupName+'"><span class="'+self.widgetBaseClass+'-group-label">'+selectOptionData[i].parentOptGroup+'</span><ul></ul></li>').appendTo(this.list).find('ul').append(thisLi);}}
else{thisLi.appendTo(this.list);}
this.list.bind('mousedown mouseup',function(){return false;});if(o.icons){for(var j in o.icons){if(thisLi.is(o.icons[j].find)){thisLi.data('optionClasses',selectOptionData[i].classes+' '+self.widgetBaseClass+'-hasIcon').addClass(self.widgetBaseClass+'-hasIcon');var iconClass=o.icons[j].icon||"";thisLi.find('a:eq(0)').prepend('<span class="'+self.widgetBaseClass+'-item-icon ui-icon '+iconClass+'"></span>');}}}}
this.list.find('li:last').addClass("ui-corner-bottom");if(o.style=='popup'){this.list.find('li:first').addClass("ui-corner-top");}
if(o.transferClasses){var transferClasses=this.element.attr('class')||'';this.newelement.add(this.list).addClass(transferClasses);}
var selectWidth=this.element.width();this.newelement.width((o.width)?o.width:selectWidth);if(o.style=='dropdown'){this.list.width((o.menuWidth)?o.menuWidth:((o.width)?o.width:selectWidth));}
else{this.list.width((o.menuWidth)?o.menuWidth:((o.width)?o.width-o.handleWidth:selectWidth-o.handleWidth));}
if(o.maxHeight&&o.maxHeight<this.list.height()){this.list.height(o.maxHeight);}
this._optionLis=this.list.find('li:not(.'+self.widgetBaseClass+'-group)');this.list.keydown(function(event){var ret=true;switch(event.keyCode){case $.ui.keyCode.UP:case $.ui.keyCode.LEFT:ret=false;self._moveFocus(-1);break;case $.ui.keyCode.DOWN:case $.ui.keyCode.RIGHT:ret=false;self._moveFocus(1);break;case $.ui.keyCode.HOME:ret=false;self._moveFocus(':first');break;case $.ui.keyCode.PAGE_UP:ret=false;self._scrollPage('up');break;case $.ui.keyCode.PAGE_DOWN:ret=false;self._scrollPage('down');break;case $.ui.keyCode.END:ret=false;self._moveFocus(':last');break;case $.ui.keyCode.ENTER:case $.ui.keyCode.SPACE:ret=false;self.close(event,true);$(event.target).parents('li:eq(0)').trigger('mouseup');break;case $.ui.keyCode.TAB:ret=true;self.close(event);break;case $.ui.keyCode.ESCAPE:ret=false;self.close(event,true);break;default:ret=false;self._typeAhead(event.keyCode,'focus');break;}
return ret;});if(o.style=='dropdown'){this.newelement.addClass(self.widgetBaseClass+"-dropdown");this.list.addClass(self.widgetBaseClass+"-menu-dropdown");}
else{this.newelement.addClass(self.widgetBaseClass+"-popup");this.list.addClass(self.widgetBaseClass+"-menu-popup");}
this.newelement.prepend('<span class="'+self.widgetBaseClass+'-status">'+selectOptionData[this._selectedIndex()].text+'</span>');this.element.hide();if(this.element.attr('disabled')==true){this.disable();}
this.value(this._selectedIndex());},destroy:function(){this.element.removeData(this.widgetName).removeClass(this.widgetBaseClass+'-disabled'+' '+this.namespace+'-state-disabled').removeAttr('aria-disabled');$('label[for='+this.newelement.attr('id')+']').attr('for',this.element.attr('id')).unbind('click');this.newelement.remove();this.list.remove();this.element.show();},_typeAhead:function(code,eventType){var self=this;if(!self._prevChar){self._prevChar=['',0];}
var C=String.fromCharCode(code);c=C.toLowerCase();var focusFound=false;function focusOpt(elem,ind){focusFound=true;$(elem).trigger(eventType);self._prevChar[1]=ind;};this.list.find('li a').each(function(i){if(!focusFound){var thisText=$(this).text();if(thisText.indexOf(C)==0||thisText.indexOf(c)==0){if(self._prevChar[0]==C){if(self._prevChar[1]<i){focusOpt(this,i);}}
else{focusOpt(this,i);}}}});this._prevChar[0]=C;},_uiHash:function(){return{value:this.value()};},open:function(event){var self=this;this._refreshPosition();this._closeOthers(event);this.newelement.attr('aria-expanded',true).addClass('ui-state-active');this.list.appendTo('body').addClass(self.widgetBaseClass+'-open').attr('aria-hidden',false).find('li:not(.'+self.widgetBaseClass+'-group):eq('+this._selectedIndex()+') a').focus();if(this.options.style=="dropdown"){this.newelement.removeClass('ui-corner-all').addClass('ui-corner-top');}
this._refreshPosition();this._trigger("open",event,this._uiHash());},close:function(event,retainFocus){if(this.newelement.is('.ui-state-active')){this.newelement.attr('aria-expanded',false).removeClass('ui-state-active');this.list.attr('aria-hidden',true).removeClass(this.widgetBaseClass+'-open');if(this.options.style=="dropdown"){this.newelement.removeClass('ui-corner-top').addClass('ui-corner-all');}
if(retainFocus){this.newelement.focus();}
this._trigger("close",event,this._uiHash());}},change:function(event){this.element.trigger('change');this._trigger("change",event,this._uiHash());},select:function(event){this._trigger("select",event,this._uiHash());},_closeOthers:function(event){$('.'+this.widgetBaseClass+'.ui-state-active').not(this.newelement).each(function(){$(this).data('selectelement').selectmenu('close',event);});$('.'+this.widgetBaseClass+'.ui-state-hover').trigger('mouseout');},_toggle:function(event,retainFocus){if(this.list.is('.'+this.widgetBaseClass+'-open')){this.close(event,retainFocus);}
else{this.open(event);}},_formatText:function(text){return this.options.format?this.options.format(text):text;},_selectedIndex:function(){return this.element[0].selectedIndex;},_selectedOptionLi:function(){return this._optionLis.eq(this._selectedIndex());},_focusedOptionLi:function(){return this.list.find('.'+this.widgetBaseClass+'-item-focus');},_moveSelection:function(amt){var currIndex=parseInt(this._selectedOptionLi().data('index'),10);var newIndex=currIndex+amt;return this._optionLis.eq(newIndex).trigger('mouseup');},_moveFocus:function(amt){if(!isNaN(amt)){var currIndex=parseInt(this._focusedOptionLi().data('index'),10);var newIndex=currIndex+amt;}
else{var newIndex=parseInt(this._optionLis.filter(amt).data('index'),10);}
if(newIndex<0){newIndex=0;}
if(newIndex>this._optionLis.size()-1){newIndex=this._optionLis.size()-1;}
this._focusedOptionLi().find('a:eq(0)').blur();this._optionLis.eq(newIndex).find('a:eq(0)').focus();},_scrollPage:function(direction){var numPerPage=Math.floor(this.list.outerHeight()/this.list.find('li:first').outerHeight());numPerPage=(direction=='up')?-numPerPage:numPerPage;this._moveFocus(numPerPage);},_setData:function(key,value){this.options[key]=value;if(key=='disabled'){this.element.add(this.newelement).add(this.list)
[value?'addClass':'removeClass'](this.widgetBaseClass+'-disabled'+' '+
this.namespace+'-state-disabled').attr("aria-disabled",value);}},value:function(newValue){if(arguments.length){this.element[0].selectedIndex=newValue;this._refreshValue();this._refreshPosition();}
return this.element[0].selectedIndex;},_refreshValue:function(){var activeClass=(this.options.style=="popup")?" ui-state-active":"";this.list.find('.'+this.widgetBaseClass+'-item-selected').removeClass(this.widgetBaseClass+"-item-selected"+activeClass).find('a').attr('aria-selected','false');this._selectedOptionLi().addClass(this.widgetBaseClass+"-item-selected"+activeClass).find('a').attr('aria-selected','true');var currentOptionClasses=this.newelement.data('optionClasses')?this.newelement.data('optionClasses'):"";var newOptionClasses=this._selectedOptionLi().data('optionClasses')?this._selectedOptionLi().data('optionClasses'):"";this.newelement.removeClass(currentOptionClasses).data('optionClasses',newOptionClasses).addClass(newOptionClasses).find('.'+this.widgetBaseClass+'-status').html(this._selectedOptionLi().find('a:eq(0)').html());},_refreshPosition:function(){this.list.css('left',this.newelement.offset().left);var menuTop=this.newelement.offset().top;var scrolledAmt=this.list[0].scrollTop;this.list.find('li:lt('+this._selectedIndex()+')').each(function(){scrolledAmt-=$(this).outerHeight();});if(this.newelement.is('.'+this.widgetBaseClass+'-popup')){menuTop+=scrolledAmt;this.list.css('top',menuTop);}
else{menuTop+=this.newelement.height();this.list.css('top',menuTop);}}});$.extend($.ui.selectmenu,{getter:"value",version:"@VERSION",eventPrefix:"selectmenu",defaults:{transferClasses:true,style:'popup',width:null,menuWidth:null,handleWidth:26,maxHeight:null,icons:null,format:null}});})(jQuery);;AJS={BASE_URL:"",drag_obj:null,drag_elm:null,_drop_zones:[],_cur_pos:null,getScrollTop:function(){var t;if(document.documentElement&&document.documentElement.scrollTop){t=document.documentElement.scrollTop;}else{if(document.body){t=document.body.scrollTop;}}
return t;},addClass:function(){var _2=AJS.forceArray(arguments);var _3=_2.pop();var _4=function(o){if(!new RegExp("(^|\\s)"+_3+"(\\s|$)").test(o.className)){o.className+=(o.className?" ":"")+_3;}};AJS.map(_2,function(_6){_4(_6);});},setStyle:function(){var _7=AJS.forceArray(arguments);var _8=_7.pop();var _9=_7.pop();AJS.map(_7,function(_a){_a.style[_9]=AJS.getCssDim(_8);});},extend:function(_b){var _c=new this("no_init");for(k in _b){var _d=_c[k];var _e=_b[k];if(_d&&_d!=_e&&typeof _e=="function"){_e=this._parentize(_e,_d);}
_c[k]=_e;}
return new AJS.Class(_c);},log:function(o){if(window.console){console.log(o);}else{var div=AJS.$("ajs_logger");if(!div){div=AJS.DIV({id:"ajs_logger","style":"color: green; position: absolute; left: 0"});div.style.top=AJS.getScrollTop()+"px";AJS.ACN(AJS.getBody(),div);}
AJS.setHTML(div,""+o);}},setHeight:function(){var _11=AJS.forceArray(arguments);_11.splice(_11.length-1,0,"height");AJS.setStyle.apply(null,_11);},_getRealScope:function(fn,_13){_13=AJS.$A(_13);var _14=fn._cscope||window;return function(){var _15=AJS.$FA(arguments).concat(_13);return fn.apply(_14,_15);};},documentInsert:function(elm){if(typeof(elm)=="string"){elm=AJS.HTML2DOM(elm);}
document.write("<span id=\"dummy_holder\"></span>");AJS.swapDOM(AJS.$("dummy_holder"),elm);},getWindowSize:function(doc){doc=doc||document;var _18,_19;if(self.innerHeight){_18=self.innerWidth;_19=self.innerHeight;}else{if(doc.documentElement&&doc.documentElement.clientHeight){_18=doc.documentElement.clientWidth;_19=doc.documentElement.clientHeight;}else{if(doc.body){_18=doc.body.clientWidth;_19=doc.body.clientHeight;}}}
return{"w":_18,"h":_19};},flattenList:function(_1a){var r=[];var _1c=function(r,l){AJS.map(l,function(o){if(o==null){}else{if(AJS.isArray(o)){_1c(r,o);}else{r.push(o);}}});};_1c(r,_1a);return r;},isFunction:function(obj){return(typeof obj=="function");},setEventKey:function(e){e.key=e.keyCode?e.keyCode:e.charCode;if(window.event){e.ctrl=window.event.ctrlKey;e.shift=window.event.shiftKey;}else{e.ctrl=e.ctrlKey;e.shift=e.shiftKey;}
switch(e.key){case 63232:e.key=38;break;case 63233:e.key=40;break;case 63235:e.key=39;break;case 63234:e.key=37;break;}},removeElement:function(){var _22=AJS.forceArray(arguments);AJS.map(_22,function(elm){AJS.swapDOM(elm,null);});},_unloadListeners:function(){if(AJS.listeners){AJS.map(AJS.listeners,function(elm,_25,fn){AJS.REV(elm,_25,fn);});}
AJS.listeners=[];},join:function(_27,_28){try{return _28.join(_27);}
catch(e){var r=_28[0]||"";AJS.map(_28,function(elm){r+=_27+elm;},1);return r+"";}},getIndex:function(elm,_2c,_2d){for(var i=0;i<_2c.length;i++){if(_2d&&_2d(_2c[i])||elm==_2c[i]){return i;}}
return-1;},isIn:function(elm,_30){var i=AJS.getIndex(elm,_30);if(i!=-1){return true;}else{return false;}},isArray:function(obj){return obj instanceof Array;},setLeft:function(){var _33=AJS.forceArray(arguments);_33.splice(_33.length-1,0,"left");AJS.setStyle.apply(null,_33);},appendChildNodes:function(elm){if(arguments.length>=2){AJS.map(arguments,function(n){if(AJS.isString(n)){n=AJS.TN(n);}
if(AJS.isDefined(n)){elm.appendChild(n);}},1);}
return elm;},getElementsByTagAndClassName:function(_36,_37,_38,_39){var _3a=[];if(!AJS.isDefined(_38)){_38=document;}
if(!AJS.isDefined(_36)){_36="*";}
var els=_38.getElementsByTagName(_36);var _3c=els.length;var _3d=new RegExp("(^|\\s)"+_37+"(\\s|$)");for(i=0,j=0;i<_3c;i++){if(_3d.test(els[i].className)||_37==null){_3a[j]=els[i];j++;}}
if(_39){return _3a[0];}else{return _3a;}},isOpera:function(){return(navigator.userAgent.toLowerCase().indexOf("opera")!=-1);},isString:function(obj){return(typeof obj=="string");},hideElement:function(elm){var _40=AJS.forceArray(arguments);AJS.map(_40,function(elm){elm.style.display="none";});},setOpacity:function(elm,p){elm.style.opacity=p;elm.style.filter="alpha(opacity="+p*100+")";},insertBefore:function(elm,_45){_45.parentNode.insertBefore(elm,_45);return elm;},setWidth:function(){var _46=AJS.forceArray(arguments);_46.splice(_46.length-1,0,"width");AJS.setStyle.apply(null,_46);},createArray:function(v){if(AJS.isArray(v)&&!AJS.isString(v)){return v;}else{if(!v){return[];}else{return[v];}}},isDict:function(o){var _49=String(o);return _49.indexOf(" Object")!=-1;},isMozilla:function(){return(navigator.userAgent.toLowerCase().indexOf("gecko")!=-1&&navigator.productSub>=20030210);},removeEventListener:function(elm,_4b,fn,_4d){var _4e="ajsl_"+_4b+fn;if(!_4d){_4d=false;}
fn=elm[_4e]||fn;if(elm["on"+_4b]==fn){elm["on"+_4b]=elm[_4e+"old"];}
if(elm.removeEventListener){elm.removeEventListener(_4b,fn,_4d);if(AJS.isOpera()){elm.removeEventListener(_4b,fn,!_4d);}}else{if(elm.detachEvent){elm.detachEvent("on"+_4b,fn);}}},callLater:function(fn,_50){var _51=function(){fn();};window.setTimeout(_51,_50);},setTop:function(){var _52=AJS.forceArray(arguments);_52.splice(_52.length-1,0,"top");AJS.setStyle.apply(null,_52);},_createDomShortcuts:function(){var _53=["ul","li","td","tr","th","tbody","table","input","span","b","a","div","img","button","h1","h2","h3","h4","h5","h6","br","textarea","form","p","select","option","optgroup","iframe","script","center","dl","dt","dd","small","pre","i"];var _54=function(elm){AJS[elm.toUpperCase()]=function(){return AJS.createDOM.apply(null,[elm,arguments]);};};AJS.map(_53,_54);AJS.TN=function(_56){return document.createTextNode(_56);};},addCallback:function(fn){this.callbacks.unshift(fn);},bindMethods:function(_58){for(var k in _58){var _5a=_58[k];if(typeof(_5a)=="function"){_58[k]=AJS.$b(_5a,_58);}}},partial:function(fn){var _5c=AJS.$FA(arguments);_5c.shift();return function(){_5c=_5c.concat(AJS.$FA(arguments));return fn.apply(window,_5c);};},isNumber:function(obj){return(typeof obj=="number");},getCssDim:function(dim){if(AJS.isString(dim)){return dim;}else{return dim+"px";}},isIe:function(){return(navigator.userAgent.toLowerCase().indexOf("msie")!=-1&&navigator.userAgent.toLowerCase().indexOf("opera")==-1);},removeClass:function(){var _5f=AJS.forceArray(arguments);var cls=_5f.pop();var _61=function(o){o.className=o.className.replace(new RegExp("\\s?"+cls,"g"),"");};AJS.map(_5f,function(elm){_61(elm);});},setHTML:function(elm,_65){elm.innerHTML=_65;return elm;},map:function(_66,fn,_68,_69){var i=0,l=_66.length;if(_68){i=_68;}
if(_69){l=_69;}
for(i;i<l;i++){var val=fn(_66[i],i);if(val!=undefined){return val;}}},addEventListener:function(elm,_6e,fn,_70,_71){var _72="ajsl_"+_6e+fn;if(!_71){_71=false;}
AJS.listeners=AJS.$A(AJS.listeners);if(AJS.isIn(_6e,["keypress","keydown","keyup","click"])){var _73=fn;fn=function(e){AJS.setEventKey(e);return _73.apply(window,arguments);};}
var _75=AJS.isIn(_6e,["submit","load","scroll","resize"]);var _76=AJS.$A(elm);AJS.map(_76,function(_77){if(_70){var _78=fn;fn=function(e){AJS.REV(_77,_6e,fn);return _78.apply(window,arguments);};}
if(_75){var _7a=_77["on"+_6e];var _7b=function(){if(_7a){fn(arguments);return _7a(arguments);}else{return fn(arguments);}};_77[_72]=_7b;_77[_72+"old"]=_7a;elm["on"+_6e]=_7b;}else{_77[_72]=fn;if(_77.attachEvent){_77.attachEvent("on"+_6e,fn);}else{if(_77.addEventListener){_77.addEventListener(_6e,fn,_71);}}
AJS.listeners.push([_77,_6e,fn]);}});},preloadImages:function(){AJS.AEV(window,"load",AJS.$p(function(_7c){AJS.map(_7c,function(src){var pic=new Image();pic.src=src;});},arguments));},forceArray:function(_7f){var r=[];AJS.map(_7f,function(elm){r.push(elm);});return r;},update:function(l1,l2){for(var i in l2){l1[i]=l2[i];}
return l1;},getBody:function(){return AJS.$bytc("body")[0];},HTML2DOM:function(_85,_86){var d=AJS.DIV();d.innerHTML=_85;if(_86){return d.childNodes[0];}else{return d;}},getElement:function(id){if(AJS.isString(id)||AJS.isNumber(id)){return document.getElementById(id);}else{return id;}},showElement:function(){var _89=AJS.forceArray(arguments);AJS.map(_89,function(elm){elm.style.display="";});},bind:function(fn,_8c,_8d){fn._cscope=_8c;return AJS._getRealScope(fn,_8d);},createDOM:function(_8e,_8f){var i=0,_91;var elm=document.createElement(_8e);var _93=_8f[0];if(AJS.isDict(_8f[i])){for(k in _93){_91=_93[k];if(k=="style"||k=="s"){elm.style.cssText=_91;}else{if(k=="c"||k=="class"||k=="className"){elm.className=_91;}else{elm.setAttribute(k,_91);}}}
i++;}
if(_93==null){i=1;}
for(var j=i;j<_8f.length;j++){var _91=_8f[j];if(_91){var _95=typeof(_91);if(_95=="string"||_95=="number"){_91=AJS.TN(_91);}
elm.appendChild(_91);}}
return elm;},swapDOM:function(_96,src){_96=AJS.getElement(_96);var _98=_96.parentNode;if(src){src=AJS.getElement(src);_98.replaceChild(src,_96);}else{_98.removeChild(_96);}
return src;},isDefined:function(o){return(o!="undefined"&&o!=null);}};AJS.$=AJS.getElement;AJS.$$=AJS.getElements;AJS.$f=AJS.getFormElement;AJS.$p=AJS.partial;AJS.$b=AJS.bind;AJS.$A=AJS.createArray;AJS.DI=AJS.documentInsert;AJS.ACN=AJS.appendChildNodes;AJS.RCN=AJS.replaceChildNodes;AJS.AEV=AJS.addEventListener;AJS.REV=AJS.removeEventListener;AJS.$bytc=AJS.getElementsByTagAndClassName;AJS.$AP=AJS.absolutePosition;AJS.$FA=AJS.forceArray;AJS.addEventListener(window,"unload",AJS._unloadListeners);AJS._createDomShortcuts();AJS.Class=function(_9a){var fn=function(){if(arguments[0]!="no_init"){return this.init.apply(this,arguments);}};fn.prototype=_9a;AJS.update(fn,AJS.Class.prototype);return fn;};AJS.Class.prototype={extend:function(_9c){var _9d=new this("no_init");for(k in _9c){var _9e=_9d[k];var cur=_9c[k];if(_9e&&_9e!=cur&&typeof cur=="function"){cur=this._parentize(cur,_9e);}
_9d[k]=cur;}
return new AJS.Class(_9d);},implement:function(_a0){AJS.update(this.prototype,_a0);},_parentize:function(cur,_a2){return function(){this.parent=_a2;return cur.apply(this,arguments);};}};script_loaded=true;script_loaded=true;;AJS.fx={_shades:{0:"ffffff",1:"ffffee",2:"ffffdd",3:"ffffcc",4:"ffffbb",5:"ffffaa",6:"ffff99"},highlight:function(_1,_2){var _3=new AJS.fx.Base();_3.elm=AJS.$(_1);_3.options.duration=600;_3.setOptions(_2);AJS.update(_3,{increase:function(){if(this.now==7){_1.style.backgroundColor="#fff";}else{_1.style.backgroundColor="#"+AJS.fx._shades[Math.floor(this.now)];}}});return _3.custom(6,0);},fadeIn:function(_4,_5){_5=_5||{};if(!_5.from){_5.from=0;AJS.setOpacity(_4,0);}
if(!_5.to){_5.to=1;}
var s=new AJS.fx.Style(_4,"opacity",_5);return s.custom(_5.from,_5.to);},fadeOut:function(_7,_8){_8=_8||{};if(!_8.from){_8.from=1;}
if(!_8.to){_8.to=0;}
_8.duration=300;var s=new AJS.fx.Style(_7,"opacity",_8);return s.custom(_8.from,_8.to);},setWidth:function(_a,_b){var s=new AJS.fx.Style(_a,"width",_b);return s.custom(_b.from,_b.to);},setHeight:function(_d,_e){var s=new AJS.fx.Style(_d,"height",_e);return s.custom(_e.from,_e.to);}};AJS.fx.Base=new AJS.Class({init:function(_10){this.options={onStart:function(){},onComplete:function(){},transition:AJS.fx.Transitions.sineInOut,duration:500,wait:true,fps:50};AJS.update(this.options,_10);AJS.bindMethods(this);},setOptions:function(_11){AJS.update(this.options,_11);},step:function(){var _12=new Date().getTime();if(_12<this.time+this.options.duration){this.cTime=_12-this.time;this.setNow();}else{setTimeout(AJS.$b(this.options.onComplete,this,[this.elm]),10);this.clearTimer();this.now=this.to;}
this.increase();},setNow:function(){this.now=this.compute(this.from,this.to);},compute:function(_13,to){var _15=to-_13;return this.options.transition(this.cTime,_13,_15,this.options.duration);},clearTimer:function(){clearInterval(this.timer);this.timer=null;return this;},_start:function(_16,to){if(!this.options.wait){this.clearTimer();}
if(this.timer){return;}
setTimeout(AJS.$p(this.options.onStart,this.elm),10);this.from=_16;this.to=to;this.time=new Date().getTime();this.timer=setInterval(this.step,Math.round(1000/this.options.fps));return this;},custom:function(_18,to){return this._start(_18,to);},set:function(to){this.now=to;this.increase();return this;},setStyle:function(elm,_1c,val){if(this.property=="opacity"){AJS.setOpacity(elm,val);}else{AJS.setStyle(elm,_1c,val);}}});AJS.fx.Style=AJS.fx.Base.extend({init:function(elm,_1f,_20){this.parent();this.elm=elm;this.setOptions(_20);this.property=_1f;},increase:function(){this.setStyle(this.elm,this.property,this.now);}});AJS.fx.Styles=AJS.fx.Base.extend({init:function(elm,_22){this.parent();this.elm=AJS.$(elm);this.setOptions(_22);this.now={};},setNow:function(){for(p in this.from){this.now[p]=this.compute(this.from[p],this.to[p]);}},custom:function(obj){if(this.timer&&this.options.wait){return;}
var _24={};var to={};for(p in obj){_24[p]=obj[p][0];to[p]=obj[p][1];}
return this._start(_24,to);},increase:function(){for(var p in this.now){this.setStyle(this.elm,p,this.now[p]);}}});AJS.fx.Transitions={linear:function(t,b,c,d){return c*t/d+b;},sineInOut:function(t,b,c,d){return-c/2*(Math.cos(Math.PI*t/d)-1)+b;}};script_loaded=true;script_loaded=true;;var GB_CURRENT=null;GB_hide=function(cb){GB_CURRENT.hide(cb);};GreyBox=new AJS.Class({init:function(_2){this.use_fx=AJS.fx;this.type="page";this.overlay_click_close=false;this.salt=0;this.root_dir=GB_ROOT_DIR;this.callback_fns=[];this.reload_on_close=false;this.src_loader=this.root_dir+"loader_frame.html";var _3=window.location.hostname.indexOf("www");var _4=this.src_loader.indexOf("www");if(_3!=-1&&_4==-1){this.src_loader=this.src_loader.replace("://","://www.");}
if(_3==-1&&_4!=-1){this.src_loader=this.src_loader.replace("://www.","://");}
this.show_loading=true;AJS.update(this,_2);},addCallback:function(fn){if(fn){this.callback_fns.push(fn);}},show:function(_6){GB_CURRENT=this;this.url=_6;var _7=[AJS.$bytc("object"),AJS.$bytc("select")];AJS.map(AJS.flattenList(_7),function(_8){_8.style.visibility="hidden";});this.createElements();return false;},hide:function(cb){var me=this;AJS.callLater(function(){var _b=me.callback_fns;if(_b!=[]){AJS.map(_b,function(fn){fn();});}
me.onHide();if(me.use_fx){var _d=me.overlay;AJS.fx.fadeOut(me.overlay,{onComplete:function(){AJS.removeElement(_d);_d=null;},duration:300});AJS.removeElement(me.g_window);}else{AJS.removeElement(me.g_window,me.overlay);}
me.removeFrame();AJS.REV(window,"scroll",_GB_setOverlayDimension);AJS.REV(window,"resize",_GB_update);var _e=[AJS.$bytc("object"),AJS.$bytc("select")];AJS.map(AJS.flattenList(_e),function(_f){_f.style.visibility="visible";});GB_CURRENT=null;if(me.reload_on_close){window.location.reload();}
if(AJS.isFunction(cb)){cb();}},10);},update:function(){this.setOverlayDimension();this.setFrameSize();this.setWindowPosition();},createElements:function(){this.initOverlay();this.g_window=AJS.DIV({"id":"GB_window"});AJS.hideElement(this.g_window);AJS.getBody().insertBefore(this.g_window,this.overlay.nextSibling);this.initFrame();this.initHook();this.update();var me=this;if(this.use_fx){AJS.fx.fadeIn(this.overlay,{duration:300,to:0.7,onComplete:function(){me.onShow();AJS.showElement(me.g_window);me.startLoading();}});}else{AJS.setOpacity(this.overlay,0.7);AJS.showElement(this.g_window);this.onShow();this.startLoading();}
AJS.AEV(window,"scroll",_GB_setOverlayDimension);AJS.AEV(window,"resize",_GB_update);},removeFrame:function(){try{AJS.removeElement(this.iframe);}
catch(e){}
this.iframe=null;},startLoading:function(){this.iframe.src=this.src_loader+"?s="+this.salt++;AJS.showElement(this.iframe);},setOverlayDimension:function(){var _11=AJS.getWindowSize();if(AJS.isMozilla()||AJS.isOpera()){AJS.setWidth(this.overlay,"100%");}else{AJS.setWidth(this.overlay,_11.w);}
var _12=Math.max(AJS.getScrollTop()+_11.h,AJS.getScrollTop()+this.height);if(_12<AJS.getScrollTop()){AJS.setHeight(this.overlay,_12);}else{AJS.setHeight(this.overlay,AJS.getScrollTop()+_11.h);}},initOverlay:function(){this.overlay=AJS.DIV({"id":"GB_overlay"});if(this.overlay_click_close){AJS.AEV(this.overlay,"click",GB_hide);}
AJS.setOpacity(this.overlay,0);AJS.getBody().insertBefore(this.overlay,AJS.getBody().firstChild);},initFrame:function(){if(!this.iframe){var d={"name":"GB_frame","class":"GB_frame","frameBorder":0};if(AJS.isIe()){d.src="javascript:false;document.write(\"\");";}
this.iframe=AJS.IFRAME(d);this.middle_cnt=AJS.DIV({"class":"content"},this.iframe);this.top_cnt=AJS.DIV();this.bottom_cnt=AJS.DIV();AJS.ACN(this.g_window,this.top_cnt,this.middle_cnt,this.bottom_cnt);}},onHide:function(){},onShow:function(){},setFrameSize:function(){},setWindowPosition:function(){},initHook:function(){}});_GB_update=function(){if(GB_CURRENT){GB_CURRENT.update();}};_GB_setOverlayDimension=function(){if(GB_CURRENT){GB_CURRENT.setOverlayDimension();}};AJS.preloadImages(GB_ROOT_DIR+"indicator.gif");script_loaded=true;var GB_SETS={};function decoGreyboxLinks(){var as=AJS.$bytc("a");AJS.map(as,function(a){if(a.getAttribute("href")&&a.getAttribute("rel")){var rel=a.getAttribute("rel");if(rel.indexOf("gb_")==0){var _17=rel.match(/\w+/)[0];var _18=rel.match(/\[(.*)\]/)[1];var _19=0;var _1a={"caption":a.title||"","url":a.href};if(_17=="gb_pageset"||_17=="gb_imageset"){if(!GB_SETS[_18]){GB_SETS[_18]=[];}
GB_SETS[_18].push(_1a);_19=GB_SETS[_18].length;}
if(_17=="gb_pageset"){a.onclick=function(){GB_showFullScreenSet(GB_SETS[_18],_19);return false;};}
if(_17=="gb_imageset"){a.onclick=function(){GB_showImageSet(GB_SETS[_18],_19);return false;};}
if(_17=="gb_image"){a.onclick=function(){GB_showImage(_1a.caption,_1a.url);return false;};}
if(_17=="gb_page"){a.onclick=function(){var sp=_18.split(/, ?/);GB_show(_1a.caption,_1a.url,parseInt(sp[1]),parseInt(sp[0]));return false;};}
if(_17=="gb_page_fs"){a.onclick=function(){GB_showFullScreen(_1a.caption,_1a.url);return false;};}
if(_17=="gb_page_center"){a.onclick=function(){var sp=_18.split(/, ?/);GB_showCenter(_1a.caption,_1a.url,parseInt(sp[1]),parseInt(sp[0]));return false;};}}}});}
AJS.AEV(window,"load",decoGreyboxLinks);GB_showImage=function(_1d,url,_1f){var _20={width:300,height:300,type:"image",fullscreen:false,center_win:true,caption:_1d,callback_fn:_1f};var win=new GB_Gallery(_20);return win.show(url);};GB_showPage=function(_22,url,_24){var _25={type:"page",caption:_22,callback_fn:_24,fullscreen:true,center_win:false};var win=new GB_Gallery(_25);return win.show(url);};GB_Gallery=GreyBox.extend({init:function(_27){this.parent({});this.img_close=this.root_dir+"g_close.gif";AJS.update(this,_27);this.addCallback(this.callback_fn);},initHook:function(){AJS.addClass(this.g_window,"GB_Gallery");var _28=AJS.DIV({"class":"inner"});this.header=AJS.DIV({"class":"GB_header"},_28);AJS.setOpacity(this.header,0);AJS.getBody().insertBefore(this.header,this.overlay.nextSibling);var _29=AJS.TD({"id":"GB_caption","class":"caption","width":"40%"},this.caption);var _2a=AJS.TD({"id":"GB_middle","class":"middle","width":"20%"});var _2b=AJS.IMG({"src":this.img_close});AJS.AEV(_2b,"click",GB_hide);var _2c=AJS.TD({"class":"close","width":"40%"},_2b);var _2d=AJS.TBODY(AJS.TR(_29,_2a,_2c));var _2e=AJS.TABLE({"cellspacing":"0","cellpadding":0,"border":0},_2d);AJS.ACN(_28,_2e);if(this.fullscreen){AJS.AEV(window,"scroll",AJS.$b(this.setWindowPosition,this));}else{AJS.AEV(window,"scroll",AJS.$b(this._setHeaderPos,this));}},setFrameSize:function(){var _2f=this.overlay.offsetWidth;var _30=AJS.getWindowSize();if(this.fullscreen){this.width=_2f-40;this.height=_30.h-80;}
AJS.setWidth(this.iframe,this.width);AJS.setHeight(this.iframe,this.height);AJS.setWidth(this.header,_2f);},_setHeaderPos:function(){AJS.setTop(this.header,AJS.getScrollTop()+10);},setWindowPosition:function(){var _31=this.overlay.offsetWidth;var _32=AJS.getWindowSize();AJS.setLeft(this.g_window,((_31-50-this.width)/2));var _33=AJS.getScrollTop()+55;if(!this.center_win){AJS.setTop(this.g_window,_33);}else{var fl=((_32.h-this.height)/2)+20+AJS.getScrollTop();if(fl<0){fl=0;}
if(_33>fl){fl=_33;}
AJS.setTop(this.g_window,fl);}
this._setHeaderPos();},onHide:function(){AJS.removeElement(this.header);AJS.removeClass(this.g_window,"GB_Gallery");},onShow:function(){if(this.use_fx){AJS.fx.fadeIn(this.header,{to:1});}else{AJS.setOpacity(this.header,1);}}});AJS.preloadImages(GB_ROOT_DIR+"g_close.gif");GB_showFullScreenSet=function(set,_36,_37){var _38={type:"page",fullscreen:true,center_win:false};var _39=new GB_Sets(_38,set);_39.addCallback(_37);_39.showSet(_36-1);return false;};GB_showImageSet=function(set,_3b,_3c){var _3d={type:"image",fullscreen:false,center_win:true,width:300,height:300};var _3e=new GB_Sets(_3d,set);_3e.addCallback(_3c);_3e.showSet(_3b-1);return false;};GB_Sets=GB_Gallery.extend({init:function(_3f,set){this.parent(_3f);if(!this.img_next){this.img_next=this.root_dir+"next.gif";}
if(!this.img_prev){this.img_prev=this.root_dir+"prev.gif";}
this.current_set=set;},showSet:function(_41){this.current_index=_41;var _42=this.current_set[this.current_index];this.show(_42.url);this._setCaption(_42.caption);this.btn_prev=AJS.IMG({"class":"left",src:this.img_prev});this.btn_next=AJS.IMG({"class":"right",src:this.img_next});AJS.AEV(this.btn_prev,"click",AJS.$b(this.switchPrev,this));AJS.AEV(this.btn_next,"click",AJS.$b(this.switchNext,this));GB_STATUS=AJS.SPAN({"class":"GB_navStatus"});AJS.ACN(AJS.$("GB_middle"),this.btn_prev,GB_STATUS,this.btn_next);this.updateStatus();},updateStatus:function(){AJS.setHTML(GB_STATUS,(this.current_index+1)+" / "+this.current_set.length);if(this.current_index==0){AJS.addClass(this.btn_prev,"disabled");}else{AJS.removeClass(this.btn_prev,"disabled");}
if(this.current_index==this.current_set.length-1){AJS.addClass(this.btn_next,"disabled");}else{AJS.removeClass(this.btn_next,"disabled");}},_setCaption:function(_43){AJS.setHTML(AJS.$("GB_caption"),_43);},updateFrame:function(){var _44=this.current_set[this.current_index];this._setCaption(_44.caption);this.url=_44.url;this.startLoading();},switchPrev:function(){if(this.current_index!=0){this.current_index--;this.updateFrame();this.updateStatus();}},switchNext:function(){if(this.current_index!=this.current_set.length-1){this.current_index++;this.updateFrame();this.updateStatus();}}});AJS.AEV(window,"load",function(){AJS.preloadImages(GB_ROOT_DIR+"next.gif",GB_ROOT_DIR+"prev.gif");});GB_show=function(_45,url,_47,_48,_49){var _4a={caption:_45,height:_47||500,width:_48||500,fullscreen:false,callback_fn:_49};var win=new GB_Window(_4a);return win.show(url);};GB_showCenter=function(_4c,url,_4e,_4f,_50){var _51={caption:_4c,center_win:true,height:_4e||500,width:_4f||500,fullscreen:false,callback_fn:_50};var win=new GB_Window(_51);return win.show(url);};GB_showFullScreen=function(_53,url,_55){var _56={caption:_53,fullscreen:true,callback_fn:_55};var win=new GB_Window(_56);return win.show(url);};GB_Window=GreyBox.extend({init:function(_58){this.parent({});this.img_header=this.root_dir+"header_bg.gif";this.img_close=this.root_dir+"w_close.gif";this.show_close_img=true;AJS.update(this,_58);this.addCallback(this.callback_fn);},initHook:function(){AJS.addClass(this.g_window,"GB_Window");this.header=AJS.TABLE({"class":"header"});this.header.style.backgroundImage="url("+this.img_header+")";var _59=AJS.TD({"class":"caption"},this.caption);var _5a=AJS.TD({"class":"close"});if(this.show_close_img){var _5b=AJS.IMG({"src":this.img_close});var _5c=AJS.SPAN("Close");var btn=AJS.DIV(_5b,_5c);AJS.AEV([_5b,_5c],"mouseover",function(){AJS.addClass(_5c,"on");});AJS.AEV([_5b,_5c],"mouseout",function(){AJS.removeClass(_5c,"on");});AJS.AEV([_5b,_5c],"mousedown",function(){AJS.addClass(_5c,"click");});AJS.AEV([_5b,_5c],"mouseup",function(){AJS.removeClass(_5c,"click");});AJS.AEV([_5b,_5c],"click",GB_hide);AJS.ACN(_5a,btn);}
tbody_header=AJS.TBODY();AJS.ACN(tbody_header,AJS.TR(_59,_5a));AJS.ACN(this.header,tbody_header);AJS.ACN(this.top_cnt,this.header);if(this.fullscreen){AJS.AEV(window,"scroll",AJS.$b(this.setWindowPosition,this));}},setFrameSize:function(){if(this.fullscreen){var _5e=AJS.getWindowSize();overlay_h=_5e.h;this.width=Math.round(this.overlay.offsetWidth-(this.overlay.offsetWidth/100)*10);this.height=Math.round(overlay_h-(overlay_h/100)*10);}
AJS.setWidth(this.header,this.width+6);AJS.setWidth(this.iframe,this.width);AJS.setHeight(this.iframe,this.height);},setWindowPosition:function(){var _5f=AJS.getWindowSize();AJS.setLeft(this.g_window,((_5f.w-this.width)/2)-13);if(!this.center_win){AJS.setTop(this.g_window,AJS.getScrollTop());}else{var fl=((_5f.h-this.height)/2)-20+AJS.getScrollTop();if(fl<0){fl=0;}
AJS.setTop(this.g_window,fl);}}});AJS.preloadImages(GB_ROOT_DIR+"w_close.gif",GB_ROOT_DIR+"header_bg.gif");script_loaded=true;;;(function($){var m=$.scrollTo=function(b,h,f){$(window).scrollTo(b,h,f)};m.defaults={axis:'xy',duration:parseFloat($.fn.jquery)>=1.3?0:1};m.window=function(b){return $(window).scrollable()};$.fn.scrollable=function(){return this.map(function(){var b=this,h=!b.nodeName||$.inArray(b.nodeName.toLowerCase(),['iframe','#document','html','body'])!=-1;if(!h)return b;var f=(b.contentWindow||b).document||b.ownerDocument||b;return $.browser.safari||f.compatMode=='BackCompat'?f.body:f.documentElement})};$.fn.scrollTo=function(l,j,a){if(typeof j=='object'){a=j;j=0}if(typeof a=='function')a={onAfter:a};if(l=='max')l=9e9;a=$.extend({},m.defaults,a);j=j||a.speed||a.duration;a.queue=a.queue&&a.axis.length>1;if(a.queue)j/=2;a.offset=n(a.offset);a.over=n(a.over);return this.scrollable().each(function(){var k=this,o=$(k),d=l,p,g={},q=o.is('html,body');switch(typeof d){case'number':case'string':if(/^([+-]=)?\d+(\.\d+)?(px)?$/.test(d)){d=n(d);break}d=$(d,this);case'object':if(d.is||d.style)p=(d=$(d)).offset()}$.each(a.axis.split(''),function(b,h){var f=h=='x'?'Left':'Top',i=f.toLowerCase(),c='scroll'+f,r=k[c],s=h=='x'?'Width':'Height';if(p){g[c]=p[i]+(q?0:r-o.offset()[i]);if(a.margin){g[c]-=parseInt(d.css('margin'+f))||0;g[c]-=parseInt(d.css('border'+f+'Width'))||0}g[c]+=a.offset[i]||0;if(a.over[i])g[c]+=d[s.toLowerCase()]()*a.over[i]}else g[c]=d[i];if(/^\d+$/.test(g[c]))g[c]=g[c]<=0?0:Math.min(g[c],u(s));if(!b&&a.queue){if(r!=g[c])t(a.onAfterFirst);delete g[c]}});t(a.onAfter);function t(b){o.animate(g,j,a.easing,b&&function(){b.call(this,l,a)})};function u(b){var h='scroll'+b;if(!q)return k[h];var f='client'+b,i=k.ownerDocument.documentElement,c=k.ownerDocument.body;return Math.max(i[h],c[h])-Math.min(i[f],c[f])}}).end()};function n(b){return typeof b=='object'?b:{top:b,left:b}}})(jQuery);;;(function(h){h.fn.addOption=function(){var j=function(a,f,c,g){var d=document.createElement("option");d.value=f,d.text=c;var b=a.options;var e=b.length;if(!a.cache){a.cache={};for(var i=0;i<e;i++){a.cache[b[i].value]=i}}if(typeof a.cache[f]=="undefined")a.cache[f]=e;a.options[a.cache[f]]=d;if(g){d.selected=true}};var k=arguments;if(k.length==0)return this;var l=true;var m=false;var n,o,p;if(typeof(k[0])=="object"){m=true;n=k[0]}if(k.length>=2){if(typeof(k[1])=="boolean")l=k[1];else if(typeof(k[2])=="boolean")l=k[2];if(!m){o=k[0];p=k[1]}}this.each(function(){if(this.nodeName.toLowerCase()!="select")return;if(m){for(var a in n){j(this,a,n[a],l)}}else{j(this,o,p,l)}});return this};h.fn.ajaxAddOption=function(c,g,d,b,e){if(typeof(c)!="string")return this;if(typeof(g)!="object")g={};if(typeof(d)!="boolean")d=true;this.each(function(){var f=this;h.getJSON(c,g,function(a){h(f).addOption(a,d);if(typeof b=="function"){if(typeof e=="object"){b.apply(f,e)}else{b.call(f)}}})});return this};h.fn.removeOption=function(){var d=arguments;if(d.length==0)return this;var b=typeof(d[0]);var e,i;if(b=="string"||b=="object"||b=="function"){e=d[0];if(e.constructor==Array){var j=e.length;for(var k=0;k<j;k++){this.removeOption(e[k],d[1])}return this}}else if(b=="number")i=d[0];else return this;this.each(function(){if(this.nodeName.toLowerCase()!="select")return;if(this.cache)this.cache=null;var a=false;var f=this.options;if(!!e){var c=f.length;for(var g=c-1;g>=0;g--){if(e.constructor==RegExp){if(f[g].value.match(e)){a=true}}else if(f[g].value==e){a=true}if(a&&d[1]===true)a=f[g].selected;if(a){f[g]=null}a=false}}else{if(d[1]===true){a=f[i].selected}else{a=true}if(a){this.remove(i)}}});return this};h.fn.sortOptions=function(e){var i=h(this).selectedValues();var j=typeof(e)=="undefined"?true:!!e;this.each(function(){if(this.nodeName.toLowerCase()!="select")return;var c=this.options;var g=c.length;var d=[];for(var b=0;b<g;b++){d[b]={v:c[b].value,t:c[b].text}}d.sort(function(a,f){o1t=a.t.toLowerCase(),o2t=f.t.toLowerCase();if(o1t==o2t)return 0;if(j){return o1t<o2t?-1:1}else{return o1t>o2t?-1:1}});for(var b=0;b<g;b++){c[b].text=d[b].t;c[b].value=d[b].v}}).selectOptions(i,true);return this};h.fn.selectOptions=function(g,d){var b=g;var e=typeof(g);if(e=="object"&&b.constructor==Array){var i=this;h.each(b,function(){i.selectOptions(this,d)})};var j=d||false;if(e!="string"&&e!="function"&&e!="object")return this;this.each(function(){if(this.nodeName.toLowerCase()!="select")return this;var a=this.options;var f=a.length;for(var c=0;c<f;c++){if(b.constructor==RegExp){if(a[c].value.match(b)){a[c].selected=true}else if(j){a[c].selected=false}}else{if(a[c].value==b){a[c].selected=true}else if(j){a[c].selected=false}}}});return this};h.fn.copyOptions=function(g,d){var b=d||"selected";if(h(g).size()==0)return this;this.each(function(){if(this.nodeName.toLowerCase()!="select")return this;var a=this.options;var f=a.length;for(var c=0;c<f;c++){if(b=="all"||(b=="selected"&&a[c].selected)){h(g).addOption(a[c].value,a[c].text)}}});return this};h.fn.containsOption=function(g,d){var b=false;var e=g;var i=typeof(e);var j=typeof(d);if(i!="string"&&i!="function"&&i!="object")return j=="function"?this:b;this.each(function(){if(this.nodeName.toLowerCase()!="select")return this;if(b&&j!="function")return false;var a=this.options;var f=a.length;for(var c=0;c<f;c++){if(e.constructor==RegExp){if(a[c].value.match(e)){b=true;if(j=="function")d.call(a[c],c)}}else{if(a[c].value==e){b=true;if(j=="function")d.call(a[c],c)}}}});return j=="function"?this:b};h.fn.selectedValues=function(){var a=[];this.selectedOptions().each(function(){a[a.length]=this.value});return a};h.fn.selectedTexts=function(){var a=[];this.selectedOptions().each(function(){a[a.length]=this.text});return a};h.fn.selectedOptions=function(){return this.find("option:selected")}})(jQuery);;;(function($){var helper={},current,title,tID,IE=$.browser.msie&&/MSIE\s(5\.5|6\.)/.test(navigator.userAgent),track=false;$.tooltip={blocked:false,defaults:{delay:200,fade:false,showURL:true,extraClass:"",top:15,left:15,id:"tooltip"},block:function(){$.tooltip.blocked=!$.tooltip.blocked;}};$.fn.extend({tooltip:function(settings){settings=$.extend({},$.tooltip.defaults,settings);createHelper(settings);return this.each(function(){$.data(this,"tooltip",settings);this.tOpacity=helper.parent.css("opacity");this.tooltipText=this.title;$(this).removeAttr("title");this.alt="";}).mouseover(save).mouseout(hide).click(hide);},fixPNG:IE?function(){return this.each(function(){var image=$(this).css('backgroundImage');if(image.match(/^url\(["']?(.*\.png)["']?\)$/i)){image=RegExp.$1;$(this).css({'backgroundImage':'none','filter':"progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true, sizingMethod=crop, src='"+image+"')"}).each(function(){var position=$(this).css('position');if(position!='absolute'&&position!='relative')
$(this).css('position','relative');});}});}:function(){return this;},unfixPNG:IE?function(){return this.each(function(){$(this).css({'filter':'',backgroundImage:''});});}:function(){return this;},hideWhenEmpty:function(){return this.each(function(){$(this)[$(this).html()?"show":"hide"]();});},url:function(){return this.attr('href')||this.attr('src');}});function createHelper(settings){if(helper.parent)
return;helper.parent=$('<div id="'+settings.id+'"><h4></h4><div class="body"></div><div class="url"></div></div>').appendTo(document.body).hide();if($.fn.bgiframe)
helper.parent.bgiframe();helper.title=$('h4',helper.parent);helper.body=$('div.body',helper.parent);helper.url=$('div.url',helper.parent);}
function settings(element){return $.data(element,"tooltip");}
function handle(event){if(settings(this).delay)
tID=setTimeout(show,settings(this).delay);else
show();track=!!settings(this).track;$(document.body).bind('mousemove',update);update(event);}
function save(){if($.tooltip.blocked||this==current||(!this.tooltipText&&!settings(this).bodyHandler))
return;current=this;title=this.tooltipText;if(settings(this).bodyHandler){helper.title.hide();var bodyContent=settings(this).bodyHandler.call(this);if(bodyContent.nodeType||bodyContent.jquery){helper.body.empty().append(bodyContent)}else{helper.body.html(bodyContent);}
helper.body.show();}else if(settings(this).showBody){var parts=title.split(settings(this).showBody);helper.title.html(parts.shift()).show();helper.body.empty();for(var i=0,part;(part=parts[i]);i++){if(i>0)
helper.body.append("<br/>");helper.body.append(part);}
helper.body.hideWhenEmpty();}else{helper.title.html(title).show();helper.body.hide();}
if(settings(this).showURL&&$(this).url())
helper.url.html($(this).url().replace('http://','')).show();else
helper.url.hide();helper.parent.addClass(settings(this).extraClass);if(settings(this).fixPNG)
helper.parent.fixPNG();handle.apply(this,arguments);}
function show(){tID=null;if((!IE||!$.fn.bgiframe)&&settings(current).fade){if(helper.parent.is(":animated"))
helper.parent.stop().show().fadeTo(settings(current).fade,current.tOpacity);else
helper.parent.is(':visible')?helper.parent.fadeTo(settings(current).fade,current.tOpacity):helper.parent.fadeIn(settings(current).fade);}else{helper.parent.show();}
update();}
function update(event){if($.tooltip.blocked)
return;if(event&&event.target.tagName=="OPTION"){return;}
if(!track&&helper.parent.is(":visible")){$(document.body).unbind('mousemove',update)}
if(current==null){$(document.body).unbind('mousemove',update);return;}
helper.parent.removeClass("viewport-right").removeClass("viewport-bottom");var left=helper.parent[0].offsetLeft;var top=helper.parent[0].offsetTop;if(event){left=event.pageX+settings(current).left;top=event.pageY+settings(current).top;var right='auto';if(settings(current).positionLeft){right=$(window).width()-left;left='auto';}
helper.parent.css({left:left,right:right,top:top});}
var v=viewport(),h=helper.parent[0];if(v.x+v.cx<h.offsetLeft+h.offsetWidth){left-=h.offsetWidth+20+settings(current).left;helper.parent.css({left:left+'px'}).addClass("viewport-right");}
if(v.y+v.cy<h.offsetTop+h.offsetHeight){top-=h.offsetHeight+20+settings(current).top;helper.parent.css({top:top+'px'}).addClass("viewport-bottom");}}
function viewport(){return{x:$(window).scrollLeft(),y:$(window).scrollTop(),cx:$(window).width(),cy:$(window).height()};}
function hide(event){if($.tooltip.blocked)
return;if(tID)
clearTimeout(tID);current=null;var tsettings=settings(this);function complete(){helper.parent.removeClass(tsettings.extraClass).hide().css("opacity","");}
if((!IE||!$.fn.bgiframe)&&tsettings.fade){if(helper.parent.is(':animated'))
helper.parent.stop().fadeTo(tsettings.fade,0,complete);else
helper.parent.stop().fadeOut(tsettings.fade,complete);}else
complete();if(settings(this).fixPNG)
helper.parent.unfixPNG();}})(jQuery);;(function($){if($.browser.msie){try{document.execCommand('BackgroundImageCache',false,true);}catch(e){}
if(!document.namespaces["v"]){$("head").prepend("<xml:namespace ns='urn:schemas-microsoft-com:vml' prefix='v' />");$("head").prepend("<?import namespace='v' implementation='#default#VML' ?>");}}
$.widget("ui.checkbox",{_init:function(){if(!this.element.is(":radio,:checkbox")){return false;}
if(this.element.is(":radio")){this._radio=$(this.element[0].form).find("input:radio").filter('[name="'+this.element[0].name+'"]');}else{this._radio=false;}
var self=this,o=this.options;this.element.attr({role:(this._radio?"radio":"checkbox"),"aria-checked":!!this.element[0].checked});this._wrapper=this.element.wrap($("<span />")).parent().addClass((this._radio?"ui-radio":"ui-checkbox")+" ui-state-default");this._wrapper.prepend($("<span/>").addClass("ui-icon "+this._icon(false)).click(function(event){self.element[0].click();event.preventDefault();event.stopImmediatePropagation();return false;}));if($.browser.msie){this._wrapper[0].insertAdjacentHTML("afterBegin","<v:roundrect arcsize='"+(this._radio?"1":"0.1")+"'><v:stroke /><v:fill /></v:roundrect>");this._vml=this._wrapper[0].childNodes[0];var ss=this._wrapper[0].currentStyle;this._vml.style.top="-1px";this._vml.style.left="-1px";this._vml.style.width=parseInt(ss.width)+1+"px";this._vml.style.height=parseInt(ss.height)+1+"px";this._doVML();this._vml.style.visibility="visible";this._wrapper.css('visibility','hidden');this._wrapper[0].onpropertychange=function(){switch(event.propertyName){case'className':case'style.borderTopWidth':case'style.borderTopColor':case'style.backgroundColor':case'style.filter':self._doVML();break;}}
$().bind('ui-theme-switch',function(){setTimeout(function(){self._doVML();},500);return false;});}
if($.browser.opera){var svg=document.createElementNS("http://www.w3.org/2000/svg","svg");var rect=document.createElementNS("http://www.w3.org/2000/svg","rect");var ss=this._wrapper[0].currentStyle;rect.setAttributeNS(null,"x","1px");rect.setAttributeNS(null,"y","1px");rect.setAttributeNS(null,"width",ss.width);rect.setAttributeNS(null,"height",ss.height);rect.setAttributeNS(null,"rx",(this._radio?"6px":"2px"));svg.appendChild(rect);this._wrapper.prepend(svg);this._svg=this._wrapper[0].firstChild;this._svg.style.width=parseInt(ss.width)+2+"px";this._svg.style.height=parseInt(ss.height)+2+"px";this._doSVG();this._svg.style.visibility="visible";this._wrapper.css('visibility','hidden');this._wrapper.bind("DOMAttrModified",function(event){if(event.attrName==='class'){self._doSVG();}});$().bind("ui-theme-switch",function(){self._doSVG();return false;});}
this._wrapper.hover(function(event){if(!o.disabled){$(this).addClass("ui-state-hover");}},function(event){if(!o.disabled){$(this).removeClass("ui-state-hover");}}).bind("mousedown",function(event){if(!o.disabled){$(this).addClass("ui-state-active");}}).bind("mouseup",function(event){if(!o.disabled){$(this).removeClass("ui-state-active");}}).bind(this.widgetEventPrefix+"focus",function(event){if(!o.disabled){if(self._radio){self._radio.not(self.element).removeClass("ui-state-focus");}
$(this).addClass("ui-state-focus");}}).bind(this.widgetEventPrefix+"blur",function(event){if(!o.disabled){$(this).removeClass("ui-state-focus");}}).bind(this.widgetEventPrefix+"click",function(event){if(!o.disabled){if(self._radio){self._radio.not(self.element).checkbox("uncheck");self.check();}else{self.toggle();}}});this.element.bind("focus."+this.widgetName,function(event){self._trigger("focus",event);}).bind("blur."+this.widgetName,function(event){self._trigger("blur",event);}).bind("click."+this.widgetName,function(event){self._trigger("click",event);});this._setData("checked",!!this.element[0].checked);},destroy:function(){this._wrapper.replaceWith(this.element);this.element.removeAttr("role").removeAttr("aria-checked").unbind("."+this.widgetName);$.widget.prototype.destroy.apply(this,arguments);},_setData:function(key,value){$.widget.prototype._setData.apply(this,arguments);if(key=="disabled"){if(value){this.element.attr("disabled","disabled");this._wrapper.removeClass("ui-state-focus ui-state-hover ui-state-active");}else{this.element.removeAttr("disabled");}
this._wrapper
[value?"addClass":"removeClass"](this.widgetName+"-disabled "+
this.namespace+"-state-disabled");}else if(key=="checked"){this.element[0].checked=!!value;this.element.attr("aria-checked",!!value);this._wrapper.find(".ui-icon").addClass(this._icon(!!value)).removeClass(this._icon(!value));}},check:function(){this._setData("checked",true);},uncheck:function(){this._setData("checked",false);},toggle:function(){this._setData("checked",!this._getData("checked"));},_icon:function(state){if(this._radio){return"ui-icon-"
+this.options[state?"radioChecked":"radioUnchecked"];}else{return"ui-icon-"
+this.options[state?"checkboxChecked":"checkboxUnchecked"];}},_opacityFixed:false,_inFixup:false,_fixStyle:function(jq,re){var s=jq.attr("style").replace(re,"");if(s!==""){jq.attr("style",s);}else{jq.removeAttr("style");}},_doVML:function(){if(!this._vml||this._inFixup){return;}
this._inFixup=true;var ss,op;if(this._opacityFixed){this._vml.childNodes[0].opacity='1';this._vml.childNodes[1].opacity='1';this._fixStyle(this._wrapper.find(".ui-icon"),/filter[^;]*\;?/i);this._fixStyle(this._wrapper,/filter[^;]*\;?/i);this._opacityFixed=false;}
ss=this._wrapper[0].currentStyle;this._vml.strokecolor=ss.borderTopColor;this._vml.strokeweight=ss.borderTopWidth;this._vml.fillcolor=ss.backgroundColor;this._vml.childNodes[0].color=ss.borderTopColor;this._vml.childNodes[0].weight=ss.borderTopWidth;this._vml.childNodes[1].color=ss.backgroundColor;if(ss.filter&&ss.filter.search(/Alpha/i)!==-1){op=/(\d+)/.exec(ss.filter);this._wrapper.find(".ui-icon").css("filter",ss.filter);this._vml.childNodes[0].opacity=op[1]/100;this._vml.childNodes[1].opacity=op[1]/100;this._wrapper.css("filter","");this._opacityFixed=true;}
this._inFixup=false;},_doSVG:function(){if(!this._svg||this._inFixup){return;}
this._inFixup=true;var ss,op;if(this._opacityFixed){this._fixStyle(this._wrapper.find(".ui-icon"),/opacity[^;]*\;?/i);this._fixStyle(this._wrapper.find("rect"),/opacity[^;]*\;?/i);this._fixStyle(this._wrapper,/opacity[^;]*\;?/i);this._opacityFixed=false;}
ss=this._wrapper[0].currentStyle;this._svg.firstChild.style.stroke=ss.borderTopColor;this._svg.firstChild.style.strokeWidth=ss.borderTopWidth;this._svg.firstChild.style.fill=ss.backgroundColor;if(ss.opacity&&ss.opacity!==1){op=ss.opacity;this._wrapper.find(".ui-icon").css("opacity",op);this._wrapper.find("rect").css("opacity",op);this._wrapper[0].style.opacity="1";this._opacityFixed=true;}
this._inFixup=false;}});$.ui.checkbox.defaults={checkboxChecked:"check",checkboxUnchecked:"empty",radioChecked:"bullet",radioUnchecked:"empty"};})(jQuery);;var howmanyplaces;var ok='fail';var newuser=false;var form;var browser;var ip;var service_id;var service_name;var prices=new Array();var newprices=new Array();var count=1;var currency_symbol;var txtProvince;var txt_address;var txt_city;var txt_zip;var ddlCountry;var totalAmount;var currency_symbol;var wasPaymentError=false;var currentStep=1;var productAction;var step2direct=false;var nySize;var rfqdisplayname;var addr;var popupserv='';var popupservprice='';var popupservname='';var popupservid='';var popupreq=false;var rfq_rec;var rec_disks;var popupdisks=false;var default_state='';var drivePickup=false;var pickupPopupStep2=false;function removeProductByName(service_name_to_be_removed){found_row=$("td.pl_name").find("strong").find("a:contains("+service_name_to_be_removed+")");id=found_row.parent().parent().parent().attr("id").substr(6);j=0;for(i=0;i<count;i++){if(prices[i].id==id){delete prices[i];}
else{newprices[j]=new Array();newprices[j].id=prices[i].id;newprices[j].price=prices[i].price;newprices[j].qty=prices[i].qty;newprices[j].tax=prices[i].tax;j++;}}
sum=0;count--;i=0;for(i=0;i<count;i++){sum+=parseFloat(newprices[i].price);}
sum=roundNumber(sum,2);sum=sum.toFixed(2);delete prices;prices=new Array();for(i=0;i<count;i++){prices[i]=new Array();prices[i].id=newprices[i].id;prices[i].price=newprices[i].price;prices[i].qty=newprices[i].qty;prices[i].tax=newprices[i].tax;}
updateTotal();$("td#rfq_p_"+id).parent("tr").remove();found_row.parent().parent().parent("tr").remove();}
function checkDistance(country,state,zip){$.post(baseurl+'/includes/modules/save.php',{country:country,zip:zip,state:state,checkDistance:true},function(data){if(data.distance<=30){$("#pickup_popup").dialog({resizable:false,height:480,width:530,modal:true,closeOnEscape:false,open:function(event,ui){$("#distance_position").html(data.distance);},buttons:{'Not Now':function(){$(this).dialog('close');},'Yes':function(){$(this).dialog('close');drivePickup=true;}}});}
else if((data.distance>30)&&(data.distance<=300)){$("#pickup_popup_30_300").dialog({resizable:false,height:480,width:530,modal:true,closeOnEscape:false,open:function(event,ui){$("#distance_position_30_300").html(data.distance);},buttons:{'Not Now':function(){$(this).dialog('close');},'Yes':function(){$(this).dialog('close');drivePickup=true;}}});}
else{$("#pickup_popup_300").dialog({resizable:false,height:480,width:530,modal:true,closeOnEscape:false,open:function(event,ui){},buttons:{'Not Now':function(){$(this).dialog('close');},'Yes':function(){$(this).dialog('close');drivePickup=true;}}});}},"json");}
function animateRcm(){$("#rfq_rec .leftMenuContent").animate({borderTopColor:"#ff0000",borderLeftColor:"#ff0000",borderRightColor:"#ff0000",borderBottomColor:"#ff0000"},1000);$("#rfq_rec .leftMenuContent").animate({borderTopColor:"#ffff00",borderLeftColor:"#ffff00",borderRightColor:"#ffff00",borderBottomColor:"#ffff00"},1000,animateRcm);}
function ltrim(s)
{var l=0;while(l<s.length&&s[l]==' ')
{l++;}
return s.substring(l,s.length);}
function ajaxStopMethod(){switch(currentStep){case 2:$.unblockUI({onUnblock:function(){popupreq=true;if(service_name=="Free Diagnostics Service"){$("#service-upgrade").dialog({resizable:false,height:360,width:400,modal:true,closeOnEscape:false,open:function(event,ui){$("#service-upgrade").livequery(function(){$(this).parent().find(".ui-dialog-buttonpane").find("button:contains('Upgrade')").addClass("buyitnow");$(this).parent().find(".ui-dialog-buttonpane").find("button:contains('Upgrade')").attr("id",popupserv.id);});popupservid=popupserv.id;$("#popupservname").livequery(function(){popupservname=popupserv.name;$(this).html(popupserv.name);});$("#popupservcurrency").livequery(function(){$(this).html(unescape(popupserv.currency_symbol));});$("#popupservprice").livequery(function(){popupservprice=popupserv.discount_price;popupservprice=parseFloat(popupservprice);popupservprice=popupservprice.toFixed(2);$(this).html(popupservprice);});},buttons:{'No thanks':function(){popupreq=false;$(this).dialog('close');$("#buy-harddrive").dialog({resizable:false,height:370,width:400,modal:true,closeOnEscape:false,buttons:{'No thanks':function(){$(this).dialog('close');if(confirm('Do you want to print the shipping label?')){if((form=="multidatarecovery.com")||(form=="ohio.multidatarecovery.com")||(form=="newyork.multidatarecovery.com")||(form=="texas.multidatarecovery.com")||(form=="illinois.multidatarecovery.com")||(form=="chicagodatarecoverypro.com")||(form=="newyorkdatarecoverypro.com")||(form=="datarecoverycorp.com")||(form=="raidrecoverycorp.com")||(form=="criticaldatarecovery.com")||(form=="californiadatacorp.com")||(form=="floridadatacorp.com")||(form=="datarecoverynewyork.com")||(form=="sanjosedatarecoverycorp.com")||(form=="datarecoveryohio.com")||(form=="chicagodatarecoverycorp.com")||(form=="datarecoverynewyork.com")){$("div#shipping_label3").printElement();}else{$("div#shipping_label").printElement();}}},'Buy a Transfer Drive':function(){$(this).dialog('close');$("#recommended-hard-drives").dialog({resizable:false,height:360,width:400,modal:true,closeOnEscape:false,open:function(event,ui){popupdisks=true;var rec_disks=$("#recomm").html();rec_disks=rec_disks.replace(/rcm/g,"rcmd");$("#recomm2").html(rec_disks);decoGreyboxLinks();},buttons:{'Continue':function(){$(this).dialog('close');popupdisks=false;$("#recomm2").html("");if(confirm('Do you want to print the shipping label?')){if((form=="multidatarecovery.com")||(form=="ohio.multidatarecovery.com")||(form=="newyork.multidatarecovery.com")||(form=="texas.multidatarecovery.com")||(form=="illinois.multidatarecovery.com")||(form=="chicagodatarecoverypro.com")||(form=="newyorkdatarecoverypro.com")||(form=="datarecoverycorp.com")||(form=="raidrecoverycorp.com")||(form=="datarecoveryohio.com")||(form=="criticaldatarecovery.com")||(form=="californiadatacorp.com")||(form=="datarecoverynewyork.com")){$("div#shipping_label3").printElement();}else{$("div#shipping_label").printElement();}}}}});}}});},'Upgrade':function(){popupreq=true;removeProductByName("Free Diagnostics Service");$(this).dialog('close');$("#buy-harddrive").dialog({resizable:false,height:370,width:400,modal:true,closeOnEscape:false,open:function(event,ui){},buttons:{'No thanks':function(){$(this).dialog('close');if(confirm('Do you want to print the shipping label?')){if((form=="multidatarecovery.com")||(form=="ohio.multidatarecovery.com")||(form=="newyork.multidatarecovery.com")||(form=="texas.multidatarecovery.com")||(form=="illinois.multidatarecovery.com")||(form=="chicagodatarecoverypro.com")||(form=="newyorkdatarecoverypro.com")||(form=="datarecoverycorp.com")||(form=="raidrecoverycorp.com")||(form=="datarecoveryohio.com")||(form=="criticaldatarecovery.com")||(form=="californiadatacorp.com")||(form=="datarecoverynewyork.com")){$("div#shipping_label3").printElement();}else{$("div#shipping_label").printElement();}}},'Buy a Transfer Drive':function(){$(this).dialog('close');$("#recommended-hard-drives").dialog({resizable:false,height:360,width:400,modal:true,closeOnEscape:false,open:function(event,ui){popupdisks=true;var rec_disks=$("#recomm").html();rec_disks=rec_disks.replace(/rcm/g,"rcmd");$("#recomm2").html(rec_disks);decoGreyboxLinks();},buttons:{'Continue':function(){$(this).dialog('close');popupdisks=false;$("#recomm2").html("");if(confirm('Do you want to print the shipping label?')){if((form=="multidatarecovery.com")||(form=="ohio.multidatarecovery.com")||(form=="newyork.multidatarecovery.com")||(form=="texas.multidatarecovery.com")||(form=="illinois.multidatarecovery.com")||(form=="chicagodatarecoverypro.com")||(form=="newyorkdatarecoverypro.com")||(form=="datarecoverycorp.com")||(form=="raidrecoverycorp.com")||(form=="datarecoveryohio.com")||(form=="criticaldatarecovery.com")||(form=="californiadatacorp.com")||(form=="datarecoverynewyork.com")){$("div#shipping_label3").printElement();}else{$("div#shipping_label").printElement();}}}}});}}});}}});}else{popupreq=false;$("#buy-harddrive").dialog({resizable:false,height:370,width:400,modal:true,closeOnEscape:false,open:function(event,ui){},buttons:{'No thanks':function(){$(this).dialog('close');if(confirm('Do you want to print the shipping label?')){if((form=="multidatarecovery.com")||(form=="ohio.multidatarecovery.com")||(form=="newyork.multidatarecovery.com")||(form=="texas.multidatarecovery.com")||(form=="illinois.multidatarecovery.com")||(form=="chicagodatarecoverypro.com")||(form=="newyorkdatarecoverypro.com")||(form=="datarecoverycorp.com")||(form=="raidrecoverycorp.com")||(form=="datarecoveryohio.com")||(form=="criticaldatarecovery.com")||(form=="californiadatacorp.com")||(form=="datarecoverynewyork.com")){$("div#shipping_label3").printElement();}else{$("div#shipping_label").printElement();}}},'Buy a Transfer Drive':function(){$(this).dialog('close');$("#recommended-hard-drives").dialog({resizable:false,height:360,width:400,modal:true,closeOnEscape:false,open:function(event,ui){popupdisks=true;var rec_disks=$("#recomm").html();rec_disks=rec_disks.replace(/rcm/g,"rcmd");$("#recomm2").html(rec_disks);decoGreyboxLinks();},buttons:{'Continue':function(){$(this).dialog('close');popupdisks=false;$("#recomm2").html("");if(confirm('Do you want to print the shipping label?')){if((form=="multidatarecovery.com")||(form=="ohio.multidatarecovery.com")||(form=="newyork.multidatarecovery.com")||(form=="texas.multidatarecovery.com")||(form=="illinois.multidatarecovery.com")||(form=="chicagodatarecoverypro.com")||(form=="newyorkdatarecoverypro.com")||(form=="datarecoverycorp.com")||(form=="raidrecoverycorp.com")||(form=="datarecoveryohio.com")||(form=="criticaldatarecovery.com")||(form=="datarecoverynewyork.com")){$("div#shipping_label3").printElement();}else{$("div#shipping_label").printElement();}}}}});}}});}}});break;case'buy':if(productAction=='add'){$.unblockUI({onUnblock:function(){}});}else{$.unblockUI({onUnblock:function(){alert("Product quantity has been updated.");}});}
break;default:$.unblockUI({onUnblock:function(){}});break;}
return true;}
function roundNumber(num,dec){var result=Math.round(num*Math.pow(10,dec))/Math.pow(10,dec);return result;}
function updateTotal(){sum=0;tax_total=0;for(i=0;i<count;i++){sum+=parseFloat(prices[i].price);tax_total+=parseFloat(prices[i].tax);}
sum=roundNumber(sum,2);sum=sum.toFixed(2);tax_total=roundNumber(tax_total,2);tax_total=tax_total.toFixed(2);totalAmount=parseFloat(sum)+parseFloat(tax_total);totalAmount=roundNumber(totalAmount,2);totalAmount=totalAmount.toFixed(2);totalAmount.toString;$("#cart_total").html(currency_symbol+" "+totalAmount);$("#cart_subtotal").html(currency_symbol+" "+sum);if(tax_total!=0){$("#cart_tax").html(currency_symbol+" "+tax_total);$("#shipping_label").find(".purchased_tax").html(currency_symbol+" "+tax_total);$("#shipping_label2").find(".purchased_tax").html(currency_symbol+" "+tax_total);$("#shipping_label3").find(".purchased_tax").html(currency_symbol+" "+tax_total);$("#shipping_label4").find(".purchased_tax").html(currency_symbol+" "+tax_total);}
else{$("#cart_tax").html(tax_total);$("#shipping_label").find(".purchased_tax").html(tax_total);$("#shipping_label2").find(".purchased_tax").html(tax_total);$("#shipping_label3").find(".purchased_tax").html(tax_total);$("#shipping_label4").find(".purchased_tax").html(tax_total);}
$("#shipping_label").find(".ship_payment_amount").html(currency_symbol+" "+totalAmount);$("#shipping_label2").find(".ship_payment_amount").html(currency_symbol+" "+totalAmount);$("#shipping_label3").find(".ship_payment_amount").html(currency_symbol+" "+totalAmount);$("#shipping_label4").find(".ship_payment_amount").html(currency_symbol+" "+totalAmount);$("#shipping_label").find(".purchased_subtotal").html(currency_symbol+" "+sum);$("#shipping_label2").find(".purchased_subtotal").html(currency_symbol+" "+sum);$("#shipping_label3").find(".purchased_subtotal").html(currency_symbol+" "+sum);$("#shipping_label4").find(".purchased_subtotal").html(currency_symbol+" "+sum);$("#shipping_label").find(".purchased_total").html(currency_symbol+" "+totalAmount);$("#shipping_label2").find(".purchased_total").html(currency_symbol+" "+totalAmount);$("#shipping_label3").find(".purchased_total").html(currency_symbol+" "+totalAmount);$("#shipping_label4").find(".purchased_total").html(currency_symbol+" "+totalAmount);switch(form){case'worldwidedatarecovery.co.uk':case'datarecoveryfirm.co.uk':$("input#fltAmount1").val(totalAmount);$("input#fltAmount2").val(totalAmount);break;case'canadadatarecovery.ca':$("input#amount1").val(totalAmount);$("input#amount2").val(totalAmount);break;}}
function isValidEmailAddress(emailAddress){var pattern=new RegExp(/^(("[\w-\s]+")|([\w-]+(?:\.[\w-]+)*)|("[\w-\s]+")([\w-]+(?:\.[\w-]+)*))(@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$)|(@\[?((25[0-5]\.|2[0-4][0-9]\.|1[0-9]{2}\.|[0-9]{1,2}\.))((25[0-5]|2[0-4][0-9]|1[0-9]{2}|[0-9]{1,2})\.){2}(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[0-9]{1,2})\]?$)/i);return pattern.test(emailAddress);}
function ajaxForm0(){currentStep=0;if((form!="multidatarecovery.com")&&(form!="ohio.multidatarecovery.com")&&(form!="newyork.multidatarecovery.com")&&(form!="texas.multidatarecovery.com")&&(form!="illinois.multidatarecovery.com")&&(form!="texasdataretrieval.com")&&(form!="chicagodatarecoverypro.com")&&(form!="newyorkdatarecoverypro.com")){$.blockUI({message:'<h1><img src="'+baseurl+'/templates/cdr/js/greybox/indicator.gif" /></h1>'});}else if(form!="texasdataretrieval.com"){$.blockUI({message:'<h1><img src="'+baseurl+'/templates/smarttemplate/images/progress-Animation.gif" /></h1>'});}else{$.blockUI({message:'<h1 style="font-family: Tahoma">Please wait...</h1>',css:{border:'0',backgroundColor:'transparent',color:'#fff'}});}
ok='fail';txt_fname=$("#txt_fname").val();if(txt_fname==undefined){txt_fname='';}
txt_lname=$("#txt_lname").val();txt_phone=$("#txt_phone").val();txtaltnumber=$("#txtaltnumber").val();txtFax=$("#txtFax").val();txt_email=$("#txt_email").val();rbContact=$("#quoteFormMini input[name='call_me']:checked").val();ip=$("#ip").val();txt_country=$("#txt_country").val();txt_zip=$("#txt_zip").val();posturl=baseurl+"/includes/modules/save.php";if((form=="micradatarecovery.com")&&(txt_country=="CANADA")){posturl=baseurl+"/includes/modules/c_forwarder.php";form="canadadatarecovery.ca";}
if((form!="multidatarecovery.com")&&(form!="ohio.multidatarecovery.com")&&(form!="newyork.multidatarecovery.com")&&(form!="texas.multidatarecovery.com")&&(form!="illinois.multidatarecovery.com")&&(form!="texasdataretrieval.com")&&(form!="chicagodatarecoverypro.com")&&(form!="newyorkdatarecoverypro.com")&&(form!="datarecoverycorp.com")&&(form!="raidrecoverycorp.com")&&(form!="datarecoveryohio.com")&&(form!="datarecoverynewyork.com")&&(form!="californiadatacorp.com")&&(form!="criticaldatarecovery.com")&&(form!="intactdatarecovery.com")){$.post(posturl,{txt_fname:txt_fname,txt_lname:txt_lname,txt_phone:txt_phone,txt_email:txt_email,txt_country:txt_country,txt_zip:txt_zip,txtaltnumber:txtaltnumber,txtFax:txtFax,rbContact:rbContact,step:0,form:form,func:"checkIfNewUser",checkifnewuser:"true"},function(data){newuser=data.newuser;$("#txt_state").val(data.state);$("#txt_state_full").val(data.state_full);currency_symbol=unescape(data.currency_symbol);ajaxStopMethod();if(data.allowed=="true"){$("#quoteFormMini").submit();}
else{$("#quoteFormMini").attr("action",baseurl+"/index.php?option=com_php&Itemid=300");$("#service_number").val(data.service_number);$("#service").val(data.service);$("#site_name").val(data.site_name);$("#address_street").val(data.address_street);$("#address_city").val(data.address_city);$("#address_state_full").val(data.address_state_full);$("#address_postalcode").val(data.address_postalcode);$("#address_country").val(data.address_country);$("#quoteFormMini").submit();}},"json");}else if(form!="newyorkdatarecoverypro.com"){txtCompany=$("#txtCompany").val();if(txtCompany==undefined){txtCompany='';}
$.post(baseurl+"/includes/modules/save.php",{txt_fname:txt_fname,txt_lname:txt_lname,txt_phone:txt_phone,txt_email:txt_email,txt_zip:txt_zip,txtaltnumber:txtaltnumber,txtFax:txtFax,rbContact:rbContact,txtCompany:txtCompany,step:0,form:form,func:"checkIfNewUser",checkifnewuser:"true"},function(data){newuser=data.newuser;currency_symbol=unescape(data.currency_symbol);if(data.allowed=="true"){$("#quoteFormMini").submit();}
else{$("#quoteFormMini").attr("action",baseurl+"/index.php?option=com_php&Itemid=300");$("#service_number").val(data.service_number);$("#service").val(data.service);$("#site_name").val(data.site_name);$("#address_street").val(data.address_street);$("#address_city").val(data.address_city);$("#address_state_full").val(data.address_state_full);$("#address_postalcode").val(data.address_postalcode);$("#address_country").val(data.address_country);$("#quoteFormMini").submit();}},"json");}else{ddlOS=$("#nyOS").val();if(ddlOS==undefined){ddlOS='';}
txtSize=$("#nySize").val();if(txtSize==undefined){txtSize='';}
txtManufacturer=$("#txtManufacturer").val();if(txtManufacturer==undefined){txtManufacturer='';}
nyDriveType=$("input[name=nyDriveType]:checked").val();if(nyDriveType==undefined){nyDriveType='';}
nyDriveInterface=$("input[name=nyDriveInterface]:checked").val();if(nyDriveInterface==undefined){nyDriveInterface='';}
nyDriveSeenByComputer=$("input[name=nyDriveSeenByComputer]:checked").val();if(nyDriveSeenByComputer==undefined){nyDriveSeenByComputer='';}
cbEmergency=$("input[name=nyEmergency]:checked").val();if(cbEmergency==undefined){cbEmergency='';}
nyFailureEvents=$("input[name=nyFailureEvents]:checked").val();if(nyFailureEvents==undefined){nyFailureEvents='';}
$.post(baseurl+"/includes/modules/save.php",{txt_fname:txt_fname,txt_lname:txt_lname,txt_phone:txt_phone,txt_email:txt_email,txtaltnumber:txtaltnumber,txtFax:txtFax,rbContact:rbContact,ddlOS:ddlOS,txtSize:txtSize,txtManufacturer:txtManufacturer,nyDriveType:nyDriveType,nyDriveInterface:nyDriveInterface,nyDriveSeenByComputer:nyDriveSeenByComputer,cbEmergency:cbEmergency,nyFailureEvents:nyFailureEvents,step:0,form:form,func:"checkIfNewUser",checkifnewuser:"true"},function(data){newuser=data.newuser;currency_symbol=unescape(data.currency_symbol);ajaxStopMethod();if(data.allowed=="true"){$("#quoteFormMini").submit();}
else{$("#quoteFormMini").attr("action",baseurl+"/index.php?option=com_php&Itemid=300");$("#service_number").val(data.service_number);$("#service").val(data.service);$("#site_name").val(data.site_name);$("#address_street").val(data.address_street);$("#address_city").val(data.address_city);$("#address_state_full").val(data.address_state_full);$("#address_postalcode").val(data.address_postalcode);$("#address_country").val(data.address_country);$("#quoteFormMini").submit();}},"json");}
return true;}
function ajaxForm0_1(){currentStep=0;if((form!="multidatarecovery.com")&&(form!="ohio.multidatarecovery.com")&&(form!="newyork.multidatarecovery.com")&&(form!="texas.multidatarecovery.com")&&(form!="illinois.multidatarecovery.com")&&(form!="texasdataretrieval.com")&&(form!="chicagodatarecoverypro.com")&&(form!="newyorkdatarecoverypro.com")){$.blockUI({message:'<h1><img src="'+baseurl+'/templates/cdr/js/greybox/indicator.gif" /></h1>'});}else if(form!="texasdataretrieval.com"){$.blockUI({message:'<h1><img src="'+baseurl+'/templates/smarttemplate/images/progress-Animation.gif" /></h1>'});}else{$.blockUI({message:'<h1 style="font-family: Tahoma">Please wait...</h1>',css:{border:'0',backgroundColor:'transparent',color:'#fff'}});}
ok='fail';txt_fname=$("#txt_fname_1").val();if(txt_fname==undefined){txt_fname='';}
txt_lname=$("#txt_lname_1").val();txt_country=$("#txt_country_1").val();txt_state=$("#txt_state_1").val();txt_phone=$("#txt_phone_1").val();txtaltnumber=$("#txtaltnumber_1").val();txtFax=$("#txtFax_1").val();txt_email=$("#txt_email_1").val();ip=$("#ip").val();rbContact=$("#quoteFormMini_1 input[name='call_me']:checked").val();if((form!="multidatarecovery.com")&&(form!="ohio.multidatarecovery.com")&&(form!="newyork.multidatarecovery.com")&&(form!="texas.multidatarecovery.com")&&(form!="illinois.multidatarecovery.com")&&(form!="texasdataretrieval.com")&&(form!="chicagodatarecoverypro.com")&&(form!="newyorkdatarecoverypro.com")&&(form!="datarecoverycorp.com")&&(form!="raidrecoverycorp.com")&&(form!="datarecoveryohio.com")&&(form!="datarecoverynewyork.com")&&(form!="californiadatacorp.com")&&(form!="criticaldatarecovery.com")){posturl=baseurl+"/includes/modules/save.php";if(((form=="micradatarecovery.com")||(form=="diskdataretrieval.com"))&&(txt_country=="CANADA")){posturl=baseurl+"includes/modules/c_forwarder.php";form="canadadatarecovery.ca";}
$.post(posturl,{txt_fname:txt_fname,txt_lname:txt_lname,txt_phone:txt_phone,txt_email:txt_email,txtaltnumber:txtaltnumber,txtFax:txtFax,rbContact:rbContact,txt_country:txt_country,txt_state:txt_state,step:0,form:form,func:"checkIfNewUser",checkifnewuser:"true"},function(data){newuser=data.newuser;currency_symbol=unescape(data.currency_symbol);ajaxStopMethod();if(data.allowed=="true"){$("#quoteFormMini_1").submit();}
else{$("#quoteFormMini_1").attr("action",baseurl+"/index.php?option=com_php&Itemid=300");$("#service_number_1").val(data.service_number);$("#service_1").val(data.service);$("#site_name_1").val(data.site_name);$("#address_street_1").val(data.address_street);$("#address_city_1").val(data.address_city);$("#address_state_full_1").val(data.address_state_full);$("#address_postalcode_1").val(data.address_postalcode);$("#address_country_1").val(data.address_country);$("#quoteFormMini_1").submit();}},"json");}else{txtCompany=$("#txtCompany_1").val();if(txtCompany==undefined){txtCompany='';}
$.post(baseurl+"/includes/modules/save.php",{txt_fname:txt_fname,txt_lname:txt_lname,txt_phone:txt_phone,txt_email:txt_email,txtaltnumber:txtaltnumber,txtFax:txtFax,rbContact:rbContact,txtCompany:txtCompany,step:0,form:form,func:"checkIfNewUser",checkifnewuser:"true"},function(data){newuser=data.newuser;currency_symbol=unescape(data.currency_symbol);ajaxStopMethod();if(data.allowed=="true"){$("#quoteFormMini_1").submit();}
else{$("#quoteFormMini_1").attr("action",baseurl+"/index.php?option=com_php&Itemid=300");$("#service_number_1").val(data.service_number);$("#service_1").val(data.service);$("#site_name_1").val(data.site_name);$("#address_street_1").val(data.address_street);$("#address_city_1").val(data.address_city);$("#address_state_full_1").val(data.address_state_full);$("#address_postalcode_1").val(data.address_postalcode);$("#address_country_1").val(data.address_country);$("#quoteFormMini_1").submit();}},"json");}
return true;}
function ajaxForm(){currentStep=1;if((form!="multidatarecovery.com")&&(form!="ohio.multidatarecovery.com")&&(form!="newyork.multidatarecovery.com")&&(form!="texas.multidatarecovery.com")&&(form!="illinois.multidatarecovery.com")&&(form!="chicagodatarecoverypro.com")&&(form!="newyorkdatarecoverypro.com")){$.blockUI({message:'<h1><img src="'+baseurl+'/templates/cdr/js/greybox/indicator.gif" /></h1>'});}
else{$.blockUI({message:'<h1><img src="'+baseurl+'/templates/smarttemplate/images/progress-Animation.gif" /></h1>'});}
ok='fail';txtCompany=$("#txtCompany").val();if(txtCompany==''){$("span#ifcompany").hide();$("span#ifcompany2").hide();}
$("#shipping_label").find(".ship_company").html(txtCompany);$("#shipping_label2").find(".ship_company").html(txtCompany);$("#shipping_label3").find(".ship_company").html(txtCompany);$("#shipping_label4").find(".ship_company").html(txtCompany);txt_address=$("#txt_address").val();$("#shipping_label").find(".ship_address").html(txt_address);$("#shipping_label2").find(".ship_address").html(txt_address);$("#shipping_label3").find(".ship_address").html(txt_address);$("#shipping_label4").find(".ship_address").html(txt_address);txt_city=$("#txt_city").val();$("#shipping_label").find(".ship_city").html(txt_city);$("#shipping_label2").find(".ship_city").html(txt_city);$("#shipping_label3").find(".ship_city").html(txt_city);$("#shipping_label4").find(".ship_city").html(txt_city);ddlCountry=$("#ddlCountry").val();$("#shipping_label").find(".ship_country").html(ddlCountry);$("#shipping_label2").find(".ship_country").html(ddlCountry);$("#shipping_label3").find(".ship_country").html(ddlCountry);$("#shipping_label4").find(".ship_country").html(ddlCountry);switch(ddlCountry){case'USA':txtProvince=$("#txtProvince").val();break;case'CANADA':txtProvince=$("#txtProvinceCa").val();break;default:txtProvince=$("#txtProvince2").val();break;}
$("#shipping_label").find(".ship_state").html(txtProvince);$("#shipping_label2").find(".ship_state").html(txtProvince);$("#shipping_label3").find(".ship_state").html(txtProvince);$("#shipping_label4").find(".ship_state").html(txtProvince);txt_zip=$("#txt_zip").val();$("#shipping_label").find(".ship_zip").html(txt_zip);$("#shipping_label2").find(".ship_zip").html(txt_zip);$("#shipping_label3").find(".ship_zip").html(txt_zip);$("#shipping_label4").find(".ship_zip").html(txt_zip);salesman=$("#salesmen").val();txt_s_address=$("#txt_address").val();txt_s_city=$("#txt_city").val();ddl_s_Country=$("#ddlCountry").val();txt_s_Province=$("#txtProvince").val();txt_s_zip=$("#txt_zip").val();txt_fname=$("#txt_fname").val();txt_lname=$("#txt_lname").val();$("#shipping_label").find(".ship_cust_name").html(txt_fname+' '+txt_lname);$("#shipping_label2").find(".ship_cust_name").html(txt_fname+' '+txt_lname);$("#shipping_label3").find(".ship_cust_name").html(txt_fname+' '+txt_lname);$("#shipping_label4").find(".ship_cust_name").html(txt_fname+' '+txt_lname);$("#shipping_label").find(".ship_cust_name2").html(txt_fname+' '+txt_lname);$("#shipping_label2").find(".ship_cust_name2").html(txt_fname+' '+txt_lname);$("#shipping_label3").find(".ship_cust_name2").html(txt_fname+' '+txt_lname);$("#shipping_label4").find(".ship_cust_name2").html(txt_fname+' '+txt_lname);txt_phone=$("#txt_phone").val();$("#shipping_label").find(".ship_phone").html(txt_phone);$("#shipping_label2").find(".ship_phone").html(txt_phone);$("#shipping_label3").find(".ship_phone").html(txt_phone);$("#shipping_label4").find(".ship_phone").html(txt_phone);txt_email=$("#txt_email").val();$("#shipping_label").find(".ship_email").html(txt_email);$("#shipping_label2").find(".ship_email").html(txt_email);$("#shipping_label3").find(".ship_email").html(txt_email);$("#shipping_label4").find(".ship_email").html(txt_email);txtaltnumber=$("#txtaltnumber").val();txtFax=$("#txtFax").val();ddlMedia=$("#ddlMedia").val();$("#shipping_label").find(".ship_type").html(ddlMedia);$("#shipping_label2").find(".ship_type").html(ddlMedia);$("#shipping_label3").find(".ship_type").html(ddlMedia);$("#shipping_label4").find(".ship_type").html(ddlMedia);txtManufacturer=$("#txtManufacturer").val();$("#shipping_label").find(".ship_manufacturer").html(txtManufacturer);$("#shipping_label2").find(".ship_manufacturer").html(txtManufacturer);$("#shipping_label3").find(".ship_manufacturer").html(txtManufacturer);$("#shipping_label4").find(".ship_manufacturer").html(txtManufacturer);txtModel=$("#txtModel").val();ddlOS=$("#ddlOS").val();$("#shipping_label").find(".ship_os").html(ddlOS);$("#shipping_label2").find(".ship_os").html(ddlOS);$("#shipping_label3").find(".ship_os").html(ddlOS);$("#shipping_label4").find(".ship_os").html(ddlOS);txtSize=$("#txtSize").val();$("#shipping_label").find(".ship_capacity").html(txtSize);$("#shipping_label2").find(".ship_capacity").html(txtSize);$("#shipping_label3").find(".ship_capacity").html(txtSize);$("#shipping_label4").find(".ship_capacity").html(txtSize);txtFailure=$("#txtFailure").val();txtRecovery=$("#txtRecovery").val();txtFiles=$("#txtFiles").val();rbType=$("#rbType").val();rbContact=$("#rbContact").val();cbEmergency=$("#cbEmergency").attr("aria-checked");switch(cbEmergency){case"true":cbEmergency=1
break;case"false":cbEmergency=0;break;}
$.post(baseurl+"/includes/modules/save.php",{txt_fname:txt_fname,txt_lname:txt_lname,txt_phone:txt_phone,txt_email:txt_email,txtaltnumber:txtaltnumber,txtFax:txtFax,cbEmergency:cbEmergency,txtCompany:txtCompany,txt_address:txt_address,txt_s_address:txt_s_address,txt_city:txt_city,txt_s_city:txt_s_city,ddlCountry:ddlCountry,ddl_s_Country:ddl_s_Country,txtProvince:txtProvince,txt_s_Province:txt_s_Province,txt_zip:txt_zip,txt_s_zip:txt_s_zip,ddlMedia:ddlMedia,txtManufacturer:txtManufacturer,txtModel:txtModel,ddlOS:ddlOS,txtSize:txtSize,txtFailure:txtFailure,txtRecovery:txtRecovery,txtFiles:txtFiles,form:form,rbContact:rbContact,rbType:rbType,salesman:salesman,step:'1',drivePickup:drivePickup},function(data){newuser=data.newuser;if(data.allowed=="true"){$("div#step1").fadeOut("medium",function(){$("div#step2").fadeIn("medium",function(){ajaxStopMethod();$.scrollTo("div#step2");});});}else{$("#bad_request_form").find("#service_number").val(data.service_number);$("#bad_request_form").find("#service").val(data.service);$("#bad_request_form").find("#site_name").val(data.site_name);$("#bad_request_form").find("#address_street").val(data.address_street);$("#bad_request_form").find("#address_city").val(data.address_city);$("#bad_request_form").find("#address_state_full").val(data.address_state_full);$("#bad_request_form").find("#address_postalcode").val(data.address_postalcode);$("#bad_request_form").find("#address_country").val(data.address_country);$("#bad_request_form").submit();}
if(pickupPopupStep2){zip_c=$("#txt_zip").val();state_c=$("#txtProvince").val();province_c=$("#txtProvinceCa").val();country_c=$("#ddlCountry").val();switch(country_c){case'USA':checkDistance(country_c,'',zip_c);break;case'CANADA':checkDistance(country_c,'',zip_c);break;}}},"json");}
function ajaxForm2(){currentStep=2;if((form!="multidatarecovery.com")&&(form!="ohio.multidatarecovery.com")&&(form!="newyork.multidatarecovery.com")&&(form!="texas.multidatarecovery.com")&&(form!="illinois.multidatarecovery.com")&&(form!="chicagodatarecoverypro.com")&&(form!="newyorkdatarecoverypro.com")){$.blockUI({message:'<h1><img src="'+baseurl+'/templates/cdr/js/greybox/indicator.gif" /></h1>'});}
else{$.blockUI({message:'<h1><img src="'+baseurl+'/templates/smarttemplate/images/progress-Animation.gif" /></h1>'});}
ok='fail';rbServices=$("input[name='rbServices']:checked").val();service_id=$("input[name='rbServices']:checked").attr("id");$.post(baseurl+"/includes/modules/save.php",{checkForRecommendations:"true",popupService:"true",js_capacity:$("#txtSize").val(),rbServices:rbServices,service_id:service_id,step2direct:step2direct,form:form,case_id:case_id,drivePickup:drivePickup,step:2},function(data){default_state=data.default_state;capacity=data.capacity;currency_symbol=unescape(data.currency_symbol);case_num=data.case_num;id_quote=data.id_quote;qname=data.qname;serviceTaxAmount=data.tax_amount;switch(form){case'worldwidedatarecovery.co.uk':case'datarecoveryfirm.co.uk':$("input#metacartid1").val(id_quote);$("input#metacartid2").val(id_quote);$("input#strAddress1").val($("#txt_address").val());$("input#strAddress2").val($("#txt_address").val());$("input#strDesc1").val(qname);$("input#strDesc2").val(qname);$("input#strCardHolder1").val($("#txt_fname").val()+" "+$("#txt_lname").val());$("input#strCardHolder2").val($("#txt_fname").val()+" "+$("#txt_lname").val());$("input#strPostcode1").val($("#txt_zip").val());$("input#strPostcode2").val($("#txt_zip").val());$("input#strCity1").val($("#txt_city").val());$("input#strCity2").val($("#txt_city").val());$("input#strState1").val(txtProvince);$("input#strState2").val(txtProvince);$("input#strTel1").val($("#txt_phone").val());$("input#strTel2").val($("#txt_phone").val());$("input#strFax1").val($("#txtFax").val());$("input#strFax1").val($("#txtFax").val());$("input#strEmail1").val($("#txt_email").val());$("input#strEmail2").val($("#txt_email").val());break;case'canadadatarecovery.ca':$("input#wpaycartid1").val(id_quote);$("input#wpaycartid2").val(id_quote);$("input#address1").val($("#txt_address").val());$("input#address2").val($("#txt_address").val());$("input#desc1").val(qname);$("input#desc2").val(qname);$("input#name1").val($("#txt_fname").val()+" "+$("#txt_lname").val());$("input#name2").val($("#txt_fname").val()+" "+$("#txt_lname").val());$("input#postcode1").val($("#txt_zip").val());$("input#postcode2").val($("#txt_zip").val());$("input#tel1").val($("#txt_phone").val());$("input#tel2").val($("#txt_phone").val());$("input#fax1").val($("#txtFax").val());$("input#fax2").val($("#txtFax").val());$("input#email1").val($("#txt_email").val());$("input#email2").val($("#txt_email").val());break;default:break;}
$("#shp_srv_no").attr("src",baseurl+"/includes/modules/label_generator.php?text="+case_num);$("#shp_srv_no2").attr("src",baseurl+"/includes/modules/label_generator.php?text="+case_num);$("#shipping_label").find(".service_tag").html(case_num);$("#shipping_label2").find(".service_tag").html(case_num);$("#shipping_label3").find(".service_tag").html(case_num);$("#shipping_label4").find(".service_tag").html(case_num);switch(form){case'worldwidedatarecovery.com':$("h3#rfq_rec_h3").fadeIn();$("div#rfq_rec").fadeIn();break;case'canadadatarecovery.ca':$("div#rfq_rec_canada").parent().parent().parent().show();break;case'worldwidedatarecovery.co.uk':case'datarecoveryfirm.co.uk':case'micradatarecovery.com':$("div#rfq_rec_uk").parent().parent().parent().show();break;case'diskdataretrieval.com':$("div#rfq_rec").parent().parent().show();break;case'filerecoveryillinois.com':$("div#rfq_rec_illinois").parent().show();break;case'filerecoveryflorida.com':case'prestigedigitalsolutions.com':$("div#rfq_rec_florida").parent().parent().parent().show();break;case'filerecoveryohio.com':$("div#rfq_rec_ohio").show();break;case'datarecoverycorp.com':case'raidrecoverycorp.com':case'datarecoverynewyork.com':case'datarecoveryohio.com':case'californiadatacorp.com':case'criticaldatarecovery.com':$("div#rfq_rec").parent().parent().show();$("div#rfq_rec").show();break;default:$("h3#rfq_rec_h3").fadeIn();$("div#rfq_rec").fadeIn();if((form=="multidatarecovery.com")||(form=="ohio.multidatarecovery.com")||(form=="newyork.multidatarecovery.com")||(form=="texas.multidatarecovery.com")||(form=="illinois.multidatarecovery.com")||(form=="chicagodatarecoverypro.com")||(form=="newyorkdatarecoverypro.com")){$("#rfq_rec").accordion({header:"h3"});}
if((form=="chicagodatarecoverypro.com")||(form=="newyorkdatarecoverypro.com")){$("#recomm_serv").parent().show();}
break;}
if(data.howManyServ!=false){relserv="<tr><td colspan=\"5\"><strong>Related Services</strong></td></tr>";$(relserv).appendTo("table#recomm_serv");for(i=0;i<data.relatedSrv.length;i++){relserv="<tr id=\"rcm-"+data.relatedSrv[i].id+"\">";relserv+="<td class=\"pl_photo\"><img style=\"border: 0; padding:0; margin:0 0 0 5px;\" src=\""+rfqjoomlaurl+"image2.php?id="+data.relatedSrv[i].id+"&w=40\" /></td>";relserv+="<td class=\"pl_name\"><strong><a rel=\"gb_page_center[600, 550]\" href=\""+baseurl+"/index.php?option=com_vipstore&views=product_rfq&id="+data.relatedSrv[i].id+"&tmpl=component\" title=\""+data.relatedSrv[i].name+"\">"+data.relatedSrv[i].name+"</a></strong></td>";relserv+="<td class=\"pl_price\">"+currency_symbol+" "+data.relatedSrv[i].discount_price+"</td>";relserv+="<td class=\"pl_qty\"><select style=\"width:40px;\" class=\"quantity\">";in_stock=10;relserv+=in_stock;for(j=1;j<=in_stock;j++){relserv+="<option value=\""+j+"\">"+j+"</option>";}
relserv+="</select></td>";relserv+="<td class=\"pl_buy\"><div class=\"cart_icon ui-state-default ui-corner-all ui-widget ui-helper-clearfix\"><span class=\"buyitnow ui-icon ui-icon-cart\" id=\""+data.relatedSrv[i].id+"\" title=\"Add to Cart!\"></span></div></td>";relserv+="</tr>";$(relserv).appendTo("table#recomm_serv");}
decoGreyboxLinks();}
if(data.disks!=null){disks="<tr><td colspan=\"5\"><strong>Transfer drives</strong><div style=\"clear: both;\"><div style=\"margin-left: 10px; font-size: 10px; float: left; font-weight: bold;\">Why do I need a transfer drive?</div><div style=\"float: left;\" class=\"help_icon ui-state-default ui-corner-all ui-widget ui-helper-clearfix\" alt=\"Why do I need a transfer drive?\" id=\"recommended_why\" title=\"When the recovery is complete, the retrieved data has to be transferred to a non-compromised media of your choice. You can either purchase a hard drive from "+rfqdisplayname+" or provide us with your own media.\nPlease keep in mind that purchasing a transfer hard drive from "+rfqdisplayname+" considerably expedites the service, as the recovered data can be immediately mirrored to a hard drive of the applicable capacity. If you decide to use your own media, prior to copying the data, our certified technicians will have to format and run the performance diagnostic test on a submitted hard drive which will increase the turn-around time.\"><span class=\"ui-icon ui-icon-help\"></span></div></div></td></tr>";$(disks).appendTo("table#recomm");for(i=0;i<data.disks.length;i++){disks="<tr id=\"rcm-"+data.disks[i].id+"\">";disks+="<td class=\"pl_photo\"><img style=\"border: 0; padding:0; margin: 0 0 0 5px;\" src=\""+rfqjoomlaurl+"image2.php?id="+data.disks[i].id+"&w=40\" /></td>";disks+="<td class=\"pl_name\"><strong><a rel=\"gb_page_center[600, 550]\" href=\""+baseurl+"/index.php?option=com_vipstore&views=product_rfq&id="+data.disks[i].id+"&tmpl=component\" title=\""+data.disks[i].name+"\">"+data.disks[i].name+"</a></strong></td>";disks+="<td class=\"pl_price\">"+currency_symbol+" "+data.disks[i].discount_price+"</td>";disks+="<td class=\"pl_qty\"><select style=\"width:40px;\" class=\"quantity\">";in_stock=10;disks+=in_stock;for(j=1;j<=in_stock;j++){disks+="<option value=\""+j+"\">"+j+"</option>";}
disks+="</select></td>";disks+="<td class=\"pl_buy\"><div class=\"cart_icon ui-state-default ui-corner-all ui-widget ui-helper-clearfix\"><span class=\"buyitnow ui-icon ui-icon-cart\" id=\""+data.disks[i].id+"\" title=\"Add to Cart!\"></span></div></td>";disks+="</tr>";$(disks).appendTo("table#recomm");}
decoGreyboxLinks();}
if(data.insurances!=null){insurances="<tr><td colspan=\"5\"><strong>Data Recovery Insurance</strong><div style=\"clear: both;\"><div style=\"margin-left: 10px; font-size: 10px; float: left; font-weight: bold;\">Why do I need Data Recovery Insurance?</div><div style=\"float: left;\" class=\"help_icon ui-state-default ui-corner-all ui-widget ui-helper-clearfix\" alt=\"Why do I need Data Recovery Insurance?\" id=\"recommended_why\" title=\"Why do I need Data Recovery Insurance?.\"><span class=\"ui-icon ui-icon-help\"></span></div></div></td></tr>";$(insurances).appendTo("table#recomm");for(i=0;i<data.insurances.length;i++){insurances="<tr id=\"rcm-"+data.insurances[i].id+"\">";insurances+="<td class=\"pl_photo\"><img style=\"border: 0; padding:0; margin: 0 0 0 5px;\" src=\""+rfqjoomlaurl+"image2.php?id="+data.insurances[i].id+"&w=40\" /></td>";insurances+="<td class=\"pl_name\"><strong><a rel=\"gb_page_center[600, 550]\" href=\""+baseurl+"/index.php?option=com_vipstore&views=product_rfq&id="+data.insurances[i].id+"&tmpl=component\" title=\""+data.insurances[i].name+"\">"+data.insurances[i].name+"</a></strong></td>";insurances+="<td class=\"pl_price\">"+currency_symbol+" "+data.insurances[i].discount_price+"</td>";insurances+="<td class=\"pl_qty\"><select style=\"width:40px;\" class=\"quantity\">";in_stock=10;insurances+=in_stock;for(j=1;j<=in_stock;j++){insurances+="<option value=\""+j+"\">"+j+"</option>";}
insurances+="</select></td>";insurances+="<td class=\"pl_buy\"><div class=\"cart_icon ui-state-default ui-corner-all ui-widget ui-helper-clearfix\"><span class=\"buyitnow ui-icon ui-icon-cart\" id=\""+data.insurances[i].id+"\" title=\"Add to Cart!\"></span></div></td>";insurances+="</tr>";$(insurances).appendTo("table#recomm");}
decoGreyboxLinks();}
$("div#step2").fadeOut();$("div#header123").fadeOut();$("div#step3").fadeIn("medium",function(){popupserv=data.popupService;ajaxStopMethod();$.scrollTo("div#step3");if(step2direct){$("#shipping_label").find(".ship_cust_name").html(direct_ship_cust_name);$("#shipping_label2").find(".ship_cust_name").html(direct_ship_cust_name);$("#shipping_label3").find(".ship_cust_name").html(direct_ship_cust_name);$("#shipping_label4").find(".ship_cust_name").html(direct_ship_cust_name);$("#shipping_label").find(".ship_cust_name2").html(direct_ship_cust_name);$("#shipping_label2").find(".ship_cust_name2").html(direct_ship_cust_name);$("#shipping_label3").find(".ship_cust_name2").html(direct_ship_cust_name);$("#shipping_label4").find(".ship_cust_name2").html(direct_ship_cust_name);$("#shipping_label").find(".ship_address").html(direct_ship_address);$("#shipping_label2").find(".ship_address").html(direct_ship_address);$("#shipping_label3").find(".ship_address").html(direct_ship_address);$("#shipping_label4").find(".ship_address").html(direct_ship_address);$("#shipping_label").find(".ship_country").html(direct_ship_country);$("#shipping_label2").find(".ship_country").html(direct_ship_country);$("#shipping_label3").find(".ship_country").html(direct_ship_country);$("#shipping_label4").find(".ship_country").html(direct_ship_country);$("#shipping_label").find(".ship_city").html(direct_ship_city);$("#shipping_label2").find(".ship_city").html(direct_ship_city);$("#shipping_label3").find(".ship_city").html(direct_ship_city);$("#shipping_label4").find(".ship_city").html(direct_ship_city);$("#shipping_label").find(".ship_state").html(direct_ship_state);$("#shipping_label2").find(".ship_state").html(direct_ship_state);$("#shipping_label3").find(".ship_state").html(direct_ship_state);$("#shipping_label4").find(".ship_state").html(direct_ship_state);$("#shipping_label").find(".ship_zip").html(direct_ship_zip);$("#shipping_label2").find(".ship_zip").html(direct_ship_zip);$("#shipping_label3").find(".ship_zip").html(direct_ship_zip);$("#shipping_label4").find(".ship_zip").html(direct_ship_zip);$("#shipping_label").find(".ship_phone").html(direct_ship_phone);$("#shipping_label2").find(".ship_phone").html(direct_ship_phone);$("#shipping_label3").find(".ship_phone").html(direct_ship_phone);$("#shipping_label4").find(".ship_phone").html(direct_ship_phone);$("#shipping_label").find(".ship_type").html(direct_ship_type);$("#shipping_label2").find(".ship_type").html(direct_ship_type);$("#shipping_label3").find(".ship_type").html(direct_ship_type);$("#shipping_label4").find(".ship_type").html(direct_ship_type);$("#shipping_label").find(".ship_manufacturer").html(direct_ship_manufacturer);$("#shipping_label2").find(".ship_manufacturer").html(direct_ship_manufacturer);$("#shipping_label3").find(".ship_manufacturer").html(direct_ship_manufacturer);$("#shipping_label4").find(".ship_manufacturer").html(direct_ship_manufacturer);$("#shipping_label").find(".ship_os").html(direct_ship_os);$("#shipping_label2").find(".ship_os").html(direct_ship_os);$("#shipping_label3").find(".ship_os").html(direct_ship_os);$("#shipping_label4").find(".ship_os").html(direct_ship_os);$("#shipping_label").find(".ship_capacity").html(direct_ship_capacity);$("#shipping_label2").find(".ship_capacity").html(direct_ship_capacity);$("#shipping_label3").find(".ship_capacity").html(direct_ship_capacity);$("#shipping_label4").find(".ship_capacity").html(direct_ship_capacity);$("#shipping_label").find(".ship_cust_name3").html(direct_ship_cust_name);$("#shipping_label2").find(".ship_cust_name3").html(direct_ship_cust_name);$("#shipping_label3").find(".ship_cust_name3").html(direct_ship_cust_name);$("#shipping_label4").find(".ship_cust_name3").html(direct_ship_cust_name);$("#shipping_label").find(".ship_cust_name4").html(direct_ship_cust_name);$("#shipping_label2").find(".ship_cust_name4").html(direct_ship_cust_name);$("#shipping_label3").find(".ship_cust_name4").html(direct_ship_cust_name);$("#shipping_label4").find(".ship_cust_name4").html(direct_ship_cust_name);$("#shipping_label").find(".ship_address2").html(direct_ship_address);$("#shipping_label2").find(".ship_address2").html(direct_ship_address);$("#shipping_label3").find(".ship_address2").html(direct_ship_address);$("#shipping_label4").find(".ship_address2").html(direct_ship_address);$("#shipping_label").find(".ship_country2").html(direct_ship_country);$("#shipping_label2").find(".ship_country2").html(direct_ship_country);$("#shipping_label3").find(".ship_country2").html(direct_ship_country);$("#shipping_label4").find(".ship_country2").html(direct_ship_country);$("#shipping_label").find(".ship_city2").html(direct_ship_city);$("#shipping_label2").find(".ship_city2").html(direct_ship_city);$("#shipping_label3").find(".ship_city2").html(direct_ship_city);$("#shipping_label4").find(".ship_city2").html(direct_ship_city);$("#shipping_label").find(".ship_state2").html(direct_ship_state);$("#shipping_label2").find(".ship_state2").html(direct_ship_state);$("#shipping_label3").find(".ship_state2").html(direct_ship_state);$("#shipping_label4").find(".ship_state2").html(direct_ship_state);$("#shipping_label").find(".ship_zip2").html(direct_ship_zip);$("#shipping_label2").find(".ship_zip2").html(direct_ship_zip);$("#shipping_label3").find(".ship_zip2").html(direct_ship_zip);$("#shipping_label4").find(".ship_zip2").html(direct_ship_zip);$("#shipping_label").find(".ship_phone2").html(direct_ship_phone);$("#shipping_label2").find(".ship_phone2").html(direct_ship_phone);$("#shipping_label3").find(".ship_phone2").html(direct_ship_phone);$("#shipping_label4").find(".ship_phone2").html(direct_ship_phone);$("#shipping_label").find(".ship_type2").html(direct_ship_type);$("#shipping_label2").find(".ship_type2").html(direct_ship_type);$("#shipping_label3").find(".ship_type2").html(direct_ship_type);$("#shipping_label4").find(".ship_type2").html(direct_ship_type);$("#shipping_label").find(".ship_manufacturer2").html(direct_ship_manufacturer);$("#shipping_label2").find(".ship_manufacturer2").html(direct_ship_manufacturer);$("#shipping_label3").find(".ship_manufacturer2").html(direct_ship_manufacturer);$("#shipping_label4").find(".ship_manufacturer2").html(direct_ship_manufacturer);$("#shipping_label").find(".ship_os2").html(direct_ship_os);$("#shipping_label2").find(".ship_os2").html(direct_ship_os);$("#shipping_label3").find(".ship_os2").html(direct_ship_os);$("#shipping_label4").find(".ship_os2").html(direct_ship_os);$("#shipping_label").find(".ship_capacity2").html(direct_ship_capacity);$("#shipping_label2").find(".ship_capacity2").html(direct_ship_capacity);$("#shipping_label3").find(".ship_capacity2").html(direct_ship_capacity);$("#shipping_label4").find(".ship_capacity2").html(direct_ship_capacity);$("#shipping_label").find(".ship_email").html(direct_email);$("#shipping_label2").find(".ship_email").html(direct_email);$("#shipping_label3").find(".ship_email").html(direct_email);$("#shipping_label4").find(".ship_email").html(direct_email);$("#shipping_label").find(".ship_email2").html(direct_email);$("#shipping_label2").find(".ship_email2").html(direct_email);$("#shipping_label3").find(".ship_email2").html(direct_email);$("#shipping_label4").find(".ship_email2").html(direct_email);$("#shipping_label").find(".ship_company").html('');$("#shipping_label2").find(".ship_company").html('');$("#shipping_label3").find(".ship_company").html('');$("#shipping_label4").find(".ship_company").html('');}
changed=false;if(ddlCountry=='USA'){switch(txtProvince){case'NV':case'CA':pointTo='CA';break;case'PA':case'OH':pointTo='OH';break;case'NJ':case'CT':case'MA':case'NH':case'VT':case'NY':pointTo='NY';break;case'IN':case'WI':case'IL':pointTo='IL';break;case'FL':pointTo='FL';break;case'TX':pointTo='TX';break;case'GA':pointTo='GA';break;case'':case'undefined':pointTo=default_state;break;default:pointTo=default_state;break;}
for(t=0;t<howmanyplaces;t++){if(addr[t].address_state==pointTo){changed=true;break;}}}
else
if(ddlCountry=='CANADA'){for(t=0;t<howmanyplaces;t++){if(addr[t].address_country=='Canada'){changed=true;break;}}}else{for(t=0;t<howmanyplaces;t++){if(addr[t].address_state==default_state){changed=true;break;}}}
$("select#locations").selectOptions(addr[t].id);if(changed==true){shlbl_contents=rfqdisplayname+"<br />"+addr[t].address_street+"<br />"+addr[t].address_city+", "+addr[t].address_state_full+" "+addr[t].address_postalcode+"<br />"+addr[t].address_country;location_contents=addr[t].address_street+"<br />"+addr[t].address_city+", "+addr[t].address_state_full+" "+addr[t].address_postalcode+"<br />"+addr[t].address_country;$("#shipping_label").find(".shlbl_addr").html(shlbl_contents);$("#shipping_label2").find(".shlbl_addr").html(shlbl_contents);$("#shipping_label3").find(".shlbl_addr").html(shlbl_contents);$("#shipping_label4").find(".shlbl_addr").html(shlbl_contents);$("#location_detail").html(location_contents);$("a.google_maps_link").hide();$("a.google_maps_link").filter("[addr_index='"+addr[t].id+"']").show();}
if((form=="multidatarecovery.com")||(form=="ohio.multidatarecovery.com")||(form=="newyork.multidatarecovery.com")||(form=="texas.multidatarecovery.com")||(form=="illinois.multidatarecovery.com")||(form=="chicagodatarecoverypro.com")||(form=="newyorkdatarecoverypro.com")){$("#locationChoice").hide();}
if((form!='worldwidedatarecovery.com')&&(form!='filerecoveryflorida.com')&&((browser!='IE6')||(form!="chicagodatarecoverypro.com")||(form!="newyorkdatarecoverypro.com")||(form!="datarecoverycorp.com")||(form!="raidrecoverycorp.com")||(form!="datarecoverynewyork.com")||(form!="datarecoveryohio.com")||(form!="criticaldatarecovery.com")||(form!="californiadatacorp.com"))){$('select#locations').selectmenu('destroy').selectmenu({maxHeight:250,menuWidth:320,width:350});}
if((form=='worldwidedatarecovery.com')||(form=='filerecoveryflorida.com')||(form=='micradatarecovery.com')){$("a[id^=locations_button]").hide();$("div#step3infoLocations").css("margin-top","0");}});},"json");$.post(baseurl+"/includes/modules/save.php",{checkForTaxes:"true",taxProdId:service_id,form:form,service_id:service_id},function(data){serviceTaxAmount=data.tax_amount;currency_symbol=unescape(data.currency_symbol);service_id=$("input[name='rbServices']:checked").attr("id");service_name=$("#serv-"+service_id).attr("name");service_price=$("#serv-"+service_id).val();service_price=roundNumber(service_price,2);service_price=service_price.toFixed(2);service_image="<img style=\"border: 0; padding:0; margin:0;\" src=\""+rfqjoomlaurl+"image2.php?id="+service_id+"&w=50\" />";disks="<tr id=\"trcrt-"+service_id+"\">";disks+="<td class=\"pl_photo\">"+service_image+"</td>";disks+="<td class=\"pl_name\"><strong><a rel=\"gb_page_center[600, 550]\" href=\""+baseurl+"/index.php?option=com_vipstore&views=product_rfq&id="+service_id+"&tmpl=component\" title=\""+service_name+"\">"+service_name+"</a></strong>";disks+="<td class=\"pl_qty\">1</td>";disks+="<td class=\"pl_price\">"+currency_symbol+" "+service_price+"</td>";disks+="<td class=\"delete_cart\"><div class=\"delete_icon ui-state-default ui-corner-all ui-widget ui-helper-clearfix\"><span class=\"deleteProduct ui-icon ui-icon-trash\" id=\""+service_id+"\" title=\"Delete this product.\"></span></div></td>";disks+="</tr>";prices[0]=new Array();prices[0].id=service_id;prices[0].price=service_price;prices[0].qty=1;prices[0].tax=serviceTaxAmount;$(disks).appendTo("table#rfq_cart");$("#shipping_label").find(".service_desc").html(data.service_desc);$("#shipping_label2").find(".service_desc").html(data.service_desc);$("#shipping_label3").find(".service_desc").html(data.service_desc);$("#shipping_label4").find(".service_desc").html(data.service_desc);forAuthForm="<tr><td>"+service_name+"</td><td id=\"rfq_q_"+service_id+"\" class=\"auth_quantity\">1</td><td>&nbsp;x&nbsp;</td><td id=\"rfq_p_"+service_id+"\">"+currency_symbol+" "+service_price+"</td></tr>";$("#shipping_label").find("tbody.purchased_serv_prod").append(forAuthForm);$("#shipping_label2").find("tbody.purchased_serv_prod").append(forAuthForm);$("#shipping_label3").find("tbody.purchased_serv_prod").append(forAuthForm);$("#shipping_label4").find("tbody.purchased_serv_prod").append(forAuthForm);$("strong#cart_total").html(currency_symbol+" "+service_price);totalAmount=service_price;switch(form){case'worldwidedatarecovery.co.uk':case'datarecoveryfirm.co.uk':$("input[name='fltAmount']").val(totalAmount);break;case'canadadatarecovery.ca':$("input[name='amount']").val(totalAmount);break;}
$("td#purchased_total").html(currency_symbol+" "+service_price);$("span#serviceType").html(service_name);$("span#serviceType2").html(service_name);decoGreyboxLinks();updateTotal();if(data.discount_price=="0.000000"){$("#shipping_label").find(".auth_form_class").hide();$("#shipping_label2").find(".auth_form_class").hide();$("#shipping_label3").find(".auth_form_class").hide();$("#shipping_label4").find(".auth_form_class").hide();}},"json");}
function ajaxForm3(){currentStep=3;if((form!="multidatarecovery.com")&&(form!="ohio.multidatarecovery.com")&&(form!="newyork.multidatarecovery.com")&&(form!="texas.multidatarecovery.com")&&(form!="illinois.multidatarecovery.com")&&(form!="chicagodatarecoverypro.com")&&(form!="newyorkdatarecoverypro.com")){$.blockUI({message:'<h1><img src="'+baseurl+'/templates/cdr/js/greybox/indicator.gif" /></h1>'});}
else{$.blockUI({message:'<h1><img src="'+baseurl+'/templates/smarttemplate/images/progress-Animation.gif" /></h1>'});}
ok='fail';ch_fname=$("input[name='ch_fname']").val();datax="ch_fname="+ch_fname+"&ch_lname="+ch_lname+"&ch_company="+ch_company+"&ch_cctype="+ch_cctype+"&ch_ccexp_m="+ch_ccexp_m+"&ch_ccexp_y="+ch_ccexp_y+"&ch_ccno="+ch_ccno+"&ch_cccvv="+ch_cccvv+"&form="+form+"&step=3";$.ajax({type:"POST",url:baseurl+"/includes/modules/save.php",data:datax,success:function(msg){ok='ok';},complete:function(){if(ok=='ok'){$("div#step3").fadeOut();$("div#header123").fadeOut();$("div#step4").fadeIn("medium",function(){ajaxStopMethod();$.scrollTo("div#step4");});return true;}
else
return false;}});}
function ajaxForm4(){currentStep=4;if((form!="multidatarecovery.com")&&(form!="ohio.multidatarecovery.com")&&(form!="newyork.multidatarecovery.com")&&(form!="texas.multidatarecovery.com")&&(form!="illinois.multidatarecovery.com")&&(form!="chicagodatarecoverypro.com")&&(form!="newyorkdatarecoverypro.com")){$.blockUI({message:'<h1><img src="'+baseurl+'/templates/cdr/js/greybox/indicator.gif" /></h1>'});}
else{$.blockUI({message:'<h1><img src="'+baseurl+'/templates/smarttemplate/images/progress-Animation.gif" /></h1>'});}
ok='fail';ch_fname=$("#ch_fname").val();ch_lname=$("#ch_lname").val();ch_company=$("#ch_company").val();ch_country=$("#ch_country").val();ch_street=$("#ch_street").val();ch_city=$("#ch_city").val();ch_zip=$("#ch_zip").val();switch(ch_country){case'USA':ch_province=$("#ch_province").val();break;case'CANADA':ch_province=$("#ch_province_ca").val();break;default:ch_province=$("#ch_province2").val();break;}
ch_cctype=$("#ch_cctype").val();ch_ccexp_m=$("#ch_ccexp_m").val();ch_ccexp_y=$("#ch_ccexp_y").val();ch_ccno=$("#ch_ccno").val();ch_cccvv=$("#ch_cccvv").val();$.post(baseurl+"/includes/modules/save.php",{ch_fname:ch_fname,ch_lname:ch_lname,ch_company:ch_company,ch_country:ch_country,ch_street:ch_street,ch_city:ch_city,ch_zip:ch_zip,ch_province:ch_province,ch_cctype:ch_cctype,ch_ccexp_m:ch_ccexp_m,ch_ccexp_y:ch_ccexp_y,ch_ccno:ch_ccno,ch_cccvv:ch_cccvv,form:form,totalAmount:totalAmount,step:'4'},function(data){payment_response=data.payment_response;transaction_status=data.transaction_status;response_code=data.response_code;$("#p_response").html(payment_response);$("#p_status").html(transaction_status);if(response_code!='1'){$("#button_placer").html("<a id=\"tryAgain\" class=\"fg-button fg-button-icon-left ui-state-default ui-corner-all tryAgain\" onclick=\"tryAgain();\"><span class=\"ui-icon ui-icon-refresh\"></span><strong>Try Again!</strong></a>");$("div#step5infoBox div.ui-corner-all").removeClass("ui-state-highlight").addClass("ui-state-error");$("div#step5infoBox div p span.ui-icon").removeClass("ui-icon-info").addClass("ui-icon-alert");}
else{$("#button_placer").html("");if(wasPaymentError){$("div#step5infoBox div.ui-corner-all").removeClass("ui-state-error").addClass("ui-state-highlight");$("div#step5infoBox div p span.ui-icon").removeClass("ui-icon-alert").addClass("ui-icon-info");}}
$("div#step4").fadeOut();$("div#step5").fadeIn("medium",function(){ajaxStopMethod();$.scrollTo("div#step5");});},"json");}
function tryAgain(){$("div#step5").fadeOut();$("div#step4").fadeIn("medium",function(){$.scrollTo("div#step4");});wasPaymentError=true;return true;}
function ajaxFormFinish(){currentStep=5;if((form!="multidatarecovery.com")&&(form!="ohio.multidatarecovery.com")&&(form!="newyork.multidatarecovery.com")&&(form!="texas.multidatarecovery.com")&&(form!="illinois.multidatarecovery.com")&&(form!="chicagodatarecoverypro.com")&&(form!="newyorkdatarecoverypro.com")){$.blockUI({message:'<h1><img src="'+baseurl+'/templates/cdr/js/greybox/indicator.gif" /></h1>'});}
else{$.blockUI({message:'<h1><img src="'+baseurl+'/templates/smarttemplate/images/progress-Animation.gif" /></h1>'});}
ok='fail';loc=$("select#locations").find("option:selected").val();var data2;for(i=0;i<prices.length;i++){data2+="&id"+i+"="+prices[i].id+"&qty"+i+"="+prices[i].qty;}
datax="location="+loc+"&drivePickup="+drivePickup+"&form="+form+"&step=finish&howmany="+prices.length+"&separator="+data2;$.ajax({type:"POST",url:baseurl+"/includes/modules/save.php",data:datax,success:function(msg){ok='ok';},complete:function(){if(($("#shipping_label").find(".auth_form_class").is(":visible"))||($("#shipping_label2").find(".auth_form_class").is(":visible"))||($("#shipping_label3").find(".auth_form_class").is(":visible"))||($("#shipping_label4").find(".auth_form_class").is(":visible"))){if((form=="multidatarecovery.com")||(form=="ohio.multidatarecovery.com")||(form=="newyork.multidatarecovery.com")||(form=="texas.multidatarecovery.com")||(form=="illinois.multidatarecovery.com")||(form=="chicagodatarecoverypro.com")||(form=="newyorkdatarecoverypro.com")||(form=="datarecoverycorp.com")||(form=="raidrecoverycorp.com")||(form=="datarecoveryohio.com")||(form=="datarecoverynewyork.com")||(form=="californiadatacorp.com")||(form=="criticaldatarecovery.com")){shlbl=$.base64Encode($("#shipping_label3").html());}else{shlbl=$.base64Encode($("#shipping_label").html());}
$.post(baseurl+"/includes/modules/save.php",{shlbl:shlbl,form:form},function(data){},"json");}
if(ok=='ok'){$("div#step3").fadeOut();$("#ch_fname").val($("#txt_fname").val());$("#ch_lname").val($("#txt_lname").val());$("#ch_company").val($("#txtCompany").val());$("#ch_street").val($("#txt_address").val());txt_address=$("#txt_address").val();$("#ch_city").val($("#txt_city").val());$("#total_amount").html($("#cart_total").html());txt_city=$("#txt_city").val();$("#ch_country").val($("#ddlCountry").val());ddlCountry=$("#ddlCountry").val();switch(ddlCountry){case'USA':$("#ch_province").val($("#txtProvince").val());break;case'CANADA':$("#ch_province_ca").val($("#txtProvinceCa").val());break;default:$("#ch_province2").val($("#txtProvince2").val());break;}
$("#ch_zip").val($("#txt_zip").val());txt_zip=$("#txt_zip").val();switch(form){case'worldwidedatarecovery.com':$("h3#rfq_rec_h3").fadeOut();$("div#rfq_rec").fadeOut();break;case'canadadatarecovery.ca':$("div#rfq_rec_canada").parent().parent().parent().hide();break;case'worldwidedatarecovery.co.uk':case'datarecoveryfirm.co.uk':case'micradatarecovery.com':$("div#rfq_rec_uk").parent().parent().parent().hide();break;case'filerecoveryflorida.com':case'prestigedigitalsolutions.com':$("div#rfq_rec_florida").parent().parent().parent().hide();break;case'filerecoveryillinois.com':$("div#rfq_rec_illinois").parent().hide();break;case'diskdataretrieval.com':$("div#rfq_rec").parent().parent().hide();break;case'filerecoveryohio.com':$("div#rfq_rec_ohio").hide();break;case'datarecoverycorp.com':case'raidrecoverycorp.com':case'datarecoverynewyork.com':case'datarecoveryohio.com':case'californiadatacorp.com':case'criticaldatarecovery.com':$("div#rfq_rec").parent().parent().hide();break;default:$("h3#rfq_rec_h3").fadeOut();$("div#rfq_rec").fadeOut();break;}
$("div#step4").fadeIn("medium",function(){ajaxStopMethod();$.scrollTo("div#step4");if((browser!='IE6')||(form!="chicagodatarecoverypro.com")||(form!="newyorkdatarecoverypro.com")){$('select#ch_country').livequery(function(){$(this).selectmenu({maxHeight:250});});if($("td#ch_centerProvince").is(":visible")==true){$('select#ch_province').livequery(function(){$(this).selectmenu({maxHeight:250,menuWidth:160,width:180});});}
else{$("td#ch_centerProvince").show();$('select#ch_province').livequery(function(){$(this).selectmenu({maxHeight:250,menuWidth:160,width:180});});$("td#ch_centerProvince").hide();}
if($("td#ch_centerProvinceCa").is(":visible")==true){$('select#ch_province_ca').livequery(function(){$(this).selectmenu({maxHeight:250,menuWidth:160,width:180});});}
else{$("td#ch_centerProvinceCa").show();$('select#ch_province_ca').livequery(function(){$(this).selectmenu({maxHeight:250,menuWidth:160,width:180});});$("td#ch_centerProvinceCa").hide();}
$('select#ch_ccexp_y').livequery(function(){$(this).selectmenu({maxHeight:250,menuWidth:65,width:80});});$('select#ch_ccexp_m').livequery(function(){$(this).selectmenu({maxHeight:250,menuWidth:45,width:65});});$('select#ch_cctype').livequery(function(){$(this).selectmenu({maxHeight:250,width:200});});}
$('div#cvv_info').livequery(function(){$(this).tooltip({track:true,delay:0,showURL:false,showBody:" - ",extraClass:"pretty",fixPNG:true,opacity:0.95,left:-120});});$("a[id^=ch_ccexp_y_button]").addClass("moved");});return true;}
else
return false;}});}
function ajaxFormFinishWithoutPay(){currentStep=6;if((form!="multidatarecovery.com")&&(form!="ohio.multidatarecovery.com")&&(form!="newyork.multidatarecovery.com")&&(form!="texas.multidatarecovery.com")&&(form!="illinois.multidatarecovery.com")&&(form!="chicagodatarecoverypro.com")&&(form!="newyorkdatarecoverypro.com")){$.blockUI({message:'<h1><img src="'+baseurl+'/templates/cdr/js/greybox/indicator.gif" /></h1>'});}
else{$.blockUI({message:'<h1><img src="'+baseurl+'/templates/smarttemplate/images/progress-Animation.gif" /></h1>'});}
ok='fail';loc=$("select#locations").find("option:selected").val();var data2;for(i=0;i<prices.length;i++){data2+="&id"+i+"="+prices[i].id+"&qty"+i+"="+prices[i].qty;}
datax="location="+loc+"&drivePickup="+drivePickup+"&form="+form+"&step=finish&howmany="+prices.length+"&separator="+data2;$.ajax({type:"POST",url:baseurl+"/includes/modules/save.php",data:datax,success:function(msg){ok='ok';},complete:function(){if(($("#shipping_label").find(".auth_form_class").is(":visible"))||($("#shipping_label2").find(".auth_form_class").is(":visible"))||($("#shipping_label3").find(".auth_form_class").is(":visible"))||($("#shipping_label4").find(".auth_form_class").is(":visible"))){if((form=="multidatarecovery.com")||(form=="ohio.multidatarecovery.com")||(form=="newyork.multidatarecovery.com")||(form=="texas.multidatarecovery.com")||(form=="illinois.multidatarecovery.com")||(form=="chicagodatarecoverypro.com")||(form=="newyorkdatarecoverypro.com")||(form=="datarecoverycorp.com")||(form=="raidrecoverycorp.com")||(form=="datarecoverynewyork.com")||(form=="datarecoveryohio.com")||(form=="californiadatacorp.com")||(form=="criticaldatarecovery.com")){shlbl=$.base64Encode($("#shipping_label3").html());}else{shlbl=$.base64Encode($("#shipping_label").html());}
$.post(baseurl+"/includes/modules/save.php",{shlbl:shlbl,form:form},function(data){},"json");}
if(ok=='ok'){$("div#step3").fadeOut();$("#ch_fname").val($("#txt_fname").val());$("#ch_lname").val($("#txt_lname").val());$("#ch_company").val($("#txtCompany").val());$("#ch_street").val($("#txt_address").val());txt_address=$("#txt_address").val();$("#ch_city").val($("#txt_city").val());$("#total_amount").html($("#cart_total").html());txt_city=$("#txt_city").val();$("#ch_country").val($("#ddlCountry").val());ddlCountry=$("#ddlCountry").val();switch(ddlCountry){case'USA':$("#ch_province").val($("#txtProvince").val());break;case'CANADA':$("#ch_province_ca").val($("#txtProvinceCa").val());break;default:$("#ch_province2").val($("#txtProvince2").val());break;}
$("#ch_zip").val($("#txt_zip").val());txt_zip=$("#txt_zip").val();switch(form){case'worldwidedatarecovery.com':$("h3#rfq_rec_h3").fadeOut();$("div#rfq_rec").fadeOut();break;case'canadadatarecovery.ca':$("div#rfq_rec_canada").parent().parent().parent().hide();break;case'worldwidedatarecovery.co.uk':case'datarecoveryfirm.co.uk':case'micradatarecovery.com':$("div#rfq_rec_uk").parent().parent().parent().hide();break;case'filerecoveryflorida.com':case'prestigedigitalsolutions.com':$("div#rfq_rec_florida").parent().parent().parent().hide();break;case'filerecoveryillinois.com':$("div#rfq_rec_illinois").parent().hide();break;case'filerecoveryohio.com':$("div#rfq_rec_ohio").hide();break;case'diskdataretrieval.com':$("div#rfq_rec").parent().parent().hide();break;case'datarecoverycorp.com':case'raidrecoverycorp.com':case'datarecoverynewyork.com':case'datarecoveryohio.com':case'californiadatacorp.com':case'criticaldatarecovery.com':$("div#rfq_rec").parent().parent().hide();break;default:$("h3#rfq_rec_h3").fadeOut();$("div#rfq_rec").fadeOut();break;}
$("div#stepProcessed").fadeIn("medium",function(){ajaxStopMethod();$.scrollTo("div#stepProcessed");});return true;}
else
return false;}});}
function validateStep0(){var message="";emailaddr=$.trim($("#txt_email").val());validEmail=isValidEmailAddress(emailaddr);if($('#txt_fname').attr("value")=='')
{message+="<li>First name</li>";$("input#txt_fname").addClass("errInput");}
else{$("input#txt_fname").removeClass("errInput");}
if($('#txt_lname').attr("value")=='')
{message+="<li>Last name</li>";$("input#txt_lname").addClass("errInput");}
else{$("input#txt_lname").removeClass("errInput");}
if($('#txt_phone').attr("value")=='')
{message+="<li>Phone number</li>";$("input#txt_phone").addClass("errInput");}
else{$("input#txt_phone").removeClass("errInput");}
if($('#txt_email').attr("value")=='')
{message+="<li>E-mail address</li>";$("input#txt_email").addClass("errInput");}
else{$("input#txt_email").removeClass("errInput");}
if((!validEmail)&&($("#txt_email").val()!=''))
{message+="<li>Valid e-mail address</li>";$("input#txt_email").addClass("errInput");}
else if($("#txt_email").val()!=''){$("input#txt_email").removeClass("errInput");}
if(form=="micradatarecovery.com"){if($('#txt_country').attr("value")=='')
{message+="<li>Country location</li>";$("select#txt_country").addClass("errInput");}
else{$("select#txt_country").removeClass("errInput");}}
if(message=='')
{$(function(){$('#error').fadeOut(400);document.getElementById('errorInterior').innerHTML="";});ajaxForm0();return true;}
else{$(function()
{$('#error').fadeIn(1000);document.getElementById('errorInterior').innerHTML="<strong>"+message+"</strong>";});return false;}}
function validateStep0_1(){var message="";emailaddr=$.trim($("#txt_email_1").val());validEmail=isValidEmailAddress(emailaddr);if($('#txt_fname_1').attr("value")=='')
{message+="<li id='nobor'>First name</li>";$("input#txt_fname_1").addClass("errInput");}
else{$("input#txt_fname_1").removeClass("errInput");}
if($('#txt_lname_1').attr("value")=='')
{message+="<li id='nobor'>Last name</li>";$("input#txt_lname_1").addClass("errInput");}
else{$("input#txt_lname_1").removeClass("errInput");}
if($('#txt_phone_1').attr("value")=='')
{message+="<li id='nobor'>Phone number</li>";$("input#txt_phone_1").addClass("errInput");}
else{$("input#txt_phone_1").removeClass("errInput");}
if($('#txt_email_1').attr("value")=='')
{message+="<li id='nobor'>E-mail address</li>";$("input#txt_email_1").addClass("errInput");}
else{$("input#txt_email_1").removeClass("errInput");}
if((!validEmail)&&($("#txt_email_1").val()!=''))
{message+="<li id='nobor'>Valid e-mail address</li>";$("input#txt_email_1").addClass("errInput");}
else if($("#txt_email_1").val()!=''){$("input#txt_email_1").removeClass("errInput");}
if(message=='')
{$(function(){$('#error_1').fadeOut(400);document.getElementById('errorInterior_1').innerHTML="";});ajaxForm0_1();return true;}
else{$(function()
{$('#error_1').fadeIn(1000);document.getElementById('errorInterior_1').innerHTML="<strong>"+message+"</strong>";});return false;}}
function validateStep1(){var message="";emailaddr=$.trim($("#txt_email").val());validEmail=isValidEmailAddress(emailaddr);if($('#txt_fname').attr("value")=='')
{message+="<li>First name</li>";$("input#txt_fname").parent("div").removeClass("m").addClass("mErr");}
else{$("input#txt_fname").parent("div").removeClass("mErr").addClass("m");}
if($('#txt_lname').attr("value")=='')
{message+="<li>Last name</li>";$("input#txt_lname").parent("div").removeClass("m").addClass("mErr");}
else{$("input#txt_lname").parent("div").removeClass("mErr").addClass("m");}
if($('#txt_phone').attr("value")=='')
{message+="<li>Phone number</li>";$("input#txt_phone").parent("div").removeClass("m").addClass("mErr");}
else{$("input#txt_phone").parent("div").removeClass("mErr").addClass("m");}
if($('#txt_zip').attr("value")=='')
{message+="<li>Postal/Zip code</li>";$("input#txt_zip").parent("div").removeClass("m").addClass("mErr");}
else{$("input#txt_zip").parent("div").removeClass("mErr").addClass("m");}
if(form=='datarecoveryfirm.co.uk'||form=='worldwidedatarecovery.co.uk')
if(!($('#txt_zip').attr("value").match(/^([A-PR-UWYZa-pr-uwyz]([0-9]{1,2}|([A-HK-Ya-hk-y][0-9]|[A-HK-Ya-hk-y][0-9]([0-9]|[ABEHMNPRV-Yabehmnprv-y]))|[0-9][A-HJKS-UWa-hjks-uw])\ {0,1}[0-9][ABD-HJLNP-UW-Zabd-hjlnp-uw-z]{2}|([Gg][Ii][Rr]\ 0[Aa][Aa])|([Ss][Aa][Nn]\ {0,1}[Tt][Aa]1)|([Bb][Ff][Pp][Oo]\ {0,1}([Cc]\/[Oo]\ )?[0-9]{1,4})|(([Aa][Ss][Cc][Nn]|[Bb][Bb][Nn][Dd]|[BFSbfs][Ii][Qq][Qq]|[Pp][Cc][Rr][Nn]|[Ss][Tt][Hh][Ll]|[Tt][Dd][Cc][Uu]|[Tt][Kk][Cc][Aa])\ {0,1}1[Zz][Zz]))$/)))
{message+="<li>VALID Postal/Zip code</li>";$("input#txt_zip").parent("div").removeClass("m").addClass("mErr");}
else{$("input#txt_zip").parent("div").removeClass("mErr").addClass("m");}
if($('#txt_email').attr("value")=='')
{message+="<li>E-mail address</li>";$("input#txt_email").parent("div").removeClass("m").addClass("mErr");}
else{$("input#txt_email").parent("div").removeClass("mErr").addClass("m");}
if((!validEmail)&&($("#txt_email").val()!=''))
{message+="<li>Valid e-mail address</li>";$("input#txt_email").parent("div").removeClass("m").addClass("mErr");}
else if($("#txt_email").val()!=''){$("input#txt_email").parent("div").removeClass("mErr").addClass("m");}
if(message=='')
{$(function(){$('#step1errorBox').fadeOut(400);$("#step1errorInterior").html("");});return true;}
else{$(function()
{$('#step1errorBox').fadeIn(1000);$("#step1errorInterior").html(message);});return false;}}
var j;function isset(varname){if(typeof(window[varname])!="undefined")return true;else return false;}
function isDefined(variable)
{return eval('(typeof('+variable+') != "undefined");');}
$(document).ready(function(){if($("#txt_zip").val()==""){pickupPopupStep2=true;}else{zip_c=$("#txt_zip").val();state_c=$("#txtProvince").val();province_c=$("#txtProvinceCa").val();country_c=$("#step0_txt_country").val();country_c=(country_c=='UNITED STATES')?'USA':country_c;switch(country_c){case'USA':checkDistance(country_c,'',zip_c);break;case'CANADA':checkDistance(country_c,'',zip_c);break;}}
$("#txtProvince").change(function(){$("#txt_zip").val();});$("#txtProvinceCa").change(function(){});$(".buyitnow").live("click",function(){currentStep='buy';if((form!="multidatarecovery.com")&&(form!="ohio.multidatarecovery.com")&&(form!="newyork.multidatarecovery.com")&&(form!="texas.multidatarecovery.com")&&(form!="illinois.multidatarecovery.com")&&(form!="chicagodatarecoverypro.com")&&(form!="newyorkdatarecoverypro.com")){$.blockUI({message:'<h1><img src="'+baseurl+'/templates/cdr/js/greybox/indicator.gif" /></h1>'});}
else{$.blockUI({message:'<h1><img src="'+baseurl+'/templates/smarttemplate/images/progress-Animation.gif" /></h1>'});}
rec_id=(!popupreq)?$(this).attr("id"):popupservid;quantity=(!popupreq)?parseInt($("tr#rcm-"+rec_id).find("select.quantity").find("option:selected").val()):1;if(popupdisks){quantity=parseInt($("tr#rcmd-"+rec_id).find("select.quantity").find("option:selected").val());}
if($("tr#trcrt-"+rec_id).find("#qty_cart").html()){productAction='update';$.post(baseurl+"/includes/modules/save.php",{checkForTaxes:"true",taxProdId:rec_id,form:form},function(data){prodTaxAmount=data.tax_amount;currency_symbol=unescape(data.currency_symbol);curr_qty=$("tr#trcrt-"+rec_id).find("td.pl_qty").html();curr_qty=parseInt(curr_qty);price=$("tr#rcm-"+rec_id).find("td.pl_price").html();if(popupdisks){price=$("tr#rcmd-"+rec_id).find("td.pl_price").html();}
price=price.substr(2);price=parseFloat(price.replace(/,/g,""));quantity=parseInt(quantity);curr_price=$("tr#trcrt-"+rec_id).find("#price_cart").html();curr_price=curr_price.substr(2);curr_price=parseFloat(curr_price);quantity=parseInt(quantity);total=(price*quantity)+curr_price;total=parseFloat(total);total=roundNumber(total,2);total=total.toFixed(2);for(i=0;i<count;i++){if(prices[i].id==rec_id){prices[i].price=parseFloat(total);prices[i].qty+=quantity;prices[i].tax=parseFloat(prices[i].tax)+(parseFloat(prodTaxAmount)*quantity);break;}}
updateTotal();totals=currency_symbol+" "+total;$("tr#trcrt-"+rec_id).find("td.pl_price").html(totals);$("tr#trcrt-"+rec_id).find("td.pl_qty").html(curr_qty+quantity);$("td#rfq_p_"+rec_id).html(totals);$("td#rfq_q_"+rec_id).html(curr_qty+quantity);decoGreyboxLinks();ajaxStopMethod();},"json");}
else{productAction='add';$.post(baseurl+"/includes/modules/save.php",{checkForTaxes:"true",popupreq:popupreq,taxProdId:rec_id,form:form},function(data){if($("#shipping_label").find(".auth_form_class").is(":hidden")){$("#shipping_label").find(".auth_form_class").show();}
if($("#shipping_label2").find(".auth_form_class").is(":hidden")){$("#shipping_label2").find(".auth_form_class").show();}
if($("#shipping_label3").find(".auth_form_class").is(":hidden")){$("#shipping_label3").find(".auth_form_class").show();}
if($("#shipping_label4").find(".auth_form_class").is(":hidden")){$("#shipping_label4").find(".auth_form_class").show();}
prodTaxAmount=data.tax_amount;currency_symbol=unescape(data.currency_symbol);if(!popupreq){name=$("tr#rcm-"+rec_id).find("td.pl_name").html();if(popupdisks){name=$("tr#rcmd-"+rec_id).find("td.pl_name").html();}
name_nohyp=$("tr#rcm-"+rec_id).find("td.pl_name strong a").html();if(popupdisks){name_nohyp=$("tr#rcmd-"+rec_id).find("td.pl_name strong a").html();}
image=$("tr#rcm-"+rec_id).find("td.pl_photo").html();if(popupdisks){image=$("tr#rcmd-"+rec_id).find("td.pl_photo").html();}
price=$("tr#rcm-"+rec_id).find("td.pl_price").html();if(popupdisks){price=$("tr#rcmd-"+rec_id).find("td.pl_price").html();}
price=price.substr(2);price=parseFloat(price.replace(/,/g,""));total=price*quantity;total=roundNumber(total,2);total=total.toFixed(2);}else{$("#serviceType").html(popupservname);$("#serviceType2").html(popupservname);name="<strong><a rel=\"gb_page_center[600, 550]\" href=\""+baseurl+"/index.php?option=com_vipstore&views=product_rfq&id="+popupservid+"&tmpl=component\" title=\""+popupservname+"\">"+popupservname+"</a></strong>";image="<img style=\"border: 0; padding:0; margin:0 0 0 5px;\" src=\""+rfqjoomlaurl+"image2.php?id="+popupservid+"&w=40\" />";name_nohyp=popupservname;price=parseFloat(popupservprice);total=price*quantity;total=roundNumber(total,2);total=total.toFixed(2);popupreq=false;}
if(popupdisks){$("#recommended-hard-drives").dialog('close');popupdisks=false;}
disks="<tr id=\"trcrt-"+rec_id+"\">";disks+="<td class=\"pl_photo\">"+image+"</td>";disks+="<td class=\"pl_name\">"+name+"</td>";disks+="<td id=\"qty_cart\" class=\"pl_qty\">"+quantity+"</td>";disks+="<td id=\"price_cart\" class=\"pl_price\">"+currency_symbol+" "+total+"</td>";disks+="<td class=\"delete_cart\"><div class=\"delete_icon ui-state-default ui-corner-all ui-widget ui-helper-clearfix\"><span class=\"deleteProduct ui-icon ui-icon-trash\" id=\""+rec_id+"\" title=\"Delete this product.\"></span></div></td>";disks+="</tr>";prodForAuthForm="<tr><td>"+name_nohyp+"</td><td id=\"rfq_q_"+rec_id+"\" class=\"auth_quantity\">"+quantity+"</td><td>&nbsp;x&nbsp;</td><td id=\"rfq_p_"+rec_id+"\">"+currency_symbol+" "+price+"</td></tr>";$("#shipping_label").find("tbody.purchased_serv_prod").append(prodForAuthForm);$("#shipping_label2").find("tbody.purchased_serv_prod").append(prodForAuthForm);$("#shipping_label3").find("tbody.purchased_serv_prod").append(prodForAuthForm);$("#shipping_label4").find("tbody.purchased_serv_prod").append(prodForAuthForm);$(disks).appendTo("table#rfq_cart");prices[count]=new Array();prices[count].id=rec_id;prices[count].price=total;prices[count].qty=quantity;prices[count].tax=prodTaxAmount*quantity;count++;updateTotal();decoGreyboxLinks();ajaxStopMethod();},"json");}});$("span.deleteProduct").live("click",function(){if(confirm('Do you really want to delete this product?')){id=$(this).attr("id");j=0;for(i=0;i<count;i++){if(prices[i].id==id){delete prices[i];}
else{newprices[j]=new Array();newprices[j].id=prices[i].id;newprices[j].price=prices[i].price;newprices[j].qty=prices[i].qty;newprices[j].tax=prices[i].tax;j++;}}
sum=0;count--;i=0;for(i=0;i<count;i++){sum+=parseFloat(newprices[i].price);}
sum=roundNumber(sum,2);sum=sum.toFixed(2);delete prices;prices=new Array();for(i=0;i<count;i++){prices[i]=new Array();prices[i].id=newprices[i].id;prices[i].price=newprices[i].price;prices[i].qty=newprices[i].qty;prices[i].tax=newprices[i].tax;}
updateTotal();$("td#rfq_p_"+id).parent("tr").remove();$(this).parent().parent().parent("tr").remove();return true;}
else{return false;}});$("#circumstances_info").tooltip({track:true,delay:0,showURL:false,showBody:" - ",extraClass:"pretty",fixPNG:true,opacity:0.95,left:-120});$("#recovery_attempts_info").tooltip({track:true,delay:0,showURL:false,showBody:" - ",extraClass:"pretty",fixPNG:true,opacity:0.95,left:-120});$("#specific_files_info").tooltip({track:true,delay:0,showURL:false,showBody:" - ",extraClass:"pretty",fixPNG:true,opacity:0.95,left:-120});$("#salesman_info").tooltip({track:true,delay:0,showURL:false,showBody:" - ",extraClass:"pretty",fixPNG:true,opacity:0.95,left:-120});$("select#ddlCountry").change(function(){switch($("select#ddlCountry").val()){case'USA':$("span#state_other").hide();$("span#state_usa").show();$("td#centerProvince > a").show();$("td#centerProvince").show();$("td#centerProvinceCa").hide();$("input#txtProvince2").hide();$("td#centerProvince2").hide();$("span#state_other2").hide();$("span#state_usa2").show();$("span#state_province").hide();$("span#state_province2").hide();$("input#ch_province2").hide();$("td#ch_centerProvince > a").show();$("td#ch_centerProvince").show();$("td#ch_centerProvince2").hide();$("td#ch_centerProvinceCa").hide();$("td#ch_centerProvinceCa > a").hide();break;case'CANADA':$("td#centerProvince2").hide();$("td#centerProvince").hide();$("td#centerProvinceCa").show();$("span#state_province").show();$("span#state_province2").show();$("span#state_other").hide();$("span#state_usa").hide();$("span#state_other2").hide();$("span#state_usa2").hide();if((browser!='IE6')||(form!="chicagodatarecoverypro.com")||(form!="newyorkdatarecoverypro.com")){$('select#txtProvinceCa').selectmenu({maxHeight:250,menuWidth:160,width:180});}
$("td#ch_centerProvince > a").hide();$("td#ch_centerProvince").hide();$("td#ch_centerProvince2").hide();$("td#ch_centerProvinceCa").show();$("td#ch_centerProvinceCa > a").show();break;default:$("td#centerProvince2").show();$("td#centerProvince").hide();$("td#centerProvinceCa").hide();$("span#state_other").show();$("span#state_usa").hide();$("span#state_province").hide();$("td#centerProvince > a").hide();$("input#txtProvince2").show();$("span#state_other2").show();$("span#state_usa2").hide();$("td#ch_centerProvince > a").hide();$("td#ch_centerProvince").hide();$("td#ch_centerProvince2").show();$("input#ch_province2").show();$("select#txt_province").hide();$("input#txt_province2").show();$("td#ch_centerProvinceCa").hide();$("td#ch_centerProvinceCa > a").hide();break;}});$("select#ch_country").change(function(){if($("select#ch_country").val()=='USA'){$("span#state_other2").hide();$("span#state_usa2").show();$("td#ch_centerProvince > a").show();$("td#ch_centerProvince").show();$("td#ch_centerProvince2").hide();$("input#ch_province2").hide();}
else{$("span#state_other2").show();$("span#state_usa2").hide();$("td#ch_centerProvince > a").hide();$("td#ch_centerProvince").hide();$("td#ch_centerProvince2").show();$("input#ch_province2").show();}
switch($("select#ch_country").val()){case'USA':$("span#state_other2").hide();$("span#state_usa2").show();$("span#state_province2").hide();$("td#ch_centerProvince > a").show();$("td#ch_centerProvince").show();$("td#ch_centerProvinceCa").hide();$("td#ch_centerProvince2").hide();$("input#ch_province2").hide();break;case'CANADA':$("span#state_other2").hide();$("span#state_usa2").hide();$("span#state_province2").show();$("td#ch_centerProvince > a").hide();$("td#ch_centerProvince").hide();$("td#ch_centerProvince2").hide();$("td#ch_centerProvinceCa").show();$("input#ch_province2").hide();break;default:$("span#state_other2").show();$("span#state_usa2").hide();$("span#state_province2").hide();$("td#ch_centerProvince > a").hide();$("td#ch_centerProvince").hide();$("td#ch_centerProvince2").show();$("td#ch_centerProvinceCa").hide();$("input#ch_province2").show();break;}});if((browser!='IE6')||(form!="chicagodatarecoverypro.com")||(form!="newyorkdatarecoverypro.com")){$('select#ddlMedia').selectmenu({maxHeight:250,width:300,menuWidth:270});$('select#ddlCountry').selectmenu({maxHeight:250,width:310,menuWidth:280});$('select#txtProvince').selectmenu({maxHeight:250,menuWidth:160,width:180});$('select#ddlOS').selectmenu({maxHeight:250,width:300,menuWidth:270});$("select#txtSize").selectOptions(nySize);$('select#txtSize').selectmenu({maxHeight:250,width:300,menuWidth:270});$('select#rbType').selectmenu({maxHeight:250});$('select#rbContact').selectmenu({maxHeight:250});}
$("#acc_salesp_choice").accordion({header:"h3"});$("#locationChoice").accordion({header:"h3"});$("#shipping_label_frame").accordion({header:"h4"});$("#rfq_cart_frame").accordion({header:"h4"});$("#step2frame").accordion({header:"h3",clearStyle:true,collapsible:false});txt_fname=$("#txt_fname").val();txt_lname=$("#txt_lname").val();if((txt_fname!='')&&(txt_lname!='')&&($("div#rfqNotepad1").hasClass("rfqNotepadBlank"))){$("div#rfqNotepad1").removeClass("rfqNotepadBlank").addClass("rfqNotepadChecked");}
else if(((txt_fname=='')||(txt_lname==''))&&($("div#rfqNotepad1").hasClass("rfqNotepadChecked"))){$("div#rfqNotepad1").removeClass("rfqNotepadChecked").addClass("rfqNotepadBlank");}
txt_phone=$("#txt_phone").val();txt_email=$("#txt_email").val();validEmail=isValidEmailAddress(txt_email);if((txt_phone!='')&&(txt_email!='')&&(validEmail)&&($("div#rfqNotepad2").hasClass("rfqNotepadBlank2"))){$("div#rfqNotepad2").removeClass("rfqNotepadBlank2").addClass("rfqNotepadChecked2");}
else if(((txt_phone=='')||(txt_email=='')||(!validEmail))&&($("div#rfqNotepad2").hasClass("rfqNotepadChecked2"))){$("div#rfqNotepad2").removeClass("rfqNotepadChecked2").addClass("rfqNotepadBlank2");}
$("#cbEmergency").checkbox();$("#txt_fname, #txt_lname").keyup(function(){txt_fname=$("#txt_fname").val();txt_lname=$("#txt_lname").val();if((txt_fname!='')&&(txt_lname!='')&&($("div#rfqNotepad1").hasClass("rfqNotepadBlank"))){$("div#rfqNotepad1").removeClass("rfqNotepadBlank").addClass("rfqNotepadChecked");}
else if(((txt_fname=='')||(txt_lname==''))&&($("div#rfqNotepad1").hasClass("rfqNotepadChecked"))){$("div#rfqNotepad1").removeClass("rfqNotepadChecked").addClass("rfqNotepadBlank");}});$("#txt_phone, #txt_email").keyup(function(){txt_phone=$("#txt_phone").val();txt_email=$("#txt_email").val();validEmail=isValidEmailAddress(txt_email);if((txt_phone!='')&&(txt_email!='')&&(validEmail)&&($("div#rfqNotepad2").hasClass("rfqNotepadBlank2"))){$("div#rfqNotepad2").removeClass("rfqNotepadBlank2").addClass("rfqNotepadChecked2");}
else if(((txt_phone=='')||(txt_email=='')||(!validEmail))&&($("div#rfqNotepad2").hasClass("rfqNotepadChecked2"))){$("div#rfqNotepad2").removeClass("rfqNotepadChecked2").addClass("rfqNotepadBlank2");}});$("div#step2frame div.ui-accordion-content").removeAttr("style");$("div#locationChoice div.ui-accordion-content").removeAttr("style");$("div#shipping_label_frame div.ui-accordion-content").removeAttr("style");$("div#rfq_cart_frame div.ui-accordion-content").removeAttr("style");$("input.rbServices").checkbox();$("a.google_maps_link").hover(function(){$(this).addClass("ui-state-hover");},function(){$(this).removeClass("ui-state-hover");});$("a#labelPrint1").hover(function(){$(this).addClass("ui-state-hover");},function(){$(this).removeClass("ui-state-hover");});$("a#labelPrint2").hover(function(){$(this).addClass("ui-state-hover");},function(){$(this).removeClass("ui-state-hover");});$("a#labelPrint3").hover(function(){$(this).addClass("ui-state-hover");},function(){$(this).removeClass("ui-state-hover");});$("a#labelPrint4").hover(function(){$(this).addClass("ui-state-hover");},function(){$(this).removeClass("ui-state-hover");});$("a.payNow1").hover(function(){$(this).addClass("ui-state-hover");},function(){$(this).removeClass("ui-state-hover");});$("a.payNow2").hover(function(){$(this).addClass("ui-state-hover");},function(){$(this).removeClass("ui-state-hover");});$("a.payNow3").hover(function(){$(this).addClass("ui-state-hover");},function(){$(this).removeClass("ui-state-hover");});$("a.payNow4").hover(function(){$(this).addClass("ui-state-hover");},function(){$(this).removeClass("ui-state-hover");});$("a#continueWoPay1").hover(function(){$(this).addClass("ui-state-hover");},function(){$(this).removeClass("ui-state-hover");});$("a#continueWoPay2").hover(function(){$(this).addClass("ui-state-hover");},function(){$(this).removeClass("ui-state-hover");});$("div.delete_icon").livequery(function(){$(this).hover(function(){$(this).addClass("ui-state-hover");},function(){$(this).removeClass("ui-state-hover");});});$("a#tryAgain").livequery(function(){$(this).hover(function(){$(this).addClass("ui-state-hover");},function(){$(this).removeClass("ui-state-hover");});});$("div.cart_icon").livequery(function(){$(this).hover(function(){$(this).addClass("ui-state-hover");},function(){$(this).removeClass("ui-state-hover");});});$("a#step1Butt").livequery(function(){$(this).hover(function(){$(this).addClass("ui-state-hover");},function(){$(this).removeClass("ui-state-hover");});});$("a#step1Skip").livequery(function(){$(this).hover(function(){$(this).addClass("ui-state-hover");},function(){$(this).removeClass("ui-state-hover");});});if((browser!='IE6')||(form!="chicagodatarecoverypro.com")||(form!="newyorkdatarecoverypro.com")){}
$("button.fg-button").livequery(function(){$(this).hover(function(){$(this).addClass("ui-state-hover");},function(){$(this).removeClass("ui-state-hover");});});$("div.help_icon").livequery(function(){$(this).hover(function(){$(this).addClass("ui-state-hover");},function(){$(this).removeClass("ui-state-hover");});});$("div.serviceBackDiv").livequery(function(){$(this).hover(function(){$(this).addClass("serviceHighlighted");},function(){$(this).removeClass("serviceHighlighted");});});$("div#recommended_why").livequery(function(){$(this).tooltip({track:true,delay:0,showURL:false,showBody:" - ",extraClass:"pretty",fixPNG:true,opacity:0.95,left:-120});});switch(form){case'worldwidedatarecovery.com':$("h3#rfq_rec_h3").hide();$("div#rfq_rec").hide();break;case'canadadatarecovery.ca':$("div#rfq_rec_canada").parent().parent().parent().hide();break;case'worldwidedatarecovery.co.uk':case'datarecoveryfirm.co.uk':case'micradatarecovery.com':$("div#rfq_rec_uk").parent().parent().parent().hide();break;case'filerecoveryflorida.com':case'prestigedigitalsolutions.com':$("div#rfq_rec_florida").parent().parent().parent().hide();break;case'filerecoveryillinois.com':$("div#rfq_rec_illinois").parent().hide();break;case'filerecoveryohio.com':$("div#rfq_rec_ohio").hide();break;case'diskdataretrieval.com':$("div#rfq_rec").parent().parent().hide();break;case'datarecoverycorp.com':case'raidrecoverycorp.com':case'datarecoverynewyork.com':case'datarecoveryohio.com':case'californiadatacorp.com':case'criticaldatarecovery.com':$("div#rfq_rec").parent().parent().hide();break;default:$("h3#rfq_rec_h3").hide();$("div#rfq_rec").hide();break;}
$("select#ch_cctype").change(function(){if((browser!='IE6')||(form!="chicagodatarecoverypro.com")||(form!="newyorkdatarecoverypro.com")){$("#ch_cctype").selectmenu('destroy');}
switch($("#ch_cctype").val()){case"American Express":$("div#cvv_explanation").removeClass().addClass("cvv_expl_american_express");break;case"Visa":$("div#cvv_explanation").removeClass().addClass("cvv_expl_mastercard");break;case"Discover":$("div#cvv_explanation").removeClass().addClass("cvv_expl_discover");break;case"MasterCard":$("div#cvv_explanation").removeClass().addClass("cvv_expl_mastercard");break;default:$("div#cvv_explanation").removeClass().addClass("cvv_expl_mastercard");break;}
if((browser!='IE6')||(form!="chicagodatarecoverypro.com")||(form!="newyorkdatarecoverypro.com")){$('select#ch_cctype').livequery(function(){$(this).selectmenu({maxHeight:250,width:200});});}});if(step2direct){$("select#locations").change();saddr=txt_address+", "+txt_city+", "+txtProvince+" "+txt_zip+" "+ddlCountry;saddr=escape(saddr);$("a.google_maps_link").each(function(intIndex){link=$(this).attr('href');link=link.replace(/\#customer_address/,saddr);$(this).attr('href',link);});}
if(step2direct){$("#step1").show();switch(direct_ship_country){case'USA':$("td#centerProvince2").hide();$("td#centerProvince").show();$("span#state_usa").show();$("span#state_usa2").show();$("span#state_other").hide();$("span#state_other2").hide();if((browser!='IE6')||(form!="chicagodatarecoverypro.com")||(form!="newyorkdatarecoverypro.com")){$("a[id^=txtProvince_button]").show();$("a[id^=txtProvince_button]").find("span.ui-selectmenu-status").html("<?php echo $ip_data['region_name']; ?>");$("ul[id^=txtProvince_menu]").find("li[class*='ui-selectmenu-item-selected ui-state-active']").find("a").attr("aria-selected","false");$("ul[id^=txtProvince_menu]").find("li[class*='ui-selectmenu-item-selected ui-state-active']").removeClass("ui-selectmenu-item-selected").removeClass("ui-state-active");$("ul[id^=txtProvince_menu]").find("li").find("a:contains('<?php echo $ip_data['region_name']; ?>')").attr("aria-selected","true");$("ul[id^=txtProvince_menu]").find("li").find("a:contains('<?php echo $ip_data['region_name']; ?>')").parent().addClass("ui-selectmenu-item-selected").addClass("ui-state-active");$("input#txtProvince2").hide();$("input#txt_province2").hide();$("#txtProvince").selectmenu('destroy');}
$("select#txtProvince option[label='<?php echo $ip_data['region_name']; ?>']").attr("selected","selected");$("select#ch_province option[label='<?php echo $ip_data['region_name']; ?>']").attr("selected","selected");$('select#txtProvince').selectmenu({maxHeight:250,menuWidth:160,width:180});$("td#ch_centerProvince").show();$("td#ch_centerProvince2").hide();break;case'UNITED KINGDOM':$("td#centerProvince2").show();$("td#centerProvince").hide();$("span#state_usa").hide();$("span#state_usa2").hide();$("span#state_other").show();$("span#state_other2").show();if((browser!='IE6')||(form!="chicagodatarecoverypro.com")||(form!="newyorkdatarecoverypro.com")){$("a[id^=txtProvince_button]").hide();}
$("select#ch_province").hide();$("input#txtProvince2").show();$("td#ch_centerProvince").hide();$("td#ch_centerProvince2").show();break;case'CANADA':$("td#centerProvince2").hide();$("td#centerProvince").hide();$("td#centerProvinceCa").show();$("span#state_usa").hide();$("span#state_usa2").hide();$("span#state_other").hide();$("span#state_other2").hide();$("span#state_province").show();$("span#state_province2").show();$("a[id^=txtProvince_button]").hide();$("td#ch_centerProvince").hide();$("td#ch_centerProvince2").hide();$("td#ch_centerProvinceCa").show();break;default:$("td#centerProvince2").show();$("td#centerProvince").hide();$("span#state_other").show();$("span#state_other2").show();$("span#state_usa").hide();$("span#state_usa2").hide();$("input#txtProvince2").show();$("input#ch_province2").show();$("select#txtProvince").hide();$("select#ch_province").hide();$('select#txtProvince').selectmenu({maxHeight:250,menuWidth:160,width:180});$("td#ch_centerProvince").hide();$("td#ch_centerProvince2").show();break;}
if((browser!='IE6')||(form!="chicagodatarecoverypro.com")||(form!="newyorkedatarecoverypro.com")){$('select#txtSize').selectmenu('destroy');}
if(nySize!=''){$("select#txtSize").selectOptions(nySize);}else{$("select#txtSize").selectOptions(direct_media_capacity);}
if((browser!='IE6')||(form!="chicagodatarecoverypro.com")||(form!="newyorkdatarecoverypro.com")){$('select#txtSize').selectmenu({maxHeight:250,width:300,menuWidth:270});}
$("#step1").hide();}
if((form=="multidatarecovery.com")||(form=="ohio.multidatarecovery.com")||(form=="newyork.multidatarecovery.com")||(form=="texas.multidatarecovery.com")||(form=="illinois.multidatarecovery.com")||(form=="chicagodatarecoverypro.com")||(form=="newyorkdatarecoverypro.com")||(form=="datarecoverycorp.com")||(form=="raidrecoverycorp.com")||(form=="datarecoverynewyork.com")||(form=="datarecoveryohio.com")||(form=="californiadatacorp.com")||(form=="criticaldatarecovery.com")){$("#step1").accordion({header:"h3"});$("#step2").accordion({header:"h3",collapsible:false});$("#step3").accordion({header:"h3"});$("#step4").accordion({header:"h3"});$("#step5").accordion({header:"h3"});$("#stepProcessed").accordion({header:"h3"});if((form!="chicagodatarecoverypro.com")&&(form!="newyorkdatarecoverypro.com")){$("#quoteFormMini").parent("div.moduletable").addClass("ui-state-highlight ui-corner-all");}else{$("#quoteFormMini").parent("div.moduletable").addClass("ui-corner-all");}
$("#quoteFormMini").parent("div.moduletable").children("h3").css("color","#272794");}
switch(form){case"prestigedigitalsolutions.com":case"filerecoveryflorida.com":$("#s5_main_r").css("width","300px");break;}});;var tb_pathToImage="images/loadingAnimation.gif";
/*!!!!!!!!!!!!!!!! edit below this line at your own risk !!!!!!!!!!!!!!!!!!!!!!!*/
$(document).ready(function(){tb_init('a.thickbox, area.thickbox, input.thickbox');imgLoader=new Image();imgLoader.src=tb_pathToImage;});function tb_init(domChunk){$(domChunk).click(function(){var t=this.title||this.name||null;var a=this.href||this.alt;var g=this.rel||false;tb_show(t,a,g);this.blur();return false;});}
function tb_show(caption,url,imageGroup){try{if(typeof document.body.style.maxHeight==="undefined"){$("body","html").css({height:"100%",width:"100%"});$("html").css("overflow","hidden");if(document.getElementById("TB_HideSelect")===null){$("body").append("<iframe id='TB_HideSelect'></iframe><div id='TB_overlay'></div><div id='TB_window'></div>");$("#TB_overlay").click(tb_remove);}}else{if(document.getElementById("TB_overlay")===null){$("body").append("<div id='TB_overlay'></div><div id='TB_window'></div>");$("#TB_overlay").click(tb_remove);}}
if(tb_detectMacXFF()){$("#TB_overlay").addClass("TB_overlayMacFFBGHack");}else{$("#TB_overlay").addClass("TB_overlayBG");}
if(caption===null){caption="";}
$("body").append("<div id='TB_load'><img src='"+imgLoader.src+"' /></div>");$('#TB_load').show();var baseURL;if(url.indexOf("?")!==-1){baseURL=url.substr(0,url.indexOf("?"));}else{baseURL=url;}
var urlString=/\.jpg$|\.jpeg$|\.png$|\.gif$|\.bmp$|image2.php$/;var urlType=baseURL.toLowerCase().match(urlString);if(urlType=='.jpg'||urlType=='image2.php'||urlType=='.jpeg'||urlType=='.png'||urlType=='.gif'||urlType=='.bmp'){TB_PrevCaption="";TB_PrevURL="";TB_PrevHTML="";TB_NextCaption="";TB_NextURL="";TB_NextHTML="";TB_imageCount="";TB_FoundURL=false;if(imageGroup){TB_TempArray=$("a[@rel="+imageGroup+"]").get();for(TB_Counter=0;((TB_Counter<TB_TempArray.length)&&(TB_NextHTML===""));TB_Counter++){var urlTypeTemp=TB_TempArray[TB_Counter].href.toLowerCase().match(urlString);if(!(TB_TempArray[TB_Counter].href==url)){if(TB_FoundURL){TB_NextCaption=TB_TempArray[TB_Counter].title;TB_NextURL=TB_TempArray[TB_Counter].href;TB_NextHTML="<span id='TB_next'>&nbsp;&nbsp;<a href='#'>Next &gt;</a></span>";}else{TB_PrevCaption=TB_TempArray[TB_Counter].title;TB_PrevURL=TB_TempArray[TB_Counter].href;TB_PrevHTML="<span id='TB_prev'>&nbsp;&nbsp;<a href='#'>&lt; Prev</a></span>";}}else{TB_FoundURL=true;TB_imageCount="Image "+(TB_Counter+1)+" of "+(TB_TempArray.length);}}}
imgPreloader=new Image();imgPreloader.onload=function(){imgPreloader.onload=null;var pagesize=tb_getPageSize();var x=pagesize[0]-150;var y=pagesize[1]-150;var imageWidth=imgPreloader.width;var imageHeight=imgPreloader.height;TB_WIDTH=imageWidth+30;TB_HEIGHT=imageHeight+60;$("#TB_window").append("<a href='' id='TB_ImageOff' title='Close'><img id='TB_Image' src='"+url+"' width='"+imageWidth+"' height='"+imageHeight+"' alt='"+caption+"'/></a>"+"<div id='TB_caption'>"+caption+"<div id='TB_secondLine'>"+TB_imageCount+TB_PrevHTML+TB_NextHTML+"</div></div><div id='TB_closeWindow'><a href='#' id='TB_closeWindowButton' title='Close'>close</a> or Esc Key</div>");$("#TB_closeWindowButton").click(tb_remove);if(!(TB_PrevHTML==="")){function goPrev(){if($(document).unbind("click",goPrev)){$(document).unbind("click",goPrev);}
$("#TB_window").remove();$("body").append("<div id='TB_window'></div>");tb_show(TB_PrevCaption,TB_PrevURL,imageGroup);return false;}
$("#TB_prev").click(goPrev);}
if(!(TB_NextHTML==="")){function goNext(){$("#TB_window").remove();$("body").append("<div id='TB_window'></div>");tb_show(TB_NextCaption,TB_NextURL,imageGroup);return false;}
$("#TB_next").click(goNext);}
document.onkeydown=function(e){if(e==null){keycode=event.keyCode;}else{keycode=e.which;}
if(keycode==27){tb_remove();}else if(keycode==190){if(!(TB_NextHTML=="")){document.onkeydown="";goNext();}}else if(keycode==188){if(!(TB_PrevHTML=="")){document.onkeydown="";goPrev();}}};tb_position();$("#TB_load").remove();$("#TB_ImageOff").click(tb_remove);$("#TB_window").css({display:"block"});};imgPreloader.src=url;}else{var queryString=url.replace(/^[^\?]+\??/,'');var params=tb_parseQuery(queryString);TB_WIDTH=(params['width']*1)+30||630;TB_HEIGHT=(params['height']*1)+40||440;ajaxContentW=TB_WIDTH-30;ajaxContentH=TB_HEIGHT-45;if(url.indexOf('TB_iframe')!=-1){urlNoQuery=url.split('TB_');$("#TB_iframeContent").remove();if(params['modal']!="true"){$("#TB_window").append("<div id='TB_title'><div id='TB_ajaxWindowTitle'>"+caption+"</div><div id='TB_closeAjaxWindow'><a href='#' id='TB_closeWindowButton' title='Close'>close</a> or Esc Key</div></div><iframe frameborder='0' hspace='0' src='"+urlNoQuery[0]+"' id='TB_iframeContent' name='TB_iframeContent"+Math.round(Math.random()*1000)+"' onload='tb_showIframe()' style='width:"+(ajaxContentW+29)+"px;height:"+(ajaxContentH+17)+"px;' > </iframe>");}else{$("#TB_overlay").unbind();$("#TB_window").append("<iframe frameborder='0' hspace='0' src='"+urlNoQuery[0]+"' id='TB_iframeContent' name='TB_iframeContent"+Math.round(Math.random()*1000)+"' onload='tb_showIframe()' style='width:"+(ajaxContentW+29)+"px;height:"+(ajaxContentH+17)+"px;'> </iframe>");}}else{if($("#TB_window").css("display")!="block"){if(params['modal']!="true"){$("#TB_window").append("<div id='TB_title'><div id='TB_ajaxWindowTitle'>"+caption+"</div><div id='TB_closeAjaxWindow'><a href='#' id='TB_closeWindowButton'>close</a> or Esc Key</div></div><div id='TB_ajaxContent' style='width:"+ajaxContentW+"px;height:"+ajaxContentH+"px'></div>");}else{$("#TB_overlay").unbind();$("#TB_window").append("<div id='TB_ajaxContent' class='TB_modal' style='width:"+ajaxContentW+"px;height:"+ajaxContentH+"px;'></div>");}}else{$("#TB_ajaxContent")[0].style.width=ajaxContentW+"px";$("#TB_ajaxContent")[0].style.height=ajaxContentH+"px";$("#TB_ajaxContent")[0].scrollTop=0;$("#TB_ajaxWindowTitle").html(caption);}}
$("#TB_closeWindowButton").click(tb_remove);if(url.indexOf('TB_inline')!=-1){$("#TB_ajaxContent").append($('#'+params['inlineId']).children());$("#TB_window").unload(function(){$('#'+params['inlineId']).append($("#TB_ajaxContent").children());});tb_position();$("#TB_load").remove();$("#TB_window").css({display:"block"});}else if(url.indexOf('TB_iframe')!=-1){tb_position();if($.browser.safari){$("#TB_load").remove();$("#TB_window").css({display:"block"});}}else{$("#TB_ajaxContent").load(url+="&random="+(new Date().getTime()),function(){tb_position();$("#TB_load").remove();tb_init("#TB_ajaxContent a.thickbox");$("#TB_window").css({display:"block"});});}}
if(!params['modal']){document.onkeyup=function(e){if(e==null){keycode=event.keyCode;}else{keycode=e.which;}
if(keycode==27){tb_remove();}};}}catch(e){}}
function tb_showIframe(){$("#TB_load").remove();$("#TB_window").css({display:"block"});}
function tb_remove(){$("#TB_imageOff").unbind("click");$("#TB_closeWindowButton").unbind("click");$("#TB_window").fadeOut("fast",function(){$('#TB_window,#TB_overlay,#TB_HideSelect').trigger("unload").unbind().remove();});$("#TB_load").remove();if(typeof document.body.style.maxHeight=="undefined"){$("body","html").css({height:"auto",width:"auto"});$("html").css("overflow","");}
document.onkeydown="";document.onkeyup="";return false;}
function tb_position(){$("#TB_window").css({marginLeft:'-'+parseInt((TB_WIDTH/2),10)+'px',width:TB_WIDTH+'px'});if(!(jQuery.browser.msie&&jQuery.browser.version<7)){$("#TB_window").css({marginTop:'-'+parseInt((TB_HEIGHT/2),10)+'px'});}}
function tb_parseQuery(query){var Params={};if(!query){return Params;}
var Pairs=query.split(/[;&]/);for(var i=0;i<Pairs.length;i++){var KeyVal=Pairs[i].split('=');if(!KeyVal||KeyVal.length!=2){continue;}
var key=unescape(KeyVal[0]);var val=unescape(KeyVal[1]);val=val.replace(/\+/g,' ');Params[key]=val;}
return Params;}
function tb_getPageSize(){var de=document.documentElement;var w=window.innerWidth||self.innerWidth||(de&&de.clientWidth)||document.body.clientWidth;var h=window.innerHeight||self.innerHeight||(de&&de.clientHeight)||document.body.clientHeight;arrayPageSize=[w,h];return arrayPageSize;}
function tb_detectMacXFF(){var userAgent=navigator.userAgent.toLowerCase();if(userAgent.indexOf('mac')!=-1&&userAgent.indexOf('firefox')!=-1){return true;}}
