//START OF CODE var infoBankState = false; var onlineShopState = false; var productsState = false; function displayInfoBank(){ if(infoBankState == false){ //all other menus shoulde be close document.getElementById("onlineShop").style.display='none'; document.getElementById("product").style.display='none'; onlineShopState = false; productsState = false; document.getElementById("InfoBank").style.display=''; document.getElementById("InfoBank").className = 'blueText' infoBankState = true; } else{ document.getElementById("InfoBank").style.display='none'; infoBankState = false; } } function displayOnlineShop(){ if (onlineShopState == false) { //all other menus shoulde be close document.getElementById("product").style.display='none'; document.getElementById("InfoBank").style.display='none'; infoBankState = false; productsState = false; document.getElementById("onlineShop").style.display=''; document.getElementById("onlineShop").className = 'blueText' onlineShopState = true; } else{ document.getElementById("onlineShop").style.display='none'; onlineShopState = false; } } function displayProducts(){ // alert(productsState); if(productsState == false){ //all other menus shoulde be close document.getElementById("onlineShop").style.display='none'; document.getElementById("InfoBank").style.display='none'; infoBankState = false; onlineShopState = false; document.getElementById("product").style.display=''; document.getElementById("product").className = 'blueText' productsState = true; } else{ document.getElementById("product").style.display='none'; productsState = false; } } function checkAll(theForm, cName, allNo_stat) { var n=theForm.elements.length; for (var x=0;x
'+content[0]+'
') var scrollerinstance=this if (window.addEventListener) window.addEventListener("load", function(){scrollerinstance.initialize()}, false) else if (window.attachEvent) window.attachEvent("onload", function(){scrollerinstance.initialize()}) else if (document.getElementById) setTimeout(function(){scrollerinstance.initialize()}, 500) } pausescroller.prototype.initialize=function(){ this.tickerdiv=document.getElementById(this.tickerid) this.visiblediv=document.getElementById(this.tickerid+"1") this.hiddendiv=document.getElementById(this.tickerid+"2") this.visibledivtop=parseInt(pausescroller.getCSSpadding(this.tickerdiv)) //set width of inner DIVs to outer DIV's width minus padding (padding assumed to be top padding x 2) this.visiblediv.style.width=this.hiddendiv.style.width=this.tickerdiv.offsetWidth-(this.visibledivtop*2)+"px" this.getinline(this.visiblediv, this.hiddendiv) this.hiddendiv.style.visibility="visible" var scrollerinstance=this document.getElementById(this.tickerid).onmouseover=function(){scrollerinstance.mouseoverBol=1} document.getElementById(this.tickerid).onmouseout=function(){scrollerinstance.mouseoverBol=0} if (window.attachEvent) window.attachEvent("onunload", function(){scrollerinstance.tickerdiv.onmouseover=scrollerinstance.tickerdiv.onmouseout=null}) setTimeout(function(){scrollerinstance.animateup()}, this.delay) } pausescroller.prototype.animateup=function(){ var scrollerinstance=this if (parseInt(this.hiddendiv.style.top)>(this.visibledivtop+5)){ this.visiblediv.style.top=parseInt(this.visiblediv.style.top)-5+"px" this.hiddendiv.style.top=parseInt(this.hiddendiv.style.top)-5+"px" setTimeout(function(){scrollerinstance.animateup()}, 50) } else{ this.getinline(this.hiddendiv, this.visiblediv) this.swapdivs() setTimeout(function(){scrollerinstance.setmessage()}, this.delay) } } pausescroller.prototype.swapdivs=function(){ var tempcontainer=this.visiblediv this.visiblediv=this.hiddendiv this.hiddendiv=tempcontainer } pausescroller.prototype.getinline=function(div1, div2){ div1.style.top=this.visibledivtop+"px" div2.style.top=Math.max(div1.parentNode.offsetHeight, div1.offsetHeight)+"px" } pausescroller.prototype.setmessage=function(){ var scrollerinstance=this if (this.mouseoverBol==1) setTimeout(function(){scrollerinstance.setmessage()}, 100) else{ var i=this.hiddendivpointer var ceiling=this.content.length this.hiddendivpointer=(i+1>ceiling-1)? 0 : i+1 this.hiddendiv.innerHTML=this.content[this.hiddendivpointer] this.animateup() } } pausescroller.getCSSpadding=function(tickerobj){ if (tickerobj.currentStyle) return tickerobj.currentStyle["paddingTop"] else if (window.getComputedStyle) //if DOM2 return window.getComputedStyle(tickerobj, "").getPropertyValue("padding-top") else return 0 } function launchCenteredWin(url, name, width, height, otherfeatures) { var str = "height=" + height + ",innerHeight=" + height; str += ",width=" + width + ",innerWidth=" + width; if (window.screen) { var ah = screen.availHeight - 30; var aw = screen.availWidth - 10; var xc = (aw - width) / 2; var yc = (ah - height) / 2; str += ",left=" + xc + ",screenX=" + xc; str += ",top=" + yc + ",screenY=" + yc; } newwin = window.open(url, name, str + ',' + otherfeatures); if(parseInt(navigator.appVersion) >= 4) { setTimeout('newwin.focus();',250); } } function setVisible(elementId, visible){ var element = document.getElementById(elementId); if (visible == true) element.style.display=''; else element.style.display='none'; } function getVisible(elementId){ var element = document.getElementById(elementId); return (element.style.display == ''); } function gotoSearch() { window.location = 'Manuscript.php?filed[Title]=1&filed[Subject]=1&filed[Language]=1&filed[Writer]=1&filed[Start]=1&filed[BookDescription]=1&filed[Explaination]=1&filed[BookTextDescription]=1&filed[CollectionTextDescription]=1&filed[Pages]=1&filed[Footer]=1&filed[Font]=1&filed[Ascribe]=1&filed[History]=1&tblName=vwLiner&text=' + document.getElementById('txt').value; return true; } //END OF CODE