function popupWindow(url)
{
	window.open(url,'popupWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,width=100,height=100,screenX=150,screenY=150,top=150,left=150')
}

function popupWindowPrint(url)
{
	var height=0; var width=0;
	if (self.screen) {
	width = screen.width
	height = screen.height
	}
	else if (self.java) {
	var jkit = java.awt.Toolkit.getDefaultToolkit();
	var scrsize = jkit.getScreenSize();
	width = scrsize.width;
	height = scrsize.height;
	}
	w=width/2-400;
	str='toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,width=800,height=1000,screenX=150,screenY=150,top=150,left=' + w;
	window.open(url,'popupWindow',str)
}

function ShowColor(color_id)
{
    focusWindow=window.open('/show_color/?color_id='+color_id, 'color', 'left=150,top=150,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,copyhistory=no,width=300,height=250');
    if (getAppVersion()) focusWindow.focus();
	return false;
}

function getAppVersion()
{
    appname= navigator.appName;
    appversion = navigator.appVersion;
    majorver = appversion.substring(0, 1);
    if( (appname == "Netscape") && ( majorver >= 3 ) ) return 1;
    if( (appname == "Microsoft Internet Explorer") && (majorver >= 4) ) return 1;
	if( appname == "Opera" ) return 1;
	return 0;
}

