function pausescroller(a,b,c,d){this.content=a;this.tickerid=b;this.delay=d;this.mouseoverBol=0;this.hiddendivpointer=1;document.write('<div id="'+b+'" class="'+c+'" style="position: relative; overflow: hidden;" > <div class="innerDiv" style="position: absolute; width: 100%" id="'+b+'1">'+a[0]+'</div><div class="innerDiv" style="position: absolute; width: 100%; visibility: hidden" id="'+b+'2">'+a[1]+"</div></div>");var e=this;if(window.addEventListener)window.addEventListener("load",function(){e.initialize()},false);else if(window.attachEvent)window.attachEvent("onload",function(){e.initialize()});else if(document.getElementById)setTimeout(function(){e.initialize()},500)}var pausecontent=new Array;pausecontent[0]="<b>OSMIO</b><br />Arion In the final touching. Magento e-commerce application and SEO for osmio";pausecontent[1]="<b>Dar Ul-Isra</b><br />CMS Website for Dar Ul-Isra (DUI) Muslim Educational & Welfare Centre.";pausecontent[2]="<b>Direction for Career</b><br />Web based Students Management Application for Direction";pausecontent[3]="<b>Almaraas</b><br />Interactive website for Almaraas Group";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));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 a=this;document.getElementById(this.tickerid).onmouseover=function(){a.mouseoverBol=1};document.getElementById(this.tickerid).onmouseout=function(){a.mouseoverBol=0};if(window.attachEvent)window.attachEvent("onunload",function(){a.tickerdiv.onmouseover=a.tickerdiv.onmouseout=null});setTimeout(function(){a.animateup()},this.delay)};pausescroller.prototype.animateup=function(){var a=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(){a.animateup()},50)}else{this.getinline(this.hiddendiv,this.visiblediv);this.swapdivs();setTimeout(function(){a.setmessage()},this.delay)}};pausescroller.prototype.swapdivs=function(){var a=this.visiblediv;this.visiblediv=this.hiddendiv;this.hiddendiv=a};pausescroller.prototype.getinline=function(a,b){a.style.top=this.visibledivtop+"px";b.style.top=Math.max(a.parentNode.offsetHeight,a.offsetHeight)+"px"};pausescroller.prototype.setmessage=function(){var a=this;if(this.mouseoverBol==1)setTimeout(function(){a.setmessage()},100);else{var b=this.hiddendivpointer;var c=this.content.length;this.hiddendivpointer=b+1>c-1?0:b+1;this.hiddendiv.innerHTML=this.content[this.hiddendivpointer];this.animateup()}};pausescroller.getCSSpadding=function(a){if(a.currentStyle)return a.currentStyle["paddingTop"];else if(window.getComputedStyle)return window.getComputedStyle(a,"").getPropertyValue("padding-top");else return 0}
