// iTech-SSEC-MSM38---Gallery Marquee

/*Example message arrays for the two demo scrollers*/

var pausecontent=new Array()

pausecontent[0]='<a href="WorldCancer_Gallery2012.html" class="marquee" ><img src="images/Home/Thumb/WorldCancer2012.jpg" alt="/WorldCancer2012" width="200" height="130" /><br /><strong> "World Cancer Day 4<sup>th</sup> February 2012"</strong></a>'

pausecontent[1]='<a href="SoftwareEntrepreneurial_Gallery2012.html" class="marquee" ><img src="images/Home/Thumb/SoftwareEntrepreneurial2012.jpg" alt="/SoftwareEntrepreneurial2012" width="200" height="130" /><br /><strong> "SIMS & ED Cell organized seminar on "Software Entrepreneurial Opportunities"</strong></a>'

pausecontent[2]='<a href="NSSFinal_Gallery2012.html" class="marquee" ><img src="images/Home/Thumb/NSSFinal2012.jpg" alt="/NSSFinal2012" width="200" height="130" /><br /><strong> "NSS valedictory function on 27<sup>th</sup> Jan 2011."</strong></a>'

pausecontent[3]='<a href="SairamTrophyFinal_Gallery.html" class="marquee" ><img src="images/Home/Thumb/SairamTrophy_final2012.jpg" alt="/SairamTrophy_final2012" width="200" height="130" /><br /><strong> "SAIRAM TROPHY 2012- FINALS GALLERY"</strong></a>'

pausecontent[4]='<a href="OverviewOS_Gallery.html" class="marquee" ><img src="images/Home/Thumb/OverviewOS2012.jpg" alt="/OverviewOS2012" width="200" height="130" /><br /><strong> "Dept of IT organized seminar on " Overview of Operating System"</strong></a>'

pausecontent[5]='<a href="TCSCampus2012_Gallery.html" class="marquee" ><img src="images/Home/Thumb/TCSCampusCommune.jpg" alt="/TCSCampusCommune" width="200" height="130" /><br /><strong> "TCS Campus Commune on 27<sup>th</sup> Jan 2012 </strong></a>'

pausecontent[6]='<a href="FastBreeder2012_Gallery.html" class="marquee" ><img src="images/Home/Thumb/FastBreeder2012.jpg" alt="/FastBreeder2012" width="200" height="130" /><br /><strong> "Dept of Mech. Engg & SAEINDIA Collegiate club organized guest lecture </strong></a>'

pausecontent[7]='<a href="NCCRepublic2012_Gallery.html" class="marquee" ><img src="images/Home/Thumb/NCCRepublic2012.jpg" alt="/NCCRepublic2012" width="200" height="130" /><br /><strong> "NCC- Republic Day celebration &Innaguration of SAI DONORS on 26 Jan 2012. </strong></a>'

pausecontent[8]='<a href="NSSCampDay22012_Gallery.html" class="marquee" ><img src="images/Home/Thumb/NSSCampDay2_2012.jpg" alt="/NSSCampDay2_2012" width="200" height="130" /><br /><strong> "NSS Camp Day 2 Gallery. </strong></a>'

pausecontent[9]='<a href="InstrumentSociety2012_Gallery.html" class="marquee" ><img src="images/Home/Thumb/InstrumentSociety2012.jpg" alt="/InstrumentSociety2012" width="200" height="130" /><br /><strong> "Dept OF EIE inaugurated "Instrument Society of India </strong></a>'

pausecontent[10]='<a href="NSSCampDay12012_Gallery.html" class="marquee" ><img src="images/Home/Thumb/NSSCampDay_2012.jpg" alt="/NSSCampDay_2012" width="200" height="130" /><br /><strong> "NSS Camp Day 1 Gallery </strong></a>'

pausecontent[11]='<a href="SairamTrophy2012_Gallery.html" class="marquee" ><img src="images/Home/Thumb/SairamTrophy2012_Gallery.jpg" alt="/SairamTrophy2012_Gallery" width="200" height="130" /><br /><strong> "SAIRAM TROPHY 2012 Gallery </strong></a>'

pausecontent[12]='<a href="ArtofJournal2012_gallery.html" class="marquee" ><img src="images/Home/Thumb/ArtofJournal2012.jpg" alt="/ArtofJournal2012" width="200" height="130" /><br /><strong> "Department of Research and Development  organized  one day workshop </strong></a>'

pausecontent[13]='<a href="PongalCelebration2012_gallery.html" class="marquee" ><img src="images/Home/Thumb/Pongal2012.jpg" alt="/Pongal2012" width="200" height="130" /><br /><strong> "Pongal Celebration at our campus on 13<sup>th</sup> January 2012. </strong></a>'

