<!--

var browser_name = navigator.appName;
var nothing='';
var und='underline';
var free='none';
var actstatus='акт выполненных работ';
var nostatus='';

if (browser_name == "Netscape") {btype=3;}
if (browser_name == "Opera") {btype=3;}
if (browser_name == "Mozilla") {btype=3;} 
if (browser_name == "Microsoft Internet Explorer") {btype=1;}

if (document.images) {
		img1 = new Image();
		img1.src = "http://www.tverline.ru/pic/shared/x.gif";
		img2 = new Image();
		img2.src = "http://www.tverline.ru/pic/shared/wait.gif";
		img3 = new Image();
		img3.src = "http://www.tverline.ru/pic/shared/topmenu_bg2.gif";
		img4 = new Image();
		img4.src = "http://www.tverline.ru/pic/shared/spacer.gif";
		img6 = new Image();
		img6.src = "http://www.tverline.ru/pic/shared/word_16x16.jpg";
		img7 = new Image();
		img7.src = "http://www.tverline.ru/pic/shared/zip.gif";
		img8 = new Image();
		img8.src = "http://www.tverline.ru/pic/shared/black.gif";
}


function getcookie(name) {
        var prefix = name + "="
        var cookieStartIndex = document.cookie.indexOf(prefix)
        if (cookieStartIndex == -1)
                return null
        var cookieEndIndex = document.cookie.indexOf(";", cookieStartIndex + prefix.length)
        if (cookieEndIndex == -1)
                cookieEndIndex = document.cookie.length
        return unescape(document.cookie.substring(cookieStartIndex + prefix.length, cookieEndIndex))
}

function sendletter(id,dmn) {
var domains = new Array('tverline.ru', 'tvermail.ru');
var names = new Array('info', 'webmaster');
location.href='mailto:'+names[id]+'\@'+domains[dmn]+'';
}

function menuon(cell) {
cell.style.backgroundImage='url(http://www.tverline.ru/pic/shared/topmenu_bg2.gif)'; return true;
}

function menuoff(cell) {
cell.style.backgroundImage='url(http://www.tverline.ru/pic/shared/spacer.gif)'; return true;
}

function mainwrite(text) {
main.innerHTML=text;
}

function openimage(image) {
tabletext = '<table cellspacing="0" cellpadding="0" border="0" bgcolor="white">'
+ '<tr><td width="3" height="3" background="http://www.tverline.ru/pic/imgstyle/img_c1.gif"></td>'
+ '<td style="border-top: 1px solid #aaa9a9"><img src="http://www.tverline.ru/pic/shared/spacer.gif" width="1" height="1" border="0" alt=""></td>'
+ '<td width="3" height="3" background="http://www.tverline.ru/pic/imgstyle/img_c2.gif"></td></tr>'
+ '<tr><td style="border-left: 1px solid #aaa9a9"><img src="http://www.tverline.ru/pic/shared/spacer.gif" width="1" height="1" border="0" alt=""></td>'
+ '<td><p style="text-align:center;">увеличенное изображение<br>'
+ '<a href="javascript:closelayer()"><img src="http://www.tverline.ru/pic/'+image+'" border="0" alt="закрыть"></a></td>'
+ '<td style="border-right: 1px solid #aaa9a9"><img src="http://www.tverline.ru/pic/shared/spacer.gif" width="1" height="1" border="0" alt=""></td></tr>'
+ '<tr><td width="3" height="3" background="http://www.tverline.ru/pic/imgstyle/img_c4.gif"></td>'
+ '<td style="border-bottom: 1px solid #aaa9a9"><img src="http://www.tverline.ru/pic/shared/spacer.gif" width="1" height="1" border="0" alt=""></td>'
+ '<td width="3" height="3" background="http://www.tverline.ru/pic/imgstyle/img_c3.gif"></td></tr>'
+ '</table>';
waterMark.innerHTML=tabletext;
}

function speedtest() {
speedwindow = '<table cellspacing="0" cellpadding="0" border="0" width="460" height="260" bgcolor="white">'
+ '<tr><td width="3" height="3" background="http://www.tverline.ru/pic/imgstyle/img_c1.gif"></td>'
+ '<td style="border-top: 1px solid #aaa9a9"><img src="http://www.tverline.ru/pic/shared/spacer.gif" width="1" height="1" border="0" alt=""></td>'
+ '<td width="3" height="3" background="http://www.tverline.ru/pic/imgstyle/img_c2.gif"></td></tr>'
+ '<tr><td style="border-left: 1px solid #aaa9a9"><img src="http://www.tverline.ru/pic/shared/spacer.gif" width="1" height="1" border="0" alt=""></td>'
+ '<td valign="top"><p style="text-align:center;"><a href="javascript:closelayer()"><img src="http://www.tverline.ru/pic/shared/x.gif" width="15" height="15" border="0" alt="закрыть" align="right"></a>ТЕСТ СКОРОСТИ</p><br>'
+ '<iframe src="http://speed.tverline.ru" name="1" id="1" width="455" height="255" margin="0" align="top" scrolling="no" frameborder="0"></iframe>'
+ '</td>'
+ '<td style="border-right: 1px solid #aaa9a9"><img src="http://www.tverline.ru/pic/shared/spacer.gif" width="1" height="1" border="0" alt=""></td></tr>'
+ '<tr><td width="3" height="3" background="http://www.tverline.ru/pic/imgstyle/img_c4.gif"></td>'
+ '<td style="border-bottom: 1px solid #aaa9a9"><img src="http://www.tverline.ru/pic/shared/spacer.gif" width="1" height="1" border="0" alt=""></td>'
+ '<td width="3" height="3" background="http://www.tverline.ru/pic/imgstyle/img_c3.gif"></td></tr>'
+ '</table>';
waterMark.innerHTML=speedwindow;
}

function closelayer() {waterMark.innerHTML='';}

function printcreated(myprintarea,mystyle) {
if (window.print) {
  text = myprintarea; winId = window.open('','loader', 'Toolbar=0, Location=0, Directories=0, Status=0, Menubar=0, Scrollbar=0, Resizable=0, Copyhistory=1, Width=800, Height=1024');
  with (winId.document) {
    write('<html>'+mystyle+'<body onLoad="window.focus();window.print()">'+text+'</body></html>');
  close();
    }
  }
closelayer();
}

function ok (dist) {
if (browser_name == "Opera") {window.top.location.reload();}
else {
	if (btype == "1") {window.top.location.reload();}
	else {
	if (dist == '') {top.location.href='http://www.tverline.ru/';}
	else {top.location.href='http://www.tverline.ru/'+dist+'/';}
	}
  }
}

// -->
