<!-- 
// Edit your messages. You can add as many messages a you like.
var message1 = new Array()
message1[0]="COMTEST is active in the field of EMC since 1985"
message1[1]="We provide Instrumentation, training and shielded enclosures"
message1[2]="COMTEST is a world wide known supplier of EMC solutions"
message1[3]="Solutions have been realised for many customers in the world"
message1[4]="Consultancy assistance is frequently required from our team"
message1[5]="In the new Millennium we included our team for new products"
message1[6]="A whole range of new EMC products are released and available"

// The width of your ticker
var textwidth=432

// The height of your ticker
var textheight=22

// The borderwidth of the ticker
var borderwidth1=1

// The size of the font (HTML3 font-size conventions)
var font_size1=1
// font-face
var font_face1="Verdana"
// font-color
var font_color1="white"

// background-color of the ticker
var bg_ticker="#92B6DA"

// Final horizontal position of the messagebox: distance to the left margin of the window
var x_finalpos=330

// Final vertical position of the messagebox: distance to the top margin of the window
var y_finalpos=20

// Number of lamellas.
var x_slices=12

// Pause beween the messages (milliseconds)
var pause1=4000
var pause2=100

// Do not change the variables below
var i_loop=0
var i_message=0
var width_slice=Math.ceil(textwidth/x_slices)
var cliptop=0
var clipbottom=textheight
var i_clipright=0
var content=""
var timer
var adver_enable=1

function initiate() {
    content+="<table border="+borderwidth1+" cellpadding='3' cellspacing=0 width="+textwidth+" height="+textheight+">"
    content+="<tr><td bgcolor="+bg_ticker+" class=tdad>"
    content+=message1[i_message]
    content+="</td></tr></table>"
    if (document.all) {
     for (i=0;i<=x_slices;i++) {
            var thisinners=eval("s"+i)
            thisinners.innerHTML=content
            var thiss=eval("document.all.s"+i+".style")
            thiss.posLeft=x_finalpos
            thiss.posTop=y_finalpos
        }
     i_message++
     openlamellar()
    }
 if (document.layers) {
     for (i=0;i<=x_slices;i++) {
            var thisinners=eval("document.s"+i+".document")
            thisinners.write(content)
   thisinners.close()
            var thiss=eval("document.s"+i)
            thiss.left=x_finalpos
            thiss.top=y_finalpos
        }
     i_message++
     openlamellarNN()
    }
}

function openlamellar() {
 clipleft=-width_slice
 clipright=0
    if (i_clipright<=width_slice) {
        for (i=0;i<=x_slices;i++) {
            var thiss=eval("document.all.s"+i+".style")
            thiss.clip ="rect("+cliptop+" "+clipright+" "+clipbottom+" "+clipleft+")"
            clipleft+=width_slice
            clipright=clipleft+i_clipright
  }
    i_clipright+=4
    timer=setTimeout("openlamellar()",pause2)
   }
    else {
  clearTimeout(timer)
  if(adver_enable==0){
    timer=setTimeout("waiter()",2000)
    return
  } 
  timer=setTimeout("closelamellar()",pause1)
 }
}

function openlamellarNN() {
 clipleft=-width_slice
 clipright=0
    if (i_clipright<=width_slice) {
        for (i=0;i<=x_slices;i++) {
            var thiss=eval("document.s"+i)
   thiss.clip.left=clipleft
         thiss.clip.right=clipright
         thiss.clip.top=cliptop
         thiss.clip.bottom=clipbottom
            clipleft+=width_slice
            clipright=clipleft+i_clipright
  }
    i_clipright+=4
    timer=setTimeout("openlamellarNN()",pause2)
   }
    else {
  clearTimeout(timer)
  if(adver_enable==0){
    timer=setTimeout("waiterNN()",2000)
    return
  } 
  timer=setTimeout("closelamellarNN()",pause1)
 }
}

function waiter(fun){
  clearTimeout(timer)
  if(adver_enable==0) timer=setTimeout("waiter()",2000)
  else timer=setTimeout("closelamellar()",pause1)
}

function waiterNN(fun){
  clearTimeout(timer)
  if(adver_enable==0) timer=setTimeout("waiterNN()",2000)
  else timer=setTimeout("closelamellarNN()",pause1)
}

function closelamellar() {
    clipleft=-width_slice
 clipright=0
    if (i_clipright>=0) {
        for (i=0;i<=x_slices;i++) {
            var thiss=eval("document.all.s"+i+".style")
            thiss.clip ="rect("+cliptop+" "+clipright+" "+clipbottom+" "+clipleft+")"
            clipleft+=width_slice
            clipright=clipleft+i_clipright
  }
    i_clipright-=4
    timer=setTimeout("closelamellar()",pause2)
    
   }
    else {
  clearTimeout(timer)
  timer=setTimeout("changeimage()",pause2)
 }
}

function closelamellarNN() {
    clipleft=-width_slice
 clipright=0
    if (i_clipright>=0) {
        for (i=0;i<=x_slices;i++) {
            var thiss=eval("document.s"+i)
   thiss.clip.left=clipleft
         thiss.clip.right=clipright
         thiss.clip.top=cliptop
         thiss.clip.bottom=clipbottom
            clipleft+=width_slice
            clipright=clipleft+i_clipright
  }
    i_clipright-=4
    timer=setTimeout("closelamellarNN()",pause2)
    
   }
    else {
  clearTimeout(timer)
  timer=setTimeout("changeimageNN()",pause2)
 }
}

function changeimage() {
    content=""
 if (i_message>message1.length-1) {i_message=0}
    content+="<table border="+borderwidth1+" cellpadding='3' cellspacing=0 width="+textwidth+" height="+textheight+">"
    content+="<tr><td bgcolor="+bg_ticker+" class=tdad>"
    content+=message1[i_message]
    content+="</td></tr></table>"
 for (i=0;i<=x_slices-1;i++) {
        var thisinners=eval("s"+i)
        thisinners.innerHTML=content   
    }
 i_message++
 openlamellar()
}

function changeimageNN() {
    content=""
 if (i_message>message1.length-1) {i_message=0}
    content+="<table border="+borderwidth1+" cellpadding='3' cellspacing=0 width="+textwidth+" height="+textheight+">"
    content+="<tr><td bgcolor="+bg_ticker+" class=tdad>"
    content+="<font face="+font_face1+" size="+font_size1+" color="+font_color1+">"
    content+=message1[i_message]
    content+="</font></td></tr></table>"
 for (i=0;i<=x_slices-1;i++) {
        var thisinners=eval("document.s"+i+".document")
        thisinners.write(content)
  thisinners.close()
    }
 i_message++
 openlamellarNN()
}

function adver_mode(mode2){
  if(mode2==adver_enable) return
  adver_enable=mode2
}
//-->


