//////////////////////////////////////////////////////////////////////////////////////////
// ИНФО
//////////////////////////////////////////////////////////////////////////////////////////

/*
var reclItemsLeft = new Array();
	reclItemsLeft[0] = {'img': '/tpl/img/reclImg.png',
	  'data': {
      0: {
          't': 'Управление финансами',
          'st': 'ПОПРОБУЙТЕ<br>БЕСПЛАТНУЮ<br>ВЕРСИЮ',
          'd': '<div>- Управление заявками на платежи: регистрация, утверждение, исполнение</div>' +
          		 '<div>- Управление бюджетом движения денежных средств предприятия</div>' +
          		 '<div>- Календарное планирование платежей и поступлений</div>',
          'h': '/programs/programma-upravlenie-finansami/',
          'bgp': '-496' },
      1: {
          't': 'Бюджет движения ДС',
          'st': 'ПОПРОБУЙТЕ<br>БЕСПЛАТНУЮ<br>ВЕРСИЮ',
          'd': '<div>- Планирование и контроль поступления денежных средств</div>' +
          		 '<div>- Бюджетирование и контроль за расходами предприятия</div>' +
          		 '<div>- Оперативное календарное планирование денежных потоков</div>' ,
          'h': '/programs/programma-bdds/',
          'bgp': '-340' },

      2: {
          't': 'Платежный календарь',
          'st': 'ПОПРОБУЙТЕ<br>БЕСПЛАТНУЮ<br>ВЕРСИЮ',
          'd': '<div>- Контроль своевременности поступления платежей от покупателей</div>' +
          		 '<div>- Управление расчетами с бюджетом, поставщиками и сотрудниками</div>' +
          		 '<div>- Комплексный подход к управлению финансами предприятия</div>',
          'h': '/programs/programma-platezhnyi-kalendar/obzor-vozmozhnostey.html',
          'bgp': '-180' },

	    3: {
          't': 'Учет документов',
          'st': 'ПОПРОБУЙТЕ<br>БЕСПЛАТНУЮ<br>ВЕРСИЮ',
          'd': '<div>- Учет ВХОДЯЩЕЙ / ИСХОДЯЩЕЙ корреспонденции и договоров</div>' +
          		 '<div>- Учет ВНУТРЕННИХ приказов, служебных записок и прочих документов</div>' +
          		 '<div>- Ведение единой информационной базы документов организации</div>' ,
          'h': '/programs/programma-uchet-documentov/',
          'bgp': '-20' }

}};



var recl = false;

function rbl(_data) {
	this.data = _data;
	this.img = false;

	this.shadowOpacity = 0;

	this.title = false;
	this.title1 = false;
	this.titleHref = false;
	this.subTitle = false;
	this.descr = false;
	this.btns = new Array();
	this.curBlock = 0;
	this.curSlide = 0;
	this.nextSlide = false;
	this.timeout = false;
	this.doShow = true;

	this.showSlide = rbShowSlide;
	this.setOpacity = rbSetOpacity;
	this.hide = rbHide;
	this.show = rbShow;

	// определяем, какой рекламный блок показываем
	var curRecBlock = parseInt(getCookie('lastRecBlock'));
	if (curRecBlock == NaN) curRecBlock = Math.floor(Math.random() * reclItemsLeft.length);
	else {
		curRecBlock++;
		if (!reclItemsLeft[curRecBlock]) curRecBlock = 0;
	}
	setCookie('lastRecBlock', curRecBlock);
	this.curBlock = curRecBlock;

	var html = '';
	html += '<style type="text/css">';
	html += '#rblDiv {background-color: #fff; border: 1px solid #000; padding: 1px; margin-bottom: 20px; width: 280px; }';
	html += '#rbl { background-color: #003f40; padding: 4px; }';
	html += '#rbl #rblTitleHref { text-decoration: none; }';
	html += '#rbl #rblTitleHref:hover {color: #faface; }';
	html += '#rbl #rblTitle { padding: 4px 2px 0px; text-align: center; overflow: hidden; height: 32px; color: #FfFfa0; font-size: 20pt; font-family: Arial Narrow;  font-weight: normal; }';
	html += '#rbl #rblTitle * { padding: 0px; text-align: center; color: #FfFfa0; font-size: 20pt; font-family: Arial Narrow;  font-weight: normal; }';
	html += '#rbl #rblTitle:hover, #rbl #rblTitle *:hover {color: orange; }';
	html += '#rbl #rblTitle1 { text-align: center; color: #eee; font-size: 13pt; font-weight: normal; padding-top: 8px; height: 32px;}';
	html += '#rbl #rblTitle1:hover {color: orange; }';
	html += '#rbl #rblImg { float: left; width: 120px; height: 140px; background: url(http://static.' + mainDomain + '/tpl/img/systecs-boxes.png) no-repeat 0px center; }';
	html += '#rbl #rblSubTitle { line-height: 150%; color: #faface; font-size: 10pt; font-weight: bold; height: 90px; padding-top: 40px; text-align: center; }';
	html += '#rbl #rblSubTitle * { color: #faface; font-size: 10pt; font-weight: bold;  }';
	html += '#rbl #rblSubTitle:hover { color: orange; }';
	html += '#rbl #rblDescr { clear: both;padding: 0px 4px 0px 12px; overflow-y: hidden; height: 170px; text-indent: -6px; }';
	html += '#rbl #rblDescr *  { padding: 4px 0px; line-height: 125%; text-indent: -8px; margin: 0px; font-size: 10pt; font-weight: normal; color: #fff; text-align: left; }';
	html += '#rbl #rblDescrHref, #rbl #rblDescrHref * {color: #fff; font-size: 10pt; text-decoration: none; }';
	html += '#rbl #rblDescrHref:hover, #rbl #rblDescrHref:hover * { color: #faface; }';
	html += '#rbl #rblDescr #rblDetail { color: #FfFfa0; font-size: 10pt; font-weight: bold;  text-decoration: none; text-align: right; padding: 4px 10px 20px; }';
	html += '#rbl #rblDescr #rblDetail * { color: #FfFfa0; font-size: 10pt; font-weight: bold;  text-decoration: none; text-align: right; padding: 0px; }';
	html += '#rbl #rblDescr #rblDetail:hover, #rbl #rblDescr #rblDetail *:hover{ color: orange; text-decoration: underline; }';
	html += '#rbl #rblBtnsCont { text-align: center; padding: 12px 0px 2px; vertical-align: bottom; }';
	html += '#rbl #rblBtns {  border-spacing: 6px 0px; border-collapse: separate; margin: auto;}';
	html += '#rbl #rblBtns td { cursor: pointer; padding: 0px; vertical-align: middle; text-align: center; width: 22px; height: 22px; color: #fff; background-color: #396b6b; font-size: 9pt; border: 1px solid #ccc; }';
	html += '#rbl #rblBtns td.cur {color: #fff; background-color: #719595; border: 1px solid #fff; cursor: none; }';
	html += '</style>';

	html += '<div id="rblDiv" onmouseover="rbShowStop();" onmouseout="rbShowStart();">';
	html += '<div id="rbl">';

	html += '<a id="rblTitleHref" href="/" target="_blank" onclick="return rblShowPage(this);" >';
	html += '<div id="rblTitle">&nbsp;</div>';
	html += '<div id="rblTitle1">для 1С:Бухгалтерии 8</div>';

	html += '<div id="rblImg">&nbsp;</div>';
	html += '<div id="rblSubTitle">&nbsp;</div>';

	html += '<div id="rblDescr">&nbsp;</div>';

	html += '</a>';

	html += '<div id="rblBtnsCont">';
	html += '<table id="rblBtns">';
	html += '<tr>';


	for (i = 0; i < 4; i++)  {
		html += '<td onclick="showSlide(' + i + ');" >' + (i + 1) + '</td>';
	}

	html += '</tr>';
	html += '</table>';
	html += '</div>';

	html += '</div>';
	html += '</div>';
	document.write(html);

	this.img			= document.getElementById('rblImg');
	this.title		= document.getElementById('rblTitle');
	this.title1		= document.getElementById('rblTitle1');
	this.titleHref= document.getElementById('rblTitleHref');
	this.subTitle	= document.getElementById('rblSubTitle');
	this.descr		= document.getElementById('rblDescr');

	this.btns = document.getElementById('rblBtnsCont').getElementsByTagName('TD');

	this.showSlide();
}

function rbSetOpacity() {
	var opa = this.shadowOpacity;
	this.img.style.opacity			= opa;
	this.title.style.opacity		= opa;
	this.title1.style.opacity		= opa;
	this.subTitle.style.opacity = opa;
	this.descr.style.opacity		= opa;
}

function rbShowSlide() {
	var curSlide = this.data[this.curBlock]['data'][this.curSlide];

	this.setOpacity();

	this.img.style.backgroundPosition = '' + curSlide['bgp'] + 'px';

	var href = 'http://' + mainDomain + '' + curSlide['h'];
	this.title.innerHTML			= curSlide['t'];
	this.titleHref.href				= href;
	this.subTitle.innerHTML		= curSlide['st'];
	this.descr.innerHTML			= curSlide['d']+ '<div id="rblDetail">Подробнее...</div>';

	this.timeout = setTimeout('recl.show();', 300);
}
*/

