var path=location.pathname;function getPageUrl(){var a=location.pathname;var c=a.split("/");var b=c[c.length-1];return b}function getURL(a){a.dir=location.href.substring(0,location.href.lastIndexOf("/"));a.protocol=window.location.protocol;a.dom=a.dir.substr(a.protocol.length+2);a.host=window.location.host;a.path="";var b=a.dom.indexOf("/");if(b>-1){a.path=a.dom.substr(b+1);a.dom=a.dom.substr(0,b)}a.page=location.href.substring(a.dir.length+1,location.href.length+1);b=a.page.indexOf("?");if(b>-1){a.page=a.page.substring(0,b)}b=a.page.indexOf("#");if(b>-1){a.page=a.page.substring(0,b)}a.ext="";b=a.page.indexOf(".");if(b>-1){a.ext=a.page.substring(b+1);a.page=a.page.substr(0,b)}a.file=a.page;if(a.ext!=""){a.file+="."+a.ext}if(a.file==""){a.page="index"}a.args=location.search.substr(1).split("?");return a}function getParam(b,d){b=b.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");if(d=="url"){var a="[\\/]"+b+"/([^/?&#]*)"}else{var a="[\\?&]"+b+"=([^&#]*)"}var e=new RegExp(a);var c=e.exec(window.location.href);if(c==null){return""}else{return c[1]}}function getRef(b){if(!b||b==""){b="ref"}var a=getParam(b);if(a==""){a=getParam(b,"url")}return a}var doc_loc=new String(document.location);if(window.top.location!==document.location){if(doc_loc.indexOf("google_pack")==-1&&doc_loc.indexOf("privacypolicy")==-1&&doc_loc.indexOf("chat.pctools.com")==-1){window.top.location.replace(document.location.href)}}function show_sidebar(a){if(document.getElementById(a+"_content").style.display=="none"){document.getElementById(a+"_content").style.display="";document.getElementById(a+"_cornerleft").src="/res/images/sidebar/px.gif";document.getElementById(a+"_cornerright").src="/res/images/sidebar/px.gif";document.getElementById(a+"_collapsebtn").src="/res/images/sidebar/collapse.gif"}else{document.getElementById(a+"_content").style.display="none";document.getElementById(a+"_cornerleft").src="/res/images/sidebar/top_left_bottom_corner.gif";document.getElementById(a+"_cornerright").src="/res/images/sidebar/top_right_bottom_corner.gif";document.getElementById(a+"_collapsebtn").src="/res/images/sidebar/expand.gif"}}function validate(b,a){switch(a){case"text":for(i=0;i<b.length;i++){document.getElementById("validate_"+b[i]).value="/.+$/"}break;case"select":for(i=0;i<b.length;i++){document.getElementById("validate_"+b[i]).value="count=1"}break;default:for(i=0;i<b.length;i++){document.getElementById("validate_"+b[i]).value="/.+$/"}break}}function do_not_validate(b,a){switch(a){case"text":for(i=0;i<b.length;i++){document.getElementById("validate_"+b[i]).value=""}break;case"select":for(i=0;i<b.length;i++){document.getElementById("validate_"+b[i]).value="count=0"}break;default:for(i=0;i<b.length;i++){document.getElementById("validate_"+b[i]).value=""}break}}function check_sc_select(){var a=false;var b=document.getElementById("sc_select");for(i=0;i<b.length;i++){if(b[i].value=="no"&&b[i].selected==true){a=true}}if(a==true){for(i=0;i<b.length;i++){if(b[i].value!="no"&&b[i].selected==true){b[i].selected=false}}}}function check_other(b){var a=document.getElementById(b+"_select");for(i=0;i<a.length;i++){if((a[i].value=="other")&&(a[i].selected!=false)){document.getElementById("validate_"+b+"other").value="/.+$/"}else{document.getElementById("validate_"+b+"other").value=""}}}var file_counter=1;function upload_more(){document.getElementById("file_upload"+file_counter).style.display="";file_counter++;if(file_counter>=10){document.getElementById("upload_more_link").style.display="none"}}function check_form(b){var a=true;if(Trim(b.name.value)==""){document.getElementById("name_error").style.display="inline";b.name.value="";a=false}else{document.getElementById("name_error").style.display="none"}if(Trim(b.email.value)==""){document.getElementById("email_error").style.display="inline";b.email.value="";a=false}else{document.getElementById("email_error").style.display="none"}if(Trim(b.description.value)==""){document.getElementById("description_error").style.display="inline";b.description.value="";a=false}else{document.getElementById("description_error").style.display="none"}return a}function Trim(a){if(a.length<1){return""}a=RTrim(a);a=LTrim(a);if(a==""){return""}else{return a}}function RTrim(c){var d=String.fromCharCode(32);var e=c.length;var b="";if(e<0){return""}var a=e-1;while(a>-1){if(c.charAt(a)==d){}else{b=c.substring(0,a+1);break}a=a-1}return b}function LTrim(d){var c=String.fromCharCode(32);if(e<1){return""}var e=d.length;var b="";var a=0;while(a<e){if(d.charAt(a)==c){}else{b=d.substring(a,e);break}a=a+1}return b}function check_password_fields(){if(document.getElementById("current_password").value!=""){document.getElementById("validate_password").value="/.+$/";document.getElementById("validate_confirm").value="/.+$/"}}function loadResults(b,a){if(a==null){var d=new Date();var c=d.getTime().toString()+d.getHours().toString()+d.getMinutes().toString()+d.getSeconds().toString();var a="/dcounter.php?product="+b+"&time="+c}if(window.XMLHttpRequest){req=new XMLHttpRequest();req.onreadystatechange=processReqChange;req.open("GET",a,true);req.send(null)}else{if(window.ActiveXObject){isIE=true;req=new ActiveXObject("Microsoft.XMLHTTP");if(req){req.onreadystatechange=processReqChange;req.open("GET",a,true);req.send()}}}}function processReqChange(){if(req.readyState==4){if(req.status==200){document.getElementById("counter").innerHTML=req.responseText}}}function loadScript(b,c){var a=document.createElement("script");a.type="text/javascript";if(c){a.onload=function(){a.onload=a.onreadystatechange=null;c()};a.onreadystatechange=function(){if(a.readyState=="loaded"||a.readyState=="complete"){a.onreadystatechange=a.onload=null;c()}}}a.src=b;document.getElementsByTagName("head")[0].appendChild(a)}function addEvent(d,a,c){if(d.addEventListener){d.addEventListener(a,c,true);return true}else{if(d.attachEvent){var b=d.attachEvent("on"+a,c);return b}else{return false}}}function getElementsByClassName(b,f,a){var e=(f=="*"&&b.all)?b.all:b.getElementsByTagName(f);var h=new Array();a=a.replace(/\-/g,"\\-");var g=new RegExp("(^|\\s)"+a+"(\\s|$)");var d;for(var c=0;c<e.length;c++){d=e[c];if(g.test(d.className)){h.push(d)}}return(h)}function load_tf_image(){document.getElementById("tf_image").src="http://a.tribalfusion.com/ti.ad?client=177773&ev=1";document.getElementById("tf_image2").src="http://ctxtad.tribalfusion.com/ctxtad/Lead?accountId=10232951"}function createCookie(c,d,e){if(e){var b=new Date();b.setTime(b.getTime()+(e*24*60*60*1000));var a="; expires="+b.toGMTString()}else{var a=""}document.cookie=c+"="+d+a+"; path=/; domain=.pctools.com"}function readCookie(b){var e=b+"=";var a=document.cookie.split(";");for(var d=0;d<a.length;d++){var f=a[d];while(f.charAt(0)==" "){f=f.substring(1,f.length)}if(f.indexOf(e)==0){return f.substring(e.length,f.length)}}return null}function eraseCookie(a){createCookie(a,"",-1)}function toggle_display(a){var b;if(b=document.getElementById(a)){if(b.style.display=="none"){b.style.display=""}else{b.style.display="none"}}}function track_downloads(){if(document.getElementById("download_tracking")){theDiv=document.getElementById("download_tracking");content='\n	<!-- Google Code for Download Conversion Page -->\n	<script type="text/javascript">\n	var google_conversion_id = 1041083675;\n	var google_conversion_language = "en_AU";\n	var google_conversion_format = "3";var google_conversion_color = "ffffff";\n	var google_conversion_label = "v-1BCKeBdRCb2rbwAw";\n	if (1.0) {\n		var google_conversion_value = 1.0;\n	}\n	<\/script>\n	<script type="text/javascript" src="http://www.googleadservices.com/pagead/conversion.js"><\/script>\n	<noscript>\n	<img height="1" width="1" border="0" src="http://www.googleadservices.com/pagead/conversion/1041083675/?value=1.0&amp;label=v-1BCKeBdRCb2rbwAw&amp;script=0">\n	</noscript>\n	<!-- End Google Code for Download Conversion Page -->\n';theDiv.innerHTML=content}}function displayModalBox(g){if(document.getElementById(g)){var a=getViewportWidth();var b=getViewportHeight();var c=0;if(a>644){var f=a-644;c=Math.round(f/2)}var d=(window.pageYOffset?window.pageYOffset:document.documentElement.scrollTop)+10;theBox=document.getElementById(g);theBox.style.display="block";theBox.style.position="absolute";theBox.style.top=d+"px";theBox.style.left=c+"px";theBox.style.zIndex=9999;var e=document.createElement("div");e.style.backgroundColor="white";e.style.opacity=0.7;e.style.filter="alpha(opacity=70)";e.style.position="absolute";e.style.top=0;e.style.left=0;e.style.width="110%";e.style.height="110%";e.style.zIndex=999;e.style.marginTop="-20px";e.style.marginLeft="-20px";e.id="temp_hide_div";document.body.appendChild(e)}}function hideModalBox(a){if(document.getElementById(a)){document.getElementById(a).style.display="none";if(document.getElementById("temp_hide_div")){document.body.removeChild(document.getElementById("temp_hide_div"))}}}function getViewportWidth(){if(typeof window.innerWidth!="undefined"){return window.innerWidth}else{if(typeof document.documentElement!="undefined"&&typeof document.documentElement.clientWidth!="undefined"&&document.documentElement.clientWidth!=0){return document.documentElement.clientWidth}else{return document.getElementsByTagName("body")[0].clientWidth}}}function getViewportHeight(){if(typeof window.innerHeight!="undefined"){return window.innerHeight}else{if(typeof document.documentElement!="undefined"&&typeof document.documentElement.clientHeight!="undefined"&&document.documentElement.clientHeight!=0){return document.documentElement.clientHeight}else{return document.getElementsByTagName("body")[0].clientHeight}}}function getMousePosition(a){return a.pageX?{x:a.pageX,y:a.pageY}:{x:a.clientX+document.documentElement.scrollLeft+document.body.scrollLeft,y:a.clientY+document.documentElement.scrollTop+document.body.scrollTop}}function ajaxObject(a){var c=this;var b=false;this.callback=function(){};this.update=function(e){if(b==true){return false}b=true;var d=null;if(window.XMLHttpRequest){d=new XMLHttpRequest()}else{d=new ActiveXObject("Microsoft.XMLHTTP")}if(d==null){alert("Your browser doesn't support AJAX.");return false}else{d.onreadystatechange=function(){if(d.readyState==4||d.readyState=="complete"){var f=d.responseText;var g=f.split("=");if(g[0]=="authenticated"){authenticated=g[1].substring(0,1)}if(g[0]=="pr_auth"){pr_auth=g[1].substring(0,1)}if(g[0]=="iav_offered"){iav_offered=g[1].substring(0,1)}delete d;b=false;c.callback()}};d.open("GET",e,true);d.send(null);return true}}}function setMyaccountStatus(){if(document.getElementById("login_box")){document.getElementById("login_box").style.display=(authenticated==1)?"none":""}if(document.getElementById("myaccount_login")){document.getElementById("myaccount_login").style.display=(authenticated==1)?"none":""}if(document.getElementById("myaccount")){document.getElementById("myaccount").style.display=(authenticated==1)?"":"none"}if(document.getElementById("myaccount_logout")){document.getElementById("myaccount_logout").style.display=(authenticated==1)?"":"none"}}function setPressRoomLoginStatus(){if(document.getElementById("pr_login_box")){document.getElementById("pr_login_box").style.display=(pr_auth==1)?"none":""}if(document.getElementById("pr_help_box")){document.getElementById("pr_help_box").style.display=(pr_auth==1)?"":"none"}}function ShowIAV(){if(iav_offered==0){ShowIAVOffer()}};
