var xmlHttp;var xmlHttp1;var xmlHttp2;var xmlHttp3;var xmlHttp4;function showAddress(str) {if(str!="") {var url="http://www3.ocimumbio.com/wp-content/themes/arthemia/get_address.php?sid="+Math.random()+"&q="+str if(window.XMLHttpRequest) {xmlHttp=new XMLHttpRequest();xmlHttp.onreadystatechange=stateChanged;try{xmlHttp.open("GET",url,true);} catch(e){alert(e);} xmlHttp.send(null);} else if(window.ActiveXObject) {xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");if(xmlHttp) {xmlHttp.onreadystatechange=stateChanged;document.getElementById("loadingIndicator").style.display='inline';xmlHttp.open("GET",url,true);xmlHttp.send();}}}} function stateChanged(){if(xmlHttp.readyState==4){if(xmlHttp.status==200){document.getElementById("loadingIndicator").style.display='none';document.getElementById("location").innerHTML=xmlHttp.responseText;} else{alert("Error retrieving location...");document.getElementById("loadingIndicator").style.display='none';}} else{document.getElementById("loadingIndicator").style.display='inline';}} function toggleTextOut(e,txtval){if(e.value=="")e.value=txtval;} function toggleTextIn(e,txtval){if(e.value==txtval)e.value="";else e.select();} function toggleClass(c,t){var current=document.getElementById(c);var target=document.getElementById(t);if(target.className=="elementHidden"){target.className="elementVisible";current.className="elementHidden";} else if(target.className=="elementVisible"){current.className="elementVisible";target.className="elementHidden";}} window.onload=function() {var txtSearch=document.getElementById("s");txtSearch.onfocus=function(){if(this.value=="Search"){this.value="";}} txtSearch.onblur=function(){if(this.value==""){this.value="Search";}}};function correctPNG() {var arVersion=navigator.appVersion.split("MSIE") var version=parseFloat(arVersion[1]) if((version>=5.5)&&(version<7.0)&&(document.body.filters)) {for(var i=0;i" img.outerHTML=strNewHTML i=i-1}}}} if(window.attachEvent) window.attachEvent("onload",correctPNG);function retrieveCookie(cookieName){var cookieJar=document.cookie.split("; ");for(var x=0;x=1)console.log("LOG: "+msg);} Logger.prototype.verbose=function(msg){if(window.console&&window.console.log&&this.logLevel>=2)console.log("INFO: "+msg);} Logger.prototype.alert=function(msg){alert(msg);} OBS.Logger=new Logger(0);TabComponent=function(num,name,openDuration,closeDuration){this.num=num;this.name=(name)?(name):(" -- ");this.openDuration=(openDuration)?(openDuration):(.5);this.closeDuration=(closeDuration)?(closeDuration):(.5);this.navSuffix="NavA";this.menuSuffix="Menu";this.overClass="hover";this.simple=false;this.button=$(name+this.navSuffix);if(this.button)this.button.owner=this;if(this.button)this.button.onmouseover=function(){OBS.TabGroup.onNavOver(this.owner);} if(this.button)this.button.onmouseout=function(){OBS.TabGroup.onNavOut(this.owner);} this.menu=$(name+this.menuSuffix);if(this.menu)this.menu.owner=this;this.isOpen=false;var dim;if(this.menu){dim=this.menu.getDimensions();this.width=dim.width;this.height=dim.height;this.openDuration*=(this.height/403);this.left=parseInt(this.menu.getStyle("left"));this.top=parseInt(this.menu.getStyle("top"));} else{this.width=0;this.height=0;this.left=0;this.top=0;}} TabComponent.prototype.isOverMenu=function(mousex,mousey){var width;if(self.innerWidth){width=self.innerWidth;} else if(document.documentElement&&document.documentElement.clientWidth){width=document.documentElement.clientWidth;} else if(document.body){width=document.body.clientWidth;} var offset=(width-10000)/2;offset=(offset>0)?(offset):(0);l=this.left+offset;t=this.top;w=this.width;h=this.height;if(mousexl+w||mousey>t+h||mousey0);if(isIE6&&hasSelects){new Insertion.Before('LSDMMenu','');$("IFrameHack").setStyle({border:"0px solid white",left:"-9999px",position:"absolute",top:"100px",overflow:"hidden"});} this.timerId=0;var tab;for(var i=0;i