


// содержимое бегущей строки (править только то, что внутри одинарных кавычек!)
//var mtext1 = '<p style="font-size:14px;">Приглашаем посетить наш стенд 1-130 на выставке MITT 2009 в Москве с 18.03.09 по 21.03.09. 19 марта в 12.00 на стенде "АМА" БАЙКАЛ состоится АКЦИЯ "Байкал для друзей" с розыгрышем сертификата на недельный тур на Байкал с посещением Кругобайкальской железной дороги!</p>'
//var mtext1 = '<p style="font-size:14px;">Спецпредложение! При заселении на турбазе "Байкал" в номер любой категории 2 взрослых и ребёнка, ребёнок без предоставления места и без питания - БЕСПЛАТНО!</p>'
//var mtext1 = '<p style="font-size:14px;">Турция на прямом рейсе из Иркутска!!! Вылеты каждый вторник с 09.06.09!!!</p>'
//var mtext1 = '<p style="font-size:14px;">ВНИМАНИЕ!!!! Победитель акции "Байкал для друзей", проходившей 19.03.09 на выставке МИТТ2009 в Москве, стала Осокина Ирина Николаевна, ТСК "Сибирское здоровье" г. Красноярск.</p>'
//var mtext1 = '<p style="font-size:14px;">ВНИМАНИЕ!!!! Тур выходного дня на т/б "Байкал в пос.Утулик с 12 по 14 июня! Стоимость 2250 руб. с чел. (проживание- 2 ночи, 3-х разовое питание и трансфер Иркутск-турбаза-Иркутск).</p>'
//var mtext1 = '<p style="font-size:14px;">ТАЙЛАНД с 19.10.09. Вылет каждый понедельник. Скидки на заезд с 26.10 по 08.11.09 !!!!</p>'
//var mtext1 = '<p style="font-size:14px;">ТАЙЛАНД! Скидки на заезд с 10.05 и с 24.05.10!!!!</p>'
//var mtext1 = '<p style="font-size:14px;">Бархатный сезон в Турции!!! С 6.09.2010 по 19.09.2010 - спец. цена!</p>'
//var mtext1 = '<p style="font-size:14px;">Хайнань! Прямой рейс S7 с 3.11.2010 каждую неделю!</p>'
//var mtext1 = '<p style="font-size:14px;">В Тайланд на 15.11.2010 нужен попутчик!</p>'
//var mtext1 = '<p style="font-size:14px;">Последние места на Новый год в Тайланд с 27.12.2010 по 06.01.2011!</p>'
//var mtext1 = '<p style="font-size:14px;">Тайланд! Низкие цены в апреле - от 27 954 руб.</p>'
//var mtext1 = '<p style="font-size:14px;">Открытие сезона на турбазе "Байкал"! С 11 июня по 13 июня ТУР ВЫХОДНОГО ДНЯ!</p>'
//var mtext1 = '<p style="font-size:14px;">Открыта продажа туров в Тайланд на 2011 - 2012 гг.!</p>'
//var mtext1 = '<p style="font-size:14px;">С 04 октября прямой рейс S7 на Пхукет!  Бангкок с 03 октября 2011 г.!</p>'
//var mtext1 = '<p style="font-size:14px;">С 04 октября прямой рейс S7 на о. Пхукет! Вылет в Бангкок 10, 12 октября 2011!! 1 место на вылет 03 октября, спешите!!! </p>'
//var mtext1 = '<p style="font-size:14px;">Тайланд!!!! Горящие туры с 07.11 по 20.11.2011 и с 09.11.2011 по 22.11.2011</p>'
//var mtext1 = '<p style="font-size:14px;">Тайланд!!!! Горящий тур с 21.11.2011 по 03.01.2012</p>'
//var mtext1 = '<p style="font-size:14px;">Тайланд!!!! ПХУКЕТ НА  07.02.2012!!! ПАТТАЙЯ!!! Последние места на февраль и март!!!!!! СПЕШИТЕ БРОНИРОВАТЬ!!!!</p>'


// цвет текста в бегущей строке
var marqueecolor="#E1E485" 


// цвет гиперссылок в бегущей строке
var marueelink = "#fff"


// ----------------------------------------------------------------------------------------------------------
// ----------------------------------------------------------------------------------------------------------
// ----------------------------------------------------------------------------------------------------------


var mlbegin = '<nobr>'
var mlend = '</nobr>'
var marqueewidth="426px"
var marqueeheight="20px"
var marqueespeed=2
var pauseit=1


var marqueecontent = mlbegin + mtext1 + mlend


marqueespeed=(document.all)? marqueespeed : Math.max(1, marqueespeed-1) 
var copyspeed=marqueespeed
var pausespeed=(pauseit==0)? copyspeed: 0
var iedom=document.all||document.getElementById
if (iedom)                                        
document.write('<span id="temp" style="visibility:hidden;position:absolute;top:-100px;left:-9000px">'+marqueecontent+'</span>')
var actualwidth=''
var cross_marquee, ns_marquee

function populate(){
if (iedom){
cross_marquee=document.getElementById? document.getElementById("iemarquee") : document.all.iemarquee
cross_marquee.style.left=parseInt(marqueewidth)+8+"px"
cross_marquee.innerHTML=marqueecontent
actualwidth=document.all? temp.offsetWidth : document.getElementById("temp").offsetWidth
}
else if (document.layers){
ns_marquee=document.ns_marquee.document.ns_marquee2
ns_marquee.left=parseInt(marqueewidth)+8
ns_marquee.document.write(marqueecontent)
ns_marquee.document.close()
actualwidth=ns_marquee.document.width
}
lefttime=setInterval("scrollmarquee()",20)
}
window.onload=populate

function scrollmarquee(){
if (iedom){
if (parseInt(cross_marquee.style.left)>(actualwidth*(-1)+8))
cross_marquee.style.left=parseInt(cross_marquee.style.left)-copyspeed+"px"
else
cross_marquee.style.left=parseInt(marqueewidth)+8+"px"

}
else if (document.layers){
if (ns_marquee.left>(actualwidth*(-1)+8))
ns_marquee.left-=copyspeed
else
ns_marquee.left=parseInt(marqueewidth)+8
}
}

if (iedom||document.layers){
with (document){
document.write('<style>.tx a {color:'+marueelink+'!important;}</style><table border="0" cellspacing="0" cellpadding="0"><td style="color:'+marqueecolor+'!important;">')
if (iedom){
write('<div style="position:relative;width:'+marqueewidth+';height:'+marqueeheight+';overflow:hidden">')
write('<div style="position:absolute;width:'+marqueewidth+';height:'+marqueeheight +';" onMouseover="copyspeed=pausespeed" onMouseout="copyspeed=marqueespeed">')
write('<div id="iemarquee" style="position:absolute;left:0px;top:0px"></div>')
write('</div></div>')
}
else if (document.layers){
write('<ilayer width='+marqueewidth+' height='+ marqueeheight+' name="ns_marquee">')
write('<layer name="ns_marquee2" left=0 top=0 onMouseover="copyspeed=pausespeed" onMouseout="copyspeed=marqueespeed"></layer>')
write('</ilayer>')
}
document.write('</td></table>')
}
}