// блок #ffffa7
// кнопка акт #fff
// кнопка #
// рамка внутр bfbd00
// рамка внеш bfbd00
// рамка внеш bfbd00


var reclItemsLeft = new Array();
	reclItemsLeft[0] = {'img': '/tpl/img/reclImg.png',
	  'data': {
      0: {
          't': 'Управление<br>финансами 2.0',
          'st': 'ПОПРОБУЙТЕ БЕСПЛАТНУЮ ВЕРСИЮ!!!',
          'd': '<div>- Заявки на платежи</div>' +
          		 '<div>- Календарное планирование</div>' +
          		 '<div>- Бюджетирование ДС</div>' +
          		 '<div>- Учет документов</div>',

          'h': '/programs/programma-upravlenie-finansami/obzor-vozmozhnostey.html',
          'bgp': '-368' },
      1: {
          't': 'Бюджетирование<br>денежных средств',
          'st': 'ПОПРОБУЙТЕ БЕСПЛАТНУЮ ВЕРСИЮ!!!',
          'd': '<div>- Бюджетирование ДС</div>' +
          		 '<div>- Планирование поступлений</div>' +
          		 '<div>- Контроль расходов</div>' +
          		 '<div>- Календарное планирование</div>' ,
          'h': '/programs/programma-bdds/obzor-vozmozhnostey.html',
          'bgp': '-250' },

      2: {
          't': 'Платежный<br>календарь 2.0',
          'st': 'ПОПРОБУЙТЕ БЕСПЛАТНУЮ ВЕРСИЮ!!!',
          'd': '<div>- Контроль поступлений</div>' +
          		 '<div>- Планирование платежей</div>' +
          		 '<div>- Контроль расходов</div>' +
          		 '<div>- Календарное планирование</div>',
          'h': '/programs/programma-platezhnyi-kalendar/obzor-vozmozhnostey.html',
          'bgp': '-130' },

	    3: {
          't': 'Учет документов<br>версия 2.0',
          'st': 'ПОПРОБУЙТЕ БЕСПЛАТНУЮ ВЕРСИЮ!!!',
          'd': '<div>- Учет договоров</div>' +
          		 '<div>- корреспонденции</div>' +
          		 '<div>- приказов, служ. записок</div>' +
          		 '<div>- внутренних документов</div>' ,
          'h': '/programs/programma-uchet-documentov/obzor-vozmozhnostey.html',
          'bgp': '-10' }

}};



