// JavaScript Document


/*Example message arrays for the two demo scrollers*/

var pausecontent=new Array()
//pausecontent[0]='<a href="http://www.roland.ac.in/notice/recheck.doc">RECHECKING/RE-ADDITION </a><br />4th  year students who are interested for Rechecking/ re-addition of subjects   </br>may submit their application at R.I.T. City Centre office before 27/06/08 '

//pausecontent[0]='<a href="http://www.roland.ac.in/">ADMIT CARD(8th)</a><br />8th semester student can collect their admit card from RIT on 23/04/08 from 9A.M to 11A.M<br />'
//pausecontent[0]='<a href="http://www.roland.ac.in/">Certificate</a><br />B.Tech 2007 pass out student can collect their BPUT certificate from RIT office during working hours w.e.f 15.04.08 by depositing RS 250/- in the account  section <br />'
//pausecontent[0]='<a href="http://www.roland.ac.in/">NOTICE</a><br />It is hereby informed to all 7th and 5th semester students that the semister registration will be held on 16/07/09 for 7th sem and 17/07/09 for 5th sem. The classes will start from 17/07/09 for 7th sem and 18/07/09 for 5th sem.'
//pausecontent[1]='<a href="http://www.roland.ac.in/notice/back.doc">BACK PAPER REGISTRATION FOR SPECIAL EXAM -09</a><br />2004-2008 students those who are interested for Back Paper Registration for special exam 2009 may submit their application in prescribed format at exam section between 10:30 AM to 1:00 PM by depositing Rs. 200/- per paper.'
//pausecontent[1]='<a href="http://www.roland.ac.in/notice/back.doc">SPECIAL EXAM -09</a><br />B.Tech students those who are interested for Back Paper Registration for special exam 2009 may submit their application in prescribed format at exam section by depositing Rs. 200/- per paper on or befere 27/08/09.'
pausecontent[0]='<a href="http://www.roland.ac.in/">FINAL CERTIFICATE </a><br />2008 pass out students can collect their Final BPUT Certificat from office by paying Rs. 200/- per student after 20.07.09 inbetween 10:30 AM to 3:00 PM'
pausecontent[1]='<a href="http://www.roland.ac.in/notice/back.doc">ADMIT CARD (7th SEM) FOR DEC-09 SEM EXAM</a><br />B.Tech 7TH SEM Regular and 5TH SEM BACK paper students can collect the admit cards on 14/12/09 between 10:00 am to 2:00 pm.Busses will ply from RIPS at 8:30a.m.'
pausecontent[2]='<a href="http://www.roland.ac.in/notice/back.doc">ADMIT CARD (5th SEM) FOR DEC-09 SEM EXAM</a><br />B.Tech and MCA 5TH SEM students can collect the admit cards on 16/12/09 between 10:00 am to 2:00 pm.Busses will ply from RIPS at 8:30a.m.'
pausecontent[3]='<a href="http://www.roland.ac.in/notice/back.doc">INTERNAL MARKS</a><br />The 7TH and 5TH SEM students are required to verify their internal marks while collecting the admit cards.'
pausecontent[4]='<a href="http://www.roland.ac.in/notice/back.doc">NOTICE</a><br />It is informed to all B.Tech/MCA students that they should come to BPUT sem.exam with Admit Card, Identity Card & Registration Card with uniform. Those who have lost their Reg. Cards should apply for duplicate Reg. card with FIR copy at Exam Section on or before 17.12.09.'
//pausecontent[1]='<a href="http://www.roland.ac.in/notice/back.doc">SPECIAL EXAMINATION '09</a><br />B.Tech students those who are interested for Back Paper Registration for special exam 2009 may submit their application in prescribed format at exam section by depositing Rs. 200/- per paper on or before 27/08/09.'


