function textCounter(c,a,b){if(c.value.length>b){c.value=c.value.substring(0,b)}else{a.value=b-c.value.length}}function openPopup(a){var c=(screen.width-370)/2;var b=(screen.height-525)/2;passPop=window.open(a,"","width=370,height=525,top="+b+",left="+c+",")}function openWin(a){var c=(screen.width-600)/2;var b=(screen.height-525)/2;passPop=window.open(a,"","width=600,height=525,top="+b+",left="+c+",status=0,toolbar=0,scrollbars=1,resizable=1,menubar=0,location=0")}var newwindow;function popupBox(b,a,c){newwindow=window.open(b,"name","height="+a+",width="+c+",scrollbars=yes,status=yes");if(window.focus){newwindow.focus()}}function openDir(b){var a=b.fieldname.selectedIndex;if(a==0){alert("Please select a location!")}else{cururl=b.fieldname.options[a].value;window.location.assign(cururl)}}function valid_email(a){if(a.indexOf("@")==-1||a.indexOf(".")==-1){alert("Email addresses must contain one @ symbol and at least one dot");return false}var d="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz'0123456789_-.@";var b=a;var c=true;for(i=0;i<b.length;i++){ch=b.charAt(i);if(d.indexOf(ch)==-1){alert('Please enter only letter, digit and "_-\'.@" characters in this email field.');return(false)}}return(true)}function reminder_form_check(a){if(a.email.value==""){alert("Please enter a value for the Username (e-mail address) field.");a.email.focus();return(false)}if(!valid_email(a.email.value)){a.email.focus();return(false)}return true}function login_form_check(a){if(a.username.value==""){alert("Please enter a value for the Username (e-mail address) field.");a.username.focus();return(false)}if(!valid_email(a.username.value)){a.username.focus();return(false)}if(a.password.value==""){alert("Please enter a value for the Password field.");a.password.focus();return(false)}return true}function confirmcode_check(a){if(a.ConfirmCode.value==""){alert("Please enter a Confirmation Code.");a.ConfirmCode.focus();return(false)}return true}function addEvent(c,b,e,a){if(c.addEventListener){c.addEventListener(b,e,a);return true}else{if(c.attachEvent){var d=c.attachEvent("on"+b,e);return d}else{return false}}}function knackerEvent(a){if(a&&a.stopPropagation){a.stopPropagation()}if(window.event&&window.event.cancelBubble){window.event.cancelBubble=true}if(a&&a.preventDefault){a.preventDefault()}if(window.event){window.event.returnValue=false}}function cancelEventSafari(){return false}function getElementStyle(b,d){var c=document.getElementById(b);if(c.currentStyle){return c.currentStyle[toCamelCase(d)]}else{if(window.getComputedStyle){var a=window.getComputedStyle(c,"");return a.getPropertyValue(d)}else{return""}}}function toCamelCase(e){var b=e.toLowerCase().split("-");if(b.length==1){return b[0]}var a=(e.indexOf("-")==0)?b[0].charAt(0).toUpperCase()+b[0].substring(1):b[0];for(var c=1;c<b.length;c++){var d=b[c];a+=d.charAt(0).toUpperCase()+d.substring(1)}return a}function disableTestLinks(){var b=document.getElementsByTagName("a");for(var a=0;a<b.length;a++){if(b[a].href.match(/[^#]#$/)){addEvent(b[a],"click",knackerEvent,false)}}}function createCookie(c,d,e){var a="";if(e){var b=new Date();b.setTime(b.getTime()+(e*24*60*60*1000));var a="; expires="+b.toGMTString()}document.cookie=c+"="+d+a+"; path=/"}function readCookie(b){var d=document.cookie.split(";");var e=b+"=";for(var c=0;c<d.length;c++){var a=d[c];while(a.charAt(0)==" "){a=a.substring(1,a.length)}if(a.indexOf(e)==0){return a.substring(e.length,a.length)}}return null}function eraseCookie(a){createCookie(a,"",-1)}function checkemail(a){if(a.email.value!=""){if(!valid_email(a.email.value)){alert("- Your E-Mail Address appears to be invalid.\n");a.email.focus();return(false)}}else{alert("- Please enter your E-mail Address.\n");return(false)}}function kitSwitch(a){var b=document.getElementById("kit");if(b){b.src=src="http://cdn.cloudfiles.mosso.com/c15761/"+a+"_front_small.png"}}function toggleDiv(a){var b=document.getElementById(a);if(b){if(b.style.display=="none"){b.style.display="block";document.getElementById("uiLang1").style.display="none"}else{b.style.display="none";document.getElementById("uiLang1").style.display="block"}}}var http=createRequestObject();function createRequestObject(){var a;if(window.XMLHttpRequest){a=new XMLHttpRequest()}else{if(window.ActiveXObject){a=new ActiveXObject("Microsoft.XMLHTTP")}else{alert("Problem creating the XMLHttpRequest object")}}return a}function clearHelpFull(){var c=document.getElementById("helpcontainer");if(c){c.style.visibility="hidden";c.style.display="none";c.style.borderStyle="none";c.innerHTML='<div id="helpheader"></div><div id="helpcontent"></div><div id="helpfooter"></div>'}var b=document.getElementById("adslot_1");if(b){b.style.display="block"}var a=document.getElementById("adslot_2");if(a){a.style.display="block"}}function openHelp(d,f){var l;var j;var a;var b=document.getElementById("tutorialcontainer");if(b.style.display=="block"){return}var g=document.getElementById("baseDiv");if(g){l=g.offsetLeft;l+=170}var k=document.getElementById("adslot_1");if(k){k.style.display="none"}var h=document.getElementById("adslot_2");if(h){h.style.display="none"}var m=getScrollXY();j=f.clientY+m[1];a=600;var b=document.getElementById("helpcontainer");var n=document.getElementById("helpheader");var o=document.getElementById("helpcontent");var c=document.getElementById("helpfooter");if(b&&n&&o&&c){n.innerHTML='<div class="loadingsmall">Loading...</div>';b.style.visibility="visible";b.style.display="block";b.style.position="absolute";b.style.left=l+"px";b.style.top=j+"px";b.style.zIndex="300";b.style.padding="5px";b.style.border="1px solid #ddd";b.style.backgroundColor="#fff";b.style.width=a+"px";b.style.height="380px";n.style.visibility="visible";n.style.display="block";n.style.zIndex="300";n.style.backgroundColor="#6793C1";n.style.height="30px";o.style.visibility="visible";o.style.display="block";o.style.zIndex="300";o.style.backgroundColor="#fff";o.style.height="320px";o.style.overflow="auto";c.style.visibility="visible";c.style.display="block";c.style.zIndex="300";c.style.backgroundColor="#6793C1";c.style.height="30px";http.open("get","help-ajax.php?tutid="+d);http.onreadystatechange=handleResponseHelpDisplay;http.send(null);return true}}function handleResponseHelpDisplay(){if(http.readyState==4&&http.status==200){var a=http.responseText;if(a>""){var c=a.split("~_~",4);var b=c[0];var g=document.getElementById("helpcontainer");var f=document.getElementById("helpheader");var d=document.getElementById("helpcontent");var e=document.getElementById("helpfooter");if(g&&f&&d&&e){f.innerHTML=c[1];d.innerHTML=c[2];e.innerHTML=c[3]}}}}var tickspeed=10000;var enablesubject=1;if(document.getElementById){document.write('<style type="text/css">\n');document.write(".dropcontent{display:none;}\n");document.write("</style>\n")}var selectedDiv=0;var totalDivs=0;function contractall(){var a=0;while(document.getElementById("dropmsg"+a)){document.getElementById("dropmsg"+a).style.display="none";a++}}function expandone(){var a=document.getElementById("dropmsg"+selectedDiv);if(a){contractall();document.getElementById("dropcontentsubject").innerHTML=a.getAttribute("subject");a.style.display="block";selectedDiv=(selectedDiv<totalDivs-1)?selectedDiv+1:0;setTimeout("expandone()",tickspeed)}}function startscroller(){while(document.getElementById("dropmsg"+totalDivs)!=null){totalDivs++}if(totalDivs==0){return}expandone();if(!enablesubject){document.getElementById("dropcontentsubject").style.display="none"}}if(window.addEventListener){window.addEventListener("load",startscroller,false)}else{if(window.attachEvent){window.attachEvent("onload",startscroller)}}var themeCSS=function(f,e,d,c,b,a){document.write('<style type="text/css">');document.write(".smm li a {background:#"+f+";color:#"+e+";} ");if(f=="FFFFFF"){document.write(".smm li a {border-top:1px solid #eee;border-bottom:1px solid #eee;}")}else{}document.write(".smm li a:hover {background:#"+b+";color:#"+c+";}");if(b=="FFFFFF"){document.write(".smm li a.hover {border-top:1px solid #eee;border-bottom:1px solid #eee;}")}else{}document.write(".smm li a.selected {background:#"+d+";color:#"+c+";} ");if(d=="FFFFFF"){document.write(".smm li a.selected {border-top:1px solid #eee;border-bottom:1px solid #eee;}")}else{}document.write(".smu li a {background:#"+d+";color:#"+c+";} ");document.write(".smu li a:hover {background:#"+f+";color:#"+e+";} ");document.write(".smm ul {background:#"+f+";color:#"+e+";} ");document.write("#sideNav .smMainMenu .submenuheader{color:#"+e+";background:#"+f+" url(http://smimgs.com/images/bullets/down_arrow.png) no-repeat 142px 3px;}");if(f=="FFFFFF"){document.write("#sideNav .smMainMenu .submenuheader{border:1px solid #eee}")}else{document.write("#sideNav .smMainMenu .submenuheader{border:1px solid #"+f+"}")}document.write("#sideNav .smMainMenu .submenuheader:hover{text-decoration:underline;}");if(d=="FFFFFF"){}else{}document.write("#sideNav .smMainMenu .submenuheader2{color:#"+c+";background:#"+d+" url(http://smimgs.com/images/bullets/down_arrow.png) no-repeat 142px 3px;}");if(d=="FFFFFF"){document.write("#sideNav .smMainMenu .submenuheader2{border:1px solid #eee}")}else{document.write("#sideNav .smMainMenu .submenuheader2{border:1px solid #"+d+"}")}document.write("#sideNav .smMainMenu .submenuheader2:hover{text-decoration:underline;}");if(f=="FFFFFF"){}else{}document.write("#sideNav .smMainMenu .submenuheader3{color:#"+c+";background:#"+b+" url(http://smimgs.com/images/bullets/down_arrow.png) no-repeat 142px 3px;}");if(f=="FFFFFF"){document.write("#sideNav .smMainMenu .submenuheader3{border:1px solid #eee}")}else{}document.write("#sideNav .smMainMenu .submenuheader3:hover{text-decoration:underline;}");if(d=="FFFFFF"){}else{}document.write("#sideNav .smMainMenu li a:hover{text-decoration:underline;}");document.write("#sideNav .smMainMenu .openheader{color:#"+e+";background:#"+f+" url(http://smimgs.com/images/bullets/up_arrow.png) no-repeat 142px 3px;}");document.write("#sideNav .smMainMenu .openheader2{color:#"+c+";background:#"+d+" url(http://smimgs.com/images/bullets/up_arrow.png) no-repeat 142px 3px;}");document.write("#sideNav .smMainMenu .openheader3{color:#"+c+";background:#"+b+" url(http://smimgs.com/images/bullets/up_arrow.png) no-repeat 142px 3px;}");document.write("#sideNav .smMainMenu .menuitemstyle0 a{color:#"+e+";background:#"+f+";}");if(f=="FFFFFF"){document.write("#sideNav .smMainMenu .menuitemstyle0 a{border:1px solid #eee}")}else{}document.write("#sideNav .smMainMenu .menuitemstyle0 a:hover{text-decoration:underline;}");document.write("#sideNav .smMainMenu .menuitemstyle1 a{color:#"+c+";background:#"+d+";}");if(d=="FFFFFF"){document.write("#sideNav .smMainMenu .menuitemstyle1 a{border:1px solid #eee}")}else{}document.write("#sideNav .smMainMenu .menuitemstyle1 a:hover{text-decoration:underline;}");document.write("#sideNav .smMainMenu .menuitemstyle2 a{color:#"+c+";background:#"+b+";}");if(f=="FFFFFF"){document.write("#sideNav .smMainMenu .menuitemstyle2 a{border:1px solid #eee}")}else{}document.write("#sideNav .smMainMenu .menuitemstyle2 a:hover{text-decoration:underline;}");document.write("#sideNav .smMainMenu .menuitemstyle3 a{color:#"+c+";background:#"+a+";}");if(d=="FFFFFF"){document.write("#sideNav .smMainMenu .menuitemstyle3 a{border:1px solid #eee}")}else{}document.write("#sideNav .smMainMenu .menuitemstyle3 a:hover{text-decoration:underline;}");document.write("</style>")};function clearDivFull(c){if(document.getElementById(c)){document.getElementById(c).innerHTML="";document.getElementById(c).style.visibility="hidden";document.getElementById(c).style.display="none";document.getElementById(c).style.borderStyle="none"}var d=document.getElementById("tutorialcontainer");if(d){if(d.style.display=="block"){return}}var b=document.getElementById("adslot_1");if(b){b.style.display="block"}var a=document.getElementById("adslot_2");if(a){a.style.display="block"}};