var recl = false;

function rbl(_data) {
	this.data = _data;
	this.img = false;

	this.shadowOpacity = 0;

	this.title = false;
	this.title1 = false;
	this.titleHref = false;
	this.subTitle = false;
	this.descr = false;
	this.btns = new Array();
	this.curBlock = 0;
	this.curSlide = 0;
	this.nextSlide = false;
	this.timeout = false;
	this.doShow = true;

	this.showSlide = rbShowSlide;
	this.setOpacity = rbSetOpacity;
	this.hide = rbHide;
	this.show = rbShow;

	// определяем, какой рекламный блок показываем
	var curRecBlock = parseInt(getCookie('lastRecBlock'));
	if (curRecBlock == NaN) curRecBlock = Math.floor(Math.random() * reclItemsLeft.length);
	else {
		curRecBlock++;
		if (!reclItemsLeft[curRecBlock]) curRecBlock = 0;
	}
	setCookie('lastRecBlock', curRecBlock);
	this.curBlock = curRecBlock;

	var html = '';
	html += '<style type="text/css">';
	html += '#rblDiv {background-color: #fff; border: 1px solid #600; padding: 2px; margin-bottom: 20px; width: 282px; }';
	html += '#rbl { background-color: #ffffa7; padding: 4px; border: 1px solid #bfbd00; }';
	html += '#rbl #rblTitleHref { text-decoration: none; }';
	html += '#rbl #rblTitleHref:hover {color: #faface; }';
	html += '#rbl #rblTitle {line-height: 100%; padding: 4px 2px 0px; text-align: center; overflow: hidden; height: 64px; color: #000; font-size: 20pt; font-weight:normal; }';
	html += '#rbl #rblTitle * { padding: 0px; text-align: center; color: #000; font-size: 20pt; font-weight: normal; line-height: 100%;}';
	html += '#rbl #rblTitle:hover, #rbl #rblTitle *:hover {color: orange; }';
	html += '#rbl #rblTitle1 { text-align: center; color: #ab0404; font-size: 12pt; font-weight: bold; padding-top: 0px; }';
	html += '#rbl #rblTitle1:hover {color: orange; }';
	html += '#rbl #rblImg { float: left; width: 86px; height: 90px; background: url(http://static.' + mainDomain + '/tpl/img/systecs-boxes-new.png) no-repeat 0px center; }';
	html += '#rbl #rblSubTitle { line-height: 125%; color: #ab0404; font-size: 10pt; font-weight: bold; padding-top: 6px; text-align: center; }';
	html += '#rbl #rblSubTitle * { color: #ab0404; font-size: 10pt; font-weight: bold;  }';
	html += '#rbl #rblSubTitle:hover { color: orange; }';
	html += '#rbl #rblDescr { padding: 0px 0px 0px 8px; overflow-y: hidden; text-indent: 0px; }';
	html += '#rbl #rblDescr *  { padding: 2px 0px; line-height: 125%; text-indent: -8px; margin: 0px; font-size: 10pt; font-weight: normal; color: #000; text-align: left; }';
	html += '#rbl #rblDescrHref, #rbl #rblDescrHref * {color: #000; font-size: 10pt; text-decoration: none; }';
	html += '#rbl #rblDescrHref:hover, #rbl #rblDescrHref:hover * { color: #000; }';
	html += '#rbl #rblDescr #rblDetail { color: #000; font-size: 10pt; font-weight: bold;  text-decoration: none; text-align: right; padding: 4px 10px 0px; }';
	html += '#rbl #rblDescr #rblDetail * { color: #000; font-size: 10pt; font-weight: bold;  text-decoration: none; text-align: right; padding: 0px; }';
	html += '#rbl #rblDescr #rblDetail:hover, #rbl #rblDescr #rblDetail *:hover{ color: orange; text-decoration: underline; }';
	html += '#rbl #rblBtnsCont { text-align: center; padding: 8px 0px 2px; vertical-align: bottom; }';
	html += '#rbl #rblBtns {  border-spacing: 6px 0px; border-collapse: separate; margin: auto;}';
	html += '#rbl #rblBtns td { cursor: pointer; padding: 0px; vertical-align: middle; text-align: center; width: 22px; height: 22px; color: #000; background-color: #faface; font-size: 9pt; border: 1px solid #ccc; }';
	html += '#rbl #rblBtns td.cur {color: #000; background-color: #fff; border: 1px solid #ccc; cursor: none; }';
	html += '</style>';

	html += '<div id="rblDiv" onmouseover="rbShowStop();" onmouseout="rbShowStart();">';
	html += '<div id="rbl">';

	html += '<a id="rblTitleHref" href="/" target="_blank" onclick="return rblShowPage(this);" >';
	html += '<div id="rblTitle1">Решение для 1С:Бухгалтерии 8</div>';
	html += '<div id="rblTitle">&nbsp;</div>';


	html += '<div id="rblImg">&nbsp;</div>';
	html += '<div id="rblDescr">&nbsp;</div>';

	html += '<div id="rblSubTitle">&nbsp;</div>';

	html += '</a>';

	html += '<div id="rblBtnsCont">';
	html += '<table id="rblBtns">';
	html += '<tr>';


	for (i = 0; i < 4; i++)  {
		html += '<td onclick="showSlide(' + i + ');" >' + (i + 1) + '</td>';
	}

	html += '</tr>';
	html += '</table>';
	html += '</div>';

	html += '</div>';
	html += '</div>';
	document.write(html);

	this.img			= document.getElementById('rblImg');
	this.title		= document.getElementById('rblTitle');
	this.title1		= document.getElementById('rblTitle1');
	this.titleHref= document.getElementById('rblTitleHref');
	this.subTitle	= document.getElementById('rblSubTitle');
	this.descr		= document.getElementById('rblDescr');

	this.btns = document.getElementById('rblBtnsCont').getElementsByTagName('TD');

	this.showSlide();
}