pausecontent[14]='<a href="RecentTrends2012_gallery.html" class="marquee" ><img src="images/Home/Thumb/RecentTrends2012.jpg" alt="/RecentTrends2012" width="200" height="130" /><br /><strong> "Dept of IT organized & CSIR sponsored two days seminar </strong></a>'

/*pausecontent[7]='<a href="Powerplant2012_gallery.html" class="marquee" ><img src="images/Home/Thumb/PowerPlant2012.jpg" alt="/PowerPlant2012" width="200" height="130" /><br /><strong> "Dept of ICE organized seminar on 5<sup>th</sup> Jan 2012</strong></a>'

pausecontent[8]='<a href="Careeropp_IT11_gallery.html" class="marquee" ><img src="images/Home/Thumb/Careeropp_IT2011.jpg" alt="/Careeropp_IT2011" width="200" height="130" /><br /><strong> "Dept of IT organized seminar on "CAREER OPPORTUNITIES AFTER ENGINEERING"</strong></a>'

pausecontent[9]='<a href="AppointmentLetters_gallery.html" class="marquee" ><img src="images/Home/Thumb/Appointment_11.jpg" alt="/Appointment_11" width="200" height="130" /><br /><strong> "Appointment  Letters" issued by our Beloved CHAIRMAN on 26<sup>th</sup> Dec 2011.</strong></a>'

pausecontent[10]='<a href="FACTS_Gallery11.html" class="marquee" ><img src="images/Home/Thumb/Facts_2011.jpg" alt="/Facts_2011" width="200" height="130" /><br /><strong> "EEE department organizes Seminar on FACTS on 26<sup>th</sup>Dec 2011 </strong></a>'
*/
/*pausecontent[7]='<a href="HIGHSpeed_Gallery11.html" class="marquee" ><img src="images/Home/Thumb/Highspeed11.jpg" alt="/Highspeed11" width="200" height="130" /><br /><strong> Dept of EIE organized Guest Lecture</strong></a>'

pausecontent[8]='<a href="SAEINDIA_Gallery11.html" class="marquee" ><img src="images/Home/Thumb/SAEINDIA_11.jpg" alt="/SAEINDIA_11" width="200" height="130" /><br /><strong> SAEINDIA collegiate club (Dept of Mech Engg) of our institution  </strong></a>'*/

/*pausecontent[5]='<a href="Entrepreneurship_gallery11.html" class="marquee" ><img src="images/Home/Thumb/Entrepreneurship11.jpg" alt="/Entrepreneurship11" width="200" height="130" /><br /><strong> SAIRAM AICTE- ED CELL organized "Entrepreneurship oppurtunity </strong></a>'

pausecontent[6]='<a href="Case Tools_gallery11.html" class="marquee" ><img src="images/Home/Thumb/CaseTools11.jpg" alt="/CaseTools11" width="200" height="130" /><br /><strong> Dept of MCA  organized Staff Development Programme </strong></a>'

pausecontent[7]='<a href="TCSJETSetter.html" class="marquee" ><img src="images/Home/Thumb/TCSJETSetter.jpg" alt="/TCSJETSetter" width="200" height="130" /><br /><strong> TCS JET SETTER FOREIGN LANGUAGE INITIATIVES. </strong></a>'

pausecontent[8]='<a href="IETE_ISFAward_Gallery.html" class="marquee" ><img src="images/Home/Thumb/IETE_ISFAward11.jpg" alt="/IETE_ISFAward11" width="200" height="130" /><br /><strong> our institution was the best ISF in the jurisdiction of Chennai Centre. </strong></a>'

pausecontent[9]='<a href="ISOMeeting_Gallery.html" class="marquee" ><img src="images/Home/Thumb/ISOAuditing11.jpg" alt="/ISOAuditing11" width="200" height="130" /><br /><strong>ISO External Auditing 2011 </strong></a>'*/

