/*Example message arrays for the two demo scrollers*/
var pausecontent2=new Array()

pausecontent2[0]='<div class="hintanchor" onMouseover="showhint(\'<b> Conceptia to promote LMS Products </b><br>LMS International, the world leader in Noise and Vibration analysis technology has signed up an agreement with Conceptia for the marketing of their suite of products and services for the vibro-acoustic analysis of Ships and Oil & gas platforms. LMS sees depth in the level of engineering provided by Conceptia to the Shipbuilding industry and hence the agreement says LMS India representative.\', this, event,\'435px\')">Conceptia to promote LMS Products</a></div>'

pausecontent2[1]='<div class="hintanchor" onMouseover="showhint(\'<b> L3 Communications order for Conceptia </b><br> L3 Communications is a developer of communication systems for Marine and Military applications. Conceptia has won a contract from L3C for carrying out design validation of their communication consoles that operate on platforms that are subject to shock and vibration. Conceptia shall use advanced CAD/CAE tools to acrry out the analysis and suggest design changes if any  so that the console design conforms to stringent military requirements.\', this, event,\'435px\')">L3 Communications order for Conceptia</a></div>'

pausecontent2[2]='<div class="hintanchor" onMouseover="showhint(\'<b> Cochin Shipyard order for Conceptia </b><br>CSL has contracted Conceptia to develop a 3D design communication model that can be used as a tool to communicate with their clients, the sequence of assembly and dis-assembly of Vulcan couplings used for engaging and disengaging the connection between Shaft Alternator and Gear Box for one of their vessels.\', this, event,\'435px\')">Cochin Shipyard order for Conceptia</a></div>'

pausecontent2[3]='<div class="hintanchor" onMouseover="showhint(\'<b> ST Marine Seismic vessel </b><br>ST Marine Singapore has entrusted the detailed design of their Seismic vessel with Conceptia. The generation of fabrication drawings, NC cutting data and the internal arrangements of pipes, ducts and cables shall be responsibility of Conceptia. This project is due for completion in 06-08 months.\', this, event,\'435px\')">ST Marine Seismic vessel</a></div>'

pausecontent2[4]='<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[5]='<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[6]='<div class="hintanchor" onMouseover="showhint(\'<b>Marine Engineering Training</b><br>Conceptia offers customized training in basic Marine Engineering for fresh graduates as part of their orientation while joining a career in the marine engineering field. Conceptia offers advanced training on Marine Engineering Design aspects to those already working in Marine Engineering field as part of cross functional and knowledge improvement programs. Further Conceptia offers programs for undergraduate and post graduates (Post Graduate diploma)at university level.\', this, event,\'435px\')">Marine Engineering Training  <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[7]='<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[8]='<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[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
}