function rbSetOpacity() {
	var opa = this.shadowOpacity;
	this.img.style.opacity			= opa;
	this.title.style.opacity		= opa;
	this.title1.style.opacity		= opa;
	this.subTitle.style.opacity = opa;
	this.descr.style.opacity		= opa;
}

function rbShowSlide() {
	var curSlide = this.data[this.curBlock]['data'][this.curSlide];

	this.setOpacity();

	this.img.style.backgroundPosition = '' + curSlide['bgp'] + 'px';

	var href = 'http://' + mainDomain + '' + curSlide['h'];
	this.title.innerHTML			= curSlide['t'];
	this.titleHref.href				= href;
	this.subTitle.innerHTML		= curSlide['st'];
	this.descr.innerHTML			= curSlide['d']+ '<div id="rblDetail">Подробнее...</div>';

	this.timeout = setTimeout('recl.show();', 300);
}


function rbShow() {
	this.shadowOpacity += 0.02;
	if (this.shadowOpacity > 1) {
		this.shadowOpacity = 1;
	}

	this.setOpacity();

	if (this.shadowOpacity == 1) {
		this.btns[this.curSlide].className = 'cur';
		clearTimeout(this.timeout);

		if (!this.doShow) {
			this.timeout = setTimeout('recl.showSlide();', 4000);
			return;
		}

		this.timeout = setTimeout('recl.hide();', 4000);
		return;
	} else if (this.shadowOpacity >= 0.2 && this.shadowOpacity < 0.22) {
		this.btns[this.curSlide].className = 'cur';
	}

	this.timeout = setTimeout('recl.show();', 10);
}