//pausecontent[3]='<a href="http://www.roland.ac.in/">ROBO-CLUB</a><br />Register yourself to RIT ROBO-CLUB'
//pausecontent[5]='<a href="http://www.roland.ac.in/">PROJECT SUBMISSON</a><br />Final Yr. student should submit the project and seminar report before 20th Nov-07'
//pausecontent[2]='<a href="http://www.roland.ac.in/notice/reg.doc">SEMESTER REGISTRATION</a><br />the semester registration & commencement of classes for 7th 5th 3rd semesters of B.Tech & MCA 3rd semester </br> students will be conducted on 07.07.08,10.07.08,17.07.08,17.07.08 respectively'
//pausecontent[7]='<a href="http://www.roland.ac.in/result/eee.htm">SUPPLIMENARY RESULT SHEET</a><br />The supplimentary result of Electrical & Electronics student of 03-batch has been published.'
//pausecontent[8]='<a href="http://www.roland.ac.in/result/ae&ie.htm">SUPPLIMENARY RESULT SHEET</a><br />The supplimentary result of Applied Electronics & instrumentation student of 03-batch has been published.'
//pausecontent[9]='<a href="http://www.roland.ac.in/">RESULT</a><br />If  you have any discrepancy in your result then contact us :contact@roland.ac.in on or before 4th Sept 2007.beyond this date no cases will be considered.  '
//pausecontent[3]='<a href="http://www.roland.ac.in/notice/back.doc">BACK PAPER REGISTRATION</a><br />B.Tech 4th and 3rd year students are hereby informed to register for their lower semester backlog subjects as per the following schedule by depositing Rs. 200/- per subject to the Exam Section between 10:00am to 3:00 pm. 5th sem. 08/09/08 to 11/09/08 3rd sem 12/09/08 to 16/09/08'
//pausecontent[6]='<a href="http://www.roland.ac.in/">NOTICE</a><br /> All the admitted students of B.Tech and MCA 1st Year course during 2008 - 09 and their parents are informed to attend the Welcome -cum - Orientation Programme at Roland Institute of Technology premises at 9:00 AM on 07.09.2008(Sunday). They can avail RIT Buses at 7:30 AM on 07.09.2008 from Gandhi Nagar Square, Berhampur.<br />'

//pausecontent[3]='<a href="http://www.roland.ac.in/notice/back.doc">SPECIAL EXAMINATION</a><br />It is hereby informed to all B.Tech students that their special examination will be held at NIST, centre from 13th to 15th Nov -08. The bus will start from RIPS at 12 noon and the route is Courtpeta, New Bus Stand, Gate Bazar, Aska Road, City Hospital, Sub Register Office, Jannana Hospital, Tata Benz, Bijipur, Gosaninuagaun to NIST'

/***********************************************
* Pausing up-down scroller- © Dynamic Drive (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit http://www.dynamicdrive.com/ for this script and 100s more.
***********************************************/

function pausescroller(content, divId, divClass, delay)
{
this.content=content //message array content
this.tickerid=divId //ID of ticker div to display information
this.delay=delay //Delay between msg change, in miliseconds.
this.mouseoverBol=0 //Boolean to indicate whether mouse is currently over scroller (and pause it if it is)
this.hiddendivpointer=1 //index of message array for hidden div
document.write('<div id="'+divId+'" class="'+divClass+'" style="position: relative; overflow: hidden"><div class="innerDiv" style="position: absolute; width: 100%" id="'+divId+'1">'+content[0]+'</div><div class="innerDiv" style="position: absolute; width: 100%; visibility: hidden" id="'+divId+'2">'+content[1]+'</div></div>')
var scrollerinstance=this
if (window.addEventListener) //run onload in DOM2 browsers
window.addEventListener("load", function(){scrollerinstance.initialize()}, false)
else if (window.attachEvent) //run onload in IE5.5+
window.attachEvent("onload", function(){scrollerinstance.initialize()})
else if (document.getElementById) //if legacy DOM browsers, just start scroller after 0.5 sec
setTimeout(function(){scrollerinstance.initialize()}, 500)
}

// -------------------------------------------------------------------
// initialize()- Initialize scroller method.
// -Get div objects, set initial positions, start up down animation
// -------------------------------------------------------------------

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) //Clean up loose references in IE
window.attachEvent("onunload", function(){scrollerinstance.tickerdiv.onmouseover=scrollerinstance.tickerdiv.onmouseout=null})
setTimeout(function(){scrollerinstance.animateup()}, this.delay)
}


// -------------------------------------------------------------------
// animateup()- Move the two inner divs of the scroller up and in sync
// -------------------------------------------------------------------

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)
}
}

// -------------------------------------------------------------------
// swapdivs()- Swap between which is the visible and which is the hidden div
// -------------------------------------------------------------------

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"
}

// -------------------------------------------------------------------
// setmessage()- Populate the hidden div with the next message before it's visible
// -------------------------------------------------------------------

pausescroller.prototype.setmessage=function(){
var scrollerinstance=this
if (this.mouseoverBol==1) //if mouse is currently over scoller, do nothing (pause it)
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){ //get CSS padding value, if any
if (tickerobj.currentStyle)
return tickerobj.currentStyle["paddingTop"]
else if (window.getComputedStyle) //if DOM2
return window.getComputedStyle(tickerobj, "").getPropertyValue("padding-top")
else
return 0
}

