/*Example message arrays for the two demo scrollers*/
var pausecontent2=new Array()

pausecontent2[0]='<div class="hintanchor" onMouseover="showhint(\'<b> Paramarine—Mumbai Conference 2012  </b><br>Conceptia in association with QinetiQ GRC, UK cordially invites you to a seminar on Conceptual & Basic Design of ships and submarine using Paramarine Software.The conference will be held on the 21st of January 2012 at Palms Hotels Tower and Villas, Royal Palms Estate, Mumbai this seminar will be a good opportunity for all attendees to learn about Paramarine software and the benefits it can bring to their business. The event will comprise; presentations, live demos, question and answers sessions and is inclusive of lunch.\', this, event,\'435px\')">Paramarine—Mumbai Conference 2012 </a></div>'

pausecontent2[1]='<div class="hintanchor" onMouseover="showhint(\'<b> GRSE awards LCU and MOPV projects to Conceptia.  </b><br>Government of India, Public Sector Undertaking M/s Garden Reach Shipbuilders and Engineers, Kolkata has confirmed the award of detailed design of Indian Navy Landing Crafts Utility (LCU) and export order Mauritius Offshore Patrol Vessel (MOPV) to Conceptia. Our relentless effort to secure and order from M/s GRSE has borne fruit and Conceptia now aims to compress the 36 month schedule for the completion of the project.\', this, event,\'435px\')">GRSE awards LCU and MOPV projects to Conceptia.  </a></div>'

pausecontent2[2]='<div class="hintanchor" onMouseover="showhint(\'<b> Conceptia commences sales operations from New Delhi. </b><br>Conceptia has commenced sales operations of software products through its products sales division – Ckonnect from New Delhi. This will be the company’s 3rd sales front after Bangalore and Kochi. We aim to develop the North Indian territory through our new office at A-30, Kailash Colony.\', this, event,\'435px\')">Conceptia commences sales operations from New Delhi.  </a></div>'

pausecontent2[3]='<div class="hintanchor" onMouseover="showhint(\'<b> Conceptia-QinetiQ, UK partnership. </b><br>The Paramarine suite of software will be available to customers in India through QinetiQ’s local partner Conceptia, a leading provider of products and services to the marine industry in India. Conceptia with its large team size focused on marine design and pan India presence is ideally suited to service the Indian market,” said Mr. Vittorio Vagliani, Managing Director, QinetiQ GRC.\', this, event,\'435px\')">Conceptia-QinetiQ, UK partnership.  </a></div>'

pausecontent2[4]='<div class="hintanchor" onMouseover="showhint(\'<b> Awards Galore for Conceptia @ SolidWorks World 2011  </b><br>This year for the first time Conceptia entered the SolidWorks President’s club. This is a prestigious award given to those Value Added Resellers (VARs) who exceed their sales targets. Conceptia also won the hundred percent achievers award. Both awards were received by Mr.Jithesh K A Conceptia Director (Sales & Services) in a glittering ceremony at San Antonio, USA. We also saw Kiran Krishnan winning the Top Sales Engineer Award for the Asia Pacific region for the third time in a row.\', this, event,\'435px\')">Awards Galore for Conceptia @ SolidWorks World 2011  </a></div>'

pausecontent2[5]='<div class="hintanchor" onMouseover="showhint(\'<b> Yacht Modification Project </b><br>Conceptia has been chosen by a German firm to modify their yachts for improved functionality and aesthetics. Yacht designs are governed by the rules of classification societies. An in-depth knowledge of class rules is therefore essential and is one of the factors that helped Conceptia clinch the deal.\', this, event,\'435px\')">Yacht Modification Project </a></div>'

pausecontent2[6]='<div class="hintanchor" onMouseover="showhint(\'<b> IOC Panipat Naphta cracker plant </b><br>Indian Oil Corporation Naphtha cracker plant is to go on-stream soon. Their prime sub-contractor ERA InfraEngineering has asked Conceptia to complete the as-fitted drawings preparation in the shortest possible time. A team of engineers from Conceptia is currently at work in Panipat.\', this, event,\'435px\')">IOC Panipat Naphta cracker plant</a></div>'

pausecontent2[7]='<div class="hintanchor" onMouseover="showhint(\'<b>Oil recovery solutions</b><br>Conceptia has devised an oil recovery solution based on the gravity separation technique. This solution permits recovery of oil from effluent water from a refinery process or from tank washed water from crude oil carriers in ports. The process does not require electricity for the separation process. It uses large storage tanks for the separation and recovery.\', this, event,\'435px\')">Oil recovery solutions</div>'