function rbHide() {
	this.shadowOpacity -= 0.03;
	if (this.shadowOpacity < 0) {
		this.shadowOpacity = 0;
	}
	this.setOpacity();

	if (this.shadowOpacity == 0) {
		for (key in this.btns) {
			this.btns[key].className = '';
		}

		if (this.nextSlide === false) {
			this.curSlide++;
		  if (this.curSlide == 4) {
		  	this.curSlide = 0;
		  }
		} else {
			this.curSlide = this.nextSlide;
			this.nextSlide = false;
		}

		//this.timeout = setTimeout('recl.showSlide();', 1);
		this.showSlide();
		return;
	}

	this.timeout = setTimeout('recl.hide();', 10);
}

function rbShowStop() {
	recl.doShow = false;
	clearTimeout(recl.timeout);
	recl.timeout = setTimeout('recl.show();', 1);
}

function rbShowStart() {
	recl.doShow = true;
	clearTimeout(recl.timeout);
	recl.timeout = setTimeout('recl.showSlide();', 1);
}

function showSlide(_index) {
	recl.doShow = false;
	recl.nextSlide = _index;
	clearTimeout(recl.timeout);
	if (browser.isIE) {
		for (key in recl.btns) {
			recl.btns[key].className = '';
		}
		recl.curSlide = recl.nextSlide;
		recl.nextSlide = false;
		recl.showSlide();
	} else {
		recl.timeout = setTimeout('recl.hide();', 10);
	}
}

