/* Includes the named javaScript file. */ function include(file) { var script = document.createElement('script'); script.src = file; script.type = 'text/javascript'; script.defer = true; document.getElementsByTagName('head').item(0).appendChild(script); } /* Fix for IE 5, which lacks Array.prototype.push */ if(typeof Array.prototype.push != "function") { Array.prototype.push = ArrayPush; function ArrayPush(value) { this[this.length] = value; } } /* Cypher namespace for constants */ Cypher = { WINDOW_SIGN_UP: "signUp", PARAMETERS_SIGN_UP: "menubar=1,resizable=1,status=1,scrollbars=1,width=650,height=450", WINDOW_CONTACT_US: "contactUs", PARAMETERS_CONTACT_US: "menubar=1,resizable=1,status=1,scrollbars=1,width=760,height=450", WINDOW_LATEST_NEWS: "latestNews", PARAMETERS_LATEST_NEWS: "menubar=1,resizable=1,status=1,scrollbars=1,width=760,height=450", WINDOW_VIDEO: "video", PARAMETERS_VIDEO: "menubar=1,resizable=1,status=1,scrollbars=1,width=686,height=630" }; /** getElementsByClassName Written by Jonathan Snook, http://www.snook.ca/jonathan Add-ons by Robert Nyman, http://www.robertnyman.com */ function getElementsByClassName(oElm, strTagName, strClassName) { var arrElements = (strTagName == "*" && oElm.all)? oElm.all : oElm.getElementsByTagName(strTagName); var arrReturnElements = new Array(); strClassName = strClassName.replace(/\-/g, "\\-"); var oRegExp = new RegExp("(^|\\s)" + strClassName + "(\\s|$)"); var oElement; for(var i=0; i