/*pausecontent[5]='<a href="BestNSSOfficer_Gallery.html" class="marquee" ><img src="images/Home/Thumb/NssBestAward11.jpg" alt="/NssBestAward11" width="200" height="130" /><br /><strong>The Best N.S.S Volunteers/ Programme Officer Award 2011 </strong></a>'

pausecontent[6]='<a href="Smartsensor11_Gallery.html" class="marquee" ><img src="images/Home/Thumb/SmartSensors11.jpg" alt="/SmartSensors11" width="200" height="130" /><br /><strong>Dept of ICE organized CSIR sponsored two days workshop on  1<sup>st</sup> & 2<sup>nd</sup>Dec 2011. </strong></a>'

pausecontent[7]='<a href="EntrepreneursMeet _gallery.html" class="marquee" ><img src="images/Home/Thumb/EntrepreneursMeet11.jpg" alt="/EntrepreneursMeet11" width="200" height="130" /><br /><strong>SIMS Organized one day "Entrepreneurs Meet" on 28<sup>th</sup> Nov 2011 </strong></a>'

pausecontent[8]='<a href="SaeindiaHostengine11.html" class="marquee" ><img src="images/Home/Thumb/SaeindiaHostengine11.jpg" alt="/SaeindiaHostengine11" width="200" height="130" /><br /><strong>Dept of  Mech Engg & SAEINDIA COLLEGIATE on 27<sup>th</sup> Nov 11 </strong></a>'
*/
/*pausecontent[9]='<a href="Buildingcompentency11_gallery.html" class="marquee" ><img src="images/Home/Thumb/Buildingcompentency11.jpg" alt="/Buildingcompentency11" width="200" height="130" /><br /><strong>SIMS Organized seminar on " Building Competency for Career Developement on 15<sup>th</sup> Nov 11 </strong></a>'

pausecontent[10]='<a href="Vazhga Valamudan11_gallery.html" class="marquee" ><img src="images/Home/Thumb/VazhgaValamudan11.jpg" alt="/VazhgaValamudan11" width="200" height="130" /><br /><strong>Dept of H&amp;S Methods of Right Living by VAZHGA  VALAMUDAN on 14<sup>th</sup>November 2011 </strong></a>'

pausecontent[11]='<a href="Governing11_gallery.html" class="marquee" ><img src="images/Home/Thumb/Governingcouncil2011.jpg" alt="/Governingcouncil2011" width="200" height="130" /><br /><strong>Governing Council Meeting on 04<sup>th</sup>November 2011 </strong></a>'

pausecontent[12]='<a href="Webservice11_gallery.html" class="marquee" ><img src="images/Home/Thumb/Webservice2011.jpg" alt="/Webservice2011" width="200" height="130" /><br /><strong>Dept of IT conducted Staff Development Programme on 2<sup>nd</sup>&3<sup>rd</sup>November 2011</strong></a>'

pausecontent[13]='<a href="AcademicExcellence11_gallery.html" class="marquee" ><img src="images/Home/Thumb/AcademicExcellance2011.jpg" alt="/AcademicExcellance2011" width="200" height="130" /><br /><strong>Academic Excellence in Engg College in chennai for 2010 by Mylapore Academy</strong></a>'*/

/*pausecontent[9]='<a href="HDFCPlacement11_gallery.html" class="marquee" ><img src="images/Home/Thumb/HDFCPlacement2011.jpg" alt="/HDFCPlacement2011" width="200" height="130" /><br /><strong>HDFC Bank Campus Recruitment On 28<sup>th</sup> October 2011</strong></a>'

pausecontent[10]='<a href="VolleyBallTouranament11_gallery.html" class="marquee" ><img src="images/Home/Thumb/VolleyBallTournament11.jpg" alt="/VolleyBallTournament11" width="200" height="130" /><br /><strong>Anna Univ Zone 4A " VOLLEY BALL TOURNAMENT(MEN)" on 18<sup>th</sup>&19<sup>th</sup>October 2011</strong></a>'

pausecontent[11]='<a href="ISTE_Gallery2011.html" class="marquee" ><img src="images/Home/Thumb/ISTEPracticalAppln2011.jpg" alt="/ISTEPracticalAppln2011" width="200" height="130" /><br /><strong>ISTE  STUDENT CHAPTER  conducted one day workshop on 14<sup>th</sup> Oct 2011</strong></a>'

pausecontent[12]='<a href="Pooja_2011Gallery.html" class="marquee" ><img src="images/Home/Thumb/Pooja11.jpg" alt="/Ayutha Pooja" width="200" height="130" /><br /><strong>Navarathri and Pooja Function on 4<sup>th</sup> Oct 2011</strong></a>'

pausecontent[13]='<a href="AADHAR_Gallery2011.html" class="marquee" ><img src="images/Home/Thumb/AADHAR2011.jpg" alt="/AADHAR2011" width="200" height="130" /><br /><strong>AADHAR-UID  CARD Registration at our campus on 27 september 2011</strong></a>'

pausecontent[13]='<a href="SaiSaepotenza_Gallery11.html" class="marquee" ><img src="images/Home/Thumb/SAISAE-POTENZA11.jpg" alt="/SAISAE-POTENZA11" width="200" height="130" /><br /><strong>Dept of Mechanical Engg  conducted one-day workshop "SAISAE-POTENZA" on 29-09-2011</strong></a>'

pausecontent[14]='<a href="R&DMeeting_Gallery2011.html" class="marquee" ><img src="images/Home/Thumb/R&DMeeting.jpg" alt="/R&DMeeting" width="200" height="130" /><br /><strong>Dept of R&D meeting on 26 September 2011 </strong></a>'

pausecontent[15]='<a href="Icon2011_Gallery2011.html" class="marquee" ><img src="images/Home/Thumb/INCON2011.jpg" alt="/INCON2011" width="200" height="130" /><br /><strong>SIMS conducted INCON 2011 on 22nd & 23rd Sep 2011. </strong></a>'

pausecontent[16]='<a href="OpticalNetworksGallery_2011.html" class="marquee" ><img src="images/Home/Thumb/OpticalNetworks11.jpg" alt="/OpticalNetworks11" width="200" height="130" /><br /><strong>ECE & IEEE students chapter conducted seminar on "OPTICAL NETWORKS" </strong></a>'

pausecontent[17]='<a href="HighestBloodDonationAward_2011.html" class="marquee" ><img src="images/Home/Thumb/BloodAward11.jpg" alt="/BloodAward11" width="200" height="130" /><br /><strong>NSS Blood donation Award on 16<sup>th</sup> September 2011 </strong></a>'

pausecontent[18]='<a href="Infogedden2k11_gallery.html" class="marquee" ><img src="images/Home/Thumb/Infogedden2k11.jpg" alt="/Infogedden2k11" width="200" height="130" /><br /><strong>MCA conducted National Level Technical Symposium on 15<sup>th</sup> September 2011 </strong></a>'

pausecontent[19]='<a href="ThrustArea11_gallery.html" class="marquee" ><img src="images/Home/Thumb/ThrustArea11.jpg" alt="/ThrustArea11" width="200" height="130" /><br /><strong> R&D conducted  special lecture on 14<sup>th</sup> September 2011 </strong></a>'

pausecontent[20]='<a href="applnofGeology11_gallery.html" class="marquee" ><img src="images/Home/Thumb/Applnof_Geology11.jpg" alt="/Applnof_Geology11" width="200" height="130" /><br /><strong>Civil Engg conducted workshop on "Applications of Geology on 12 <sup>th</sup>September 2011.</strong></a>'*/

