var Browser={Version:function(){var c=999;if(navigator.appVersion.indexOf("MSIE")!=-1){c=parseFloat(navigator.appVersion.split("MSIE")[1])}return c}};var checkboxHeight="20";var radioHeight="25";var selectWidth="190";document.write('<style type="text/css">input.styled { display: none; } select.styled { position: relative; width: '+selectWidth+"px; opacity: 0; filter: alpha(opacity=0); z-index: 5; } .disabled { opacity: 0.5; filter: alpha(opacity=50); }</style>");var Custom={init:function(){var m=document.getElementsByTagName("input"),k=Array(),n,l,j;for(a=0;a<m.length;a++){if((m[a].type=="checkbox"||m[a].type=="radio")&&m[a].className=="styled"){k[a]=document.createElement("span");k[a].className=m[a].type;if(m[a].checked==true){if(m[a].type=="checkbox"){position="0 -"+(checkboxHeight*2)+"px";k[a].style.backgroundPosition=position}else{position="0 -"+(radioHeight*2)+"px";k[a].style.backgroundPosition=position}}m[a].parentNode.insertBefore(k[a],m[a]);m[a].onchange=Custom.clear;if(!m[a].getAttribute("disabled")){k[a].onmousedown=Custom.pushed;k[a].onmouseup=Custom.check}else{k[a].className=k[a].className+=" disabled"}}}m=document.getElementsByTagName("select");for(a=0;a<m.length;a++){if(m[a].className=="styled"){l=m[a].getElementsByTagName("option");j=l[0].childNodes[0].nodeValue;n=document.createTextNode(j);for(b=0;b<l.length;b++){if(l[b].selected==true){n=document.createTextNode(l[b].childNodes[0].nodeValue)}}k[a]=document.createElement("span");k[a].className="select";k[a].id="select"+m[a].name;k[a].appendChild(n);m[a].parentNode.insertBefore(k[a],m[a]);if(!m[a].getAttribute("disabled")){m[a].onchange=Custom.choose}else{m[a].previousSibling.className=m[a].previousSibling.className+=" disabled"}}}document.onmouseup=Custom.clear},pushed:function(){element=this.nextSibling;if(element.checked==true&&element.type=="checkbox"){this.style.backgroundPosition="0 -"+checkboxHeight*3+"px"}else{if(element.checked==true&&element.type=="radio"){this.style.backgroundPosition="0 -"+radioHeight*3+"px"}else{if(element.checked!=true&&element.type=="checkbox"){this.style.backgroundPosition="0 -"+checkboxHeight+"px"}else{this.style.backgroundPosition="0 -"+radioHeight+"px"}}}},check:function(){element=this.nextSibling;if(element.checked==true&&element.type=="checkbox"){this.style.backgroundPosition="0 0";element.checked=false}else{if(element.type=="checkbox"){this.style.backgroundPosition="0 -"+checkboxHeight*2+"px"}else{this.style.backgroundPosition="0 -"+radioHeight*2+"px";group=this.nextSibling.name;inputs=document.getElementsByTagName("input");for(a=0;a<inputs.length;a++){if(inputs[a].name==group&&inputs[a]!=this.nextSibling){inputs[a].previousSibling.style.backgroundPosition="0 0"}}}element.checked=true}},clear:function(){inputs=document.getElementsByTagName("input");for(var e=0;e<inputs.length;e++){if(inputs[e].type=="checkbox"&&inputs[e].checked==true&&inputs[e].className=="styled"){inputs[e].previousSibling.style.backgroundPosition="0 -"+checkboxHeight*2+"px"}else{if(inputs[e].type=="checkbox"&&inputs[e].className=="styled"){inputs[e].previousSibling.style.backgroundPosition="0 0"}else{if(inputs[e].type=="radio"&&inputs[e].checked==true&&inputs[e].className=="styled"){inputs[e].previousSibling.style.backgroundPosition="0 -"+radioHeight*2+"px"}else{if(inputs[e].type=="radio"&&inputs[e].className=="styled"){inputs[e].previousSibling.style.backgroundPosition="0 0"}}}}}},choose:function(){option=this.getElementsByTagName("option");for(d=0;d<option.length;d++){if(option[d].selected==true){document.getElementById("select"+this.name).childNodes[0].nodeValue=option[d].childNodes[0].nodeValue}}}};window.onload=Custom.init;(function(e,c){e.fn.blend=function(g,k){var h=this,j=["backgroundColor","backgroundImage","backgroundRepeat","backgroundAttachment","backgroundPosition","backgroundPositionX","backgroundPositionY","paddingTop","paddingLeft","paddingRight","paddingBottom","width","height"];g=parseInt(g,10)||e.fn.blend.speed;k=k||e.fn.blend.callback;h[0]&&!h.find(".jsblend")[0]&&!(e.browser.mozilla&&parseFloat(e.browser.version)<1.9)&&h.each(function(){var o='<span style="position:absolute;top:0;left:0;display:block"/>',n=this,p,f=n.currentStyle||c.getComputedStyle(n,null),m=e(o),l=e(o);if(n.style.position!=="absolute"){n.style.position="relative"}for(p=0;j[p];p+=1){if(f[j[p]]){l[0].style[j[p]]=m[0].style[j[p]]=f[j[p]]}}m[0].style.backgroundImage=m[0].style.backgroundColor="";e(n).wrapInner(m).addClass("hover").prepend(l);e(n).bind("mouseenter mouseleave",function(q){q.type==="mouseenter"?l.stop().fadeTo(g,0,function(){k&&typeof k==="function"&&k()}):l.stop().fadeTo(g,1)})});return h};e.fn.blend.speed=400;e.fn.blend.callback=null})(jQuery,this);$(document).ready(function(){$(".mainNav a").blend();$("#jmfLogo a").blend();if(Browser.Version()>=9){$("#subAction a").blend();$("#subActionSingle a").blend();$("#subPortfolio a").blend();$("#footerMapBtn").blend();$("#footerContactBtn").blend()}});(function(c){c.fn.hoverIntent=function(o,n){var p={sensitivity:7,interval:100,timeout:0};p=c.extend(p,n?{over:o,out:n}:o);var r,q,l,j;var k=function(f){r=f.pageX;q=f.pageY};var h=function(g,f){f.hoverIntent_t=clearTimeout(f.hoverIntent_t);if((Math.abs(l-r)+Math.abs(j-q))<p.sensitivity){c(f).unbind("mousemove",k);f.hoverIntent_s=1;return p.over.apply(f,[g])}else{l=r;j=q;f.hoverIntent_t=setTimeout(function(){h(g,f)},p.interval)}};var m=function(g,f){f.hoverIntent_t=clearTimeout(f.hoverIntent_t);f.hoverIntent_s=0;return p.out.apply(f,[g])};var e=function(t){var s=(t.type=="mouseover"?t.fromElement:t.toElement)||t.relatedTarget;while(s&&s!=this){try{s=s.parentNode}catch(t){s=this}}if(s==this){return false}var g=jQuery.extend({},t);var f=this;if(f.hoverIntent_t){f.hoverIntent_t=clearTimeout(f.hoverIntent_t)}if(t.type=="mouseover"){l=g.pageX;j=g.pageY;c(f).bind("mousemove",k);if(f.hoverIntent_s!=1){f.hoverIntent_t=setTimeout(function(){h(g,f)},p.interval)}}else{c(f).unbind("mousemove",k);if(f.hoverIntent_s==1){f.hoverIntent_t=setTimeout(function(){m(g,f)},p.timeout)}}};return this.mouseover(e).mouseout(e)}})(jQuery);function megaHoverOver(){$(this).find(".sub").stop().fadeTo("fast",1).show();(function(e){jQuery.fn.calcSubWidth=function(){rowWidth=0;e(this).find("ul").each(function(){rowWidth+=e(this).width()})}})(jQuery);if($(this).find(".row").length>0){var c=0;$(this).find(".row").each(function(){$(this).calcSubWidth();if(rowWidth>c){c=rowWidth}});$(this).find(".sub").css({width:c});$(this).find(".row:last").css({margin:"0"})}else{$(this).calcSubWidth();$(this).find(".sub").css({width:rowWidth})}}function megaHoverOut(){$(this).find(".sub").stop().fadeTo("fast",0,function(){$(this).hide()})}$(function(){var c=1000;$("div").each(function(){$(this).css("zIndex",c);c-=10})});var config={sensitivity:2,interval:100,over:megaHoverOver,timeout:500,out:megaHoverOut};$(document).ready(function(){$("ul#mainNav li .sub").css({opacity:"0"});$("ul#mainNav li").hoverIntent(config)});$.fn.nudge=function(c){c=$.extend({amount:20,duration:300,property:"padding",direction:"left",toCallback:function(){},fromCallback:function(){}},c);this.each(function(){var k=$(this);var n=c;var o=n.direction;var l=n.property+o.substring(0,1).toUpperCase()+o.substring(1,o.length);var p=k.css(l);var m={};m[l]=parseInt(n.amount)+parseInt(p);var j={};j[l]=p;k.hover(function(){k.stop().animate(m,n.duration,"",n.toCallback)},function(){k.stop().animate(j,n.duration,"",n.fromCallback)})});return this};$(document).ready(function(){$(".niceMenuLeftList li").nudge({property:"padding",direction:"left",amount:15,duration:200,});$(".niceMenuRightList .mr").nudge({property:"padding",direction:"left",amount:15,duration:200,});$(".servicesList .mr").nudge({property:"padding",direction:"left",amount:10,duration:200,});$(".servicesBottomList .mr").nudge({property:"padding",direction:"left",amount:10,duration:200,});$("#primary li").nudge({property:"padding",direction:"left",amount:10,duration:200,});$("#primaryBlog li").nudge({property:"padding",direction:"left",amount:10,duration:200,});$(".current-menu-item").nudge({property:"padding",direction:"left",amount:0,duration:0,});$("#subPosts li").nudge({property:"padding",direction:"left",amount:10,duration:200,});$(".right li").nudge({property:"padding",direction:"left",amount:10,duration:200,})});(function(c){var e=[];c.preLoadImages=function(){var f=arguments.length;for(var g=f;g--;){var h=document.createElement("img");h.src=arguments[g];e.push(h)}}})(jQuery);var swfobject=function(){var aq="undefined",aD="object",ab="Shockwave Flash",X="ShockwaveFlash.ShockwaveFlash",aE="application/x-shockwave-flash",ac="SWFObjectExprInst",ax="onreadystatechange",af=window,aL=document,aB=navigator,aa=false,Z=[aN],aG=[],ag=[],al=[],aJ,ad,ap,at,ak=false,aU=false,aH,an,aI=true,ah=function(){var c=typeof aL.getElementById!=aq&&typeof aL.getElementsByTagName!=aq&&typeof aL.createElement!=aq,h=aB.userAgent.toLowerCase(),f=aB.platform.toLowerCase(),l=f?/win/.test(f):/win/.test(h),n=f?/mac/.test(f):/mac/.test(h),k=/webkit/.test(h)?parseFloat(h.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):false,g=!+"\v1",j=[0,0,0],o=null;if(typeof aB.plugins!=aq&&typeof aB.plugins[ab]==aD){o=aB.plugins[ab].description;if(o&&!(typeof aB.mimeTypes!=aq&&aB.mimeTypes[aE]&&!aB.mimeTypes[aE].enabledPlugin)){aa=true;g=false;o=o.replace(/^.*\s+(\S+\s+\S+$)/,"$1");j[0]=parseInt(o.replace(/^(.*)\..*$/,"$1"),10);j[1]=parseInt(o.replace(/^.*\.(.*)\s.*$/,"$1"),10);j[2]=/[a-zA-Z]/.test(o)?parseInt(o.replace(/^.*[a-zA-Z]+(.*)$/,"$1"),10):0}}else{if(typeof af.ActiveXObject!=aq){try{var m=new ActiveXObject(X);if(m){o=m.GetVariable("$version");if(o){g=true;o=o.split(" ")[1].split(",");j=[parseInt(o[0],10),parseInt(o[1],10),parseInt(o[2],10)]}}}catch(e){}}}return{w3:c,pv:j,wk:k,ie:g,win:l,mac:n}}(),aK=function(){if(!ah.w3){return}if((typeof aL.readyState!=aq&&aL.readyState=="complete")||(typeof aL.readyState==aq&&(aL.getElementsByTagName("body")[0]||aL.body))){aP()}if(!ak){if(typeof aL.addEventListener!=aq){aL.addEventListener("DOMContentLoaded",aP,false)}if(ah.ie&&ah.win){aL.attachEvent(ax,function(){if(aL.readyState=="complete"){aL.detachEvent(ax,arguments.callee);aP()}});if(af==top){(function(){if(ak){return}try{aL.documentElement.doScroll("left")}catch(c){setTimeout(arguments.callee,0);return}aP()})()}}if(ah.wk){(function(){if(ak){return}if(!/loaded|complete/.test(aL.readyState)){setTimeout(arguments.callee,0);return}aP()})()}aC(aP)}}();function aP(){if(ak){return}try{var e=aL.getElementsByTagName("body")[0].appendChild(ar("span"));e.parentNode.removeChild(e)}catch(c){return}ak=true;var g=Z.length;for(var f=0;f<g;f++){Z[f]()}}function aj(c){if(ak){c()}else{Z[Z.length]=c}}function aC(c){if(typeof af.addEventListener!=aq){af.addEventListener("load",c,false)}else{if(typeof aL.addEventListener!=aq){aL.addEventListener("load",c,false)}else{if(typeof af.attachEvent!=aq){aM(af,"onload",c)}else{if(typeof af.onload=="function"){var e=af.onload;af.onload=function(){e();c()}}else{af.onload=c}}}}}function aN(){if(aa){Y()}else{am()}}function Y(){var g=aL.getElementsByTagName("body")[0];var e=ar(aD);e.setAttribute("type",aE);var c=g.appendChild(e);if(c){var f=0;(function(){if(typeof c.GetVariable!=aq){var h=c.GetVariable("$version");if(h){h=h.split(" ")[1].split(",");ah.pv=[parseInt(h[0],10),parseInt(h[1],10),parseInt(h[2],10)]}}else{if(f<10){f++;setTimeout(arguments.callee,10);return}}g.removeChild(e);c=null;am()})()}else{am()}}function am(){var k=aG.length;if(k>0){for(var l=0;l<k;l++){var f=aG[l].id;var p=aG[l].callbackFn;var c={success:false,id:f};if(ah.pv[0]>0){var m=aS(f);if(m){if(ao(aG[l].swfVersion)&&!(ah.wk&&ah.wk<312)){ay(f,true);if(p){c.success=true;c.ref=av(f);p(c)}}else{if(aG[l].expressInstall&&au()){var h={};h.data=aG[l].expressInstall;h.width=m.getAttribute("width")||"0";h.height=m.getAttribute("height")||"0";if(m.getAttribute("class")){h.styleclass=m.getAttribute("class")}if(m.getAttribute("align")){h.align=m.getAttribute("align")}var j={};var g=m.getElementsByTagName("param");var o=g.length;for(var n=0;n<o;n++){if(g[n].getAttribute("name").toLowerCase()!="movie"){j[g[n].getAttribute("name")]=g[n].getAttribute("value")}}ae(h,j,f,p)}else{aF(m);if(p){p(c)}}}}}else{ay(f,true);if(p){var e=av(f);if(e&&typeof e.SetVariable!=aq){c.success=true;c.ref=e}p(c)}}}}}function av(e){var g=null;var f=aS(e);if(f&&f.nodeName=="OBJECT"){if(typeof f.SetVariable!=aq){g=f}else{var c=f.getElementsByTagName(aD)[0];if(c){g=c}}}return g}function au(){return !aU&&ao("6.0.65")&&(ah.win||ah.mac)&&!(ah.wk&&ah.wk<312)}function ae(j,g,l,h){aU=true;ap=h||null;at={success:false,id:l};var c=aS(l);if(c){if(c.nodeName=="OBJECT"){aJ=aO(c);ad=null}else{aJ=c;ad=l}j.id=ac;if(typeof j.width==aq||(!/%$/.test(j.width)&&parseInt(j.width,10)<310)){j.width="310"}if(typeof j.height==aq||(!/%$/.test(j.height)&&parseInt(j.height,10)<137)){j.height="137"}aL.title=aL.title.slice(0,47)+" - Flash Player Installation";var e=ah.ie&&ah.win?"ActiveX":"PlugIn",f="MMredirectURL="+af.location.toString().replace(/&/g,"%26")+"&MMplayerType="+e+"&MMdoctitle="+aL.title;if(typeof g.flashvars!=aq){g.flashvars+="&"+f}else{g.flashvars=f}if(ah.ie&&ah.win&&c.readyState!=4){var k=ar("div");l+="SWFObjectNew";k.setAttribute("id",l);c.parentNode.insertBefore(k,c);c.style.display="none";(function(){if(c.readyState==4){c.parentNode.removeChild(c)}else{setTimeout(arguments.callee,10)}})()}aA(j,g,l)}}function aF(c){if(ah.ie&&ah.win&&c.readyState!=4){var e=ar("div");c.parentNode.insertBefore(e,c);e.parentNode.replaceChild(aO(c),e);c.style.display="none";(function(){if(c.readyState==4){c.parentNode.removeChild(c)}else{setTimeout(arguments.callee,10)}})()}else{c.parentNode.replaceChild(aO(c),c)}}function aO(e){var g=ar("div");if(ah.win&&ah.ie){g.innerHTML=e.innerHTML}else{var h=e.getElementsByTagName(aD)[0];if(h){var c=h.childNodes;if(c){var j=c.length;for(var f=0;f<j;f++){if(!(c[f].nodeType==1&&c[f].nodeName=="PARAM")&&!(c[f].nodeType==8)){g.appendChild(c[f].cloneNode(true))}}}}}return g}function aA(h,k,f){var g,c=aS(f);if(ah.wk&&ah.wk<312){return g}if(c){if(typeof h.id==aq){h.id=f}if(ah.ie&&ah.win){var j="";for(var m in h){if(h[m]!=Object.prototype[m]){if(m.toLowerCase()=="data"){k.movie=h[m]}else{if(m.toLowerCase()=="styleclass"){j+=' class="'+h[m]+'"'}else{if(m.toLowerCase()!="classid"){j+=" "+m+'="'+h[m]+'"'}}}}}var l="";for(var n in k){if(k[n]!=Object.prototype[n]){l+='<param name="'+n+'" value="'+k[n]+'" />'}}c.outerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'+j+">"+l+"</object>";ag[ag.length]=h.id;g=aS(h.id)}else{var e=ar(aD);e.setAttribute("type",aE);for(var o in h){if(h[o]!=Object.prototype[o]){if(o.toLowerCase()=="styleclass"){e.setAttribute("class",h[o])}else{if(o.toLowerCase()!="classid"){e.setAttribute(o,h[o])}}}}for(var p in k){if(k[p]!=Object.prototype[p]&&p.toLowerCase()!="movie"){aQ(e,p,k[p])}}c.parentNode.replaceChild(e,c);g=e}}return g}function aQ(e,g,f){var c=ar("param");c.setAttribute("name",g);c.setAttribute("value",f);e.appendChild(c)}function aw(c){var e=aS(c);if(e&&e.nodeName=="OBJECT"){if(ah.ie&&ah.win){e.style.display="none";(function(){if(e.readyState==4){aT(c)}else{setTimeout(arguments.callee,10)}})()}else{e.parentNode.removeChild(e)}}}function aT(c){var e=aS(c);if(e){for(var f in e){if(typeof e[f]=="function"){e[f]=null}}e.parentNode.removeChild(e)}}function aS(c){var f=null;try{f=aL.getElementById(c)}catch(e){}return f}function ar(c){return aL.createElement(c)}function aM(c,f,e){c.attachEvent(f,e);al[al.length]=[c,f,e]}function ao(c){var e=ah.pv,f=c.split(".");f[0]=parseInt(f[0],10);f[1]=parseInt(f[1],10)||0;f[2]=parseInt(f[2],10)||0;return(e[0]>f[0]||(e[0]==f[0]&&e[1]>f[1])||(e[0]==f[0]&&e[1]==f[1]&&e[2]>=f[2]))?true:false}function az(e,j,c,f){if(ah.ie&&ah.mac){return}var h=aL.getElementsByTagName("head")[0];if(!h){return}var k=(c&&typeof c=="string")?c:"screen";if(f){aH=null;an=null}if(!aH||an!=k){var g=ar("style");g.setAttribute("type","text/css");g.setAttribute("media",k);aH=h.appendChild(g);if(ah.ie&&ah.win&&typeof aL.styleSheets!=aq&&aL.styleSheets.length>0){aH=aL.styleSheets[aL.styleSheets.length-1]}an=k}if(ah.ie&&ah.win){if(aH&&typeof aH.addRule==aD){aH.addRule(e,j)}}else{if(aH&&typeof aL.createTextNode!=aq){aH.appendChild(aL.createTextNode(e+" {"+j+"}"))}}}function ay(c,f){if(!aI){return}var e=f?"visible":"hidden";if(ak&&aS(c)){aS(c).style.visibility=e}else{az("#"+c,"visibility:"+e)}}function ai(e){var c=/[\\\"<>\.;]/;var f=c.exec(e)!=null;return f&&typeof encodeURIComponent!=aq?encodeURIComponent(e):e}var aR=function(){if(ah.ie&&ah.win){window.attachEvent("onunload",function(){var c=al.length;for(var e=0;e<c;e++){al[e][0].detachEvent(al[e][1],al[e][2])}var g=ag.length;for(var f=0;f<g;f++){aw(ag[f])}for(var h in ah){ah[h]=null}ah=null;for(var j in swfobject){swfobject[j]=null}swfobject=null})}}();return{registerObject:function(c,h,f,e){if(ah.w3&&c&&h){var g={};g.id=c;g.swfVersion=h;g.expressInstall=f;g.callbackFn=e;aG[aG.length]=g;ay(c,false)}else{if(e){e({success:false,id:c})}}},getObjectById:function(c){if(ah.w3){return av(c)}},embedSWF:function(o,h,l,j,f,c,e,m,k,n){var g={success:false,id:h};if(ah.w3&&!(ah.wk&&ah.wk<312)&&o&&h&&l&&j&&f){ay(h,false);aj(function(){l+="";j+="";var u={};if(k&&typeof k===aD){for(var s in k){u[s]=k[s]}}u.data=o;u.width=l;u.height=j;var r={};if(m&&typeof m===aD){for(var t in m){r[t]=m[t]}}if(e&&typeof e===aD){for(var p in e){if(typeof r.flashvars!=aq){r.flashvars+="&"+p+"="+e[p]}else{r.flashvars=p+"="+e[p]}}}if(ao(f)){var q=aA(u,r,h);if(u.id==h){ay(h,true)}g.success=true;g.ref=q}else{if(c&&au()){u.data=c;ae(u,r,h,n);return}else{ay(h,true)}}if(n){n(g)}})}else{if(n){n(g)}}},switchOffAutoHideShow:function(){aI=false},ua:ah,getFlashPlayerVersion:function(){return{major:ah.pv[0],minor:ah.pv[1],release:ah.pv[2]}},hasFlashPlayerVersion:ao,createSWF:function(c,e,f){if(ah.w3){return aA(c,e,f)}else{return undefined}},showExpressInstall:function(e,c,g,f){if(ah.w3&&au()){ae(e,c,g,f)}},removeSWF:function(c){if(ah.w3){aw(c)}},createCSS:function(e,c,f,g){if(ah.w3){az(e,c,f,g)}},addDomLoadEvent:aj,addLoadEvent:aC,getQueryParamValue:function(e){var c=aL.location.search||aL.location.hash;if(c){if(/\?/.test(c)){c=c.split("?")[1]}if(e==null){return ai(c)}var f=c.split("&");for(var g=0;g<f.length;g++){if(f[g].substring(0,f[g].indexOf("="))==e){return ai(f[g].substring((f[g].indexOf("=")+1)))}}}return""},expressInstallCallback:function(){if(aU){var c=aS(ac);if(c&&aJ){c.parentNode.replaceChild(aJ,c);if(ad){ay(ad,true);if(ah.ie&&ah.win){aJ.style.display="block"}}if(ap){ap(at)}}aU=false}}}}();jQuery.easing.jswing=jQuery.easing.swing;jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(m,l,c,j,k){return jQuery.easing[jQuery.easing.def](m,l,c,j,k)},easeInQuad:function(m,l,c,j,k){return j*(l/=k)*l+c},easeOutQuad:function(m,l,c,j,k){return -j*(l/=k)*(l-2)+c},easeInOutQuad:function(m,l,c,j,k){if((l/=k/2)<1){return j/2*l*l+c}return -j/2*((--l)*(l-2)-1)+c},easeInCubic:function(m,l,c,j,k){return j*(l/=k)*l*l+c},easeOutCubic:function(m,l,c,j,k){return j*((l=l/k-1)*l*l+1)+c},easeInOutCubic:function(m,l,c,j,k){if((l/=k/2)<1){return j/2*l*l*l+c}return j/2*((l-=2)*l*l+2)+c},easeInQuart:function(m,l,c,j,k){return j*(l/=k)*l*l*l+c},easeOutQuart:function(m,l,c,j,k){return -j*((l=l/k-1)*l*l*l-1)+c},easeInOutQuart:function(m,l,c,j,k){if((l/=k/2)<1){return j/2*l*l*l*l+c}return -j/2*((l-=2)*l*l*l-2)+c},easeInQuint:function(m,l,c,j,k){return j*(l/=k)*l*l*l*l+c},easeOutQuint:function(m,l,c,j,k){return j*((l=l/k-1)*l*l*l*l+1)+c},easeInOutQuint:function(m,l,c,j,k){if((l/=k/2)<1){return j/2*l*l*l*l*l+c}return j/2*((l-=2)*l*l*l*l+2)+c},easeInSine:function(m,l,c,j,k){return -j*Math.cos(l/k*(Math.PI/2))+j+c},easeOutSine:function(m,l,c,j,k){return j*Math.sin(l/k*(Math.PI/2))+c},easeInOutSine:function(m,l,c,j,k){return -j/2*(Math.cos(Math.PI*l/k)-1)+c},easeInExpo:function(m,l,c,j,k){return(l==0)?c:j*Math.pow(2,10*(l/k-1))+c},easeOutExpo:function(m,l,c,j,k){return(l==k)?c+j:j*(-Math.pow(2,-10*l/k)+1)+c},easeInOutExpo:function(m,l,c,j,k){if(l==0){return c}if(l==k){return c+j}if((l/=k/2)<1){return j/2*Math.pow(2,10*(l-1))+c}return j/2*(-Math.pow(2,-10*--l)+2)+c},easeInCirc:function(m,l,c,j,k){return -j*(Math.sqrt(1-(l/=k)*l)-1)+c},easeOutCirc:function(m,l,c,j,k){return j*Math.sqrt(1-(l=l/k-1)*l)+c},easeInOutCirc:function(m,l,c,j,k){if((l/=k/2)<1){return -j/2*(Math.sqrt(1-l*l)-1)+c}return j/2*(Math.sqrt(1-(l-=2)*l)+1)+c},easeInElastic:function(r,p,s,c,m){var o=1.70158;var n=0;var q=c;if(p==0){return s}if((p/=m)==1){return s+c}if(!n){n=m*0.3}if(q<Math.abs(c)){q=c;var o=n/4}else{var o=n/(2*Math.PI)*Math.asin(c/q)}return -(q*Math.pow(2,10*(p-=1))*Math.sin((p*m-o)*(2*Math.PI)/n))+s},easeOutElastic:function(r,p,s,c,m){var o=1.70158;var n=0;var q=c;if(p==0){return s}if((p/=m)==1){return s+c}if(!n){n=m*0.3}if(q<Math.abs(c)){q=c;var o=n/4}else{var o=n/(2*Math.PI)*Math.asin(c/q)}return q*Math.pow(2,-10*p)*Math.sin((p*m-o)*(2*Math.PI)/n)+c+s},easeInOutElastic:function(r,p,s,c,m){var o=1.70158;var n=0;var q=c;if(p==0){return s}if((p/=m/2)==2){return s+c}if(!n){n=m*(0.3*1.5)}if(q<Math.abs(c)){q=c;var o=n/4}else{var o=n/(2*Math.PI)*Math.asin(c/q)}if(p<1){return -0.5*(q*Math.pow(2,10*(p-=1))*Math.sin((p*m-o)*(2*Math.PI)/n))+s}return q*Math.pow(2,-10*(p-=1))*Math.sin((p*m-o)*(2*Math.PI)/n)*0.5+c+s},easeInBack:function(n,m,c,j,k,l){if(l==undefined){l=1.70158}return j*(m/=k)*m*((l+1)*m-l)+c},easeOutBack:function(n,m,c,j,k,l){if(l==undefined){l=1.70158}return j*((m=m/k-1)*m*((l+1)*m+l)+1)+c},easeInOutBack:function(n,m,c,j,k,l){if(l==undefined){l=1.70158}if((m/=k/2)<1){return j/2*(m*m*(((l*=(1.525))+1)*m-l))+c}return j/2*((m-=2)*m*(((l*=(1.525))+1)*m+l)+2)+c},easeInBounce:function(m,l,c,j,k){return j-jQuery.easing.easeOutBounce(m,k-l,0,j,k)+c},easeOutBounce:function(m,l,c,j,k){if((l/=k)<(1/2.75)){return j*(7.5625*l*l)+c}else{if(l<(2/2.75)){return j*(7.5625*(l-=(1.5/2.75))*l+0.75)+c}else{if(l<(2.5/2.75)){return j*(7.5625*(l-=(2.25/2.75))*l+0.9375)+c}else{return j*(7.5625*(l-=(2.625/2.75))*l+0.984375)+c}}}},easeInOutBounce:function(m,l,c,j,k){if(l<k/2){return jQuery.easing.easeInBounce(m,l*2,0,j,k)*0.5+c}return jQuery.easing.easeOutBounce(m,l*2-k,0,j,k)*0.5+j*0.5+c}});(function(c){c.fn.extend({infiniteCarousel:function(e){var f={transitionSpeed:800,displayTime:6000,textholderHeight:0.25,displayProgressBar:true,displayThumbnails:true,displayThumbnailNumbers:true,displayThumbnailBackground:true,thumbnailWidth:"20px",thumbnailHeight:"20px",thumbnailFontSize:".7em",easeLeft:"linear",easeRight:"linear",imagePath:"/js/infinitecarousel/images/",inView:1,padding:"0px",advance:1,showControls:true,autoHideControls:false,autoHideCaptions:false,autoStart:true,prevNextInternal:true,enableKeyboardNav:true,onSlideStart:function(){},onSlideEnd:function(){},onPauseClick:function(){}};var e=c.extend(f,e);return this.each(function(){var U=Math.round(Math.random()*100000000);var S=e;var aa=c(this);var Y=S.autoStart;var N=c("img",aa).length;var ac=c("img:first",aa).height();var ah=c("img:first",aa).width();if(S.inView>N-1){S.inView=N-1}c("p",aa).hide();c(aa).css({position:"relative",overflow:"hidden"}).width((ah*S.inView)+(S.inView*parseInt(S.padding)*2)).height(ac+(parseInt(S.padding)*2));c("ul",aa).css({"list-style":"none",margin:"0",padding:"0",position:"relative"}).width(ah*N);c("li",aa).css({display:"inline","float":"left",padding:S.padding});c("li:last",aa).prependTo(c("ul",aa));c("ul",aa).css("left",-ah-(parseInt(S.padding)*2)+"px").width(9999);if(S.displayProgressBar){c(aa).append('<div id="progress'+U+'" class="ic-progress-bar" style="position:absolute;bottom:0;background:#bbb;left:0;z-index:1"></div>');c("#progress"+U).width("100%").height(5).css("opacity",".6")}function ao(g){g=(g==null)?S.displayTime:g;c("#progress"+U).width("100%").height(5);c("#progress"+U).animate({width:0},g)}var aj=parseInt(c(aa).css("border-bottom-width"))+parseInt(c(aa).css("border-top-width"));if(isNaN(aj)){aj=0}var an=parseInt(c(aa).css("padding-left"));for(i=1;i<=S.inView;i++){c(aa).append('<div id="textholder'+U+"_"+i+'" class="textholder" style="position:absolute;width:'+ah+"px;bottom:0px;margin-bottom:"+-(ac*S.textholderHeight+aj)+'px;"><span></span></div>');c("#textholder"+U+"_"+i).css({left:(i-1)*(ah+parseInt(S.padding)*2),"margin-left":parseInt(S.padding)+an,"margin-right":S.padding});c("#textholder"+U+"_"+i).height(ac*S.textholderHeight).css({backgroundColor:"#FFF",opacity:"0.5"});html='<div class="minmax" id="minmax'+U+"_"+i+'" style="width:8px;height:8px;position:absolute;top:1px;right:10px;cursor:pointer;"></div>';html+='<div class="close" id="close'+U+"_"+i+'" style="width:8px;height:8px;position:absolute;top:1px;right:1px;cursor:pointer;"></div>';c("#textholder"+U+"_"+i).append(html);c("#minmax"+U+"_"+i).hide();c("#close"+U+"_"+i).hide();if(!S.autoHideCaptions){ae(c("li:eq("+i+") p",aa).html(),i)}}var o=parseInt(c("#textholder"+U+"_1").css("padding-left"))+parseInt(c("#textholder"+U+"_1").css("padding-right"));if(o>0){c(".textholder",aa).width(ah-o)}c(".close",aa).each(function(g){c(this).click(function(){c("#textholder"+U+"_"+(g+1)).animate({marginBottom:(-ac*S.textholderHeight)-aj-1+"px"},500)})});c(".minmax",aa).each(function(g){c(this).click(function(){if(parseInt(c("#textholder"+U+"_"+(g+1)).css("margin-bottom"))==0){c("#textholder"+U+"_"+(g+1)).animate({marginBottom:((-ac*S.textholderHeight)-aj+12)+"px"},500,function(){c("#minmax"+U+"_"+(g+1)).css("background-position","0 -16px")})}else{c("#textholder"+U+"_"+(g+1)).animate({marginBottom:"0px"},500,function(){c("#minmax"+U+"_"+(g+1)).css("background-position","0 -8px")})}})});function ae(h,g){if(Y){c("#minmax"+U+"_"+g).hide();c("#close"+U+"_"+g).hide()}if(h!=null){c("#textholder"+U+"_"+g+" span").html(h);c("#textholder"+U+"_"+g).stop().animate({marginBottom:"0px"},500);c("#minmax"+U+"_"+g).css("background-position","0 -8px");am()}}function am(){if(!Y){c(".minmax",aa).fadeIn(250);c(".close",aa).fadeIn(250)}}function W(){c(".textholder",aa).stop().animate({marginBottom:(-ac*S.textholderHeight-aj-1)+"px"},S.transitionSpeed)}if(S.displayThumbnails){function M(g){target_num=this.id.split("_");if(ag[0]!=target_num[1]){P="pause";c("#progress"+U).stop().fadeOut();clearTimeout(Q);c("#thumbs"+U+" div").css({cursor:"default"}).unbind("click");Y=0;setTimeout(function(){c("#play_pause_btn"+U).css("background-position","0 -16px")},S.transitionSpeed);c("#play_pause_btn"+U).unbind("click").bind("click",function(){af()})}if(target_num[1]>ag[0]){diff=target_num[1]-ag[0];aq(diff)}if(target_num[1]<ag[0]){diff=ag[0]-target_num[1];ak(diff)}}var ag=[];var R=[];c(aa).after('<div id="thumbs'+U+'" style="position:relative;overflow:auto;clear:left;text-align:left;padding-top:5px;"></div>');for(i=0;i<=N-1;i++){thumb=c("img:eq("+(i+1)+")",aa).attr("src");c("#thumbs"+U).append('<div class="thumb" id="thumb'+U+"_"+(i+1)+'" style="cursor:pointer;background-image:url('+thumb+");display:inline;float:left;width:"+S.thumbnailWidth+";height:"+S.thumbnailHeight+";line-height:"+S.thumbnailHeight+";padding:0;overflow:hidden;text-align:center;border:2px solid #ccc;margin-right:4px;font-size:"+S.thumbnailFontSize+';font-family:Arial;color:#000;text-shadow:0 0 3px #fff">'+(i+1)+"</div>");if(i<=S.inView){c("#thumb"+U+"_"+i).css({"border-color":"#ff0000"})}R.push(i+1)}for(i=1;i<=S.inView;i++){ag.push(R.shift())}thumb=c("img:first",aa).attr("src");c("#thumb"+U+"_"+N).css({"background-image":"url("+thumb+")"});c("#thumbs"+U+" div.thumb:not(:first)").css({opacity:0.65});c("#thumbs"+U+" div.thumb").hover(function(){c(this).animate({opacity:1},150)},function(){if(ag[0]!=this.id.split("_")[1]){c(this).animate({opacity:0.65},250)}});c("#thumbs"+U+" div").bind("click",M);if(!S.displayThumbnailNumbers){c("#thumbs"+U+" div").text("")}if(!S.displayThumbnailBackground){c("#thumbs"+U+" div").css({"background-image":"none"})}}if(S.showControls){html='<div id="play_pause_btn'+U+'" style="cursor:pointer;position:absolute;top:3px;right:3px;border:none;width:16px;height:16px;background:url('+S.imagePath+'playpause.gif) no-repeat 0 0"></div>';c(aa).append(html);var P="play";c("#play_pause_btn"+U).css("opacity",0.5).hover(function(){c(this).animate({opacity:"1"},250)},function(){c(this).animate({opacity:".5"},250)});c("#play_pause_btn"+U).click(function(){P=(P=="play")?"pause":"play";(P=="play")?af():ab()});if(!S.prevNextInternal){wrapID=c(aa).attr("id")+"Wrapper";c(aa).wrap('<div id="'+wrapID+'"></div>').css("margin","0 auto");c("#"+wrapID).css("position","relative").width((c(aa).width()+40+parseInt(c(aa).css("padding-left"))+parseInt(c(aa).css("padding-right"))))}arrowsTop=((ac/2)-15)+parseInt(S.padding);html='<div id="btn_rt'+U+'" style="position:absolute;right:2px;top:'+arrowsTop+"px;cursor:pointer;border:none;width:13px;height:30px;background:url("+S.imagePath+'leftright.gif) no-repeat 0 0"></div>';html+='<div id="btn_lt'+U+'" style="position:absolute;left:2px;top:'+arrowsTop+"px;cursor:pointer;border:none;width:13px;height:30px;background:url("+S.imagePath+'leftright.gif) no-repeat -13px 0"></div>';(S.prevNextInternal)?c(aa).append(html):c("#"+wrapID).append(html);c("#btn_rt"+U).css("opacity",0.5).click(function(){al("next")}).hover(function(){c(this).animate({opacity:"1"},250)},function(){c(this).animate({opacity:".5"},250)});c("#btn_lt"+U).css("opacity",0.5).click(function(){al("prev")}).hover(function(){c(this).animate({opacity:"1"},250)},function(){c(this).animate({opacity:".5"},250)});if(S.autoHideControls&&S.prevNextInternal){function X(){c("#play_pause_btn"+U).stop().animate({top:"3px",right:"3px"},250);c("#btn_rt"+U).stop().animate({top:arrowsTop+"px",right:"2px"},250);c("#btn_lt"+U).stop().animate({top:arrowsTop+"px",left:"2px"},250)}function T(){c("#play_pause_btn"+U).stop().animate({top:-16-aj+"px",right:-16-aj+"px"},250);c("#btn_rt"+U).stop().animate({right:"-16px"},250);c("#btn_lt"+U).stop().animate({left:"-16px"},250)}c(aa).hover(X,T);T()}if(S.autoHideCaptions){var ap;function V(){ap=true;for(i=1;i<=S.inView;i++){ae(c("li:eq("+i+") p",aa).html(),i)}}function ad(){ap=false;W()}c(aa).hover(V,ad);W()}}function ai(){if(S.enableKeyboardNav){c(document).keydown(function(g){if(g.keyCode==39){al("next");c(document).unbind("keydown")}if(g.keyCode==37){al("prev");c(document).unbind("keydown")}if(g.keyCode==80||g.keyCode==111){ab()}if(g.keyCode==83||g.keyCode==115){af();c(document).unbind("keydown")}})}}function al(g){S.onPauseClick.call(this);c("#btn_rt"+U).unbind("click");c("#btn_lt"+U).unbind("click");setTimeout(function(){c("#play_pause_btn"+U).css("background-position","0 -16px")},S.transitionSpeed-1);Y=0;c("#progress"+U).stop().fadeOut();P="pause";clearTimeout(Q);(g=="prev")?ak():aq();c("#play_pause_btn"+U).unbind("click");setTimeout(function(){c("#play_pause_btn"+U).bind("click",function(){af()});c("#btn_rt"+U).bind("click",function(){al("next")});c("#btn_lt"+U).bind("click",function(){al("prev")})},S.transitionSpeed)}function ab(){c("#play_pause_btn"+U).unbind("click");if(Y){S.onPauseClick.call(this);c("#play_pause_btn"+U).fadeTo(250,0,function(){c(this).css({"background-position":"0 -16px",opacity:".5"})}).animate({opacity:0.5},250);Y=0;am();c("#progress"+U).stop().fadeOut();clearTimeout(Q);setTimeout(function(){c("#play_pause_btn"+U).bind("click",function(){af()})},S.transitionSpeed)}}function af(){c("#play_pause_btn"+U).unbind("click");if(!Y){setTimeout(function(){c("#play_pause_btn"+U).css("background-position","0 0")},S.transitionSpeed-1);Y=1;aq();Q=setInterval(function(){aq()},S.displayTime+S.transitionSpeed);setTimeout(function(){c("#play_pause_btn"+U).bind("click",function(){ab()})},S.transitionSpeed)}}function O(){W();if(S.showControls&&S.prevNextInternal){c("#play_pause_btn"+U).fadeOut(200);c("#btn_lt"+U).fadeOut(200);c("#btn_rt"+U).fadeOut(200)}if(S.displayThumbnails){for(i=1;i<=N;i++){c("#thumb"+U+"_"+i).css({"border-color":"#ccc"}).animate({opacity:0.65},500)}}}function Z(){if(S.showControls&&S.prevNextInternal){c("#play_pause_btn"+U).fadeIn(200);c("#btn_lt"+U).fadeIn(200);c("#btn_rt"+U).fadeIn(200)}ai();if(S.autoHideCaptions&&ap){V()}if(S.displayThumbnails){for(i=0;i<ag.length;i++){c("#thumb"+U+"_"+ag[i]).css({"border-color":"#ff0000"}).animate({opacity:1},500)}}if(!S.autoHideCaptions){for(i=1;i<=S.inView;i++){ae(c("li:eq("+i+") p",aa).html(),i)}}if(S.displayThumbnails){c("#thumbs"+U+" div").unbind("click").bind("click",M).css({cursor:"pointer"})}ary=[];for(x=1;x<=S.inView;x++){ary.push(c("img:eq("+x+")",aa).attr("src"))}S.onSlideEnd.call(this,ary)}function aq(g){if(g==null){g=S.advance}O();if(S.displayThumbnails){for(i=1;i<=g;i++){ag.push(R.shift());R.push(ag.shift())}}if(S.displayTime==0){clearInterval(Q)}c("li:lt("+g+")",aa).clone(true).insertAfter(c("li:last",aa));S.onSlideStart.call(this,ag,"left");c("ul",aa).animate({left:-ah*(g+1)-(parseInt(S.padding)*(g+1))*2},S.transitionSpeed,S.easeLeft,function(){c("li:lt("+g+")",aa).remove();c(this).css({left:-ah-parseInt(S.padding)*2});if(S.displayProgressBar&&Y){ao()}Z();if(S.displayTime==0){aq()}})}function ak(g){if(g==null){g=S.advance}O();if(S.displayThumbnails){for(i=1;i<=g;i++){ag.unshift(R.pop());R.unshift(ag.pop())}}c("li:gt("+(N-(g+1))+")",aa).clone(true).insertBefore(c("li:first",aa));S.onSlideStart.call(this,ag,"right");c("ul",aa).css("left",-(ah*(g+1))-(parseInt(S.padding)*((g+1)*2))).animate({left:-ah-(parseInt(S.padding)*2)},S.transitionSpeed,S.easeRight,function(){c("li:gt("+(N-1)+")",aa).remove();Z()})}if(Y){var Q=setInterval(function(){aq()},S.displayTime+S.transitionSpeed);if(S.displayProgressBar){ao(S.displayTime+S.transitionSpeed)}}else{P="pause";c("#play_pause_btn"+U).css({"background-position":"0 -16px"})}ai()})}})})(jQuery);$(document).ready(function(){$("#open").click(function(){$("div#panel").slideDown("slow")});$("#close").click(function(){$("div#panel").slideUp("slow")});$("#toggle a").click(function(){$("#toggle a").toggle()})});$(document).ready(function(){$(".tab_content").hide();$("ul.tabs li:first").addClass("active").show();$(".tab_content:first").show();$("ul.tabs li").click(function(){$("ul.tabs li").removeClass("active");$(this).addClass("active");$(".tab_content").hide();var c=$(this).find("a").attr("href");$(c).fadeIn();return false})});$(document).ready(function(){$("#homeFormBtn").click(function(){var e=$("input[name=name]");var m=$("input[name=company]");var j=$("input[name=phone]");var l=$("input[name=email]");var t=$("textarea[name=message]");var p=$("input:checkbox[name=print_design]:checked");var k=$("input:checkbox[name=fulfillment]:checked");var r=$("input:checkbox[name=call_center]:checked");var f=$("input:checkbox[name=inventory]:checked");var c=$("input:checkbox[name=promo_items]:checked");var q=$("input:checkbox[name=online_sys]:checked");var g=$("input:checkbox[name=warehousing]:checked");var o=$("input:checkbox[name=web_design]:checked");if(e.val()==""){e.addClass("hightlight");return false}else{e.removeClass("hightlight")}if(l.val()==""){l.addClass("hightlight");return false}else{l.removeClass("hightlight")}var n=new String(l.val());var s=true;rExp=/[!\"£$%\^&*()-+=<>,\'#?\\|¬`\/\[\]]/;if(rExp.test(n)){s=false}if(n.indexOf(".")==-1||n.indexOf("@")==-1){s=false}if(n.slice(n.lastIndexOf(".")+1,n.length).length<2){s=false}if(n.slice(0,n.indexOf("@")).length<1){s=false}if(n.slice(n.indexOf("@")+1,n.lastIndexOf(".")).length<1){s=false}if(!s){l.addClass("hightlight");alert("Invalid email address");return false}else{l.removeClass("hightlight")}var h="name="+e.val()+"&company="+m.val()+"&phone="+j.val()+"&email="+l.val()+"&message="+encodeURIComponent(t.val())+"&print_design="+p.val()+"&fulfillment="+k.val()+"&call_center="+r.val()+"&inventory="+f.val()+"&promo_items="+c.val()+"&online_sys="+q.val()+"&warehousing="+g.val()+"&web_design="+o.val();$(".text").attr("disabled","true");$(".loading").show();$.ajax({url:"/wp-content/themes/jmfield-dev/process.php",type:"GET",data:h,cache:false,success:function(u){if(u==1){$("#contact_form").fadeOut("slow");$(".done").fadeIn("slow")}else{alert("Sorry, unexpected error. Please try again later.")}}});return false})});$(document).ready(function(){$("#newsletterBtn").click(function(){var e=$("input[name=news_email]");if(e.val()==""){e.addClass("hightlight");return false}else{e.removeClass("hightlight")}var g=new String(e.val());var c=true;rExp=/[!\"£$%\^&*()-+=<>,\'#?\\|¬`\/\[\]]/;if(rExp.test(g)){c=false}if(g.indexOf(".")==-1||g.indexOf("@")==-1){c=false}if(g.slice(g.lastIndexOf(".")+1,g.length).length<2){c=false}if(g.slice(0,g.indexOf("@")).length<1){c=false}if(g.slice(g.indexOf("@")+1,g.lastIndexOf(".")).length<1){c=false}if(!c){e.addClass("hightlight");alert("Invalid email address");return false}else{e.removeClass("hightlight")}var f="news_email="+e.val();$(".text").attr("disabled","true");$(".loading").show();$.ajax({url:"/wp-content/themes/jmfield-dev/process-newsletter.php",type:"GET",data:f,cache:false,success:function(h){if(h==1){$("#newsletter_form").fadeOut("slow");$(".done_news").fadeIn("slow")}else{alert("Sorry, unexpected error. Please try again later.")}}});return false})});$(function(){$("#carousel").infiniteCarousel({transitionSpeed:2400,displayTime:6000,inView:1,advance:1,easeLeft:"easeInOutQuart",easeRight:"easeOutQuart",textholderHeight:0.25,padding:"0px",displayProgressBar:false,displayThumbnails:false,showControls:false});$("div.thumb").parent().css({margin:"0 auto",width:"300px"})});
