﻿// JScript File

//Specify the marquee's width (in pixels)
var marqueewidth="118px"
//Specify the marquee's height
var marqueeheight="400px"
//Specify the marquee's marquee speed (larger is faster 1-10)
var marqueespeed=1
//Pause marquee onMousever (0=no. 1=yes)?
var pauseit=1
//Specify the marquee's content
//Keep all content on ONE line, and backslash any single quotations (ie: that\'s great):

var marqueecontent='<a href="http://www.diplindia.com/Product%20And%20Solutions/Defence%20Products/81MM.htm" > <font color=black size=2px FAMILY=Arial>81mm Mortar Simulator </font></a><br><br><br> '+
'<a href="http://www.diplindia.com/Product%20And%20Solutions/Defence%20Products/AMFDC.htm"><font color=black>AMFDC</a><br><br><br>'+
'<a href="http://www.diplindia.com/Product%20And%20Solutions/Defence%20Products/AMTS.htm"><font color=black>AMTS</a><br><br><br>'+

'<a href="http://www.diplindia.com/Product%20And%20Solutions/Industrial%20Auto%20Products/DaughterBoard.htm"><font color=black>Daughter Boards for PC-Board-On</a><br><br><br>'+
'<a href="http://www.diplindia.com/Product%20And%20Solutions/Industrial%20Auto%20Products/NetworkMgmtSys.htm"><font color=black>Network Management System</a><br><br><br>'+
'<a href="http://www.diplindia.com/Product%20And%20Solutions/Industrial%20Auto%20Products/FrameGrabberCard.htm"><font color=black>Frame Grabber Card(ISA Bus)</a><br><br><br>'+
'<a href="http://www.diplindia.com/Product%20And%20Solutions/Industrial%20Auto%20Products/IndustrialPCs.htm"><font color=black>Industrial Grade PCs</a><br><br><br>'+
'<a href="http://www.diplindia.com/Side%20Menu/ProductAndSolutions.htm#"><font color=black>CPU Cards for Projects </a><br><br><br>'+
'<a href="http://www.diplindia.com/Product%20And%20Solutions/Industrial%20Auto%20Products/19Rack.htm"><font color=black size=2 >19" Racks & Cabinets</a><br><br><br>'+
'<a href="http://www.diplindia.com/Product%20And%20Solutions/Industrial%20Auto%20Products/PcAddOnCard.htm"><font color=black>PC-Add On Card</a><br><br><br>'+
'<a href="http://www.diplindia.com/Product%20And%20Solutions/Industrial%20Auto%20Products/AnalogIsolator.htm"><font color=black>Analog Isolator</a><br><br><br>'+
'<a href="http://www.diplindia.com/Product%20And%20Solutions/Industrial%20Auto%20Products/DataLogger.htm"><font color=black>Data Logger</a><br><br><br>'+
'<a href="http://www.diplindia.com/Product%20And%20Solutions/Industrial%20Auto%20Products/PowerSupply.htm"><font color=black>Power Supply</a><br><br><br>'+
'<a href="http://www.diplindia.com/Product%20And%20Solutions/Industrial%20Auto%20Products/ImageVGA.htm"><font color=black>Image/VGA-460</a><br><br><br>'+

'<a href="http://www.diplindia.com/Product%20And%20Solutions/Office%20Auto%20Products/TimeAttSys.htm"><font color=black>Time and Attendance System</a><br><br><br>'+
'<a href="http://www.diplindia.com/Product%20And%20Solutions/Office%20Auto%20Products/AccessCtrlSys.htm"><font color=black>Access Control System</a><br><br><br>'+
'<a href="http://www.diplindia.com/Product%20And%20Solutions/Office%20Auto%20Products/NetworkingProducts.htm"><font color=black>Networking Products</a><br><br><br>'+
'<a href="http://www.diplindia.com/Product%20And%20Solutions/Office%20Auto%20Products/OfcProduct.htm"><font color=black>OFC Products</a><br><br><br>'+

'<a href="http://www.diplindia.com/Side%20Menu/ProductAndSolutions.htm#"><font color=black>Three Axis Stepper Motor Controller</a><br><br><br>'+
'<a href="http://www.diplindia.com/Product%20And%20Solutions/Custom%20Built%20Products/LCDMemKeyTest.htm"><font color=black>LCD & Membrane Keyboard tester</a><br><br><br>'+
'<a href="http://www.diplindia.com/Product%20And%20Solutions/Custom%20Built%20Products/LedBasedGraphicsDisplay.htm"><font color=black>LED Based Graphics Display</a><br><br><br>'+

