function addListener(d,a,c,b){if(document.addEventListener){d.addEventListener(a,c,b)}else{d.attachEvent("on"+a,c)}}function analytics(){if(!gaId){return null}gaJsHost=(("https:"==document.location.protocol)?"https://ssl.":"http://www.");loadScript(gaJsHost+"google-analytics.com/ga.js",alalyticsLoaded)}function alalyticsLoaded(){if(!gaId){return null}var a=_gat._getTracker(gaId);a._setDomainName(BASE_URL.replace(/http:\/\//,"").replace(/\/.*$/,""));a._trackPageview()}var DomLoaded={onload:[],loaded:function(){var a;if(arguments.callee.done){return}arguments.callee.done=true;for(a=0;a<DomLoaded.onload.length;a++){DomLoaded.onload[a]()}},load:function(fireThis){this.onload.push(fireThis);if(document.addEventListener){document.addEventListener("DOMContentLoaded",DomLoaded.loaded,null)}if(/KHTML|WebKit/i.test(navigator.userAgent)){var _timer=setInterval(function(){if(/loaded|complete/.test(document.readyState)){clearInterval(_timer);delete _timer;DomLoaded.loaded()}},10);
/*@cc_on @*/
/*@if (@_win32)
var proto = "src='javascript:void(0)'";
if (location.protocol == "https:") proto = "src=//0";
document.write("<scr"+"ipt id=__ie_onload defer " + proto + "><\/scr"+"ipt>");
var script = document.getElementById("__ie_onload");
script.onreadystatechange = function() {
    if (this.readyState == "complete") {
        DomLoaded.loaded();
    }
};
/*@end @*/
}window.onload=DomLoaded.loaded}};function externalLinks(){var b,a;b=document.getElementsByTagName("a");for(a=0;a<b.length;++a){anchor=b[a];if(anchor.getAttribute("href")&&anchor.getAttribute("rel")=="external"){anchor.target="_blank"}}}function homePageBlocks(){var f=new Array("home_block_1","home_block_2","home_block_3","home_block_4");for(var c=0;c<f.length;++c){var e=document.getElementById(f[c]);if(!e){continue}var b=e.getElementsByTagName("a").item(0);var d=b.title?b.title:b.innerHTML;e.onclick=function(){var g=this.getElementsByTagName("a").item(0);window.location=g.href};e.title=d}}function isIE6(){return isIE()&&!!document.compatMode&&!isIE7()&&!isIE8()}function isIE7(){return isIE()&&!!document.documentElement&&typeof document.documentElement.style.maxHeight!="undefined"&&!isIE8()}function isIE8(){return isIE()&&!!document.querySelector}function isIE(){return !!(document.all&&!window.opera)}function isOpera(){return !!window.opera}function isSafari2(){return isSafari()&&!isSafari3()}function isSafari3(){return isSafari()&&window.devicePixelRatio}function isSafari(){return navigator&&navigator.vendor&&navigator.vendor.toLowerCase().indexOf("apple")!=-1}function loadScript(b,a){var c=document.createElement("script");c.onreadystatechange=function(){if((this.readyState=="completed"||this.readyState=="loaded")&&!this.loadScriptDone){this.loadScriptDone=true;a()}};c.onload=a;c.type="text/javascript";c.src=b;document.getElementsByTagName("head")[0].appendChild(c);return c}function submissionCheck(){var a="Please fill in this box";this.fieldsValid=true;jQuery("form textarea.warning").removeClass("warning").focus(null);jQuery("form input.warning").removeClass("warning").focus(null);jQuery('li.required input:not([type="password"])[value="'+a+'"], li.required textarea[value="'+a+'"]').attr("value","").focus(function(){if(this.value==a){this.value=""}this.className=""}).each(function(){this.form.fieldsValid=false});jQuery('li.required input:not([type="password"])[value=""], li.required textarea[value=""], li.required textarea[value=" "]').addClass("warning").attr("value",a).focus(function(){if(this.value==a){this.value=""}this.className=""}).each(function(){this.form.fieldsValid=false});jQuery('li.required input[type="password"][value=""]').addClass("warning").focus(function(){this.className=""}).each(function(){this.form.fieldsValid=false});return(jQuery(".warning").length==0)}var ELEMENT_NODE=1,ATTRIBUTE_NODE=2,TEXT_NODE=3,CDATA_SECTION_NODE=4,ENTITY_REFERENCE_NODE=5,ENTITY_NODE=6,PROCESSING_INSTRUCTION_NODE=7,COMMENT_NODE=8,DOCUMENT_NODE=9,DOCUMENT_TYPE_NODE=10,DOCUMENT_FRAGMENT_NODE=11,NOTATION_NODE=12;if(!Array.indexOf){Array.prototype.indexOf=function(b,c){for(var a=(c||0);a<this.length;++a){if(this[a]==b){return a}}}}jQuery.noConflict();DomLoaded.load(function(){homePageBlocks();externalLinks();analytics()});