function rblShowPage(obj) {
	setCookie('recRef', genStrID(recl.title.innerHTML));
	return true;
}

function userReclLeft() {
	if (location.host.indexOf('kodeks.systecs.',0) == -1
	 && location.host.indexOf('klassifikator.systecs.',0) == -1) {
		recl = new rbl(reclItemsLeft);
	}
}

function genStrID(str) {
	var arrru = new Array ("[\.]", "А","а","Б","б","В","в","Г","г","Д","д","Е","е","Ё","ё","Ж", "ж", "З","з","И","и","Й","й","К","к","Л","л","М","м","Н","н","О","о","П","п","Р","р","С","с","Т","т","У","у","Ф","ф","Х","х","Ц","ц","Ч", "ч", "Ш", "ш", "Щ", "щ",  "Ъ","ъ","Ы","ы","Ь","ь","Э","э","Ю", "ю", "Я", "я");
	var arren = new Array ("_",    "A","a","B","b","V","v","G","g","D","d","E","e","E","e","Zh","zh","Z","z","I","i","Y","y","K","k","L","l","M","m","N","n","O","o","P","p","R","r","S","s","T","t","U","u","F","f","H","h","C","c","Ch","ch","Sh","sh","Sch","sch","","", "Y","y","", "", "E","e","Yu","yu","Ya","ya");
  for(var i=0; i<arrru.length; i++) {
   	var litnow = new RegExp(arrru[i], "g");
   	str = str.replace(litnow, arren[i]);
  }
	return str;
}