function Catalogue()
{
	var newTbl = document.createElement("table");
	newTbl.width="100%";
	newTbl.border="0";
	newTbl.style.height="100%";

	var newTr1 = document.createElement("tr");
	newTbl.appendChild(newTr1);
	
	var newTd1 = document.createElement("td");
	newTd1.style.textAlign="center";
	newTd1.style.padding="5px";
	newTd1.width="20%";
	newTd1.innerHTML='<h4><a title="каталог ковров машинной работы Ragolle (Бельгия)" href="http://www.moscowcarpets.ru/catalogue/138/" class="main_page">Ковры машинной работы Ragolle (Бельгия)</a></h4>';
	newTr1.appendChild(newTd1);
	
	var newTd2 = document.createElement("td");
	newTd2.style.textAlign="center";
	newTd2.style.padding="5px";
	newTd2.width="20%";
	newTd2.innerHTML='<h4><a title="каталог ковров машинной работы (Бельгия)" href="http://www.moscowcarpets.ru/catalogue/75/" class="main_page">Ковры машинной работы &laquo;BALTA&raquo; (Бельгия)</a></h4>';
	newTr1.appendChild(newTd2);

	var newTd3 = document.createElement("td");
	newTd3.style.textAlign="center";
	newTd3.style.padding="5px";
	newTd3.width="20%";
	newTd3.innerHTML='<h4><a title="Каталог ковров машинной работы" href="http://www.moscowcarpets.ru/catalogue/1/" class="main_page">Ковры машинной работы (Египет)</a></h4>';
	newTr1.appendChild(newTd3);

	var newTd4 = document.createElement("td");
	newTd4.style.textAlign="center";
	newTd4.style.padding="5px";
	newTd4.width="20%";
	newTd4.innerHTML='<h4><a title="каталог ковров машинной работы (Польша)" href="http://www.moscowcarpets.ru/catalogue/59/" class="main_page">Ковры машинной работы (Польша)</a></h4>';
	newTr1.appendChild(newTd4);

	var newTd5 = document.createElement("td");
	newTd5.style.textAlign="center";
	newTd5.style.padding="5px";
	newTd5.width="20%";
	newTd5.innerHTML='<h4><a title="каталог ковров машинной работы (Бельгия)" href="http://www.moscowcarpets.ru/catalogue/80/" class="main_page">Ковры машинной работы &laquo;CORUM&raquo; (Бельгия)</a></h4>';
	newTr1.appendChild(newTd5);

	var newTr2 = document.createElement("tr");
	newTbl.appendChild(newTr2);
	
	var newTd21 = document.createElement("td");
	newTd21.style.textAlign="center";
	newTd21.style.padding="5px";
	newTd21.valign="bottom";
	newTd21.width="20%";
	newTd21.innerHTML='<a title="каталог ковров машинной работы Ragolle (Бельгия)" href="http://www.moscowcarpets.ru/catalogue/138/"><img border="0" alt="каталог ковров машинной работы Ragolle (Бельгия)" src="http://www.moscowcarpets.ru/images/main_138.gif" /></a>';
	newTr2.appendChild(newTd21);

	var newTd22 = document.createElement("td");
	newTd22.style.textAlign="center";
	newTd22.style.padding="5px";
	newTd22.valign="bottom";
	newTd22.width="20%";
	newTd22.innerHTML='<a title="каталог ковров машинной работы (Бельгия)" href="http://www.moscowcarpets.ru/catalogue/75/"><img border="0" alt="каталог ковров машинной работы (Бельгия)" src="http://www.moscowcarpets.ru/images/main_75.gif" /></a>';
	newTr2.appendChild(newTd22);

	var newTd23 = document.createElement("td");
	newTd23.style.textAlign="center";
	newTd23.style.padding="5px";
	newTd23.valign="bottom";
	newTd23.width="20%";
	newTd23.innerHTML='<a title="Каталог ковров машинной работы" href="http://www.moscowcarpets.ru/catalogue/1/"><img border="0" alt="ковры машинной работы" src="http://www.moscowcarpets.ru/images/main_1.gif" /></a>';
	newTr2.appendChild(newTd23);

	var newTd24 = document.createElement("td");
	newTd24.style.textAlign="center";
	newTd24.style.padding="5px";
	newTd24.valign="bottom";
	newTd24.width="20%";
	newTd24.innerHTML='<a title="каталог ковров машинной работы (Польша)" href="http://www.moscowcarpets.ru/catalogue/59/"><img border="0" alt="каталог ковров машинной работы (Польша)" src="http://www.moscowcarpets.ru/images/main_59.gif" /></a>';
	newTr2.appendChild(newTd24);

	var newTd25 = document.createElement("td");
	newTd25.style.textAlign="center";
	newTd25.style.padding="5px";
	newTd25.valign="bottom";
	newTd25.width="20%";
	newTd25.innerHTML='<a title="каталог ковров машинной работы (Бельгия)" href="http://www.moscowcarpets.ru/catalogue/80/"><img border="0" alt="каталог ковров машинной работы (Бельгия)" src="http://www.moscowcarpets.ru/images/main_80.gif" /></a>';
	newTr2.appendChild(newTd25);

	var newTr3 = document.createElement("tr");
	newTbl.appendChild(newTr3);
	
	var newTd31 = document.createElement("td");
	newTd31.style.textAlign="center";
	newTd31.style.padding="5px";
	newTd31.width="20%";
	newTd31.innerHTML='<h4><a title="каталог ковров машинной работы OSTA (Бельгия)" href="http://www.moscowcarpets.ru/catalogue/128/" class="main_page">Ковры машинной работы OSTA (Бельгия)</a></h4>';
	newTr3.appendChild(newTd31);
	
	var newTd32 = document.createElement("td");
	newTd32.style.textAlign="center";
	newTd32.style.padding="5px";
	newTd32.width="20%";
	newTd32.innerHTML='<h4><a title="каталог ковров ручной работы (Бельгия)" href="http://www.moscowcarpets.ru/catalogue/98/" class="main_page">Ковры ручной работы &laquo;BENELUX ORIENT&raquo; (Бельгия)</a></h4>';
	newTr3.appendChild(newTd32);

	var newTd33 = document.createElement("td");
	newTd33.style.textAlign="center";
	newTd33.style.padding="5px";
	newTd33.width="20%";
	newTd33.innerHTML='<h4><a title="каталог ковров ручной работы (Голландия, Дания)" href="http://www.moscowcarpets.ru/catalogue/83/" class="main_page">Ковры ручной работы &laquo;Desso group&raquo; (Голландия, Дания)</a></h4>';
	newTr3.appendChild(newTd33);

	var newTd34 = document.createElement("td");
	newTd34.style.textAlign="center";
	newTd34.style.padding="5px";
	newTd34.width="20%";
	newTd34.innerHTML='<h4><a title="каталог ковров ручной работы (Китай)" href="http://www.moscowcarpets.ru/catalogue/105/" class="main_page">Ковры ручной работы &laquo;HWIT CO LTD&raquo; (Китай)</a></h4>';
	newTr3.appendChild(newTd34);

	var newTd35 = document.createElement("td");
	newTd35.style.textAlign="center";
	newTd35.style.padding="5px";
	newTd35.width="20%";
	newTd35.innerHTML='<h4><a title="распродажа ковров" href="http://www.moscowcarpets.ru/catalogue/126/" class="main_page">Распродажа ковров</a></h4>';
	newTr3.appendChild(newTd35);

	var newTr4 = document.createElement("tr");
	newTbl.appendChild(newTr4);
	
	var newTd41 = document.createElement("td");
	newTd41.style.textAlign="center";
	newTd41.style.padding="5px";
	newTd41.valign="bottom";
	newTd41.width="20%";
	newTd41.innerHTML='<a title="каталог ковров машинной работы OSTA (Бельгия)" href="http://www.moscowcarpets.ru/catalogue/128/"><img border="0" alt="каталог ковров машинной работы OSTA (Бельгия)" src="http://www.moscowcarpets.ru/images/main_128.gif" /></a>';
	newTr4.appendChild(newTd41);

	var newTd42 = document.createElement("td");
	newTd42.style.textAlign="center";
	newTd42.style.padding="5px";
	newTd42.valign="bottom";
	newTd42.width="20%";
	newTd42.innerHTML='<a title="каталог ковров ручной работы (Бельгия)" href="http://www.moscowcarpets.ru/catalogue/98/"><img border="0" alt="каталог ковров ручной работы (Бельгия)" src="http://www.moscowcarpets.ru/images/main_98.gif" /></a>';
	newTr4.appendChild(newTd42);

	var newTd43 = document.createElement("td");
	newTd43.style.textAlign="center";
	newTd43.style.padding="5px";
	newTd43.valign="bottom";
	newTd43.width="20%";
	newTd43.innerHTML='<a title="каталог ковров ручной работы (Голландия, Дания)" href="http://www.moscowcarpets.ru/catalogue/83/"><img border="0" alt="ковры ручной работы (Голландия, Дания)" src="http://www.moscowcarpets.ru/images/main_83.gif" /></a>';
	newTr4.appendChild(newTd43);

	var newTd44 = document.createElement("td");
	newTd44.style.textAlign="center";
	newTd44.style.padding="5px";
	newTd44.valign="bottom";
	newTd44.width="20%";
	newTd44.innerHTML='<a title="каталог ковров ручной работы (Китай)" href="http://www.moscowcarpets.ru/catalogue/105/"><img border="0" alt="каталог ковров ручной работы (Китай)" src="http://www.moscowcarpets.ru/images/main_105.gif" /></a>';
	newTr4.appendChild(newTd44);

	var newTd45 = document.createElement("td");
	newTd45.style.textAlign="center";
	newTd45.style.padding="5px";
	newTd45.valign="bottom";
	newTd45.width="20%";
	newTd45.innerHTML='<a title="каталог распродажи ковров" href="http://www.moscowcarpets.ru/catalogue/126/"><img border="0" alt="каталог распродажи ковров" src="http://www.moscowcarpets.ru/images/main_126.gif" /></a>';
	newTr4.appendChild(newTd45);

	document.getElementById("catalogue").replaceChild(newTbl,document.getElementById("catalogue").firstChild);
}

