var KAZIVU={ajaxToken:"",doPost:function(G,D,C,E){var A,F,B=document.getElementById(G);B.action=D.replace(/\{([0-9]+)\}/g,function(I,H){return E[H]});if(E[0]&&E[0] instanceof Object){for(A in E[0]){if(E[0].hasOwnProperty(A)){if(!B[A]){F=document.createElement("INPUT");F.setAttribute("type","hidden");F.setAttribute("name",A);F.setAttribute("value",E[0][A]);B.appendChild(F)}else{B[A].value=E[0][A]}}}}if(C===null||confirm(C)){B.submit();return true}},doAjaxPost:function(url,data,successMethod){data.ajaxToken=KAZIVU.ajaxToken;return $.ajax({url:url,data:data,type:"POST",success:function(response){KAZIVU.ajaxToken=response.ajaxToken;successMethod(response)},error:function(response,s,error_thrown){response=eval("("+response.responseText+")");KAZIVU.ajaxToken=response.ajaxToken;alert(response.message)},dataType:"json"})},doAjaxGet:function(url,data,successMethod){return $.ajax({url:url,data:data,type:"GET",success:successMethod,error:function(data,s,error_thrown){alert(eval("("+data.responseText+")").message)},dataType:"json"})},showPostVideo:function(){jQuery("#postVideo").toggle();jQuery("#postVideo input").focus().select()},toggleCheckBoxes:function(B,A){jQuery('input[@type="checkbox"]',A||document).each(function(){this.checked=B})},helpSearch:function(B,A){$(A).empty();var C=document.createElement("P");C.className="loading";A.appendChild(C);$.getJSON("/help/feedback",{ajax:"/companies/kazivu/topics.json?q="+encodeURIComponent(B)+"&limit=10&sort=most_me_toos"},function(H){$(A).empty();if(!H||!H.total){var I=document.createElement("P");I.className="empty";I.appendChild(document.createTextNode("No matches found. "));E=document.createElement("A");E.href="http://getsatisfaction.com/kazivu/topics/new";E.appendChild(document.createTextNode("Post your question in our forums"));I.appendChild(E);A.appendChild(I)}else{H=H.data;var E,D,G=document.createElement("UL");for(var F=0;F<H.length;F++){D=document.createElement("LI");E=document.createElement("A");E.href=H[F].at_sfn;E.appendChild(document.createTextNode(H[F].subject));D.appendChild(E);G.appendChild(D)}D=document.createElement("LI");D.className="new";D.appendChild(document.createTextNode("Not found an answer? "));E=document.createElement("A");E.href="http://getsatisfaction.com/kazivu/topics/new";E.appendChild(document.createTextNode("Post your question in our forums"));D.appendChild(E);G.appendChild(D);A.appendChild(G)}})}};KAZIVU.IE={fixBlockFooters:function(){
/*@cc_on @if (@_jscript_version > 5.6) return; @end @*/
var i,n,div,divs=document.getElementsByTagName("DIV");for(i=0;n=divs[i];i++){if(/\bblock\b/.test(n.className)){div=document.createElement("DIV");div.className="footerIE";n.appendChild(div)}}},fixChildHoverReset:function(){
/*@cc_on @if (@_jscript_version > 5.7) return; @end @*/
var i,n,links=document.getElementsByTagName("A");for(i=0;n=links[i];i++){n.attachEvent("onclick",function(e){e=e||window.event;e.srcElement.blur()})}}};KAZIVU.WheelScroller=(function(){var G=false,D=[],B=0,F=0,E=new Date();function C(I){var I=I||window.event,J=I.detail||I.wheelDelta;stop=false,norm=1;if(I.detail){norm=-1}else{if(I.wheelDelta){norm=40}}J/=norm*3;if(Math.abs(J)<1){if(E.getTime()<F+100){B+=J;if(Math.abs(B)>1){J=B;B=0;F=E.getTime()}else{J=0;stop=true}}else{B=J;F=E.getTime();J=0;stop=true}}if(J){for(var H=0;H<D.length;H++){if(D[H](J)){stop=true}}}if(stop){if(I.preventDefault){I.preventDefault()}I.returnValue=false}}function A(){if(!G){if(window.addEventListener){window.addEventListener("DOMMouseScroll",C,false)}window.onmousewheel=document.onmousewheel=C;G=true}}return{register:function(H){D.push(H);A()}}})();