// Партнерские юридические консультации
function submitParthner() {
	var form = document.getElementById('parthner');
	if (!form) return;

	var name				= document.getElementById('parthner_name');
	var partner			= document.getElementById('parthner_partner');
	var region			= document.getElementById('parthner_region');
  var phone				= document.getElementById('parthner_phone');
  var phoneprefix	= document.getElementById('parthner_phoneprefix');
  var comment			= document.getElementById('parthner_comment');
  var email				= document.getElementById('parthner_email');
	if (!name || !phone || !phoneprefix || !comment || !region || !partner || !email) return;

	if (region.value == '00') {
    alert('Укажите регион!' );

	} else if (name.value.length < 3) {
    alert('Неверно заполнено поле "Ваше имя"!' );

  } else if (phone.value.length < 4) {
    alert('Неверно заполнено поле "Телефон"!' );

  } else if (phone.value == 'XXX-XX-XX') {
    alert('Не заполнено поле "Телефон"!' );

  } else if (phoneprefix.value.length < 3) {
    alert('Неверно заполнено поле "Код города"!' );

  } else if (phone.value == 'XXX') {
    alert('Не заполнено поле "Код города"!' );

  } else if (comment.value == '') {
    alert('Введите текст вопроса!' );

  } else {
  	getIControl();

  	if (region.value == '77' || region.value == '50') { // || region.value == '78'
			form.action = '/partner1.php';
	  	partner.value = 'partner1';
  	} else {
			form.action = '/partner2.php';
	  	partner.value = 'partner2';

  	}
  	form.target = 'IControl2';
  	form.submit();


  	form.action = 'http://cabinet.' + mainDomain + '/logParthner.php';
  	form.target = 'IControl';
  	form.submit();

  	form.action = '/consult/result/';
  	form.target = '_blank';
  	form.submit();

		name.value = '';
		phone.value = 'XXX-XX-XX';
		phoneprefix.value = 'XXX';
		comment.value = '';
		email.value = '';
  }
}

function showParthnerInfo() {
	swGet(
		'<h2>Уважаемый посетитель!</h2>'+
		'Воспользовавшись нашим сервисом, Вы сможете получить бесплатную юридическую консультацию по интересующим вас вопросам и определиться с дальнейшим порядком решения проблемы.<br><br>' +
		'При этом следует учитывать, что если ваш вопрос окажется достаточно сложным и требующим дополнительной проработки, вам может потребоваться платная консультация юриста.',
		'msg',450, 220, 'Информация о предоставляемых услугах');

}



// *********************************************
var parthnerBlock = false;
function parthnerBlockRight() {
	parthnerBlock = new parthner();
}

function parthner() {
	this.items = {
		1: '<div class="big"><a href="/consult/">Есть вопросы?</a></div>',
		2: '<div class="big"><a href="/consult/">Получите ответы!</a></div>',
		0: '<div class="small"><a href="/consult/">БЕСПЛАТНАЯ<br>ЮРИДИЧЕСКАЯ КОНСУЛЬТАЦИЯ</a></div>'};

	this.cur = 0;

	this.show = parthnerShowBlock;

	var html = '';
	html += '<style type="text/css">';
	html += '#parthnerBl { float: right; width: 230px; height: 42px; text-align: center; margin: 10px 0px 20px 20px; padding: 4px; box-shadow: -3px 3px 3px #ccc,-3px -1px 1px #ccc,1px -1px 1px #ccc,1px 3px 1px #ccc; background-color: #EDEDDD; border: 1px solid #fff; }';
	html += '#parthnerBl .big { text-align: center; padding: 7px 6px 0px; }';
	html += '#parthnerBl .big * { font-size: 19pt; font-weight: normal; }';
	html += '#parthnerBl * { color: #000; cursor: pointer; }';
	html += '#parthnerBl .small { text-align: center; padding: 5px 4px 0px; }';
	html += '#parthnerBl .small * { font-size: 10pt; font-weight: bold; }';
	html += '#parthnerBl a { text-decoration: none; }';
	html += '#parthnerBl a:hover { color: #00c; }';
	html += '</style>';

	html += '<div id="parthnerBl">';
	html += '</div>';
	document.write(html);

	this.text	= document.getElementById('parthnerBl');

	var timeout = setTimeout('parthnerBlock.show();', 300);
}

function parthnerShowBlock() {
	if (parthnerBlock.cur > 2) {
		parthnerBlock.cur = 0;
	}
	parthnerBlock.text.innerHTML = parthnerBlock.items[parthnerBlock.cur];
	var to = 2000;
	if (parthnerBlock.cur == 0) to = 3000;
	var timeout = setTimeout('parthnerBlock.show();', to);
	parthnerBlock.cur++;
}
