// JavaScript Document
function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}
function ins_ab_email(account) {
dog = '@';
document.write('<a href=\"mailto:'+ account + dog + 'absolutbank.ru\">');
document.write(account + dog +'absolutbank.ru</a>');
}
function ins_ab_pic_email(account, pic, w, h) {
dog = '@';
document.write('<a href=\"mailto:'+ account + dog + 'absolutbank.ru\">');
document.write('<img src="'+pic+'" width="'+w+'" height="'+h+'" alt="Написать письмо" border="0" />');
document.write('</a>');
}
function img_new_win(path, width, height) {
	//status=path;
	height = height + 20;
	window.open(path, null, "height="+height+",width="+width+",status=no,toolbar=no,menubar=no,location=no");
}
function fill_clipboard(objName) {
	oCode = document.getElementById(objName);
	window.clipboardData.setData("Text", oCode.value);
}
var bodyHTML = '';
function preprint(script_name) {
	bodyHTML = document.body.innerHTML;
	//alert (bodyHTML);
	if (bodyHTML.indexOf("<!--[content]-->") > 0 ) {
		var body_arr = bodyHTML.split("<!--[content]-->");
	} else {
		var body_arr = bodyHTML.split("<spliter ID='breadcrumps'>");
	}
	var bodyContent = body_arr[1] + ' ';
	if (bodyContent.indexOf("<!--[/content]-->") > 0 ) {
		var body_arr = bodyContent.split("<!--[/content]-->");
	} else {
		var body_arr = bodyContent.split("<spliter ID='right_column'>");
	}
	var bodyContent = body_arr[0] + ' ';
	// подменяем кнопку
	var re = /preprint/g;
	var bodyContent = bodyContent.replace(re, 'afterprint');
	var re = /версия для печати/g;
	var bodyContent = bodyContent.replace(re, 'вернуться к обычной версии');
	var headerForPrint = '<table width="750" border="0" cellspacing="0" cellpadding="5" id="topmenu"><tr><td width="200" rowspan="2" style="padding: 0px;"><a href="/"><img src="/images/ab_logo.gif" width="200" height="44" alt="Абсолют Банк" border="0" /></a></td><td width="20"><img src="/images/dot.gif" width="20" height="1" alt="" /></td><td width="51"><a href="/press/pressreleases/index.shtml">Новости</a></td><td align="center"><img src="/images/vline.gif" width="1" height="15" alt="" /></td><td width="55"><a href="/services/vacancy.shtml">Вакансии</a></td><td align="center"><img src="/images/vline.gif" width="1" height="15" alt="" /></td><td width="43"><a href="/banktoday/branches/index.shtml">Офисы</a></td><td align="center"><img src="/images/vline.gif" width="1" height="15" alt="" /></td><td width="105"><a href="/products/private/cards/cash.shtml">Банкоматы и ПВН</a></td><td align="center"><img src="/images/vline.gif" width="1" height="15" alt="" /></td><td width="55"><a href="/banktoday/partners/index.shtml">Партнеры</a></td><td align="center"><img src="/images/vline.gif" width="1" height="15" alt="" /></td><td width="74"><a href="/services/sitemap.shtml">Карта сайта</a></td></tr></table><br /><table width="750" border="0" cellspacing="0" cellpadding="0"><tr><td>';
	var footerFromPrint = '<br /></td></tr></table><table width="750"  border="0" cellspacing="0" cellpadding="0"><tr><td class="bgfooter_left"><img src="/images/dot.gif" width="20" height="1" hspace="0" alt="" /></td><td class="bgban" align="center" height="50"><p class="contacts">Cправочная служба:  Москва <strong>(495) 777-71-71</strong>,  Санкт-Петербург <strong>(812) 333-32-22</strong></p></td><td class="bgfooter_right"><img src="/images/dot.gif" width="20" height="1" hspace="0" alt="" /></td></tr></table><br />';
	document.body.innerHTML = headerForPrint + bodyContent + footerFromPrint;
	//alert (document.body.innerHTML);
}
function afterrpint(script_name) {
	document.body.innerHTML = bodyHTML;
}
function set_invisible(obj_id) {
	document.getElementById(obj_id).style.display = "none";
}
function switch_visible(obj_id) {
	if (document.getElementById(obj_id).style.display == "none") {
		document.getElementById(obj_id).style.display = "";
	} else {
		document.getElementById(obj_id).style.display = "none";
	}
}