pausecontent2[8]='<div class="hintanchor" onMouseover="showhint(\'<b>Naval Engineering course</b><br>Conceptia offers 06 months naval engineering course covering the aspects of converting Naval Architectural designs in to products such as Ships and other marine crafts. The candidates get to do hands on training on 20 odd projects that Conceptia has executed in the last 06 years. This training will help engineering graduates of Mechanical, Civil, Production backgrounds to engineer vehicles used in the marine transportation industry.\', this, event,\'435px\')">Naval Engineering course  <a href="javascript:void(0); "onclick="javascript:window.open(\'images/conceptia-iso-email.gif\',\'disclaimer\',\'top=5, left=5, height=500, width=590, scrollbars=1\');"><font size="1" face="Verdana"></font></u></b></a></div>'

pausecontent2[9]='<div class="hintanchor" onMouseover="showhint(\'<b>Noise and vibration solutions</b><br>Conceptia provides solutions for noise and vibration analysis. These solutions are from LMS International makers of industry standard software and hardware tools for noise and vibration analysis. These solutions are ideal for the Shipbuilding, defense and automotive industry. By applying these solutions to ships and aircrafts, marine and aerospace engineers can ensure human comfort as well as reliability and longevity of components that operate in a high vibratory environment.\', this, event,\'435px\')">Noise and vibration solutions <a href="javascript:void(0); "onclick="javascript:window.open(\'images/website.jpg\',\'disclaimer\',\'top=5, left=5, height=500, width=640, scrollbars=1\');"><font size="1" face="Verdana"></font></u></b></a></div>'

pausecontent2[10]='<div class="hintanchor" onMouseover="showhint(\'<b>Pipavav Shipyard- Conceptia partnership</b><br>Pipavav Shipyard has engaged the services of Conceptia to complement their design team in enlarging the mammoth efforts at their yard in the area of Shipbuilding.\', this, event,\'435px\')">Pipavav Shipyard- Conceptia partnership</a></div>'

pausecontent2[11]='<div class="hintanchor" onMouseover="showhint(\'<b>Conceptia - Bayco partnership</b><br>Conceptia has chosen to market LED flashlights of high quality from BAYCO, USA in India. These flashlights are a part of Asset security solutions that Conceptia will be providing to the Indian market.\', this, event,\'435px\')">Conceptia - Bayco partnership</a></div>'

pausecontent2[12]='<div class="hintanchor" onMouseover="showhint(\'<b>Bharati Shipyard- Conceptia partnership</b><br>BSL has engaged Conceptia to prepare as-fitted drawings of one of their rigs. The previous experience of Conceptia with Freedom class jack-up rig was a facilitator for the deal.\', this, event,\'435px\')">Bharati Shipyard- Conceptia partnership</a></div>'

pausecontent2[13]='<div class="hintanchor" onMouseover="showhint(\'<b>SolidWorks World 2011</b><br>SolidWorks World 2011 is taking place at the Henry B. Gonzalez Convention Center in San Antonio, Texas, USA from January 23-26, 2011.Energize your design ideas and strengthen your skills at the industry’s largest annual 3D CAD event.\', this, event,\'435px\')">SolidWorks World 2011</a></div>'

/*pausecontent2[7]='<div class="hintanchor" onMouseover="showhint(\'<b>Conceptia bags Jack-Up rig contract</b><br><br>PPL Shipyard, Singapore is one of the leading yards engaged in the production of Jack-Up rigs in the region. Conceptia bagged the contract for making the initial structural model of Freedom Class N Jack-Up rig from PPL Shipyard. Conceptia will use the product development approach to fully detail this Jack-Up rig.\', this, event,\'435px\')">Conceptia bags Jack-Up rig contract</a></div>'

pausecontent2[8]='<div class="hintanchor" onMouseover="showhint(\'<b>Sembawang Shipyard extends contract with Conceptia for design support for FPSO</b><br><br>Sembawang Shipyard, the premier shipbuilding and repair yard in Singapore has extended the contract with Conceptia for detail engineering of an FPSO. This is based on the excellent work displayed by the Conceptia team for completing the Drill Ship project.\', this, event,\'435px\')">Sembawang Shipyard extends contract with Conceptia for design support for FPSO</a></div>'*/

/******************************************************************
* 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()}, 100)
}
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
}