'<a href="http://www.diplindia.com/Product%20And%20Solutions/Educational%20Products/TempTransducerTrainer.htm"><font color=black size=2 >Temperature Transducer Trainer</a><br><br><br>'+
'<a href="http://www.diplindia.com/Product%20And%20Solutions/Educational%20Products/PressureCtrlLoopTrainer.htm"><font color=black>Pressure Control Loop Trainer</a><br><br><br>'+
'<a href="http://www.diplindia.com/Product%20And%20Solutions/Educational%20Products/IndustrialAutoTrainer.htm"><font color=black>Industrial Automation Trainer</a><br><br><br>'+
'<a href="http://www.diplindia.com/Product%20And%20Solutions/Educational%20Products/ProcessCtrlSimulator.htm"><font color=black>Process Control Simulator</a><br><br><br>'+
'<a href="http://www.diplindia.com/Side%20Menu/ProductAndSolutions.htm#"><font color=black>CPU Cards for Projects</a><br><br><br>'+
'<a href="http://www.diplindia.com/Product%20And%20Solutions/Educational%20Products/StepperMtrCtrl.htm"><font color=black>Stepper Motor Control</a><br><br><br>'+
'<a href="http://www.diplindia.com/Product%20And%20Solutions/Educational%20Products/LevelCtrlTrainer.htm"><font color=black size=2 >Level Control Trainer</a><br><br><br>'+
'<a href="http://www.diplindia.com/Product%20And%20Solutions/Educational%20Products/VlsiTrainer.htm"><font color=black>VLSI Trainer</a><br><br><br>'+
'<a href="http://www.diplindia.com/Product%20And%20Solutions/Educational%20Products/FlowCtrlTrainer.htm"><font color=black>Flow Control Trainer</a><br><br><br>'


////NO NEED TO EDIT BELOW THIS LINE////////////

marqueespeed=(document.all)? marqueespeed : Math.max(1, marqueespeed-1) //slow speed down by 1 for NS
var copyspeed=marqueespeed
var pausespeed=(pauseit==0)? copyspeed: 0
var iedom=document.all||document.getElementById
var actualheight=''
var cross_marquee, ns_marquee

function populate(){
if (iedom){
cross_marquee=document.getElementById? document.getElementById("iemarquee") : document.all.iemarquee
cross_marquee.style.top=parseInt(marqueeheight)+8+"px"
cross_marquee.innerHTML=marqueecontent
actualheight=cross_marquee.offsetHeight
}
else if (document.layers){
ns_marquee=document.ns_marquee.document.ns_marquee2
ns_marquee.top=parseInt(marqueeheight)+8
ns_marquee.document.write(marqueecontent)
ns_marquee.document.close()
actualheight=ns_marquee.document.height
}
lefttime=setInterval("scrollmarquee()",20)
}
window.onload=populate

function scrollmarquee(){

if (iedom){
if (parseInt(cross_marquee.style.top)>(actualheight*(-1)+8))
cross_marquee.style.top=parseInt(cross_marquee.style.top)-copyspeed+"px"
else
cross_marquee.style.top=parseInt(marqueeheight)+8+"px"
}
else if (document.layers){
if (ns_marquee.top>(actualheight*(-1)+8))
ns_marquee.top-=copyspeed
else
ns_marquee.top=parseInt(marqueeheight)+8
}
}

if (iedom||document.layers){
with (document){
if (iedom){
write('<div style="position:relative;width:'+marqueewidth+';height:'+marqueeheight+';overflow:hidden" onMouseover="copyspeed=pausespeed"  onMouseout="copyspeed=marqueespeed">')
write('<div id="iemarquee" style="position:absolute;left:0px;top:0px;width:100%; ">')
write('</div></div>')
}
else if (document.layers){
write('<ilayer width='+marqueewidth+' height='+marqueeheight+' name="ns_marquee">')
write('<layer name="ns_marquee2" width='+marqueewidth+' height='+marqueeheight+' left=0 top=0 onMouseover="copyspeed=pausespeed" onMouseout="copyspeed=marqueespeed"></layer>')
write('</ilayer>')
}
}
}