/*rev:573*/if(typeof DIALOGIC==="undefined"||!DIALOGIC){DIALOGIC={version:"1.0"}}if(typeof(DIALOGIC)=="undefined"){DIALOGIC={base:"www.dialogic.com"}}else{DIALOGIC.base="www.dialogic.com"}DIALOGIC.load={css:function(b,c){if($("link[href="+b+"]").length>0){return}var a=c===undefined||c===null?"all":c;$("<link>").appendTo("head").attr({rel:"stylesheet",type:"text/css",media:a,href:b})}};DIALOGIC.reloadMe=function(){if(DIALOGIC.renderLogin.defaults.redirect!=""){location.href=DIALOGIC.renderLogin.defaults.redirect}else{location.reload()}};DIALOGIC.renderLogin=function(options){var D=DIALOGIC;var Drd=D.renderLogin.defaults;var opts=$.extend(true,Drd,options);var init=function(){if($(opts.prependTo).length===0){opts.prependTo="body"}var $loginw=$("."+opts.container);if($loginw.length===0){opts.container="loginw";$(opts.prependTo).prepend('<div class="'+opts.container+'" style="display:none"><a class="loginlink" href="">Login</a> | <a class="register" href="https://'+D.base+"/profile/register.htm?ReturnURL="+location.href+'">Register</a></div>');$loginw=$("."+opts.container);$loginw.css(Drd.position)}if($("#dialog-form").length===0){$dialogForm=$('<div id="dialog-form" title="" style="display:none"><div class="msg">&nbsp;</div><form action="'+opts.url+'" method="post" name="dialoglform" id="dialoglform"><label for="loginid">Email/Username</label><input type="text" name="loginid" id="loginid" value="" class="text ui-widget-content ui-corner-all" /><label for="password">Password</label><input type="password" name="password" id="password" value="" class="text ui-widget-content ui-corner-all" /><div><input type="checkbox" id="remlogin" name="remlogin" /><label for="remlogin"> Remember my login</label></div><div style="display:none;"><input type="checkbox" id="rempass" name="rempass" /><label for="rempass"> Remember my password</label></div><input type="hidden" name="redirect" value="'+opts.redirect+'" /><div style="margin-top:10px;"><a href="https://'+D.base+"/profile/forgot-my-password.htm?ReturnURL="+location.href+'" >Forgot My Password</a> | <a class="reg" href="https://'+D.base+"/profile/register.htm?ReturnURL="+location.href+'">Register</a></div></form></div>').appendTo($("body"));var cookie=DIALOGIC.utils.cookie("saveAuth");if(cookie==null){cookie={}}$("#remlogin").click(function(){if($(this).attr("checked")){$("#rempass").parent().slideDown("fast")}else{$("#password").val("");$("#rempass").attr("checked",null);$("#rempass").parent().slideUp("fast")}});$("#rempass").click(function(){if(!$(this).attr("checked")){$("#password").val("")}});if(cookie.l){$("#loginid").val(cookie.l);$("#remlogin").attr("checked","checked");$("#rempass").parent().css("display","block")}if(cookie.p&&!isNaN(parseInt(cookie.pl))){var holder="";var i=cookie.pl;while(i>0){holder+="*";--i}$("#password").val(holder);$("#rempass").attr("checked","checked")}}$(".loginlink").click(function(){$dialogForm.dialog("open");$("#loginid").focus();return false});$dialogForm.dialog({autoOpen:false,dialogClass:"dialogloginw",width:400,position:"center",modal:false,buttons:{Login:function(){if($("#dialoglform").validate().form()){var datas={loginid:$("#loginid").val(),password:$("#password").val(),remlogin:$("#remlogin").attr("checked"),rempass:$("#rempass").attr("checked"),ajax:1,r:opts.role};if(cookie.p&&$("#rempass").attr("checked")){datas.password=cookie.p;datas.enc=1}setLoginButtons.processing();$.ajax({url:opts.url,dataType:"jsonp",type:"GET",data:datas,error:function(XMLHttpRequest,textStatus,errorThrown){$("#dialog-form .msg").append('<div class="error">A communication error occured.<br /> '+textStatus+"</div>");setLoginButtons.login()},success:function(d){if(d.error!=""){$("#dialog-form .msg").html('<div class="error">'+d.error+"</div>");setLoginButtons.login()}else{var msg=eval(Drd.successMessage);$("#dialoglform").hide("fast");$dialogForm.find(".msg").html('<div class="loginsuccess">'+msg+"</div>").show("fast");setLoginButtons.reload();setTimeout(D.reloadMe,Drd.reloadTime)}}})}else{$("#dialoglform").validate()}},Cancel:function(){$(this).dialog("close");setLoginButtons.login()}}});var setLoginButtons=function(){var buttons=$(".dialogloginw .ui-dialog-buttonpane").children("button");var buttons0=$(buttons[0]);var buttons1=$(buttons[1]);var msg=$("#dialog-form .msg");buttons.removeClass("ui-button-text-only").addClass("ui-button-text-icon");buttons0.append("<span class='ui-icon ui-icon-check'></span>");buttons1.append("<span class='ui-icon ui-icon-close'></span>");return{login:function(){buttons0.attr("disabled","");buttons0.find("span").removeClass("ui-icon-transfer-e-w").addClass("ui-icon-check").text("Login")},processing:function(){msg.html("Logging in...").show("fast");buttons0.attr("disabled","disabled");buttons0.find("span").removeClass("ui-icon-check").addClass("ui-icon-transfer-e-w").text("Processing")},reload:function(){buttons0.attr("disabled","");buttons0.find("span").removeClass("ui-icon-transfer-e-w").addClass("ui-icon-refresh").text("Reload");buttons1.remove();buttons0.unbind();buttons0.click(D.reloadMe)}}}();setLoginButtons.login();$("#dialog-form input").keyup(function(e){if(e.keyCode==13){$(".ui-dialog-buttonpane button").eq(0).trigger("click");return false}return false});$loginw.fadeIn("slow");var validator=$("#dialoglform").validate({rules:{loginid:{required:true,minlength:4},password:{required:true,minlength:4}},messages:{loginid:{required:" invalid",minlength:" invalid, not long enough"},password:{required:" invalid",minlength:" invalid, not long enough"}},errorClass:"error",validClass:"checked",errorPlacement:function(error,element){element.prev("label").append(error)},success:function(label){label.addClass("checked").html("&nbsp;")},submitHandler:function(){}})},loadScripts=function(){var preloaded=0;var preload=function(){preloaded++;if(preloaded==Drd.load.length){init()}};for(x=0;x<Drd.load.length;x++){var f=Drd.load[x];if(f.indexOf(".css")>-1){D.load.css(f);preload()}else{$.getScript(f,preload)}}};if(Drd.loadScripts){loadScripts()}else{init()}};DIALOGIC.renderLogin.defaults={container:"loginw",url:"https://"+DIALOGIC.base+"/profile/loginp.htm",redirect:"",reloadTime:4000,role:"Registration",position:{position:"absolute",width:"960px","text-align":"right",top:"8px",right:"50px"},prependTo:"div.header-holder",loadScripts:true,load:["//www.dialogic.com/static/css/jquery-ui-1.8.custom.fer.css","//www.dialogic.com/static/js/jq/jquery.validate.min.js","//www.dialogic.com/static/js/jq/ui/js/jquery-ui-1.8.2.custom-login.min.js"],successMessage:"'<b>Login successful!</b><br /><br />Welcome ' + d.fname + '  ' + d.lname + '.<br /><br />This page will reload in ' + (DIALOGIC.renderLogin.defaults.reloadTime/1000) + ' seconds.<br /><br />'",successRedirectMessage:"'<b>Login successful!</b><br /><br />Welcome ' + d.fname + '  ' + d.lname + '.<br /><br />You will be redirected in ' + (DIALOGIC.renderLogin.defaults.reloadTime/1000) + ' seconds.<br /><br />'"};(function(d){d.fn.jqm=function(f){var e={overlay:50,overlayClass:"jqmOverlay",closeClass:"jqmClose",trigger:".jqModal",ajax:o,ajaxText:"",target:o,modal:o,toTop:o,onShow:o,onHide:o,onLoad:o};return this.each(function(){if(this._jqm){return n[this._jqm].c=d.extend({},n[this._jqm].c,f)}p++;this._jqm=p;n[p]={c:d.extend(e,d.jqm.params,f),a:o,w:d(this).addClass("jqmID"+p),s:p};if(e.trigger){d(this).jqmAddTrigger(e.trigger)}})};d.fn.jqmAddClose=function(f){return l(this,f,"jqmHide")};d.fn.jqmAddTrigger=function(f){return l(this,f,"jqmShow")};d.fn.jqmShow=function(e){return this.each(function(){e=e||window.event;d.jqm.open(this._jqm,e)})};d.fn.jqmHide=function(e){return this.each(function(){e=e||window.event;d.jqm.close(this._jqm,e)})};d.jqm={hash:{},open:function(C,B){var m=n[C],q=m.c,i="."+q.closeClass,v=(parseInt(m.w.css("z-index"))),v=(v>0)?v:3000,f=d("<div></div>").css({height:"100%",width:"100%",position:"fixed",left:0,top:0,"z-index":v-1,opacity:q.overlay/100});if(m.a){return o}m.t=B;m.a=true;m.w.css("z-index",v);if(q.modal){if(!a[0]){k("bind")}a.push(C)}else{if(q.overlay>0){m.w.jqmAddClose(f)}else{f=o}}m.o=(f)?f.addClass(q.overlayClass).prependTo("body"):o;if(c){d("html,body").css({height:"100%",width:"100%"});if(f){f=f.css({position:"absolute"})[0];for(var w in {Top:1,Left:1}){f.style.setExpression(w.toLowerCase(),"(_=(document.documentElement.scroll"+w+" || document.body.scroll"+w+"))+'px'")}}}if(q.ajax){var e=q.target||m.w,A=q.ajax,e=(typeof e=="string")?d(e,m.w):d(e),A=(A.substr(0,1)=="@")?d(B).attr(A.substring(1)):A;e.html(q.ajaxText).load(A,function(){if(q.onLoad){q.onLoad.call(this,m)}if(i){m.w.jqmAddClose(d(i,m.w))}j(m)})}else{if(i){m.w.jqmAddClose(d(i,m.w))}}if(q.toTop&&m.o){m.w.before('<span id="jqmP'+m.w[0]._jqm+'"></span>').insertAfter(m.o)}(q.onShow)?q.onShow(m):m.w.show();j(m);return o},close:function(f){var e=n[f];if(!e.a){return o}e.a=o;if(a[0]){a.pop();if(!a[0]){k("unbind")}}if(e.c.toTop&&e.o){d("#jqmP"+e.w[0]._jqm).after(e.w).remove()}if(e.c.onHide){e.c.onHide(e)}else{e.w.hide();if(e.o){e.o.remove()}}return o},params:{}};var p=0,n=d.jqm.hash,a=[],c=d.browser.msie&&(d.browser.version=="6.0"),o=false,g=d('<iframe src="javascript:false;document.write(\'\');" class="jqm"></iframe>').css({opacity:0}),j=function(e){if(c){if(e.o){e.o.html('<p style="width:100%;height:100%"/>').prepend(g)}else{if(!d("iframe.jqm",e.w)[0]){e.w.prepend(g)}}}h(e)},h=function(f){try{d(":input:visible",f.w)[0].focus()}catch(e){}},k=function(e){d()[e]("keypress",b)[e]("keydown",b)[e]("mousedown",b)},b=function(m){var f=n[a[a.length-1]],i=(!d(m.target).parents(".jqmID"+f.s)[0]);if(i){h(f)}return !i},l=function(e,f,i){return e.each(function(){var m=this._jqm;d(f).each(function(){if(!this[i]){this[i]=[];d(this).click(function(){for(var q in {jqmShow:1,jqmHide:1}){for(var r in this[q]){if(n[this[q][r]]){n[this[q][r]].w[q](this)}}}return o})}this[i].push(m)})})}})(jQuery);(function(){function v(a){console.log("$f.fireEvent",[].slice.call(a))}function r(a){if(!a||typeof a!="object"){return a}var c=new a.constructor();for(var b in a){if(a.hasOwnProperty(b)){c[b]=r(a[b])}}return c}function p(a,d){if(!a){return}var f,e=0,c=a.length;if(c===undefined){for(f in a){if(d.call(a[f],f,a[f])===false){break}}}else{for(var b=a[0];e<c&&d.call(b,e,b)!==false;b=a[++e]){}}return a}function A(a){return document.getElementById(a)}function t(a,b,c){if(typeof b!="object"){return a}if(a&&b){p(b,function(e,d){if(!c||typeof d!="function"){a[e]=d}})}return a}function o(a){var c=a.indexOf(".");if(c!=-1){var d=a.substring(0,c)||"*";var e=a.substring(c+1,a.length);var b=[];p(document.getElementsByTagName(d),function(){if(this.className&&this.className.indexOf(e)!=-1){b.push(this)}});return b}}function w(a){a=a||window.event;if(a.preventDefault){a.stopPropagation();a.preventDefault()}else{a.returnValue=false;a.cancelBubble=true}return false}function s(a,c,b){a[c]=a[c]||[];a[c].push(b)}function y(){return"_"+(""+Math.random()).substring(2,10)}var u=function(b,d,c){var e=this;var f={};var a={};e.index=d;if(typeof b=="string"){b={url:b}}t(this,b,true);p(("Begin*,Start,Pause*,Resume*,Seek*,Stop*,Finish*,LastSecond,Update,BufferFull,BufferEmpty,BufferStop").split(","),function(){var i="on"+this;if(i.indexOf("*")!=-1){i=i.substring(0,i.length-1);var h="onBefore"+i.substring(2);e[h]=function(j){s(a,h,j);return e}}e[i]=function(j){s(a,i,j);return e};if(d==-1){if(e[h]){c[h]=e[h]}if(e[i]){c[i]=e[i]}}});t(this,{onCuepoint:function(h,i){if(arguments.length==1){f.embedded=[null,h];return e}if(typeof h=="number"){h=[h]}var j=y();f[j]=[h,i];if(c.isLoaded()){c._api().fp_addCuepoints(h,d,j)}return e},update:function(i){t(e,i);if(c.isLoaded()){c._api().fp_updateClip(i,d)}var j=c.getConfig();var h=(d==-1)?j.clip:j.playlist[d];t(h,i,true)},_fireEvent:function(k,m,j,i){if(k=="onLoad"){p(f,function(D,n){if(n[0]){c._api().fp_addCuepoints(n[0],d,D)}});return false}i=i||e;if(k=="onCuepoint"){var l=f[m];if(l){return l[1].call(c,i,j)}}if(m&&"onBeforeBegin,onMetaData,onStart,onUpdate,onResume".indexOf(k)!=-1){t(i,m);if(m.metaData){if(!i.duration){i.duration=m.metaData.duration}else{i.fullDuration=m.metaData.duration}}}var h=true;p(a[k],function(){h=this.call(c,i,m,j)});return h}});if(b.onCuepoint){var g=b.onCuepoint;e.onCuepoint.apply(e,typeof g=="function"?[g]:g);delete b.onCuepoint}p(b,function(i,h){if(typeof h=="function"){s(a,i,h);delete b[i]}});if(d==-1){c.onCuepoint=this.onCuepoint}};var q=function(f,d,e,b){var c={};var g=this;var a=false;if(b){t(c,b)}p(d,function(i,h){if(typeof h=="function"){c[i]=h;delete d[i]}});t(this,{animate:function(l,k,h){if(!l){return g}if(typeof k=="function"){h=k;k=500}if(typeof l=="string"){var i=l;l={};l[i]=k;k=500}if(h){var j=y();c[j]=h}if(k===undefined){k=500}d=e._api().fp_animate(f,l,k,j);return g},css:function(i,h){if(h!==undefined){var j={};j[i]=h;i=j}d=e._api().fp_css(f,i);t(g,d);return g},show:function(){this.display="block";e._api().fp_showPlugin(f);return g},hide:function(){this.display="none";e._api().fp_hidePlugin(f);return g},toggle:function(){this.display=e._api().fp_togglePlugin(f);return g},fadeTo:function(k,h,i){if(typeof h=="function"){i=h;h=500}if(i){var j=y();c[j]=i}this.display=e._api().fp_fadeTo(f,k,h,j);this.opacity=k;return g},fadeIn:function(h,i){return g.fadeTo(1,h,i)},fadeOut:function(h,i){return g.fadeTo(0,h,i)},getName:function(){return f},getPlayer:function(){return e},_fireEvent:function(i,j,h){if(i=="onUpdate"){var l=e._api().fp_getPlugin(f);if(!l){return}t(g,l);delete g.methods;if(!a){p(l.methods,function(){var m=""+this;g[m]=function(){var D=[].slice.call(arguments);var n=e._api().fp_invoke(f,m,D);return n==="undefined"||n===undefined?g:n}});a=true}}var k=c[i];if(k){k.apply(g,j);if(i.substring(0,1)=="_"){delete c[i]}}}})};function B(h,F,i){var H=this,j=null,k,n,f=[],G={},e={},b,m,l,a,g,d;t(H,{id:function(){return b},isLoaded:function(){return(j!==null)},getParent:function(){return h},hide:function(D){if(D){h.style.height="0px"}if(j){j.style.height="0px"}return H},show:function(){h.style.height=d+"px";if(j){j.style.height=g+"px"}return H},isHidden:function(){return j&&parseInt(j.style.height,10)===0},load:function(D){if(!j&&H._fireEvent("onBeforeLoad")!==false){p(C,function(){this.unload()});k=h.innerHTML;if(k&&!flashembed.isSupported(F.version)){h.innerHTML=""}flashembed(h,F,{config:i});if(D){D.cached=true;s(e,"onLoad",D)}}return H},unload:function(){if(k.replace(/\s/g,"")!==""){if(H._fireEvent("onBeforeUnload")===false){return H}try{if(j){j.fp_close();H._fireEvent("onUnload")}}catch(D){}j=null;h.innerHTML=k}return H},getClip:function(D){if(D===undefined){D=a}return f[D]},getCommonClip:function(){return n},getPlaylist:function(){return f},getPlugin:function(I){var D=G[I];if(!D&&H.isLoaded()){var E=H._api().fp_getPlugin(I);if(E){D=new q(I,E,H);G[I]=D}}return D},getScreen:function(){return H.getPlugin("screen")},getControls:function(){return H.getPlugin("controls")},getConfig:function(D){return D?r(i):i},getFlashParams:function(){return F},loadPlugin:function(N,O,E,M){if(typeof E=="function"){M=E;E={}}var P=M?y():"_";H._api().fp_loadPlugin(N,O,E,P);var Q={};Q[P]=M;var D=new q(N,null,H,Q);G[N]=D;return D},getState:function(){return j?j.fp_getState():-1},play:function(E,I){function D(){if(E!==undefined){H._api().fp_play(E,I)}else{H._api().fp_play()}}if(j){D()}else{H.load(function(){D()})}return H},getVersion:function(){var D="flowplayer.js 3.1.4";if(j){var E=j.fp_getVersion();E.push(D);return E}return D},_api:function(){if(!j){throw"Flowplayer "+H.id()+" not loaded when calling an API method"}return j},setClip:function(D){H.setPlaylist([D]);return H},getIndex:function(){return l}});p(("Click*,Load*,Unload*,Keypress*,Volume*,Mute*,Unmute*,PlaylistReplace,ClipAdd,Fullscreen*,FullscreenExit,Error,MouseOver,MouseOut").split(","),function(){var E="on"+this;if(E.indexOf("*")!=-1){E=E.substring(0,E.length-1);var D="onBefore"+E.substring(2);H[D]=function(I){s(e,D,I);return H}}H[E]=function(I){s(e,E,I);return H}});p(("pause,resume,mute,unmute,stop,toggle,seek,getStatus,getVolume,setVolume,getTime,isPaused,isPlaying,startBuffering,stopBuffering,isFullscreen,toggleFullscreen,reset,close,setPlaylist,addClip,playFeed").split(","),function(){var D=this;H[D]=function(J,K){if(!j){return H}var E=null;if(J!==undefined&&K!==undefined){E=j["fp_"+D](J,K)}else{E=(J===undefined)?j["fp_"+D]():j["fp_"+D](J)}return E==="undefined"||E===undefined?H:E}});H._fireEvent=function(E){if(typeof E=="string"){E=[E]}var D=E[0],R=E[1],T=E[2],U=E[3],V=0;if(i.debug){v(E)}if(!j&&D=="onLoad"&&R=="player"){j=j||A(m);g=j.clientHeight;p(f,function(){this._fireEvent("onLoad")});p(G,function(J,I){I._fireEvent("onUpdate")});n._fireEvent("onLoad")}if(D=="onLoad"&&R!="player"){return}if(D=="onError"){if(typeof R=="string"||(typeof R=="number"&&typeof T=="number")){R=T;T=U}}if(D=="onContextMenu"){p(i.contextMenu[R],function(J,I){I.call(H)});return}if(D=="onPluginEvent"){var Y=R.name||R;var X=G[Y];if(X){X._fireEvent("onUpdate",R);X._fireEvent(T,E.slice(3))}return}if(D=="onPlaylistReplace"){f=[];var S=0;p(R,function(){f.push(new u(this,S++,H))})}if(D=="onClipAdd"){if(R.isInStream){return}R=new u(R,T,H);f.splice(T,0,R);for(V=T+1;V<f.length;V++){f[V].index++}}var Q=true;if(typeof R=="number"&&R<f.length){a=R;var W=f[R];if(W){Q=W._fireEvent(D,T,U)}if(!W||Q!==false){Q=n._fireEvent(D,T,U,W)}}p(e[D],function(){Q=this.call(H,R,T);if(this.cached){e[D].splice(V,1)}if(Q===false){return false}V++});return Q};function c(){if($f(h)){$f(h).getParent().innerHTML="";l=$f(h).getIndex();C[l]=H}else{C.push(H);l=C.length-1}d=parseInt(h.style.height,10)||h.clientHeight;if(typeof F=="string"){F={src:F}}b=h.id||"fp"+y();m=F.id||b+"_api";F.id=m;i.playerId=b;if(typeof i=="string"){i={clip:{url:i}}}if(typeof i.clip=="string"){i.clip={url:i.clip}}i.clip=i.clip||{};if(h.getAttribute("href",2)&&!i.clip.url){i.clip.url=h.getAttribute("href",2)}n=new u(i.clip,-1,H);i.playlist=i.playlist||[i.clip];var E=0;p(i.playlist,function(){var I=this;if(typeof I=="object"&&I.length){I={url:""+I}}p(i.clip,function(L,K){if(K!==undefined&&I[L]===undefined&&typeof K!="function"){I[L]=K}});i.playlist[E]=I;I=new u(I,E,H);f.push(I);E++});p(i,function(K,J){if(typeof J=="function"){if(n[K]){n[K](J)}else{s(e,K,J)}delete i[K]}});p(i.plugins,function(K,J){if(J){G[K]=new q(K,J,H)}});if(!i.plugins||i.plugins.controls===undefined){G.controls=new q("controls",null,H)}G.canvas=new q("canvas",null,H);F.bgcolor=F.bgcolor||"#000000";F.version=F.version||[9,0];F.expressInstall="http://www.flowplayer.org/swf/expressinstall.swf";function D(I){if(!H.isLoaded()&&H._fireEvent("onBeforeClick")!==false){H.load()}return w(I)}k=h.innerHTML;if(k.replace(/\s/g,"")!==""){if(h.addEventListener){h.addEventListener("click",D,false)}else{if(h.attachEvent){h.attachEvent("onclick",D)}}}else{if(h.addEventListener){h.addEventListener("click",w,false)}H.load()}}if(typeof h=="string"){flashembed.domReady(function(){var D=A(h);if(!D){throw"Flowplayer cannot access element: "+h}else{h=D;c()}})}else{c()}}var C=[];function z(a){this.length=a.length;this.each=function(b){p(a,b)};this.size=function(){return a.length}}window.flowplayer=window.$f=function(){var e=null;var f=arguments[0];if(!arguments.length){p(C,function(){if(this.isLoaded()){e=this;return false}});return e||C[0]}if(arguments.length==1){if(typeof f=="number"){return C[f]}else{if(f=="*"){return new z(C)}p(C,function(){if(this.id()==f.id||this.id()==f||this.getParent()==f){e=this;return false}});return e}}if(arguments.length>1){var c=arguments[1];var d=(arguments.length==3)?arguments[2]:{};if(typeof f=="string"){if(f.indexOf(".")!=-1){var a=[];p(o(f),function(){a.push(new B(this,r(c),r(d)))});return new z(a)}else{var b=A(f);return new B(b!==null?b:f,c,d)}}else{if(f){return new B(f,c,d)}}}return null};t(window.$f,{fireEvent:function(){var b=[].slice.call(arguments);var a=$f(b[0]);return a?a._fireEvent(b.slice(1)):null},addPlugin:function(b,a){B.prototype[b]=a;return $f},each:p,extend:t});if(typeof jQuery=="function"){jQuery.prototype.flowplayer=function(a,b){if(!arguments.length||typeof arguments[0]=="number"){var c=[];this.each(function(){var d=$f(this);if(d){c.push(d)}});return arguments.length?c[arguments[0]]:new z(c)}return this.each(function(){$f(this,r(a),b?r(b):{})})}}})();(function(){var p=typeof jQuery=="function";var l={width:"100%",height:"100%",allowfullscreen:true,allowscriptaccess:"always",quality:"high",version:null,onFail:null,expressInstall:null,w3c:false,cachebusting:false};if(p){jQuery.tools=jQuery.tools||{};jQuery.tools.flashembed={version:"1.0.4",conf:l}}function k(){if(r.done){return false}var a=document;if(a&&a.getElementsByTagName&&a.getElementById&&a.body){clearInterval(r.timer);r.timer=null;for(var b=0;b<r.ready.length;b++){r.ready[b].call()}r.ready=null;r.done=true}}var r=p?jQuery:function(a){if(r.done){return a()}if(r.timer){r.ready.push(a)}else{r.ready=[a];r.timer=setInterval(k,13)}};function o(a,b){if(b){for(key in b){if(b.hasOwnProperty(key)){a[key]=b[key]}}}return a}function n(c){switch(m(c)){case"string":c=c.replace(new RegExp('(["\\\\])',"g"),"\\$1");c=c.replace(/^\s?(\d+)%/,"$1pct");return'"'+c+'"';case"array":return"["+s(c,function(d){return n(d)}).join(",")+"]";case"function":return'"function()"';case"object":var b=[];for(var a in c){if(c.hasOwnProperty(a)){b.push('"'+a+'":'+n(c[a]))}}return"{"+b.join(",")+"}"}return String(c).replace(/\s/g," ").replace(/\'/g,'"')}function m(a){if(a===null||a===undefined){return false}var b=typeof a;return(b=="object"&&a.push)?"array":b}if(window.attachEvent){window.attachEvent("onbeforeunload",function(){__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){}})}function s(c,d){var a=[];for(var b in c){if(c.hasOwnProperty(b)){a[b]=d(c[b])}}return a}function t(e,c){var f=o({},e);var d=document.all;var h='<object width="'+f.width+'" height="'+f.height+'"';if(d&&!f.id){f.id="_"+(""+Math.random()).substring(9)}if(f.id){h+=' id="'+f.id+'"'}if(f.cachebusting){f.src+=((f.src.indexOf("?")!=-1?"&":"?")+Math.random())}if(f.w3c||!d){h+=' data="'+f.src+'" type="application/x-shockwave-flash"'}else{h+=' classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'}h+=">";if(f.w3c||d){h+='<param name="movie" value="'+f.src+'" />'}f.width=f.height=f.id=f.w3c=f.src=null;for(var b in f){if(f[b]!==null){h+='<param name="'+b+'" value="'+f[b]+'" />'}}var g="";if(c){for(var a in c){if(c[a]!==null){g+=a+"="+(typeof c[a]=="object"?n(c[a]):c[a])+"&"}}g=g.substring(0,g.length-1);h+='<param name="flashvars" value=\''+g+"' />"}h+="</object>";return h}function q(a,f,b){var c=flashembed.getVersion();o(this,{getContainer:function(){return a},getConf:function(){return f},getVersion:function(){return c},getFlashvars:function(){return b},getApi:function(){return a.firstChild},getHTML:function(){return t(f,b)}});var e=f.version;var d=f.expressInstall;var g=!e||flashembed.isSupported(e);if(g){f.onFail=f.version=f.expressInstall=null;a.innerHTML=t(f,b)}else{if(e&&d&&flashembed.isSupported([6,65])){o(f,{src:d});b={MMredirectURL:location.href,MMplayerType:"PlugIn",MMdoctitle:document.title};a.innerHTML=t(f,b)}else{if(a.innerHTML.replace(/\s/g,"")!==""){}else{a.innerHTML="<h2>Flash version "+e+" or greater is required</h2><h3>"+(c[0]>0?"Your version is "+c:"You have no flash plugin installed")+"</h3>"+(a.tagName=="A"?"<p>Click here to download latest version</p>":"<p>Download latest version from <a href='http://www.adobe.com/go/getflashplayer'>here</a></p>");if(a.tagName=="A"){a.onclick=function(){location.href="http://www.adobe.com/go/getflashplayer"}}}}}if(!g&&f.onFail){var h=f.onFail.call(this);if(typeof h=="string"){a.innerHTML=h}}if(document.all){window[f.id]=document.getElementById(f.id)}}window.flashembed=function(b,a,c){if(typeof b=="string"){var e=document.getElementById(b);if(e){b=e}else{r(function(){flashembed(b,a,c)});return}}if(!b){return}if(typeof a=="string"){a={src:a}}var d=o({},l);o(d,a);return new q(b,d,c)};o(window.flashembed,{getVersion:function(){var a=[0,0];if(navigator.plugins&&typeof navigator.plugins["Shockwave Flash"]=="object"){var b=navigator.plugins["Shockwave Flash"].description;if(typeof b!="undefined"){b=b.replace(/^.*\s+(\S+\s+\S+$)/,"$1");var h=parseInt(b.replace(/^(.*)\..*$/,"$1"),10);var d=/r/.test(b)?parseInt(b.replace(/^.*r(.*)$/,"$1"),10):0;a=[h,d]}}else{if(window.ActiveXObject){try{var f=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7")}catch(e){try{f=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");a=[6,0];f.AllowScriptAccess="always"}catch(c){if(a[0]==6){return a}}try{f=new ActiveXObject("ShockwaveFlash.ShockwaveFlash")}catch(g){}}if(typeof f=="object"){b=f.GetVariable("$version");if(typeof b!="undefined"){b=b.replace(/^\S+\s+(.*)$/,"$1").split(",");a=[parseInt(b[0],10),parseInt(b[2],10)]}}}}return a},isSupported:function(c){var a=flashembed.getVersion();var b=(a[0]>c[0])||(a[0]==c[0]&&a[1]>=c[1]);return b},domReady:r,asString:n,getHTML:t});if(p){jQuery.fn.flashembed=function(b,c){var a=null;this.each(function(){a=flashembed(this,b,c)});return b.api===false?this:a}}})();DIALOGIC.players={};(function(a){a.fn.video=function(c){var e={_div:a(this).attr("id"),backgroundUrl:"",background:"#0E309B url(/static/videos/flowplayer.bg.swf) no-repeat 0pct 0pct",plugins:{controls:{stop:true,autoBuffering:false,durationColor:"#ffffff",progressGradient:"medium",volumeSliderColor:"#000000",tooltipColor:"#0E309B",sliderGradient:"none",backgroundGradient:"10",borderRadius:"0",backgroundColor:"#0E309B",bufferGradient:"none",sliderColor:"#000000",buttonOverColor:"#0090CF",timeBgColor:"#0E309B",timeColor:"#666666",progressColor:"#0090CF",bufferColor:"#0E309B",volumeSliderGradient:"none",buttonColor:"#0E309B",tooltipTextColor:"#ffffff",height:20,opacity:1}},_SMILPlugins:{smil:{url:"/static/js/flowplayer/flowplayer.smil-3.1.3.swf"},rtmp:{url:"/static/js/flowplayer/flowplayer.rtmp-3.1.3.swf"}},_SMILProvider:{provider:"rtmp"},clip:{autoPlay:false,autoBuffering:false,scaling:"fit",onStart:function(f){_gaq.push(["_trackEvent","Videos","Play",f.originalUrl])},onPause:function(f){_gaq.push(["_trackEvent","Videos","Pause",f.originalUrl,parseInt(this.getTime())])},onResume:function(f){_gaq.push(["_trackEvent","Videos","Resume",f.originalUrl,parseInt(this.getTime())])},onStop:function(f){_gaq.push(["_trackEvent","Videos","Stop",f.originalUrl,parseInt(this.getTime())])},onFinish:function(f){_gaq.push(["_trackEvent","Videos","Finish",f.originalUrl])}}};var b=a(this).attr("href").indexOf(".smil")>-1?true:false;if(b){a.extend(true,e.plugins,e._SMILPlugins);a.extend(true,e.clip,e._SMILProvider)}a.extend(true,e,c);if(e.backgroundUrl!=""){e.background="#0E309B url("+e.backgroundUrl+") no-repeat 50pct 50pct"}var g={key:"#$ed7be423c754867c89f",canvas:{background:e.background,backgroundGradient:"none"},logo:{url:"/static/images/dialogic_logo_fp.png",top:45,right:5,fullscreenOnly:true,displayTime:0,opacity:0.6,linkUrl:"http://www.dialogic.com"},clip:e.clip,plugins:e.plugins};var d=$f(e._div,{src:"/static/js/flowplayer/flowplayer.commercial-3.1.4.swf",wmode:"transparent"},g);DIALOGIC.players[e._div]=d;return d}})(jQuery);DIALOGIC.doPopPlayer=function(){var b=DIALOGIC.modal;var c={clip:{autoPlay:true}};if(b.play==="false"){c={clip:{autoPlay:false}}}try{$("#popPlayer").attr("href",b.video);$("#popPlayer").css("width",b.width+"px");$("#popPlayer").css("height",b.height+"px");$("#playerContainer").css("height",b.height+"px");$("#playerContainer").css("width",b.width+"px");var g=$("body").width();var d=$("#videoPopUp").width();var a=parseInt((g-d)/2);$("#videoPopUp").css("margin-left",a);$("#popPlayer").video(c)}catch(f){return false}};DIALOGIC.setModalParams=function(b){var a=DIALOGIC.getHashValue(b);DIALOGIC.modal={play:a.play,video:a.video,width:a.width,height:a.height};return false};DIALOGIC.setUpModal=function(){$("#videoPopUp").jqm({ajax:"@href",trigger:"a.videoTrigger",onLoad:function(){DIALOGIC.doPopPlayer()},onHide:function(a){$("#videoPopUp").html("");a.w.hide();a.o.remove()}})};DIALOGIC.callHeroVideo=function(b){var d={container:"/include/heroContainer.htm",play:"true",video:"http://hwcdn.net/c9w4g7p8/fms/corp/Dialogic_FINAL_MASTER-h265-512-high.f4v.smil",width:"640",height:"380"};$.extend(true,d,b);var c=d.container+"?video="+d.video+"&play="+d.play+"&width="+d.width+"&height="+d.height;if(!DIALOGIC.JqmWindowExists()){$("body").append('<a href="'+c+'" class="videoTrigger heroTrigger"></a>');$("body").append('<div class="jqmWindow" id="videoPopUp"></div>')}else{$(".heroTrigger").attr("href",c);$("#videoPopUp").show()}var a=$(".heroTrigger");a.click(function(){DIALOGIC.setModalParams($(this).attr("href"));return false});DIALOGIC.setUpModal();a.click()};DIALOGIC.JqmWindowExists=function(){return($("#videoPopUp").length>0)?true:false};$(document).ready(function(){var a=$("a.videoTrigger");if(a.length>0){if(!DIALOGIC.JqmWindowExists()){$("body").append('<div class="jqmWindow" id="videoPopUp"></div>')}a.click(function(){var b=$(this);var c=DIALOGIC.getHashValue(b.attr("href"));if(typeof(c.video)=="string"&&typeof(c.x)=="undefined"){b.attr("href","/include/heroContainer.htm?video="+c.video+"&play="+c.play+"&width="+c.width+"&height="+c.height)}DIALOGIC.setModalParams(b.attr("href"));return false});DIALOGIC.setUpModal()}$("a.inlineVideoDisplay").each(function(){var b=$(this);var d=DIALOGIC.getHashValue(b.attr("href"));var c=d.play=="true"?true:false;if(typeof(d.video)=="string"){b.attr("href",d.video);b.css("width",d.width+"px");b.css("height",d.height+"px")}$("#"+b.attr("id")).video({clip:{autoPlay:c}})})});$(document).ready(function(){if($("#newtabs").length>0&&$(".tabHolder").length>0){$("[id^=tabs]").hide();$("[id^=tabs]:first").show();var b=$(".tabs-nav li a");b.click(function(){b.parent().removeClass("tabs-selected");$(this).parent().addClass("tabs-selected");$("[id^=tabs]").hide();var c=$(this).attr("href");$(c).show();return false})}if($(".getTab").length>0){var a=$("a.getTab");a.click(function(){var c=$(this).attr("href");$(".tabs-nav li a[href="+c+"]").click();return false})}});DIALOGIC.getHashValue=function(g){var c={};g=g.replace(/&amp;/g,"&");var b=g.slice(g.indexOf("?")+1).split("&");var f=b.slice("=");for(var d=0;d<f.length;d++){var h=f[d].indexOf("=");if(h===-1){continue}var a=f[d].substring(0,h);var e=f[d].substring(h+1);c[a]=unescape(e)}return c};jQuery.preloadImages=function(){for(var a=0;a<arguments.length;a++){jQuery("<img>").attr("src",arguments[a])}};if(typeof(DIALOGIC.utils)=="undefined"){DIALOGIC.utils={check_link:function(a){if(a.indexOf("http://")!=0){return"http://"+a}return a},filter:function(d,e,f){var c=[];for(var b in d){if(d[b][e]&&d[b][e].length){for(var a in d[b][e]){if(d[b][e][a].toLowerCase()==f.toLowerCase()){c.push(d[b]);break}}}else{if(d[b][e]&&d[b][e].toLowerCase()==f.toLowerCase()){c.push(d[b])}}}return c},distinct_attr:function(d,f){var e={};var b=[];for(var c in d){if(d[c][f]){for(var a in d[c][f]){if(d[c][f][a].length>0){e[d[c][f][a]]=true}}}}for(c in e){b.push(c)}return b},loading:function(a,d){var c=a.val();a.css({"text-align":"left"}).attr("disabled","disabled").val(d+" ");dots=0;var b=setInterval(function(){var e=d+" ";var f=dots;while(f>0){e+=".";--f}a.css({"text-align":"left"}).val(e);if(dots==5){dots=0}else{++dots}},100);this.stop=function(){clearInterval(b);a.css({"text-align":"center"}).attr("disabled",null).val(c)};return this},cookie:function(b){if($.cookie(b)){var e={};var g=$.cookie(b).split("&");for(var d in g){var c=g[d].indexOf("=");var a=g[d].substr(0,c);var f=g[d].substr(c+1);e[a]=f}return e}return null}}}function initPage(){var c=document.getElementById("nav");if(c){var a=c.getElementsByTagName("li");for(var b=0;b<a.length;b++){a[b].onmouseover=function(){if(this.className.indexOf("hover"==-1)){this.className+=" hover"}};a[b].onmouseout=function(){this.className=this.className.replace("hover","")}}}}if(window.attachEvent){window.attachEvent("onload",initPage)}if(typeof(DIALOGIC)=="undefined"){DIALOGIC={}}DIALOGIC.init_audio=function(b,a){$("a.audio").each(function(){$(this).replaceWith("<object onclick=\"DIALOGIC.track_audio ('"+$(this).html()+'\')" type="application/x-shockwave-flash" data="/static/swf/audioplayer.swf" id="audioplayer1" height="24" width="290"><param name="movie" value="/static/swf/audioplayer.swf"><param name="FlashVars" value="playerID=1&amp;bg=0xCDDFF3&amp;leftbg=0x357DCE&amp;lefticon=0xF2F2F2&amp;rightbg=0xa8b400&amp;rightbghover=0xdc7902&amp;righticon=0xF2F2F2&amp;righticonhover=0xFFFFFF&amp;text=0x357DCE&amp;slider=0x357DCE&amp;track=0xFFFFFF&amp;border=0xFFFFFF&amp;titles='+$(this).html()+"&amp;loader=0xa8b400&amp;soundFile="+$(this).attr("href")+'"><param name="quality" value="high"><param name="menu" value="false"><param name="wmode" value="transparent"></object>')})};DIALOGIC.trackAudio={};DIALOGIC.track_audio=function(a){if(!this.trackAudio[a]){this.trackAudio[a]=false}if(!this.trackAudio[a]){_gaq.push(["_trackEvent","Audio","Play",a]);this.trackAudio[a]=true}else{_gaq.push(["_trackEvent","Audio","Stop",a]);this.trackAudio[a]=false}};if(typeof(DIALOGIC)=="undefined"){DIALOGIC={}}DIALOGIC.AUTOCOMPLETE=function(c,d){this.populate_group=function(r,q){var p=$('<div class="AUTOCOMPLETE_choice group level_'+q+'"><span style="padding-left:'+(5+(q-1)*15)+'px;">'+r.nl+"</span></div>").bind("mouseover.AUTOCOMPLETE",function(s){s.stopPropagation();i.select($(this))});for(var o in r.c){if(r.c[o].c&&r.c[o].c.length){p.append(i.populate_group(r.c[o],q+1))}else{p.append($('<div class="AUTOCOMPLETE_choice"><span style="padding-left:'+(5+q*15)+'px;">'+r.c[o].nl+"</span></div>").bind("mouseover.AUTOCOMPLETE",function(s){s.stopPropagation();i.select($(this))}))}}return p};this.populate_hint=function(q){f.html("");var p;var r=true;for(var o in q){if(q[o].c&&h[o].c.length){r=false;f.append(i.populate_group(q[o],1))}else{p=$('<div class="AUTOCOMPLETE_choice"><span>'+q[o].nl+"</span></div>").bind("mouseover.AUTOCOMPLETE",function(s){s.stopPropagation();i.select($(this))});f.append(p)}}if(r&&f.children().size()<10){f.css({height:f.children().size()*20+"px"})}else{f.css({height:"200px"})}};this.show_hint=function(){f.show();if(b){b()}};this.hide_hint=function(){f.hide()};this.hint_is_shown=function(){return(f.css("display")!="none")};this.build_group=function(s,r){var q;var p=jQuery.extend({},r,{c:[]});if((q=r.l.toLowerCase().indexOf(s))>-1){p.nl=r.l.substr(0,q)+'<span class="highlighted">'+r.l.substr(q,s.length)+"</span>"+r.l.substr(q+s.length)}else{p.nl=r.l}for(var o in r.c){if(r.c[o].c&&r.c[o].c.length){p.c.push(i.build_group(s,r.c[o]))}else{if((q=r.c[o].l.toLowerCase().indexOf(s))>-1){r.c[o].nl=r.c[o].l.substr(0,q)+'<span class="highlighted">'+r.c[o].l.substr(q,s.length)+"</span>"+r.c[o].l.substr(q+s.length);p.c.push(r.c[o])}}}return p};this.build_choices=function(r){n=[];var q;var p=r.toLowerCase();for(var o in h){if(h[o].c&&h[o].c.length){n.push(i.build_group(p,h[o]))}else{if((q=h[o].l.toLowerCase().indexOf(p))>-1){h[o].nl=h[o].l.substr(0,q)+'<span class="highlighted">'+h[o].l.substr(q,p.length)+"</span>"+h[o].l.substr(q+p.length);n.push(h[o])}}}return n};this.select=function(o){if(a){a.removeClass("selected")}a=o;o.addClass("selected")};this.select_first=function(){i.select(f.children().first());f.scrollTop(0)};this.select_last=function(){var o=f.children("div").last();while(o.children("div").size()){o=o.children("div").last()}i.select(o);f.scrollTop(a.offset().top)};this.select_next=function(){if(i.hint_is_shown()){if(!a){i.select_first()}else{if(a.children("div").size()){i.select(a.children("div").first())}else{if(a.next("div").size()){i.select(a.next("div"))}else{var p=a.parent(".AUTOCOMPLETE_choice");var o=false;while(p.size()){if(p.next("div").size()){i.select(p.next("div"));o=true;break}p=p.parent(".AUTOCOMPLETE_choice")}if(!o){i.select_first()}}}}if(a.children("span").position().top>(f.innerHeight()-a.children("span").outerHeight())){f.scrollTop(f.scrollTop()+a.children("span").outerHeight())}}};this.select_previous=function(){if(i.hint_is_shown()){if(!a){i.select_last()}else{if(a.prev("div").size()){var o=a.prev("div");while(o.children("div").last().size()){o=o.children("div").last()}i.select(o)}else{if(a.parent(".AUTOCOMPLETE_choice").size()){i.select(a.parent(".AUTOCOMPLETE_choice"))}else{i.select_last()}}}if(a.children("span").position().top<0){f.scrollTop(f.scrollTop()-a.children("span").outerHeight())}}};this.get_object=function(p){var q=n[p[0]];for(var o=1;o<p.length;++o){q=q.c[p[o]]}return q};this.apply_selection=function(){if(a){var o=a;var p=[];while(o.parent(".AUTOCOMPLETE_choice").size()){p.push(o.parent().children().index(o.get(0))-1);o=o.parent(".AUTOCOMPLETE_choice")}p.push(o.parent().children().index(o.get(0)));p.reverse();g=[];while(p.length>0){g.push(i.get_object(p));p.pop()}if(i.selected().v){c.val(i.selected().l);m.val(i.selected().v);e=i.selected().l;if(k){k()}}else{g=null}}};this.selected=function(){if(g){return g[0]}else{return null}};this.selected_path=function(){return g};this.change_data=function(o){h=o;a=null;g=null;e="";c.val("")};var b=null;this.on_hint_show=function(o){b=o;return this};var k=null;this.on_select=function(o){k=o;return this};var i=this;var a=null;var g=null;var n;var e="";var h=d;var j=$('<div class="AUTOCOMPLETE"></div>').css({"margin-top":c.css("margin-top"),"margin-bottom":c.css("margin-bottom"),"margin-left":c.css("margin-left"),"margin-right":c.css("margin-right")});var l=$('<div class="AUTOCOMPLETE_btn"><span></span></div>').click(function(o){if(!i.hint_is_shown()){i.populate_hint(i.build_choices(""));i.show_hint()}else{i.hide_hint()}});var m=$('<input type="hidden" name="'+c.attr("name")+'" value="'+c.val()+'" />');var f=$('<div class="AUTOCOMPLETE_hint"></div>').bind("click.AUTOCOMPLETE",function(o){i.apply_selection();i.hide_hint()});c.attr("autocomplete","off").bind("blur.AUTOCOMPLETE",function(){if(i.hint_is_shown()){i.apply_selection();i.hide_hint()}});c.attr("name","_"+c.attr("name"));c.wrap(j);c.before($('<div class="AUTOCOMPLETE_left"></div>'));c.parent().append(l);c.parent().append('<br class="clear" />');c.parent().append(m);c.parent().append(f);c.keydown(function(o){switch(o.keyCode){case 13:o.preventDefault();break;case 38:o.preventDefault();if(i.hint_is_shown()){i.select_previous()}break;case 40:o.preventDefault();if(i.hint_is_shown()){i.select_next()}break}});c.keypress(function(o){switch(o.keyCode){case 13:case 38:case 40:o.preventDefault();break}});c.keyup(function(o){switch(o.keyCode){case 13:o.preventDefault();if(i.hint_is_shown()){i.apply_selection();i.hide_hint()}break;case 38:case 40:o.preventDefault();break;default:if($(this).val()!=e){e=$(this).val();a=null;var p=i.build_choices($(this).val());if(i.hint_is_shown()){if(p.length>0){i.populate_hint(p);i.select_first()}else{i.hide_hint()}}else{if(p.length>0){i.populate_hint(p);i.show_hint()}}}}});return this};if(!this.JSON){this.JSON={}}(function(){function f(n){return n<10?"0"+n:n}if(typeof Date.prototype.toJSON!=="function"){Date.prototype.toJSON=function(key){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+f(this.getUTCMonth()+1)+"-"+f(this.getUTCDate())+"T"+f(this.getUTCHours())+":"+f(this.getUTCMinutes())+":"+f(this.getUTCSeconds())+"Z":null};String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(key){return this.valueOf()}}var cx=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,escapable=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,gap,indent,meta={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},rep;function quote(string){escapable.lastIndex=0;return escapable.test(string)?'"'+string.replace(escapable,function(a){var c=meta[a];return typeof c==="string"?c:"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+string+'"'}function str(key,holder){var i,k,v,length,mind=gap,partial,value=holder[key];if(value&&typeof value==="object"&&typeof value.toJSON==="function"){value=value.toJSON(key)}if(typeof rep==="function"){value=rep.call(holder,key,value)}switch(typeof value){case"string":return quote(value);case"number":return isFinite(value)?String(value):"null";case"boolean":case"null":return String(value);case"object":if(!value){return"null"}gap+=indent;partial=[];if(Object.prototype.toString.apply(value)==="[object Array]"){length=value.length;for(i=0;i<length;i+=1){partial[i]=str(i,value)||"null"}v=partial.length===0?"[]":gap?"[\n"+gap+partial.join(",\n"+gap)+"\n"+mind+"]":"["+partial.join(",")+"]";gap=mind;return v}if(rep&&typeof rep==="object"){length=rep.length;for(i=0;i<length;i+=1){k=rep[i];if(typeof k==="string"){v=str(k,value);if(v){partial.push(quote(k)+(gap?": ":":")+v)}}}}else{for(k in value){if(Object.hasOwnProperty.call(value,k)){v=str(k,value);if(v){partial.push(quote(k)+(gap?": ":":")+v)}}}}v=partial.length===0?"{}":gap?"{\n"+gap+partial.join(",\n"+gap)+"\n"+mind+"}":"{"+partial.join(",")+"}";gap=mind;return v}}if(typeof JSON.stringify!=="function"){JSON.stringify=function(value,replacer,space){var i;gap="";indent="";if(typeof space==="number"){for(i=0;i<space;i+=1){indent+=" "}}else{if(typeof space==="string"){indent=space}}rep=replacer;if(replacer&&typeof replacer!=="function"&&(typeof replacer!=="object"||typeof replacer.length!=="number")){throw new Error("JSON.stringify")}return str("",{"":value})}}if(typeof JSON.parse!=="function"){JSON.parse=function(text,reviver){var j;function walk(holder,key){var k,v,value=holder[key];if(value&&typeof value==="object"){for(k in value){if(Object.hasOwnProperty.call(value,k)){v=walk(value,k);if(v!==undefined){value[k]=v}else{delete value[k]}}}}return reviver.call(holder,key,value)}text=String(text);cx.lastIndex=0;if(cx.test(text)){text=text.replace(cx,function(a){return"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)})}if(/^[\],:{}\s]*$/.test(text.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,""))){j=eval("("+text+")");return typeof reviver==="function"?walk({"":j},""):j}throw new SyntaxError("JSON.parse")}}}());jQuery.cookie=function(b,j,m){if(typeof j!="undefined"){m=m||{};if(j===null){j="";m.expires=-1}var e="";if(m.expires&&(typeof m.expires=="number"||m.expires.toUTCString)){var f;if(typeof m.expires=="number"){f=new Date();f.setTime(f.getTime()+(m.expires*24*60*60*1000))}else{f=m.expires}e="; expires="+f.toUTCString()}var l=m.path?"; path="+(m.path):"";var g=m.domain?"; domain="+(m.domain):"";var a=m.secure?"; secure":"";document.cookie=[b,"=",encodeURIComponent(j),e,l,g,a].join("")}else{var d=null;if(document.cookie&&document.cookie!=""){var k=document.cookie.split(";");for(var h=0;h<k.length;h++){var c=jQuery.trim(k[h]);if(c.substring(0,b.length+1)==(b+"=")){d=decodeURIComponent(c.substring(b.length+1));break}}}return d}};$.fn.round_corners=function(a){var b={mask:[1,1,1,1]};if(a){$.extend(b,a)}this.each(function(){var g=$('<div class="rc_tl"></div>').css({height:b.size+"px",padding:"0 0 0 "+b.size+"px"});var c=$('<div class="rc_tr"></div>').css({height:b.size+"px",padding:"0 "+b.size+"px 0 0"});var f=$('<div class="rc_tc"></div>').css({height:b.size+"px"});var e=$('<div class="rc_bl"></div>').css({height:b.size+"px",padding:"0 0 0 "+b.size+"px"});var h=$('<div class="rc_br"></div>').css({height:b.size+"px",padding:"0 "+b.size+"px 0 0"});var d=$('<div class="rc_bc"></div>').css({height:b.size+"px"});if(b.color){g.css({background:"url('static/images/rc_"+b.size+"px_"+b.color+".png') no-repeat left top"});c.css({background:"url('static/images/rc_"+b.size+"px_"+b.color+".png') no-repeat right top"});f.css({background:"#"+b.color});e.css({background:"url('static/images/rc_"+b.size+"px_"+b.color+".png') no-repeat left bottom"});h.css({background:"url('static/images/rc_"+b.size+"px_"+b.color+".png') no-repeat right bottom"});d.css({background:"#"+b.color});if($.browser.msie&&parseInt($.browser.version)==6){g.css({background:"url('static/images/rc_"+b.size+"px_"+b.color+".gif') no-repeat left top"});c.css({background:"url('static/images/rc_"+b.size+"px_"+b.color+".gif') no-repeat right top"});e.css({background:"url('static/images/rc_"+b.size+"px_"+b.color+".gif') no-repeat left bottom"});h.css({background:"url('static/images/rc_"+b.size+"px_"+b.color+".gif') no-repeat right bottom"})}if(!b.mask[0]){g.css({padding:"0"})}if(!b.mask[1]){c.css({background:"#"+b.color})}if(!b.mask[2]){h.css({background:"#"+b.color})}if(!b.mask[3]){e.css({"background-position":"-"+(b.size/2)+"px -"+(b.size/2)+"px"})}}g.append(c.append(f));e.append(h.append(d));if($(this).get(0).tagName=="LI"){if($(this).children(".rc_tl").size()){$(this).children(".rc_tl").remove();$(this).children(".rc_bl").remove();if(b.color){$(this).children().first().css({background:"#"+b.color})}else{$(this).children().first().css({background:"transparent"})}}else{if(b.color){$(this).html('<div class="rc_content" style="background:#'+b.color+";padding:0 "+(b.size*1.5)+'px">'+$(this).html()+"</div>")}else{$(this).html('<div class="rc_content" style="padding:0 '+(b.size*1.5)+'px">'+$(this).html()+"</div>")}}$(this).prepend(g);$(this).append(e);if($(this).children().first().next().width()>0){g.css({width:$(this).children().first().next().width()+(b.size*2)+"px"});e.css({width:$(this).children().first().next().width()+(b.size*2)+"px"})}}else{if($(this).css("position")=="absolute"||$(this).css("position")=="fixed"){$(this).children(".rc_tl").remove();$(this).children(".rc_bl").remove();$(this).prepend(g);$(this).append(e)}else{$(this).prev(".rc_tl").remove();$(this).next(".rc_bl").remove();$(this).before(g);$(this).after(e);g.css({"margin-top":$(this).css("margin-top")});e.css({"margin-bottom":$(this).css("margin-bottom")});g.css({"margin-left":$(this).css("margin-left")});g.css({"margin-right":$(this).css("margin-right")});$(this).css({"margin-top":"0"});$(this).css({"margin-bottom":"0"});$(this).css({background:"#"+b.color});$(this).css({padding:"0 "+b.size+"px"})}}});return this};$.fn.new_round_corners=function(a){var b={};if(a){$.extend(b,a)}this.each(function(){var c=b.color;var e=b.size;var d="/static/images/rc_"+e+"px_"+c;if($.browser.msie&&parseInt($.browser.version)==6){d+=".gif"}else{d+=".png"}$(this).wrapInner('<div style="background:url('+d+') no-repeat left top;float:left;"><div style="background:url('+d+') no-repeat right top;float:left;"><div style="background:url('+d+') no-repeat right bottom;float:left;"><div style="background:url('+d+') no-repeat left bottom;float:left;"><div style="background:#'+c+";margin:0 "+e+"px;padding:"+e+'px 0;"><div style="background:#'+c+";left:-"+e+"px;padding-left:"+e+'px;position:relative;"><div style="background:#'+c+";left:"+(e*2)+"px;margin-left:-"+(e*2)+'px;position:relative;"><div style="background:#'+c+";padding-right:"+e+'px;"></div></div></div></div></div></div></div></div>')});return this};$.fn.hint=function(){this.each(function(){var b=null;var a=$(this).attr("hint");$(this).css({cursor:"pointer"}).mouseover(function(c){if(b==null){if($.browser.msie&&parseInt($.browser.version)==6){var d="gif"}else{var d="png"}b=$("<div>"+a+"</div>").css({color:"#707276",display:"none","font-size":"11px",left:c.pageX+10+"px",top:c.pageY+15+"px",position:"absolute",width:"200px"}).appendTo("body").new_round_corners({color:"dce199",size:"5"}).append($("<div></div>").css({background:"url('/static/images/triangle_icon."+d+"')",height:"12px",left:"20px",padding:"0",position:"absolute",top:"-12px",width:"15px"})).slideDown(300)}}).mouseout(function(){if(b!=null){b.stop().hide();b=null}})});return this};$("document").ready(function(){$("[hint]").hint()});function required(a){if(a.length){return""}else{return"This field is required"}}function email(a){if(/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?$/i.test(a)){return""}else{return"This is not a valid email"}}function phoneUS(a){if(/^(1-?)?(\([2-9]\d{2}\)|[2-9]\d{2})-?[2-9]\d{2}-?\d{4}$/.test(a)){return""}else{return"This is not a valid phone"}}$.fn.validate2=function(b){var c=true;var d=$.extend(b,$(this).data("modifier"));var a=b.error_callback;$(this).find("input[type=text], textarea, select").each(function(){var h=$(this).attr("name");if(d[h]){if($(this).data("error")){if($(this).data("error").remove){$(this).data("error").remove();$(this).data("error").remove=null}$(this).unbind("change.validate2")}for(var j in d[h]){var f=d[h][j]($(this).val());if(f.length){c=false;var g=$(this);var k=function(){return a(g,f)};var e=k();$(this).data("error",{add:k,remove:e,rules:d[h]}).bind("change.validate2",function(){var n=$(this).data("error").rules;for(var m in n){var l=n[m]($(this).val());if(l.length){if(!$(this).data("error").remove){$(this).data("error").remove=$(this).data("error").add($(this),l)}}else{if($(this).data("error").remove){$(this).data("error").remove();$(this).data("error").remove=null}}}})}}}});$(this).find("div[name]").each(function(){if(b[$(this).attr("name")]){if(!$(this).validate2(b[$(this).attr("name")])){c=false}}});if(c&&b.valid_callback){b.valid_callback()}else{return c}};$.fn.to_object=function(b){var c={};var a=function(d){var e=d.parents("div").filter("[name]");return !(e.size()&&e.attr("name")!=b)};$(this).find("input[type=text]").each(function(){if(a($(this))){c[$(this).attr("name")]=$(this).val()}});$(this).find("textarea").each(function(){if(a($(this))){c[$(this).attr("name")]=$(this).val().replace(/\n/gi,"<br />")}});$(this).find("select").each(function(){if(a($(this))){c[$(this).attr("name")]=$(this).children(":selected").text();c[$(this).attr("name")]=$(this).val()}});$(this).find("div[name]").each(function(){if(!c[$(this).attr("name")]){c[$(this).attr("name")]=[]}c[$(this).attr("name")].push($(this).to_object($(this).attr("name")))});c.type=b;return c};
