var Cache = new Object();
function get(id)
{
	return (Cache[id]) ? Cache[id] : Cache[id] = document.getElementById(id);
}

iens6=document.all||document.getElementById
ns4=document.layers
//specify speed of scroll (greater=faster)
var speed=3

function header_beg(){
	new Image().src = "http://counter.yadro.ru/hit?r"+
	escape(document.referrer)+((typeof(screen)=="undefined")?"":
	";s"+screen.width+"*"+screen.height+"*"+(screen.colorDepth?
	screen.colorDepth:screen.pixelDepth))+";u"+escape(document.URL)+
	";h"+escape(document.title.substring(0,80))+
	";"+Math.random();
	document.write('<table id="main2" width=100% height=100% style="background-image: url(\'/images/fon.gif\'); background-position: top center;"><tr><td style="background-image: url(\'/images/left.gif\'); background-repeat: repeat-y; background-position: top right;"><img src="/images/1px.gif" height=100% width=24 id="main"></td><td width=1001 bgcolor="#ffffff" height=100%><table width=100% height=100%><tr bgcolor="#000000"><td><img src="/images/phone.gif"></td><td style="vertical-align: bottom !important;">');
}

function header_mid(){
	document.write('<a href="http://notebags.ru/"><img src="/images/logo.gif"></a></td><td rowspan=2>');
}

function header_end(){
	document.write('</td></tr><tr bgcolor="#000000"><td style="background-image: url(\'/images/find.gif\'); height: 53px; background-repeat: no-repeat; background-position: top left;">');
}

function header_end2(){
	document.write('</td><td><img alt="модные сумки для ноутбуков" src="/images/desc.gif"></td></tr><tr><td colspan=2><img src="/images/1.gif"></td><td><img src="/images/2.gif"></td></tr>');
}

function menu(main){
	document.write('<tr>');
	if (main==1){
		document.write('<td colspan=3 style="background-image: url(\'/images/menu.gif\'); height: 66px; padding-top: 7px;">');
	} else {
		document.write('<td colspan=3 style="background-image: url(\'/images/menu2.gif\'); height: 120px; padding-top: 7px;">');
	}
	document.write('<img src="/images/1px.gif" width=60 height=1><a href="http://notebags.ru/news.html"><img src="/images/news.gif"></a><img src="/images/1px.gif" width=60 height=1><a href="http://notebags.ru/dostavka.html"><img src="/images/dostavka.gif"></a><img src="/images/1px.gif" width=75 height=1><a href="http://notebags.ru/garantiya.html"><img src="/images/garantee.gif"></a><img src="/images/1px.gif" width=80 height=1><a href="http://notebags.ru/sale.html"><img src="/images/skidki.gif"></a><img src="/images/1px.gif" width=55 height=1><a href="http://notebags.ru/help.html"><img src="/images/help.gif"></a><img src="/images/1px.gif" width=65 height=1><a href="http://notebags.ru/contacts.html"><img src="/images/contacts.gif"></a></td></tr>');
}

function middle_beg(main, module){
	if (main==1){
		document.write('<tr style="background-image: url(\'/images/bottom.gif\'); background-repeat: no-repeat; background-position: bottom left;"><td colspan=3 height=100% align=left><table style="background-image: url(\'/images/filter.gif\'); background-repeat: no-repeat; background-position: 0px 100px;" height=500><tr><td rowspan=2>');
	}
	else {
		document.write('<tr style="background-image: url(\'/images/bottom.gif\'); background-repeat: no-repeat; background-position: bottom left;"><td colspan=3 height=100% align=left style="padding-bottom: 23px;">');
		if (module==5){
			document.write('<table width=100% style="background-image: url(\'/images/photos.gif\'); background-repeat: no-repeat; background-position: 68px  top;">');
		} else {
			document.write('<table width=100% style="background-image: url(\'/images/top.gif\'); background-repeat: no-repeat; background-position: 68px  top;">');
		}
		document.write('<tr><td style="background-image: url(\'/images/fon2.gif\'); background-repeat: repeat-y; background-position: bottom left;">');
	}
}

function catalog_beg(){
	document.write('<table width=208 style="display: block; float: left; margin-left: 10px;"><tr><td><a href="http://notebags.ru/podbor_sumok.html?diag=none&color=none&brand=none&price="><img src="/images/catalog-top.png"></a></td></tr><tr><td style="background-image: url(\'/images/catalog-fon.png\'); background-repeat: repeat-y; padding-left: 20px;" height=200>');
}

function catalog_end(){
	document.write('</td></tr><tr><td><img src="/images/catalog-bottom.png"></td></tr></table>');
}

function content_beg(main){
	if (main==1){
		document.write('</td><td align=center>');
	} else {
		document.write('</td><td style="padding: 17px 70px 50px 0px; background-image: url(\'/images/fon2.gif\'); background-repeat: repeat-y; background-position: bottom right;"  class="content">');
	}
}