//pausecontent[9]='<a href="Induction11_gallery.html" class="marquee" ><img src="images/Home/Thumb/InductionDay11.jpg" alt="/InductionDay11" width="200" height="130" /><br /><strong>PG Induction Programme on 8 <sup>th</sup>September 2011.</strong></a>'
//
//pausecontent[10]='<a href="PLCSCADA2011_gallery.html" class="marquee" ><img src="images/Home/Thumb/PLC&SCADA2011.jpg" alt="/PLC&SCADA2011" width="200" height="130" /><br /><strong>EIE conducted  the Two days workshop on "PLC and SCADA" on 6<sup>th</sup> & 7<sup>th</sup> September 2011.</strong></a>'
//
//pausecontent[11]='<a href="TeachersDay2011_gallery.html" class="marquee" ><img src="images/Home/Thumb/TeachersDay2011.jpg" alt="/TeachersDay2011" width="200" height="130" /><br /><strong>Teachers Day Celebration on 5<sup>th</sup> September 2011</strong></a>'
//
//pausecontent[12]='<a href="EquilibriumThinking_gallery.html" class="marquee" ><img src="images/Home/Thumb/EquilibriumThinking11.jpg" alt="/EquilibriumThinking11" width="200" height="130" /><br /><strong>Dept of Mech Engg SAEINDIA conducted  guest lecture on 3<sup>rd</sup> September 2011</strong></a>'
//
//pausecontent[13]='<a href="TCSON_Campus.html" class="marquee" ><img src="images/Home/Thumb/TCSONCampus.jpg" alt="/TCSONCampus" width="200" height="130" /><br /><strong>TCS ON-CAMPUS PLACEMENT for Final Year on 26<sup>th</sup> August 2011</strong></a>'
//
//pausecontent[14]='<a href="Preplacement2012.html" class="marquee" ><img src="images/Home/Thumb/Preplacement2011.jpg" alt="/Preplacement2011" width="200" height="130" /><br /><strong>Pre Placement Talk 2012 by TCS 18<sup>th</sup> August 2011</strong></a>'



/*
var pausecontent2=new Array()
pausecontent2[0]='<a href="http://www.news.com">News.com: Technology and business reports</a>'
pausecontent2[1]='<a href="http://www.cnn.com">CNN: Headline and breaking news 24/7</a>'
pausecontent2[2]='<a href="http://news.bbc.co.uk">BBC News: UK and international news</a>'*/







/***No Need to Edit Beyond this Area***/



/***********************************************
* 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
}

