if(!window.console){window.console=new function(){this.log=function(str){};this.dir=function(str){}}}if(typeof(jQuery)=="undefined"){var loadjQuery=document.createElement("script");loadjQuery.setAttribute("type","text/javascript");loadjQuery.setAttribute("src","http://ajax.googleapis.com/ajax/libs/jquery/1.4.1/jquery.min.js");document.getElementsByTagName("head")[0].appendChild(loadjQuery)}jQuery.fn.exists=function(){return jQuery(this).length>0};jQuery.fn.trim=function(){return jQuery(this).val().replace(/^\s+|\s+$/g,"")};jQuery.fn.ValidEmail=function(){return jQuery(this).val().match(/^([a-zA-Z0-9_\-\.]*)([a-zA-Z0-9]+)@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.)|(([a-zA-Z0-9\-]+\.)+))([a-zA-Z]{2,4}|[0-9]{1,3})$/)};var isIE=(navigator.appVersion.indexOf("MSIE")!=-1)?true:false;var isWin=(navigator.appVersion.toLowerCase().indexOf("win")!=-1)?true:false;var isOpera=(navigator.userAgent.indexOf("Opera")!=-1)?true:false;function ControlVersion(){var a;var b;var c;try{b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");a=b.GetVariable("$version")}catch(c){}if(!a){try{b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");a="WIN 6,0,21,0";b.AllowScriptAccess="always";a=b.GetVariable("$version")}catch(c){}}if(!a){try{b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.3");a=b.GetVariable("$version")}catch(c){}}if(!a){try{b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.3");a="WIN 3,0,18,0"}catch(c){}}if(!a){try{b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");a="WIN 2,0,0,11"}catch(c){a=-1}}return a}function GetSwfVer(){var g=-1;if(navigator.plugins!=null&&navigator.plugins.length>0){if(navigator.plugins["Shockwave Flash 2.0"]||navigator.plugins["Shockwave Flash"]){var f=navigator.plugins["Shockwave Flash 2.0"]?" 2.0":"";var a=navigator.plugins["Shockwave Flash"+f].description;var e=a.split(" ");var c=e[2].split(".");var h=c[0];var b=c[1];var d=e[3];if(d==""){d=e[4]}if(d[0]=="d"){d=d.substring(1)}else{if(d[0]=="r"){d=d.substring(1);if(d.indexOf("d")>0){d=d.substring(0,d.indexOf("d"))}}}var g=h+"."+b+"."+d}}else{if(navigator.userAgent.toLowerCase().indexOf("webtv/2.6")!=-1){g=4}else{if(navigator.userAgent.toLowerCase().indexOf("webtv/2.5")!=-1){g=3}else{if(navigator.userAgent.toLowerCase().indexOf("webtv")!=-1){g=2}else{if(isIE&&isWin&&!isOpera){g=ControlVersion()}}}}}return g}function DetectFlashVer(f,d,c){versionStr=GetSwfVer();if(versionStr==-1){return false}else{if(versionStr!=0){if(isIE&&isWin&&!isOpera){tempArray=versionStr.split(" ");tempString=tempArray[1];versionArray=tempString.split(",")}else{versionArray=versionStr.split(".")}var e=versionArray[0];var a=versionArray[1];var b=versionArray[2];if(e>parseFloat(f)){return true}else{if(e==parseFloat(f)){if(a>parseFloat(d)){return true}else{if(a==parseFloat(d)){if(b>=parseFloat(c)){return true}}}}}return false}}}function AC_AddExtension(b,a){if(b.indexOf("?")!=-1){return b.replace(/\?/,a+"?")}else{return b+a}}function AC_Generateobj(e,d,a){var c="";if(isIE&&isWin&&!isOpera){c+="<object ";for(var b in e){c+=b+'="'+e[b]+'" '}c+=">";for(var b in d){c+='<param name="'+b+'" value="'+d[b]+'" /> '}c+="</object>"}else{c+="<embed ";for(var b in a){c+=b+'="'+a[b]+'" '}c+="> </embed>"}document.write(c)}function AC_FL_RunContent(){var a=AC_GetArgs(arguments,".swf","movie","clsid:d27cdb6e-ae6d-11cf-96b8-444553540000","application/x-shockwave-flash");AC_Generateobj(a.objAttrs,a.params,a.embedAttrs)}function AC_SW_RunContent(){var a=AC_GetArgs(arguments,".dcr","src","clsid:166B1BCA-3F9C-11CF-8075-444553540000",null);AC_Generateobj(a.objAttrs,a.params,a.embedAttrs)}function AC_GetArgs(b,e,g,d,h){var a=new Object();a.embedAttrs=new Object();a.params=new Object();a.objAttrs=new Object();for(var c=0;c<b.length;c=c+2){var f=b[c].toLowerCase();switch(f){case"classid":break;case"pluginspage":a.embedAttrs[b[c]]=b[c+1];break;case"src":case"movie":b[c+1]=AC_AddExtension(b[c+1],e);a.embedAttrs.src=b[c+1];a.params[g]=b[c+1];break;case"onafterupdate":case"onbeforeupdate":case"onblur":case"oncellchange":case"onclick":case"ondblclick":case"ondrag":case"ondragend":case"ondragenter":case"ondragleave":case"ondragover":case"ondrop":case"onfinish":case"onfocus":case"onhelp":case"onmousedown":case"onmouseup":case"onmouseover":case"onmousemove":case"onmouseout":case"onkeypress":case"onkeydown":case"onkeyup":case"onload":case"onlosecapture":case"onpropertychange":case"onreadystatechange":case"onrowsdelete":case"onrowenter":case"onrowexit":case"onrowsinserted":case"onstart":case"onscroll":case"onbeforeeditfocus":case"onactivate":case"onbeforedeactivate":case"ondeactivate":case"type":case"codebase":case"id":a.objAttrs[b[c]]=b[c+1];break;case"width":case"height":case"align":case"vspace":case"hspace":case"class":case"title":case"accesskey":case"name":case"tabindex":a.embedAttrs[b[c]]=a.objAttrs[b[c]]=b[c+1];break;default:a.embedAttrs[b[c]]=a.params[b[c]]=b[c+1]}}a.objAttrs.classid=d;if(h){a.embedAttrs.type=h}return a}function trim(b,a){return ltrim(rtrim(b,a),a)}function ltrim(b,a){a=a||"\\s";return b.replace(new RegExp("^["+a+"]+","g"),"")}function rtrim(b,a){a=a||"\\s";return b.replace(new RegExp("["+a+"]+$","g"),"")}var swfobject=function(){var Z="undefined",P="object",B="Shockwave Flash",h="ShockwaveFlash.ShockwaveFlash",W="application/x-shockwave-flash",K="SWFObjectExprInst",G=window,g=document,N=navigator,f=[],H=[],Q=null,L=null,T=null,S=false,C=false;var a=function(){var l=typeof g.getElementById!=Z&&typeof g.getElementsByTagName!=Z&&typeof g.createElement!=Z&&typeof g.appendChild!=Z&&typeof g.replaceChild!=Z&&typeof g.removeChild!=Z&&typeof g.cloneNode!=Z,t=[0,0,0],n=null;if(typeof N.plugins!=Z&&typeof N.plugins[B]==P){n=N.plugins[B].description;if(n){n=n.replace(/^.*\s+(\S+\s+\S+$)/,"$1");t[0]=parseInt(n.replace(/^(.*)\..*$/,"$1"),10);t[1]=parseInt(n.replace(/^.*\.(.*)\s.*$/,"$1"),10);t[2]=/r/.test(n)?parseInt(n.replace(/^.*r(.*)$/,"$1"),10):0}}else{if(typeof G.ActiveXObject!=Z){var o=null,s=false;try{o=new ActiveXObject(h+".7")}catch(k){try{o=new ActiveXObject(h+".6");t=[6,0,21];o.AllowScriptAccess="always"}catch(k){if(t[0]==6){s=true}}if(!s){try{o=new ActiveXObject(h)}catch(k){}}}if(!s&&o){try{n=o.GetVariable("$version");if(n){n=n.split(" ")[1].split(",");t=[parseInt(n[0],10),parseInt(n[1],10),parseInt(n[2],10)]}}catch(k){}}}}var v=N.userAgent.toLowerCase(),j=N.platform.toLowerCase(),r=/webkit/.test(v)?parseFloat(v.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):false,i=false,q=j?/win/.test(j):/win/.test(v),m=j?/mac/.test(j):/mac/.test(v);
/*@cc_on i=true;@if(@_win32)q=true;@elif(@_mac)m=true;@end@*/
return{w3cdom:l,pv:t,webkit:r,ie:i,win:q,mac:m}}();var e=function(){if(!a.w3cdom){return}J(I);if(a.ie&&a.win){try{g.write("<script id=__ie_ondomload defer=true src=//:><\/script>");var i=c("__ie_ondomload");if(i){i.onreadystatechange=function(){if(this.readyState=="complete"){this.parentNode.removeChild(this);V()}}}}catch(j){}}if(a.webkit&&typeof g.readyState!=Z){Q=setInterval(function(){if(/loaded|complete/.test(g.readyState)){V()}},10)}if(typeof g.addEventListener!=Z){g.addEventListener("DOMContentLoaded",V,null)}M(V)}();function V(){if(S){return}if(a.ie&&a.win){var m=Y("span");try{var l=g.getElementsByTagName("body")[0].appendChild(m);l.parentNode.removeChild(l)}catch(n){return}}S=true;if(Q){clearInterval(Q);Q=null}var j=f.length;for(var k=0;k<j;k++){f[k]()}}function J(i){if(S){i()}else{f[f.length]=i}}function M(j){if(typeof G.addEventListener!=Z){G.addEventListener("load",j,false)}else{if(typeof g.addEventListener!=Z){g.addEventListener("load",j,false)}else{if(typeof G.attachEvent!=Z){G.attachEvent("onload",j)}else{if(typeof G.onload=="function"){var i=G.onload;G.onload=function(){i();j()}}else{G.onload=j}}}}}function I(){var l=H.length;for(var j=0;j<l;j++){var m=H[j].id;if(a.pv[0]>0){var k=c(m);if(k){H[j].width=k.getAttribute("width")?k.getAttribute("width"):"0";H[j].height=k.getAttribute("height")?k.getAttribute("height"):"0";if(O(H[j].swfVersion)){if(a.webkit&&a.webkit<312){U(k)}X(m,true)}else{if(H[j].expressInstall&&!C&&O("6.0.65")&&(a.win||a.mac)){D(H[j])}else{d(k)}}}}else{X(m,true)}}}function U(m){var k=m.getElementsByTagName(P)[0];if(k){var p=Y("embed"),r=k.attributes;if(r){var o=r.length;for(var n=0;n<o;n++){if(r[n].nodeName.toLowerCase()=="data"){p.setAttribute("src",r[n].nodeValue)}else{p.setAttribute(r[n].nodeName,r[n].nodeValue)}}}var q=k.childNodes;if(q){var s=q.length;for(var l=0;l<s;l++){if(q[l].nodeType==1&&q[l].nodeName.toLowerCase()=="param"){p.setAttribute(q[l].getAttribute("name"),q[l].getAttribute("value"))}}}m.parentNode.replaceChild(p,m)}}function F(i){if(a.ie&&a.win&&O("8.0.0")){G.attachEvent("onunload",function(){var k=c(i);if(k){for(var j in k){if(typeof k[j]=="function"){k[j]=function(){}}}k.parentNode.removeChild(k)}})}}function D(j){C=true;var o=c(j.id);if(o){if(j.altContentId){var l=c(j.altContentId);if(l){L=l;T=j.altContentId}}else{L=b(o)}if(!(/%$/.test(j.width))&&parseInt(j.width,10)<310){j.width="310"}if(!(/%$/.test(j.height))&&parseInt(j.height,10)<137){j.height="137"}g.title=g.title.slice(0,47)+" - Flash Player Installation";var n=a.ie&&a.win?"ActiveX":"PlugIn",k=g.title,m="MMredirectURL="+G.location+"&MMplayerType="+n+"&MMdoctitle="+k,p=j.id;if(a.ie&&a.win&&o.readyState!=4){var i=Y("div");p+="SWFObjectNew";i.setAttribute("id",p);o.parentNode.insertBefore(i,o);o.style.display="none";G.attachEvent("onload",function(){o.parentNode.removeChild(o)})}R({data:j.expressInstall,id:K,width:j.width,height:j.height},{flashvars:m},p)}}function d(j){if(a.ie&&a.win&&j.readyState!=4){var i=Y("div");j.parentNode.insertBefore(i,j);i.parentNode.replaceChild(b(j),i);j.style.display="none";G.attachEvent("onload",function(){j.parentNode.removeChild(j)})}else{j.parentNode.replaceChild(b(j),j)}}function b(n){var m=Y("div");if(a.win&&a.ie){m.innerHTML=n.innerHTML}else{var k=n.getElementsByTagName(P)[0];if(k){var o=k.childNodes;if(o){var j=o.length;for(var l=0;l<j;l++){if(!(o[l].nodeType==1&&o[l].nodeName.toLowerCase()=="param")&&!(o[l].nodeType==8)){m.appendChild(o[l].cloneNode(true))}}}}}return m}function R(AE,AC,q){var p,t=c(q);if(typeof AE.id==Z){AE.id=q}if(a.ie&&a.win){var AD="";for(var z in AE){if(AE[z]!=Object.prototype[z]){if(z=="data"){AC.movie=AE[z]}else{if(z.toLowerCase()=="styleclass"){AD+=' class="'+AE[z]+'"'}else{if(z!="classid"){AD+=" "+z+'="'+AE[z]+'"'}}}}}var AB="";for(var y in AC){if(AC[y]!=Object.prototype[y]){AB+='<param name="'+y+'" value="'+AC[y]+'" />'}}t.outerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'+AD+">"+AB+"</object>";F(AE.id);p=c(AE.id)}else{if(a.webkit&&a.webkit<312){var AA=Y("embed");AA.setAttribute("type",W);for(var x in AE){if(AE[x]!=Object.prototype[x]){if(x=="data"){AA.setAttribute("src",AE[x])}else{if(x.toLowerCase()=="styleclass"){AA.setAttribute("class",AE[x])}else{if(x!="classid"){AA.setAttribute(x,AE[x])}}}}}for(var w in AC){if(AC[w]!=Object.prototype[w]){if(w!="movie"){AA.setAttribute(w,AC[w])}}}t.parentNode.replaceChild(AA,t);p=AA}else{var s=Y(P);s.setAttribute("type",W);for(var v in AE){if(AE[v]!=Object.prototype[v]){if(v.toLowerCase()=="styleclass"){s.setAttribute("class",AE[v])}else{if(v!="classid"){s.setAttribute(v,AE[v])}}}}for(var u in AC){if(AC[u]!=Object.prototype[u]&&u!="movie"){E(s,u,AC[u])}}t.parentNode.replaceChild(s,t);p=s}}return p}function E(k,i,j){var l=Y("param");l.setAttribute("name",i);l.setAttribute("value",j);k.appendChild(l)}function c(i){return g.getElementById(i)}function Y(i){return g.createElement(i)}function O(k){var j=a.pv,i=k.split(".");i[0]=parseInt(i[0],10);i[1]=parseInt(i[1],10);i[2]=parseInt(i[2],10);return(j[0]>i[0]||(j[0]==i[0]&&j[1]>i[1])||(j[0]==i[0]&&j[1]==i[1]&&j[2]>=i[2]))?true:false}function A(m,j){if(a.ie&&a.mac){return}var l=g.getElementsByTagName("head")[0],k=Y("style");k.setAttribute("type","text/css");k.setAttribute("media","screen");if(!(a.ie&&a.win)&&typeof g.createTextNode!=Z){k.appendChild(g.createTextNode(m+" {"+j+"}"))}l.appendChild(k);if(a.ie&&a.win&&typeof g.styleSheets!=Z&&g.styleSheets.length>0){var i=g.styleSheets[g.styleSheets.length-1];if(typeof i.addRule==P){i.addRule(m,j)}}}function X(k,i){var j=i?"visible":"hidden";if(S){c(k).style.visibility=j}else{A("#"+k,"visibility:"+j)}}return{registerObject:function(l,i,k){if(!a.w3cdom||!l||!i){return}var j={};j.id=l;j.swfVersion=i;j.expressInstall=k?k:false;H[H.length]=j;X(l,false)},getObjectById:function(l){var i=null;if(a.w3cdom&&S){var j=c(l);if(j){var k=j.getElementsByTagName(P)[0];if(!k||(k&&typeof j.SetVariable!=Z)){i=j}else{if(typeof k.SetVariable!=Z){i=k}}}}return i},embedSWF:function(n,u,r,t,j,m,k,p,s){if(!a.w3cdom||!n||!u||!r||!t||!j){return}r+="";t+="";if(O(j)){X(u,false);var q=(typeof s==P)?s:{};q.data=n;q.width=r;q.height=t;var o=(typeof p==P)?p:{};if(typeof k==P){for(var l in k){if(k[l]!=Object.prototype[l]){if(typeof o.flashvars!=Z){o.flashvars+="&"+l+"="+k[l]}else{o.flashvars=l+"="+k[l]}}}}J(function(){R(q,o,u);if(q.id==u){X(u,true)}})}else{if(m&&!C&&O("6.0.65")&&(a.win||a.mac)){X(u,false);J(function(){var i={};i.id=i.altContentId=u;i.width=r;i.height=t;i.expressInstall=m;D(i)})}}},getFlashPlayerVersion:function(){return{major:a.pv[0],minor:a.pv[1],release:a.pv[2]}},hasFlashPlayerVersion:O,createSWF:function(k,j,i){if(a.w3cdom&&S){return R(k,j,i)}else{return undefined}},createCSS:function(j,i){if(a.w3cdom){A(j,i)}},addDomLoadEvent:J,addLoadEvent:M,getQueryParamValue:function(m){var l=g.location.search||g.location.hash;if(m==null){return l}if(l){var k=l.substring(1).split("&");for(var j=0;j<k.length;j++){if(k[j].substring(0,k[j].indexOf("="))==m){return k[j].substring((k[j].indexOf("=")+1))}}}return""},expressInstallCallback:function(){if(C&&L){var i=c(K);if(i){i.parentNode.replaceChild(L,i);if(T){X(T,true);if(a.ie&&a.win){L.style.display="block"}}L=null;T=null;C=false}}}}}();(function($){$.setCookie=function(name,value,options){if(typeof name==="undefined"||typeof value==="undefined"){return false}var str=name+"="+encodeURIComponent(value);if(options.domain){str+="; domain="+options.domain}if(options.path){str+="; path="+options.path}if(options.duration){var date=new Date();date.setTime(date.getTime()+options.duration*24*60*60*1000);str+="; expires="+date.toGMTString()}if(options.secure){str+="; secure"}return document.cookie=str};$.delCookie=function(name){return $.setCookie(name,"",{duration:-1})};$.getCookie=function(name){var value=document.cookie.match("(?:^|;)\\s*"+name.replace(/([-.*+?^${}()|[\]\/\\])/g,"\\$1")+"=([^;]*)");return(value)?decodeURIComponent(value[1]):null};$.CooQueryVersion="v 2.0"})(jQuery);jQuery.fn.extend({UrlGET:function(strParamName){strParamName=escape(unescape(strParamName));var returnVal=new Array();var qString=null;if(jQuery(this).attr("nodeName")=="#document"){if(window.location.search.search(strParamName)>-1){qString=window.location.search.substr(1,window.location.search.length).split("&")}}else{if(jQuery(this).attr("src")!="undefined"){var strHref=jQuery(this).attr("src");if(strHref.indexOf("?")>-1){var strQueryString=strHref.substr(strHref.indexOf("?")+1);qString=strQueryString.split("&")}}else{if(jQuery(this).attr("href")!="undefined"){var strHref=jQuery(this).attr("href");if(strHref.indexOf("?")>-1){var strQueryString=strHref.substr(strHref.indexOf("?")+1);qString=strQueryString.split("&")}}else{return null}}}if(qString==null){return null}for(var i=0;i<qString.length;i++){if(escape(unescape(qString[i].split("=")[0]))==strParamName){returnVal.push(qString[i].split("=")[1])}}if(returnVal.length==0){return null}else{if(returnVal.length==1){return returnVal[0]}else{return returnVal}}}});var sValue="";function GetQueryValue(sName){var sValue="";var query=window.location.search.substring(1);var vars=query.split("&");for(var i=0;i<vars.length;i++){var pair=vars[i].split("=");if(pair[0]==sName){sValue=pair[1]}}return sValue}function PaginateComments(mstrcontid){var iComPerPage=15;var objComments=jQuery("#comment-list-container .comment-row");var iComments=objComments.length;var iPages=Math.ceil(iComments/iComPerPage);var iCurPage=parseInt(jQuery(".comment-pagination-control",jQuery("#"+mstrcontid)).filter(":eq(1)").attr("page"));jQuery("head").append('<style type="text/css">#comment-list-container .comment-row { display:none; }</style>');var iStartPage=1;var iQueryPageId=parseInt(jQuery(document).UrlGET("commentpage"));if(iQueryPageId===parseInt(iQueryPageId)){iStartPage=iQueryPageId;console.log(iStartPage)}jQuery(".comment-pagination-control",jQuery("#"+mstrcontid)).attr("page",iStartPage);for(i=0;i<iComPerPage;i++){objComments.filter(":eq("+i+")").show()}if(iPages>1){GeneratePageControl()}function GeneratePageControl(){iCurPage=parseInt(jQuery(".comment-pagination-control",jQuery("#"+mstrcontid)).filter(":eq(1)").attr("page"));var strPageButtons="";if(iPages<=10){for(i=1;i<=iPages;i++){if(i==iCurPage){strPageButtons+='<span class="comment-page-button comment-page-num current-page">'+i+"</span>"}else{strPageButtons+='<span class="comment-page-button comment-page-num">'+i+"</span>"}}}else{console.log("Lotsa pages. CurPage:"+iCurPage+" TotPages:"+iPages);for(i=1;i<=iPages;i++){if(i==iCurPage){strPageButtons+='<span class="comment-page-button comment-page-num current-page">'+i+"</span>"}else{if(i>=(iCurPage-4)&&i<=(iCurPage+4)){strPageButtons+='<span class="comment-page-button comment-page-num">'+i+"</span>"}else{if(i==(iPages-1)){strPageButtons+='<span class="comment-page-skip">...</span>'}else{if(i==iPages){strPageButtons+='<span class="comment-page-button comment-page-num">'+iPages+"</span>"}else{}}}}}}strPageButtons='<span class="comment-page-title">Page: </span><span class="comment-page-button first-page">&lt; First</span><span class="comment-page-button prev-page">&lt;&lt; Prev</span>'+strPageButtons+'<span class="comment-page-button next-page">Next &gt;&gt;</span><span class="comment-page-button last-page">Last &gt;</span>';jQuery(".comment-pagination-control",jQuery("#"+mstrcontid)).html("");jQuery(".comment-pagination-control",jQuery("#"+mstrcontid)).append(strPageButtons);jQuery(".comment-pagination-control .comment-page-button",jQuery("#"+mstrcontid)).each(function(){var objMe=jQuery(this);objMe.click(function(){var strNewPage=parseInt(objMe.text());if(jQuery(this).hasClass("next-page")){if(parseInt(iCurPage)<iPages){strNewPage=iCurPage+1}if(strNewPage!==parseInt(strNewPage)){strNewPage=iCurPage}}else{if(jQuery(this).hasClass("prev-page")){if(parseInt(iCurPage)>1){strNewPage=iCurPage-1}if(strNewPage!==parseInt(strNewPage)){strNewPage=iCurPage}}else{if(jQuery(this).hasClass("first-page")){strNewPage=1}else{if(jQuery(this).hasClass("last-page")){strNewPage=iPages}}}}jQuery(".comment-pagination-control",jQuery("#"+mstrcontid)).attr("page",strNewPage);var iLastComment=(jQuery(".comment-pagination-control",jQuery("#"+mstrcontid)).attr("page"))*(iComPerPage);var iFirstComment=iLastComment-iComPerPage;objComments.hide();for(i=iFirstComment;i<iLastComment;i++){objComments.filter(":eq("+i+")").css("display","block")}GeneratePageControl();document.getElementById("comments-top").scrollIntoView(true)})})}}if(Get_Cookie("AC_Overlay_Redirect")){window.location=Get_Cookie("AC_Overlay_Redirect");Delete_Cookie("AC_Overlay_Redirect","/","")}function CallOverlay(){if(Get_Cookie("AC_Overlay")==null){div='<div id="newsletter_overlay"></div>';jQuery("body").prepend(div);div2="http://www.amenclinics.com/overlay2.html?ie=WorstBrowserEver";jQuery("#newsletter_overlay").load(div2)}}function Set_Cookie(name,value,expires,path,domain,secure){var today=new Date();today.setTime(today.getTime());if(expires){expires=expires*1000*60*60*24}var expires_date=new Date(today.getTime()+(expires));document.cookie=name+"="+escape(value)+((expires)?";expires="+expires_date.toGMTString():"")+((path)?";path="+path:"")+((domain)?";domain="+domain:"")+((secure)?";secure":"")}function Get_Cookie(check_name){var a_all_cookies=document.cookie.split(";");var a_temp_cookie="";var cookie_name="";var cookie_value="";var b_cookie_found=false;for(i=0;i<a_all_cookies.length;i++){a_temp_cookie=a_all_cookies[i].split("=");cookie_name=a_temp_cookie[0].replace(/^\s+|\s+$/g,"");if(cookie_name==check_name){b_cookie_found=true;if(a_temp_cookie.length>1){cookie_value=unescape(a_temp_cookie[1].replace(/^\s+|\s+$/g,""))}return cookie_value;break}a_temp_cookie=null;cookie_name=""}if(!b_cookie_found){return null}}function Delete_Cookie(name,path,domain){if(Get_Cookie(name)){document.cookie=name+"="+((path)?";path="+path:"")+((domain)?";domain="+domain:"")+";expires=Thu, 01-Jan-1970 00:00:01 GMT"}}function getTestimonials(num){var ranNum=Math.floor(Math.random()*22);switch(ranNum){case 0:MyTestimonials='We can not thank the staff enough!! You have saved our little boy. We are having the most wonderful time getting to know our "true son." Thank You and God Bless';break;case 1:MyTestimonials="Fantastic - The entire staff, as well as the experience itself, far exceeded my expectations.  The doctor's observations, explanations and subsequent recommendations have created a new path for me to follow for both a better and more full life";break;case 2:MyTestimonials="Do the words enlightenment and brain scan belong in the same sentence? I've never felt so hopeful and confident that answers do exist";break;case 3:MyTestimonials="I have been to more psychiatrists, psychologists, social workers, treatment centers that I can remember. Dr. Amen's clinic is the first time I left a place like those with hope";break;case 4:MyTestimonials="I have struggled for 50 years and have sought help numerous times from a variety of professionals, from doctors to psychologists to life coaches and only now that I have had the SPECT do the reason for the struggle makes sense";break;case 5:MyTestimonials="Liberating! I'm not crazy! For the 1st time in my life, I feel like I've got real answers along with a treatment that gives me hope. I got exactly what I came for";break;case 6:MyTestimonials="You have a wonderful staff and are doing such a great service. I love all you people, your patience and care is so appreciated";break;case 7:MyTestimonials="My family has had excellent results as a part of our therapy. Three members of my family have had the scans and this has answered some troubling questions";break;case 8:MyTestimonials="Helpful, professional, considerate, knowledgeable, empathetic";break;case 9:MyTestimonials="This as been a phenomenal experience for us. After years of struggle and heartache we finally feel like we have an accurate diagnosis and we are on our road to recovery";break;case 10:MyTestimonials="Very thorough, very friendly and helpful staff. Excellent service";break;case 11:MyTestimonials="This was a very life changing experience for my son. Everyone was so caring and nice";break;case 12:MyTestimonials="The Amen Clinic gave me my hope back";break;case 13:MyTestimonials="Very positive. The Brain scans were amazing. Coming here and getting treatment has been one of the major decisions of my life";break;case 14:MyTestimonials="Fantastic Clinic! Friendly staff thorough assessment and great multi faceted approach to treatment and recovery. I don't know how we have ever thought we could fully understand problems of the brain without looking at how it was working (ie SPECT)";break;case 15:MyTestimonials="The level of detail and professionalism is outstanding, where others just want to just prescribe medications, the Amen Clinics take a course of treatment based upon trusted results";break;case 16:MyTestimonials="My experience at the Amen Clinic has been both educational and uplifting. Their level of professionalism is second to none";break;case 17:MyTestimonials="I appreciate the care and expertise of the doctors in delivering the information along with the willingness to try supplemental therapy";break;case 18:MyTestimonials="This was a great experience. The staff was extremely courteous and helpful. ALL THE STAFF, from the front door, the historian, and technician, through the MD";break;case 19:MyTestimonials="It was the most successful, informational, and helpful step in helping me to better understand my ADD along with other conditions that I have been struggling with";break;case 20:MyTestimonials="Physically. mentally, emotionally and spiritually the Amen Clinic was highly and effectively supportive and gives me hope for healing and health. I would recommend this process to others";break;case 21:MyTestimonials="This was a wonderful experience for us. We appreciate the special help and diagnosis from our doctor";break;case 22:MyTestimonials="We are very glad we came. Having a clear picture of what our daughter is dealing with and a plan to make her brain healthy gives us hope for a successful, happy child";break;default:MyTestimonials="The care I have been given here at the Amen Clinic has been very professional, prompt and honest. I would strongly suggest it to anyone"}document.write(MyTestimonials)}function getProducts(num){var MyProducts=new Array();MyProducts[0]=new Array("NeurOmega 60 Soft Gels","/store/index.php?main_page=product_info&products_id=224","/store/bmz_cache/c/cd4aba913361d33fb7c0546837762007.image.89x120.jpg","$24.95","SALEPRICE");MyProducts[1]=new Array("NeuroLink 180 Capsules","/store/index.php?main_page=product_info&products_id=231","/store/bmz_cache/4/463612662f154c3b77e255aa26c725df.image.89x120.jpg","$40.00","SALEPRICE");MyProducts[2]=new Array("NeuroVite - 120 Tablets","/store/index.php?main_page=product_info&products_id=230","/store/bmz_cache/1/171b85899bb04b4faebe40c0571a9660.image.60x120.jpg","$29.99","SALEPRICE");MyProducts[3]=new Array("Change Your Brain, Change Your Life","/store/index.php?main_page=product_info&products_id=15","/store/bmz_cache/f/fe6e87e4014721b6299207899c453981.image.86x120.jpg","$15.00","$13.50");MyProducts[4]=new Array('Feel Better Fast - Kill the "ANTs" [CD]',"/store/index.php?main_page=product_info&products_id=137","/store/bmz_cache/c/ce412911efb29bee5e4d9d148989f7f5.image.132x120.jpg","$14.95","$13.46");MyProducts[5]=new Array("Change Your Brain, Change Your Life - PBS Special DVD","/store/index.php?main_page=product_info&products_id=182","/store/bmz_cache/7/75dbfa653f95821e41ab29791ccbb0f9.image.94x120.jpg","$49.95","$44.96");MyProducts[6]=new Array("Brain Vitale 60 capsules","/store/index.php?main_page=product_info&products_id=229","/store/bmz_cache/4/4379edd0910866b105c272dbd41590f5.image.89x120.jpg","$52.00","SALEPRICE");MyProducts[7]=new Array("My Brain is Involved With... [Poster large]","/store/index.php?main_page=product_info&cPath=1&products_id=244","/store/bmz_cache/0/0940858fefdebca7f193fadd049a8bf6.image.82x120.jpg","$9.99","SALEPRICE");MyProducts[8]=new Array("Healing ADD Paperback Book","/store/index.php?main_page=product_info&products_id=5","/store/bmz_cache/d/d68a5f4425a506299d9144237d7cf9ee.image.86x120.jpg","$14.95","SALEPRICE");MyProducts[9]=new Array("Magnificent Mind at Any Age","/store/index.php?main_page=product_info&products_id=194","/store/bmz_cache/d/d4af107ebf689658a4b2eba317647860.image.101x120.jpg","$24.95","$22.46");MyProducts[10]=new Array("Lose Weight Now - Through Hypnosis [CD]","/store/index.php?main_page=product_info&products_id=147","/store/bmz_cache/7/71d390b737043efe6151419352c02314.image.131x120.jpg","$14.95","SALEPRICE");MyProducts[12]=new Array("The Brain in Love - Paperback","/store/index.php?main_page=product_info&cPath=1&products_id=219","/store/bmz_cache/b/b1c85865d48577f094d7cbdff5b4cf45.image.87x120.jpg","$14.00","$12.60");MyProducts[13]=new Array("The Brain in Love - PBS Special DVD","/store/index.php?main_page=product_info&cPath=2&products_id=220","/store/bmz_cache/e/eb621f404164620f08dcfd28b1ba7aaa.image.94x120.jpg","$49.95","$44.96");MyProducts.sort(randOrd);document.write("<h2>From the Store</h2>");document.write('<div class="products_rotator">');for(i=0;i<num;i++){document.write('<div class="product_box">');document.write('<a href="'+MyProducts[i][1]+'"><img src="http://www.amenclinics.com/'+MyProducts[i][2]+'" alt="'+MyProducts[i][0]+'" title="'+MyProducts[i][0]+'" ></a><br/>');document.write('<div class="product_box_title"><a href="'+MyProducts[i][1]+'">'+MyProducts[i][0]+"</a></div>");document.write(MyProducts[i][3]);document.write("</div>")}document.write("</div>")}function randOrd(){return(Math.round(Math.random())-0.5)}function checkURL(){var mySlideshows=new Array();mySlideshows[0]=new Array("http://www.amenclinics.com/",true,"homepage",727,269);mySlideshows[1]=new Array("http://www.amenclinics.com/my-brain-health/",true,"cybcyb",727,269);for(i=0;i<=mySlideshows.length;i++){var exactMatch=false;if(mySlideshows[i][0]==document.URL){var exactMatch=true}if(document.URL.indexOf(mySlideshows[i][0])!=-1){if(exactMatch==true){getSlideShow(mySlideshows[i][2],mySlideshows[i][3],mySlideshows[i][4]);break}if((mySlideshows[i][1]==false)&&(exactMatch==false)){getSlideShow(mySlideshows[i][2],mySlideshows[i][3],mySlideshows[i][4]);break}}}}function getSlideShow(pDir,pWidth,pHeight){function flashPutHref(href){location.href=href}var flashvars={paramXMLPath:"/flash/slideshow/"+pDir+"/param.xml",initialURL:escape(document.location)};var params={base:".",bgcolor:"#121212",allowfullscreen:"true",wmode:"transparent"};var attributes={};swfobject.embedSWF("/flash/slideshow/"+pDir+"/slideshowpro.swf","flashcontent",pWidth,pHeight,"9.0.0",false,flashvars,params,attributes)}function GetImage(image){GetQueryValue(image);document.write('<img src="/_images/viewer/lg/'+GetQueryValue(image)+'" />')}function findObj(n,d){var p,i,x;if(!d){d=document}if((p=n.indexOf("?"))>0&&parent.frames.length){d=parent.frames[n.substring(p+1)].document;n=n.substring(0,p)}if(!(x=d[n])&&d.all){x=d.all[n]}for(i=0;!x&&i<d.forms.length;i++){x=d.forms[i][n]}for(i=0;!x&&d.layers&&i<d.layers.length;i++){x=MM_findObj(n,d.layers[i].document)}if(!x&&d.getElementById){x=d.getElementById(n)}return x}function validateForm(){var i,p,q,nm,prntNm,test,num,min,max,testr,errors="",args=validateForm.arguments;for(i=0;i<(args.length-2);i+=3){test=args[i+2];fld=findObj(args[i]);if(fld){nm=fld.name;prntNm=args[i+1];if(prntNm==""){prntNm=nm}if((val=fld.value)!=""){if(test.indexOf("isEmail")!=-1){p=val.indexOf("@");if(p<1||p==(val.length-1)){errors+="- "+prntNm+" must contain an e-mail address.\n"}}else{if(test.indexOf("cPass")!=-1){p=test.indexOf(":");testr=test.substring(p+1);val2=findObj(testr);if(val!=val2.value){errors+="- Password fields do not match.\n"}}else{if(test=="C"){if(fld.checked!=true){errors+="- "+prntNm+"\n"}}else{if(test!="R"){num=parseFloat(val);if(isNaN(val)){errors+="- "+prntNm+" must contain a number.\n"}if(test.indexOf("inRange")!=-1){p=test.indexOf(":");min=test.substring(8,p);max=test.substring(p+1);if(num<min||max<num){errors+="- "+prntNm+" must contain a number between "+min+" and "+max+".\n"}}}}}}}else{if(test.charAt(0)=="R"){errors+="- "+prntNm+" is required.\n"}}}}if(errors){alert("The following information is required:\n"+errors)}document.MM_returnValue=(errors=="")}function popAnyHelp(strURL,strWinName,strParams){var winRUHelp=window.open(strURL,strWinName,strParams);if(!winRUHelp){alert("This site has detected that you are using a popup blocker.\nPlease add this site to your trusted sites list or disable your popup blocker.\n\nThank you.")}winRUHelp.focus()}function MM_findObj(n,d){var p,i,x;if(!d){d=document}if((p=n.indexOf("?"))>0&&parent.frames.length){d=parent.frames[n.substring(p+1)].document;n=n.substring(0,p)}if(!(x=d[n])&&d.all){x=d.all[n]}for(i=0;!x&&i<d.forms.length;i++){x=d.forms[i][n]}for(i=0;!x&&d.layers&&i<d.layers.length;i++){x=MM_findObj(n,d.layers[i].document)}if(!x&&d.getElementById){x=d.getElementById(n)}return x}function MM_setTextOfTextfield(objName,x,newText){var obj=MM_findObj(objName);if(obj.value==""||newText==""){if(obj){obj.value=newText}}}function limitText(limitField,limitCount,limitNum){if(limitField.value.length>limitNum){limitField.value=limitField.value.substring(0,limitNum)}else{limitCount.value=limitNum-limitField.value.length}}jQuery.effects||(function(d){d.effects={version:"1.7.2",save:function(g,h){for(var f=0;f<h.length;f++){if(h[f]!==null){g.data("ec.storage."+h[f],g[0].style[h[f]])}}},restore:function(g,h){for(var f=0;f<h.length;f++){if(h[f]!==null){g.css(h[f],g.data("ec.storage."+h[f]))}}},setMode:function(f,g){if(g=="toggle"){g=f.is(":hidden")?"show":"hide"}return g},getBaseline:function(g,h){var i,f;switch(g[0]){case"top":i=0;break;case"middle":i=0.5;break;case"bottom":i=1;break;default:i=g[0]/h.height}switch(g[1]){case"left":f=0;break;case"center":f=0.5;break;case"right":f=1;break;default:f=g[1]/h.width}return{x:f,y:i}},createWrapper:function(f){if(f.parent().is(".ui-effects-wrapper")){return f.parent()}var g={width:f.outerWidth(true),height:f.outerHeight(true),"float":f.css("float")};f.wrap('<div class="ui-effects-wrapper" style="font-size:100%;background:transparent;border:none;margin:0;padding:0"></div>');var j=f.parent();if(f.css("position")=="static"){j.css({position:"relative"});f.css({position:"relative"})}else{var i=f.css("top");if(isNaN(parseInt(i,10))){i="auto"}var h=f.css("left");if(isNaN(parseInt(h,10))){h="auto"}j.css({position:f.css("position"),top:i,left:h,zIndex:f.css("z-index")}).show();f.css({position:"relative",top:0,left:0})}j.css(g);return j},removeWrapper:function(f){if(f.parent().is(".ui-effects-wrapper")){return f.parent().replaceWith(f)}return f},setTransition:function(g,i,f,h){h=h||{};d.each(i,function(k,j){unit=g.cssUnit(j);if(unit[0]>0){h[j]=unit[0]*f+unit[1]}});return h},animateClass:function(h,i,k,j){var f=(typeof k=="function"?k:(j?j:null));var g=(typeof k=="string"?k:null);return this.each(function(){var q={};var o=d(this);var p=o.attr("style")||"";if(typeof p=="object"){p=p.cssText}if(h.toggle){o.hasClass(h.toggle)?h.remove=h.toggle:h.add=h.toggle}var l=d.extend({},(document.defaultView?document.defaultView.getComputedStyle(this,null):this.currentStyle));if(h.add){o.addClass(h.add)}if(h.remove){o.removeClass(h.remove)}var m=d.extend({},(document.defaultView?document.defaultView.getComputedStyle(this,null):this.currentStyle));if(h.add){o.removeClass(h.add)}if(h.remove){o.addClass(h.remove)}for(var r in m){if(typeof m[r]!="function"&&m[r]&&r.indexOf("Moz")==-1&&r.indexOf("length")==-1&&m[r]!=l[r]&&(r.match(/color/i)||(!r.match(/color/i)&&!isNaN(parseInt(m[r],10))))&&(l.position!="static"||(l.position=="static"&&!r.match(/left|top|bottom|right/)))){q[r]=m[r]}}o.animate(q,i,g,function(){if(typeof d(this).attr("style")=="object"){d(this).attr("style")["cssText"]="";d(this).attr("style")["cssText"]=p}else{d(this).attr("style",p)}if(h.add){d(this).addClass(h.add)}if(h.remove){d(this).removeClass(h.remove)}if(f){f.apply(this,arguments)}})})}};function c(g,f){var i=g[1]&&g[1].constructor==Object?g[1]:{};if(f){i.mode=f}var h=g[1]&&g[1].constructor!=Object?g[1]:(i.duration?i.duration:g[2]);h=d.fx.off?0:typeof h==="number"?h:d.fx.speeds[h]||d.fx.speeds._default;var j=i.callback||(d.isFunction(g[1])&&g[1])||(d.isFunction(g[2])&&g[2])||(d.isFunction(g[3])&&g[3]);return[g[0],i,h,j]}d.fn.extend({_show:d.fn.show,_hide:d.fn.hide,__toggle:d.fn.toggle,_addClass:d.fn.addClass,_removeClass:d.fn.removeClass,_toggleClass:d.fn.toggleClass,effect:function(g,f,h,i){return d.effects[g]?d.effects[g].call(this,{method:g,options:f||{},duration:h,callback:i}):null},show:function(){if(!arguments[0]||(arguments[0].constructor==Number||(/(slow|normal|fast)/).test(arguments[0]))){return this._show.apply(this,arguments)}else{return this.effect.apply(this,c(arguments,"show"))}},hide:function(){if(!arguments[0]||(arguments[0].constructor==Number||(/(slow|normal|fast)/).test(arguments[0]))){return this._hide.apply(this,arguments)}else{return this.effect.apply(this,c(arguments,"hide"))}},toggle:function(){if(!arguments[0]||(arguments[0].constructor==Number||(/(slow|normal|fast)/).test(arguments[0]))||(d.isFunction(arguments[0])||typeof arguments[0]=="boolean")){return this.__toggle.apply(this,arguments)}else{return this.effect.apply(this,c(arguments,"toggle"))}},addClass:function(g,f,i,h){return f?d.effects.animateClass.apply(this,[{add:g},f,i,h]):this._addClass(g)},removeClass:function(g,f,i,h){return f?d.effects.animateClass.apply(this,[{remove:g},f,i,h]):this._removeClass(g)},toggleClass:function(g,f,i,h){return((typeof f!=="boolean")&&f)?d.effects.animateClass.apply(this,[{toggle:g},f,i,h]):this._toggleClass(g,f)},morph:function(f,h,g,j,i){return d.effects.animateClass.apply(this,[{add:h,remove:f},g,j,i])},switchClass:function(){return this.morph.apply(this,arguments)},cssUnit:function(f){var g=this.css(f),h=[];d.each(["em","px","%","pt"],function(j,k){if(g.indexOf(k)>0){h=[parseFloat(g),k]}});return h}});d.each(["backgroundColor","borderBottomColor","borderLeftColor","borderRightColor","borderTopColor","color","outlineColor"],function(g,f){d.fx.step[f]=function(h){if(h.state==0){h.start=e(h.elem,f);h.end=b(h.end)}h.elem.style[f]="rgb("+[Math.max(Math.min(parseInt((h.pos*(h.end[0]-h.start[0]))+h.start[0],10),255),0),Math.max(Math.min(parseInt((h.pos*(h.end[1]-h.start[1]))+h.start[1],10),255),0),Math.max(Math.min(parseInt((h.pos*(h.end[2]-h.start[2]))+h.start[2],10),255),0)].join(",")+")"}});function b(g){var f;if(g&&g.constructor==Array&&g.length==3){return g}if(f=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(g)){return[parseInt(f[1],10),parseInt(f[2],10),parseInt(f[3],10)]}if(f=/rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(g)){return[parseFloat(f[1])*2.55,parseFloat(f[2])*2.55,parseFloat(f[3])*2.55]}if(f=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(g)){return[parseInt(f[1],16),parseInt(f[2],16),parseInt(f[3],16)]}if(f=/#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(g)){return[parseInt(f[1]+f[1],16),parseInt(f[2]+f[2],16),parseInt(f[3]+f[3],16)]}if(f=/rgba\(0, 0, 0, 0\)/.exec(g)){return a.transparent}return a[d.trim(g).toLowerCase()]}function e(h,f){var g;do{g=d.curCSS(h,f);if(g!=""&&g!="transparent"||d.nodeName(h,"body")){break}f="backgroundColor"}while(h=h.parentNode);return b(g)}var a={aqua:[0,255,255],azure:[240,255,255],beige:[245,245,220],black:[0,0,0],blue:[0,0,255],brown:[165,42,42],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgrey:[169,169,169],darkgreen:[0,100,0],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkviolet:[148,0,211],fuchsia:[255,0,255],gold:[255,215,0],green:[0,128,0],indigo:[75,0,130],khaki:[240,230,140],lightblue:[173,216,230],lightcyan:[224,255,255],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightyellow:[255,255,224],lime:[0,255,0],magenta:[255,0,255],maroon:[128,0,0],navy:[0,0,128],olive:[128,128,0],orange:[255,165,0],pink:[255,192,203],purple:[128,0,128],violet:[128,0,128],red:[255,0,0],silver:[192,192,192],white:[255,255,255],yellow:[255,255,0],transparent:[255,255,255]};d.easing.jswing=d.easing.swing;d.extend(d.easing,{def:"easeOutQuad",swing:function(g,h,f,j,i){return d.easing[d.easing.def](g,h,f,j,i)},easeInQuad:function(g,h,f,j,i){return j*(h/=i)*h+f},easeOutQuad:function(g,h,f,j,i){return -j*(h/=i)*(h-2)+f},easeInOutQuad:function(g,h,f,j,i){if((h/=i/2)<1){return j/2*h*h+f}return -j/2*((--h)*(h-2)-1)+f},easeInCubic:function(g,h,f,j,i){return j*(h/=i)*h*h+f},easeOutCubic:function(g,h,f,j,i){return j*((h=h/i-1)*h*h+1)+f},easeInOutCubic:function(g,h,f,j,i){if((h/=i/2)<1){return j/2*h*h*h+f}return j/2*((h-=2)*h*h+2)+f},easeInQuart:function(g,h,f,j,i){return j*(h/=i)*h*h*h+f},easeOutQuart:function(g,h,f,j,i){return -j*((h=h/i-1)*h*h*h-1)+f},easeInOutQuart:function(g,h,f,j,i){if((h/=i/2)<1){return j/2*h*h*h*h+f}return -j/2*((h-=2)*h*h*h-2)+f},easeInQuint:function(g,h,f,j,i){return j*(h/=i)*h*h*h*h+f},easeOutQuint:function(g,h,f,j,i){return j*((h=h/i-1)*h*h*h*h+1)+f},easeInOutQuint:function(g,h,f,j,i){if((h/=i/2)<1){return j/2*h*h*h*h*h+f}return j/2*((h-=2)*h*h*h*h+2)+f},easeInSine:function(g,h,f,j,i){return -j*Math.cos(h/i*(Math.PI/2))+j+f},easeOutSine:function(g,h,f,j,i){return j*Math.sin(h/i*(Math.PI/2))+f},easeInOutSine:function(g,h,f,j,i){return -j/2*(Math.cos(Math.PI*h/i)-1)+f},easeInExpo:function(g,h,f,j,i){return(h==0)?f:j*Math.pow(2,10*(h/i-1))+f},easeOutExpo:function(g,h,f,j,i){return(h==i)?f+j:j*(-Math.pow(2,-10*h/i)+1)+f},easeInOutExpo:function(g,h,f,j,i){if(h==0){return f}if(h==i){return f+j}if((h/=i/2)<1){return j/2*Math.pow(2,10*(h-1))+f}return j/2*(-Math.pow(2,-10*--h)+2)+f},easeInCirc:function(g,h,f,j,i){return -j*(Math.sqrt(1-(h/=i)*h)-1)+f},easeOutCirc:function(g,h,f,j,i){return j*Math.sqrt(1-(h=h/i-1)*h)+f},easeInOutCirc:function(g,h,f,j,i){if((h/=i/2)<1){return -j/2*(Math.sqrt(1-h*h)-1)+f}return j/2*(Math.sqrt(1-(h-=2)*h)+1)+f},easeInElastic:function(g,i,f,m,l){var j=1.70158;var k=0;var h=m;if(i==0){return f}if((i/=l)==1){return f+m}if(!k){k=l*0.3}if(h<Math.abs(m)){h=m;var j=k/4}else{var j=k/(2*Math.PI)*Math.asin(m/h)}return -(h*Math.pow(2,10*(i-=1))*Math.sin((i*l-j)*(2*Math.PI)/k))+f},easeOutElastic:function(g,i,f,m,l){var j=1.70158;var k=0;var h=m;if(i==0){return f}if((i/=l)==1){return f+m}if(!k){k=l*0.3}if(h<Math.abs(m)){h=m;var j=k/4}else{var j=k/(2*Math.PI)*Math.asin(m/h)}return h*Math.pow(2,-10*i)*Math.sin((i*l-j)*(2*Math.PI)/k)+m+f},easeInOutElastic:function(g,i,f,m,l){var j=1.70158;var k=0;var h=m;if(i==0){return f}if((i/=l/2)==2){return f+m}if(!k){k=l*(0.3*1.5)}if(h<Math.abs(m)){h=m;var j=k/4}else{var j=k/(2*Math.PI)*Math.asin(m/h)}if(i<1){return -0.5*(h*Math.pow(2,10*(i-=1))*Math.sin((i*l-j)*(2*Math.PI)/k))+f}return h*Math.pow(2,-10*(i-=1))*Math.sin((i*l-j)*(2*Math.PI)/k)*0.5+m+f},easeInBack:function(g,h,f,k,j,i){if(i==undefined){i=1.70158}return k*(h/=j)*h*((i+1)*h-i)+f},easeOutBack:function(g,h,f,k,j,i){if(i==undefined){i=1.70158}return k*((h=h/j-1)*h*((i+1)*h+i)+1)+f},easeInOutBack:function(g,h,f,k,j,i){if(i==undefined){i=1.70158}if((h/=j/2)<1){return k/2*(h*h*(((i*=(1.525))+1)*h-i))+f}return k/2*((h-=2)*h*(((i*=(1.525))+1)*h+i)+2)+f},easeInBounce:function(g,h,f,j,i){return j-d.easing.easeOutBounce(g,i-h,0,j,i)+f},easeOutBounce:function(g,h,f,j,i){if((h/=i)<(1/2.75)){return j*(7.5625*h*h)+f}else{if(h<(2/2.75)){return j*(7.5625*(h-=(1.5/2.75))*h+0.75)+f}else{if(h<(2.5/2.75)){return j*(7.5625*(h-=(2.25/2.75))*h+0.9375)+f}else{return j*(7.5625*(h-=(2.625/2.75))*h+0.984375)+f}}}},easeInOutBounce:function(g,h,f,j,i){if(h<i/2){return d.easing.easeInBounce(g,h*2,0,j,i)*0.5+f}return d.easing.easeOutBounce(g,h*2-i,0,j,i)*0.5+j*0.5+f}})})(jQuery);
