$(function () {
	if ($("#form_results").length == 0) {
		$('<div id="form_results"></div>').prependTo('body');
	}
	$('.GetAQuoteMarketing').each(function () {
		$(this).hover(function () {
			$(this).css({ 'z-index': '500' });
			var $parent = $(this).parent();
			var $position = $(this).position();
			var $theClone = $(this).clone();
			$theClone.prependTo($parent)
				.css({
					'display': 'none',
					'position': 'absolute',
					'top': $position.top,
					'left': $position.left
				})
				.attr({ 'id': 'theclone' })
				.fadeIn('slow', function () {
					$(this).hide();
				});
		}, function () {
			$(this).fadeIn();
			$('#theClone').remove();
		});
	});
	if ((navigator.userAgent.match(/iPhone/i)) || (navigator.userAgent.match(/iPod/i))) {

	} else {
		$('a[href^="tel:"]').removeAttr('href');
	}
});


/* Functions required by the click/drag captch */
(function ($) {

	$.fn.shuffle = function () {
		return this.each(function () {
			var items = $(this).children();

			return (items.length)
                    ? $(this).html($.shuffle(items, $(this)))
                : this;
		});
	}

	$.fn.validateCaptcha = function () {
		var res = false;
		this.each(function () {
			var arr = $(this).children();
			res = ((arr[0].innerHTML == "1") &&
                    (arr[1].innerHTML == "2") &&
                    (arr[2].innerHTML == "3") &&
                    (arr[3].innerHTML == "4"));
					//&&
                    //(arr[4].innerHTML == "5") &&
                    //(arr[5].innerHTML == "6"));
		});
		return res;
	}

	$.shuffle = function (arr, obj) {
		for (
            var j, x, i = arr.length; i;
            j = parseInt(Math.random() * i),
            x = arr[--i], arr[i] = arr[j], arr[j] = x
        );
		if (arr[0].innerHTML == "1") obj.html($.shuffle(arr, obj))
		else return arr;
	}

})(jQuery);



/* The following are either minified or packed plugins */

/*!
 * jQuery Form Plugin
 * version: 2.65 (09-MAR-2011)
 * @requires jQuery v1.3.2 or later
 *
 * Examples and documentation at: http://malsup.com/jquery/form/
 * Dual licensed under the MIT and GPL licenses:
 *   http://www.opensource.org/licenses/mit-license.php
 *   http://www.gnu.org/licenses/gpl.html
 */
eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}(';(7($){$.w.U=7(6){2(!5.E){C(\'U: 3B A 3y - 3C 3D 1x\');8 5}2(Q 6==\'7\'){6={O:6}}3 V=5.18(\'V\');3 H=(Q V===\'3j\')?$.3I(V):\'\';2(H){H=(H.3H(/^([^#]+)/)||[])[1]}H=H||J.1O.2k||\'\';6=$.2L(S,{H:H,m:5[0].2u(\'2r\')||\'3c\',1B:/^3G/i.2Q(J.1O.2k||\'\')?\'3l:I\':\'3E:3F\'},6);3 14={};5.K(\'4-1e-38\',[5,6,14]);2(14.14){C(\'U: A 37 1A 4-1e-38 K\');8 5}2(6.2c&&6.2c(5,6)===I){C(\'U: A 19 1A 2c 26\');8 5}3 n,v,a=5.2j(6.1c);2(6.d){6.P=6.d;N(n 28 6.d){2(6.d[n]3o 1m){N(3 k 28 6.d[n]){a.z({l:n,p:6.d[n][k]})}}r{v=6.d[n];v=$.3p(v)?v():v;a.z({l:n,p:v})}}}2(6.2l&&6.2l(a,5,6)===I){C(\'U: A 19 1A 2l 26\');8 5}5.K(\'4-A-3b\',[a,5,6,14]);2(14.14){C(\'U: A 37 1A 4-A-3b K\');8 5}3 q=$.2i(a);2(6.m.3J()==\'3c\'){6.H+=(6.H.1G(\'?\')>=0?\'&\':\'?\')+q;6.d=B}r{6.d=q}3 $4=5,13=[];2(6.2v){13.z(7(){$4.2v()})}2(6.1Y){13.z(7(){$4.1Y()})}2(!6.1d&&6.D){3 2W=6.O||7(){};13.z(7(d){3 w=6.45?\'3K\':\'3W\';$(6.D)[w](d).15(2W,2H)})}r 2(6.O){13.z(6.O)}6.O=7(d,24,9){3 M=6.M||6;N(3 i=0,L=13.E;i<L;i++){13[i].41(M,[d,24,9||$4,$4])}};3 32=$(\'G:44\',5).E>0;3 1R=\'1y/4-d\';3 1y=($4.18(\'2D\')==1R||$4.18(\'2K\')==1R);2(6.2w!==I&&(32||6.2w||1y)){2(6.3f){$.3N(6.3f,25)}r{25()}}r{$.3L(6)}5.K(\'4-A-3S\',[5,6]);8 5;7 25(){3 4=$4[0];2($(\':G[l=A],:G[X=A]\',4).E){3Z(\'3M: 3V 2f 3Y 1H 3s l 3x X 43 "A".\');8}3 s=$.2L(S,{},$.3w,6);s.M=s.M||s;3 X=\'3v\'+(2m 3q().3t()),w=\'3r\'+X;3 $u=$(\'<2w X="\'+X+\'" l="\'+X+\'" 2O="\'+s.1B+\'" />\');3 u=$u[0];$u.3X({40:\'42\',2Z:\'-2U\',2Y:\'-2U\'});3 9={19:0,Y:B,1j:B,24:0,3R:\'n/a\',3T:7(){},2n:7(){},3Q:7(){},3P:7(){5.19=1;$u.18(\'2O\',s.1B)}};3 g=s.2S;2(g&&!$.23++){$.1i.K("3O")}2(g){$.1i.K("3U",[9,s])}2(s.2N&&s.2N.1r(s.M,9,s)===I){2(s.2S){$.23--}8}2(9.19){8}3 2x=0;3 1h=4.T;2(1h){3 n=1h.l;2(n&&!1h.1s){s.P=s.P||{};s.P[n]=1h.p;2(1h.m=="1g"){s.P[n+\'.x\']=4.1a;s.P[n+\'.y\']=4.1b}}}7 2s(){3 t=$4.18(\'D\'),a=$4.18(\'V\');4.1w(\'D\',X);2(4.2u(\'2r\')!=\'2G\'){4.1w(\'2r\',\'2G\')}2(4.2u(\'V\')!=s.H){4.1w(\'V\',s.H)}2(!s.3u){$4.18({2K:\'1y/4-d\',2D:\'1y/4-d\'})}2(s.2t){1n(7(){2x=S;17()},s.2t)}3 2a=[];2F{2(s.P){N(3 n 28 s.P){2a.z($(\'<G m="3z" l="\'+n+\'" p="\'+s.P[n]+\'" />\').3k(4)[0])}}$u.3k(\'1f\');u.2C?u.2C(\'1X\',17):u.4j(\'2E\',17,I);4.A()}4N{4.1w(\'V\',a);2(t){4.1w(\'D\',t)}r{$4.4O(\'D\')}$(2a).2B()}}2(s.4P){2s()}r{1n(2s,10)}3 d,f,2M=50;7 17(){f=u.2e?u.2e:u.2J?u.2J.2e:u.4R;2(!f||f.1O.2k==s.1B){8}u.2I?u.2I(\'1X\',17):u.4Q(\'2E\',17,I);3 1p=S;2F{2(2x){4L\'2t\'}3 1J=s.1d==\'Z\'||f.1W||$.4K(f);C(\'1J=\'+1J);2(!1J&&J.1I&&(f.1f==B||f.1f.1C==\'\')){2(--2M){C(\'4F 4E 26, 1N 1H 4T\');1n(17,4G);8}}9.Y=f.1f?f.1f.1C:f.1v?f.1v.1C:B;9.1j=f.1W?f.1W:f;9.2n=7(2R){3 2T={\'3n-m\':s.1d};8 2T[2R]};3 1Q=/(29|3i)/.2Q(s.1d);2(1Q||s.1K){3 1P=f.1E(\'1K\')[0];2(1P){9.Y=1P.p}r 2(1Q){3 1e=f.1E(\'1e\')[0];3 b=f.1E(\'1f\')[0];2(1e){9.Y=1e.4I}r 2(b){9.Y=b.1C}}}r 2(s.1d==\'Z\'&&!9.1j&&9.Y!=B){9.1j=2z(9.Y)}d=3m(9,s.1d,s)}4S(e){C(\'11 4Y:\',e);1p=I;9.11=e;s.11&&s.11.1r(s.M,9,\'11\',e);g&&$.1i.K("46",[9,s,e])}2(9.19){C(\'51 19\');1p=I}2(1p){s.O&&s.O.1r(s.M,d,\'O\',9);g&&$.1i.K("52",[9,s])}g&&$.1i.K("4W",[9,s]);2(g&&!--$.23){$.1i.K("4Z")}s.2y&&s.2y.1r(s.M,9,1p?\'O\':\'11\');1n(7(){$u.4V(\'4-1q-1X\');$u.2B();9.1j=B},3d)}3 2z=$.4X||7(s,f){2(J.2A){f=2m 2A(\'53.4D\');f.4B=\'I\';f.4g(s)}r{f=(2m 4f()).4h(s,\'1Z/Z\')}8(f&&f.1v&&f.1v.3h!=\'1S\')?f:B};3 22=$.22||7(s){8 J[\'4k\'](\'(\'+s+\')\')};3 3m=7(9,m,s){3 1z=9.2n(\'3n-m\')||\'\',Z=m===\'Z\'||!m&&1z.1G(\'Z\')>=0,d=Z?9.1j:9.Y;2(Z&&d.1v.3h===\'1S\'){$.11&&$.11(\'1S\')}2(s&&s.2V){d=s.2V(d,m)}2(Q d===\'3j\'){2(m===\'29\'||!m&&1z.1G(\'29\')>=0){d=22(d)}r 2(m==="3i"||!m&&1z.1G("3l")>=0){$.4e(d)}}8 d}}};$.w.27=7(6){2(5.E===0){3 o={s:5.33,c:5.M};2(!$.34&&o.s){C(\'1N 1H 3g, 4d 27\');$(7(){$(o.s,o.c).27(6)});8 5}C(\'48; 47 2f 49 4a 33\'+($.34?\'\':\' (1N 1H 3g)\'));8 5}8 5.3e().31(\'A.4-1q\',7(e){2(!e.4c()){e.4b();$(5).U(6)}}).31(\'3a.4-1q\',7(e){3 D=e.D;3 $h=$(D);2(!($h.4l(":A,G:1g"))){3 t=$h.4m(\':A\');2(t.E==0){8}D=t[0]}3 4=5;4.T=D;2(D.m==\'1g\'){2(e.2X!=16){4.1a=e.2X;4.1b=e.4w}r 2(Q $.w.1o==\'7\'){3 1o=$h.1o();4.1a=e.35-1o.2Y;4.1b=e.36-1o.2Z}r{4.1a=e.35-D.4v;4.1b=e.36-D.4x}}1n(7(){4.T=4.1a=4.1b=B},3d)})};$.w.3e=7(){8 5.4y(\'A.4-1q 3a.4-1q\')};$.w.2j=7(1c){3 a=[];2(5.E===0){8 a}3 4=5[0];3 1D=1c?4.1E(\'*\'):4.2f;2(!1D){8 a}3 i,j,n,v,h,L,2d;N(i=0,L=1D.E;i<L;i++){h=1D[i];n=h.l;2(!n){2g}2(1c&&4.T&&h.m=="1g"){2(!h.1s&&4.T==h){a.z({l:n,p:$(h).12()});a.z({l:n+\'.x\',p:4.1a},{l:n+\'.y\',p:4.1b})}2g}v=$.1t(h,S);2(v&&v.1L==1m){N(j=0,2d=v.E;j<2d;j++){a.z({l:n,p:v[j]})}}r 2(v!==B&&Q v!=\'16\'){a.z({l:n,p:v})}}2(!1c&&4.T){3 $G=$(4.T),G=$G[0];n=G.l;2(n&&!G.1s&&G.m==\'1g\'){a.z({l:n,p:$G.12()});a.z({l:n+\'.x\',p:4.1a},{l:n+\'.y\',p:4.1b})}}8 a};$.w.4z=7(1c){8 $.2i(5.2j(1c))};$.w.4u=7(R){3 a=[];5.15(7(){3 n=5.l;2(!n){8}3 v=$.1t(5,R);2(v&&v.1L==1m){N(3 i=0,L=v.E;i<L;i++){a.z({l:n,p:v[i]})}}r 2(v!==B&&Q v!=\'16\'){a.z({l:5.l,p:v})}});8 $.2i(a)};$.w.1t=7(R){N(3 12=[],i=0,L=5.E;i<L;i++){3 h=5[i];3 v=$.1t(h,R);2(v===B||Q v==\'16\'||(v.1L==1m&&!v.E)){2g}v.1L==1m?$.4t(12,v):12.z(v)}8 12};$.1t=7(h,R){3 n=h.l,t=h.m,1k=h.2o.2p();2(R===16){R=S}2(R&&(!n||h.1s||t==\'1u\'||t==\'4p\'||(t==\'21\'||t==\'1T\')&&!h.2q||(t==\'A\'||t==\'1g\')&&h.4&&h.4.T!=h||1k==\'F\'&&h.1U==-1)){8 B}2(1k==\'F\'){3 1M=h.1U;2(1M<0){8 B}3 a=[],20=h.6;3 1l=(t==\'F-1l\');3 L=(1l?1M+1:20.E);N(3 i=(1l?1M:0);i<L;i++){3 W=20[i];2(W.1x){3 v=W.p;2(!v){v=(W.1V&&W.1V[\'p\']&&!(W.1V[\'p\'].4r))?W.1Z:W.p}2(1l){8 v}a.z(v)}}8 a}8 $(h).12()};$.w.1Y=7(){8 5.15(7(){$(\'G,F,1K\',5).39()})};$.w.39=$.w.4s=7(){8 5.15(7(){3 t=5.m,1k=5.2o.2p();2(t==\'1Z\'||t==\'4q\'||1k==\'1K\'){5.p=\'\'}r 2(t==\'21\'||t==\'1T\'){5.2q=I}r 2(1k==\'F\'){5.1U=-1}})};$.w.2v=7(){8 5.15(7(){2(Q 5.1u==\'7\'||(Q 5.1u==\'4n\'&&!5.1u.4o)){5.1u()}})};$.w.4A=7(b){2(b===16){b=S}8 5.15(7(){5.1s=!b})};$.w.1x=7(F){2(F===16){F=S}8 5.15(7(){3 t=5.m;2(t==\'21\'||t==\'1T\'){5.2q=F}r 2(5.2o.2p()==\'2P\'){3 $1F=$(5).4i(\'F\');2(F&&$1F[0]&&$1F[0].m==\'F-1l\'){$1F.4U(\'2P\').1x(I)}5.1x=F}})};7 C(){2($.w.U.4J){3 2h=\'[4H.4] \'+1m.4M.3A.1r(2H,\'\');2(J.2b&&J.2b.C){J.2b.C(2h)}r 2(J.1I&&J.1I.30){J.1I.30(2h)}}}})(4C);',62,314,'||if|var|form|this|options|function|return|xhr||||data||doc||el||||name|type|||value||else|||io||fn|||push|submit|null|log|target|length|select|input|url|false|window|trigger|max|context|for|success|extraData|typeof|successful|true|clk|ajaxSubmit|action|op|id|responseText|xml||error|val|callbacks|veto|each|undefined|cb|attr|aborted|clk_x|clk_y|semantic|dataType|pre|body|image|sub|event|responseXML|tag|one|Array|setTimeout|offset|ok|plugin|call|disabled|fieldValue|reset|documentElement|setAttribute|selected|multipart|ct|via|iframeSrc|innerHTML|els|getElementsByTagName|sel|indexOf|not|opera|isXml|textarea|constructor|index|DOM|location|ta|scr|mp|parsererror|radio|selectedIndex|attributes|XMLDocument|onload|clearForm|text|ops|checkbox|parseJSON|active|status|fileUpload|callback|ajaxForm|in|json|extraInputs|console|beforeSerialize|jmax|document|elements|continue|msg|param|formToArray|href|beforeSubmit|new|getResponseHeader|tagName|toLowerCase|checked|method|doSubmit|timeout|getAttribute|resetForm|iframe|timedOut|complete|toXml|ActiveXObject|remove|attachEvent|enctype|load|try|POST|arguments|detachEvent|contentWindow|encoding|extend|domCheckCount|beforeSend|src|option|test|header|global|headers|1000px|dataFilter|oldSuccess|offsetX|left|top|postError|bind|fileInputs|selector|isReady|pageX|pageY|vetoed|serialize|clearFields|click|validate|GET|100|ajaxFormUnbind|closeKeepAlive|ready|nodeName|script|string|appendTo|javascript|httpData|content|instanceof|isFunction|Date|_|have|getTime|skipEncodingOverride|jqFormIO|ajaxSettings|or|process|hidden|join|skipping|no|element|about|blank|https|match|trim|toUpperCase|replaceWith|ajax|Error|get|ajaxStart|abort|setRequestHeader|statusText|notify|getAllResponseHeaders|ajaxSend|Form|html|css|must|alert|position|apply|absolute|of|file|replaceTarget|ajaxError|zero|terminating|found|by|preventDefault|isDefaultPrevented|queuing|globalEval|DOMParser|loadXML|parseFromString|parent|addEventListener|eval|is|closest|object|nodeType|button|password|specified|clearInputs|merge|fieldSerialize|offsetLeft|offsetY|offsetTop|unbind|formSerialize|enable|async|jQuery|XMLDOM|onLoad|requeing|250|jquery|textContent|debug|isXMLDoc|throw|prototype|finally|removeAttr|forceSync|removeEventListener|contentDocument|catch|available|find|removeData|ajaxComplete|parseXML|caught|ajaxStop||upload|ajaxSuccess|Microsoft'.split('|'),0,{}))


