;(function(d,c,a,g){var e={elements:[],minHeight:0,offset:0,percentage:true,testing:false},f=d(c),b=[];d.scrollDepth=function(i){i=d.extend({},e,i);if(d(a).height()<i.minHeight){return}l("Percentage","Baseline");function l(n,m){if(!i.testing){_gaq.push(["_trackEvent","Scroll Depth",n,m,1,true])}else{d("#console").html(n+": "+m)}}function k(m){return{"25%":parseInt(m*0.25,10),"50%":parseInt(m*0.5,10),"75%":parseInt(m*0.75,10),"100%":m-1}}function h(n,m){d.each(n,function(o,p){if(d.inArray(o,b)===-1&&m>=p){l("Percentage",o);b.push(o)}})}function j(n,m){d.each(n,function(o,p){if(d.inArray(p,b)===-1&&d(p).length){if(m>=d(p).offset().top){l("Elements",p);b.push(p)}}})}f.on("scroll.scrollDepth",function(){var o=d(a).height(),n=c.innerHeight?c.innerHeight:f.height(),m=f.scrollTop()+n,q=parseInt(n*(i.offset/100),10),p=k(o);if(b.length>=4+i.elements.length){f.off("scroll.scrollDepth");return}if(i.elements){j(i.elements,m)}if(i.percentage){h(p,m)}})}})(jQuery,window,document);
function showPlainTxt(a){var b,c,d,e,f,g,h=getBrowserType();h=="msie"?(f=20,g=5):h=="opera"?(f=20,g=12):h=="firefox"&&(f=20,g=12);var i=document.getElementById(a);b=i.innerHTML,arrCode[a]=b;var j="l"+a;j=j.toLowerCase(),e=document.getElementById(j),d='<a href="#" onclick="javascript:hidePlainTxt(\''+a+"'); return false;\">HILITED HTML</a>",e.innerHTML=d,c=getCodeTxt(a);var k=i.parentNode.clientHeight,l=i.parentNode.clientWidth,m=k-f,n=l-g;sPlainCodeHTML='<textarea style="width:'+n+"px; height:"+m+'px;" wrap="off">'+c+"</textarea>",i.innerHTML="",i.innerHTML=sPlainCodeHTML}function hidePlainTxt(a){var b=document.getElementById(a);if(arrCode[a]=="")alert("The HTML View for this Code Box is not available");else{var c="l"+a;c=c.toLowerCase();var d=document.getElementById(c),e='<a href="#" onclick="javascript:showPlainTxt(\''+a+"'); return false;\">PLAIN TEXT</a>";d.innerHTML=e,b.innerHTML="",b.innerHTML=arrCode[a],arrCode[a]=""}}function getCodeTxt(a){var b=igEncodeHTML(getTagCode(a));b=doCleanUp(b);return b}function showCodeTxt(a){var b=igEncodeHTML(getTagCode(a));b=doCleanUp(b);var c="<html><head><title>WP-CODEBOX &raquo; Plain-Text View</title><style>body { margin:0px; padding:0px; white-space:nowrap; }</style></head><body><pre>\n",d="\n</pre><br /></body></html>";cdWin=window.open("about:blank","cdWin","toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=700,height=400,left=35,top=85"),cdWin.document.open(),cdWin.document.write(c+b+d),cdWin.document.close()}function getTagCode(a){var b=strTrim(navigator.appName.substring(0,9));b=b.toLowerCase(),document.getElementById?oDoc=document.getElementById(a):document.all&&(oDoc=document.all[a]);var c="";if(typeof oDoc.innerText!="undefined")c=strTrim(oDoc.innerText);else{c=strTrim(oDoc.innerHTML);var d=/<\/li>/gi,e=/<\S[^>]*>/g,f=/&amp;/g,g=/&nbsp;/g,h=/&lt;/g,i=/&gt;/g;c=c.replace(d,"\n"),c=c.replace(e,""),c=c.replace(f,"&"),c=c.replace(g," "),c=c.replace(h,"<"),c=c.replace(i,">")}return c}function doCleanUp(a){a=a.replace(/(\r\n|\r|\n)/g,"\n");var b=a.split("\n");for(i=0;i<b.length;i++)b[i].substr(b[i].length-1,1)==" "&&(b[i]=b[i].substr(0,b[i].length-1)),b[i].substr(b[i].length-1,1)=="\t"&&(b[i]=b[i].substr(0,b[i].length-1));a=b.join("\n");var c=/([\n]{2,})/g,d=/([ ]{1,})\n/g,e=/([	|\t]{1,})\n/g,f=/\n([ ]{1,})\n/g,g=/\n([	|\t]{1,})\n/g,h=/ {4}/g;a=a.replace(h,"\t"),a=a.replace(f,"\n").replace(g,"\n"),a=a.replace(d,"\n").replace(e,"\n"),a=a.replace(c,"\n"),a.substr(0,1)=="\n"&&(a=a.substr(1,a.length)),a.substr(a.length-1,1)=="\n"&&(a=a.substr(0,a.length-1));return a}function igEncodeHTML(a){var b=/</g,c=/>/g;a=a.replace(b,"&lt;"),a=a.replace(c,"&gt;");return a}function strTrim(a){var b,c;b=0,c=a.length-1,a=a.split("");while(b<a.length){if(a[b]==" ")a[b]="";else break;b++}while(c>0){if(a[c]==" ")a[c]="";else break;c--}return a.join("")}function getBrowserType(){var a=navigator.userAgent.toLowerCase(),b,c=function(b){place=a.indexOf(b)+1;return place};c("konqueror")?b="konqueror":c("safari")?b="safari":c("omniweb")?b="omniweb":c("opera")?b="opera":c("webtv")?b="webtv":c("icab")?b="icab":c("msie")?b="msie":c("firefox")?b="firefox":c("compatible")||(b="nn");return b}function copycode(a){a=document.getElementById(a);if(is_ie&&a.style.display!="none"){var b=document.body.createTextRange();b.moveToElementText(a),b.scrollIntoView(),b.select(),b.execCommand("Copy"),b.collapse(!1)}}var userAgent=navigator.userAgent.toLowerCase(),is_webtv=userAgent.indexOf("webtv")!=-1,is_kon=userAgent.indexOf("konqueror")!=-1,is_mac=userAgent.indexOf("mac")!=-1,is_saf=userAgent.indexOf("applewebkit")!=-1||navigator.vendor=="Apple Computer, Inc.",is_opera=userAgent.indexOf("opera")!=-1&&opera.version(),is_moz=navigator.product=="Gecko"&&!is_saf&&userAgent.substr(userAgent.indexOf("firefox")+8,3),is_ns=userAgent.indexOf("compatible")==-1&&userAgent.indexOf("mozilla")!=-1&&!is_opera&&!is_webtv&&!is_saf,is_ie=userAgent.indexOf("msie")!=-1&&!is_opera&&!is_saf&&!is_webtv&&userAgent.substr(userAgent.indexOf("msie")+5,3);$(function(){$("#menu-main .current-menu-item .sub-menu").remove();var a=$(".buy-hint .hint");$(".buy-hint").hover(function(){a.show()},function(){a.hide()}).click(function(){a.toggle();return!1}),a.delay(1e3).slideDown().delay(3e3).slideUp(),$(".buy-button-link").click(function(){$(".buy-form").submit();return!1}),$(".wp_codebox_msgheader").click(function(a){a.target==this&&($(this).next(".wp_codebox").slideToggle("slow"),$(this).toggleClass("active"))}),$(".wp_codebox_hide").next(".wp_codebox").hide(),$(".wp_codebox_hide").addClass("active"),$("#totop").click(function(){$("html, body").stop().animate({scrollTop:0},600);return!1}),$("#headline").each(function(){function n(){var a=(f+1)%i.length;i.eq(a).mouseover(),l=setTimeout(n,m+e)}var a=$(this),b=a.height(),c=a.find("li"),d=.8,e=400,f=0,g=$('<ul class="controls"></ul>'),h="";c.each(function(a){var c=$(this).css({position:"absolute",top:a==f?0:b,zIndex:a==f?1:0,display:a==f?"block":"none"}),d=c.find("a");h+='<li><a href="'+d.attr("href")+'">'+d.find("img").attr("alt")+"</a></li>"});var i=g.html(h).appendTo(a).find("li").css("opacity",d),j=i.width(),k=a.width()-(i.length-1)*j-1;i.mouseover(function(){var a=$(this),d=a.index();f!=d&&(c.eq(d).stop(!0,!0).css({top:b,zIndex:1,display:"block"}).animate({top:0},e).end().eq(f).stop(!0,!0).animate({top:-b},e,function(){$(this).hide()}),a.addClass("selected").find("a").width(k).end().siblings(".selected").removeClass("selected").find("a").width(j-1),f=d)}).eq(f).addClass("selected").find("a").width(k);var l,m=1e3;a.hover(function(){clearTimeout(l)},function(){l=setTimeout(n,m)}),l=setTimeout(n,m)});var b=$(".edit-user-tabs li");if(b.length>0){var c=this.location.hash,d;c==""?d=b.eq(b.find(".red").parent().index()).addClass("active"):(d=b.find("a[href="+c+"]").parent().addClass("active").find("a").addClass("red").end(),d.siblings().find("a").removeClass("red")),$(d.find("a").attr("href")).show().siblings().hide(),b.click(function(){var a=$(this),b=a.find("a").attr("href");a.addClass("active").find("a").addClass("red").end().siblings(".active").removeClass("active").find("a").removeClass("red"),$(b).show().siblings().hide();return!1}).find("a").focus(function(){this.blur()})}$(".abgne-tabs").each(function(){$(this).find(".tabs ul li").click(function(){$($(this).addClass("current").siblings(".current").removeClass("current").end().find("a").attr("href")).show().siblings(".content").hide();return!1})}),$(".zoom-out").each(function(){var a=$(this),b=a.find("img").css({border:"none",margin:0,padding:0}).unwrap("a"),c=b.wrap('<div class="frame"></div>').parents(".frame").css({width:b.width(),height:b.height()}).append($('<a href="'+a.attr("href")+'" class="overlay"></a>').css("opacity",0)).parents("article.clearfloat").hover(function(){b.stop(!1,!0).animate({width:"+=20px",height:"+=15px",marginTop:-5,marginLeft:-5})},function(){b.stop(!1,!0).animate({width:"-=20px",height:"-=15px",marginTop:0,marginLeft:0})})})})
jQuery(function(){jQuery.scrollDepth();});