function content_mid(main, seo){
	if (main==1){
		document.write('</td></tr></table></td></tr><tr style="background-image: url(\'/images/bottom.gif\'); background-repeat: no-repeat; background-position: bottom left;"><td colspan=3 height=100% align=left style="padding-bottom: 23px;"><table width=100% style="background-image: url(\'/images/fon2.gif\'); background-repeat: repeat-y; background-position: bottom right;"><tr><td style="padding: 0px 0px 0px 68px;">');
		shop_window();
		document.write('</td></tr><tr width=100%><td style="padding: 17px 80px 50px 100px;">');
		
		if (iens6){
			document.write('<div id="container" style="position:relative;width:95%;margin: 0px 10px 0px 0px;">')
			//document.write('<div id="content" style="position:absolute;width:width:95%;left:0;top:0">')
		}
		//document.write('<ilayer name="nscontainer" width=600 height=170 clip="0,0,600,170">');
		//document.write('<layer name="nscontent" width=600 height=170 visibility=hidden class="content">');
	} else {
		document.write('</td></tr><tr style="background-image: url(\'/images/fon2.gif\'); background-repeat: repeat-y; background-position: bottom left; vertical-align: bottom !important;"><td colspan=2 style="padding-left: 68px; vertical-align: bottom !important; padding-bottom: 18px;"><img src="/images/decor.gif" onClick="document.location.href=\'http://notebags.ru/cart.html\'" style="cursor: pointer;" alt="Корзина" title="Корзина">');
		if (seo==1){
			document.write('<br><img src="/images/top.gif"><br>');
		}
		document.write('</td></tr></td></tr>');
		if (seo==1){
			document.write('<tr style="background-image: url(\'/images/fon2.gif\'); background-repeat: repeat-y; background-position: bottom left; vertical-align: bottom !important;"><td colspan=2 style="padding: 0px 80px 10px 80px; vertical-align: bottom !important; padding-bottom: 18px;"><div style="background-image: url(\'/images/dykt.gif\'); background-repeat: no-repeat; background-position: top right;"><br><br><br><br><br>');
		}
	}
}
function content_end(main, seo){
	if (main==1){
		//document.write('</layer></ilayer>');
		if (iens6) document.write('</div></td></tr></table></td></tr>');//document.write('</div></div>');
		//document.write('<script type="text/javascript" src="/js/scroller.js"></script>');
		//document.write('<div style="float: left; width: 9px; height: 170px;"><br><a href="#" onMouseover="moveup()" onMouseout="clearTimeout(moveupvar)"><img src="/images/up.gif" border=0></a><img src="/images/1px.gif" width=1 height=120><a href="#" onMouseover="movedown()" onMouseout="clearTimeout(movedownvar)"><img src="/images/down.gif" border=0></a></div></td></tr></table></td></tr>');
	} else {
		if (seo==1){
			document.write('</div></td></tr>');
		}
		document.write('</table></td></tr>');
	}
}

function shop_window(){
	document.write('<MAP NAME="map1">');
	document.write('<AREA HREF="http://notebags.ru/other/hadley_maple1.html" ALT="Hadley Maple Lord" TITLE="Hadley Maple Lord" SHAPE=RECT COORDS="20,30,110,130">');
	document.write('<AREA HREF="http://notebags.ru/denny_borsa/denny_borsa_line.html" ALT="Denny Borsa Line" TITLE="Denny Borsa Line" SHAPE=RECT COORDS="285,20,385,130">');
	document.write('<AREA HREF="http://notebags.ru/targus/targus_special_edition_urban_top_load.html" ALT="Targus Special Edition Urban Top Load" TITLE="Targus Special Edition Urban Top Load" SHAPE=RECT COORDS="475,45,585,135">');
	document.write('<AREA HREF="http://notebags.ru/denny_borsa/denny_borsa_lambo.html" ALT="Denny Borsa Lambo" TITLE="Denny Borsa Lambo" SHAPE=RECT COORDS="650,47,760,135">');
	document.write('<AREA HREF="http://notebags.ru/brinch/brinch_jet_gray.html" ALT="Brinch Jet Gray" TITLE="Brinch Jet Gray" SHAPE=RECT COORDS="180,155,295,255">');
	document.write('<AREA HREF="http://notebags.ru/brinch/brinch_def_red.html" ALT="Brinch Def Red" TITLE="Brinch Def Red" SHAPE=RECT COORDS="415,155,500,255">');
	document.write('<AREA HREF="http://notebags.ru/brinch/brinch_classic_black.html" ALT="Brinch Classic Black" TITLE="Brinch Classic Black" SHAPE=RECT COORDS="560,160,650,250">');
	document.write('<AREA HREF="http://notebags.ru/denny_borsa/denny_borsa_prison_red.html" ALT="Denny Borsa Prison Red" TITLE="Denny Borsa Prison Red" SHAPE=RECT COORDS="755,160,855,250">');
	document.write('<AREA HREF="http://notebags.ru/brinch/brinch_kava_red.html" ALT="Brinch Kava Red" TITLE="Brinch Kava Red" SHAPE=RECT COORDS="30,275,120,385">');
	document.write('<AREA HREF="http://notebags.ru/other/zuly_green.html" ALT="Zuly Green" TITLE="Zuly Green" SHAPE=RECT COORDS="200,275,315,385">');
	document.write('<AREA HREF="http://notebags.ru/denny_borsa/denny_borsa_cherry.html" ALT="Denny Borsa Cherry" TITLE="Denny Borsa Cherry" SHAPE=RECT COORDS="445,280,555,385">');
	document.write('<AREA HREF="http://notebags.ru/other/hadley_orange_.html" ALT="Hadley Orange" TITLE="Hadley Orange" SHAPE=RECT COORDS="585,285,690,385">');
	document.write('</MAP><img src="/images/main_window.jpg" USEMAP="#map1">');
}

function footer_beg(){
	document.write('<tr><td colspan=3 height=31 style="vertical-align: middle !important;padding-left: 20px;background-color: black; color: #ccc; font-family: \'Times New Roman\'; font-size: 12pt;">');
}

function footer_end(){
	document.write('</td></tr></table></td><td style="background-image: url(\'/images/right.gif\'); background-repeat: repeat-y; background-position: top left;"><img src="/images/1px.gif" width=24></td></tr></table>');
}
