function swap_img(img, param)
{
	_src = img.src;
	img.src = _src.substring(0,_src.length-5)+param.toString()+_src.substring(_src.length-4, _src.length);
}

function show_big_img(title, pic) {
	_date = new Date;
	wnd = window.open('','poppic'+_date.getTime(),'width=100 height=100');
	html = "<html><head>\n";
	html+= "<script language=\"javascript\">\n";
	html+= "var i=0;\n";
	html+= "NS_w_plus=0; NS_h_plus=0; OPERA_h_plus=0;\n";
	html+= "function resize() {\n";
	html+= "	if (navigator.appName == 'Netscape') NS_h_plus=4;\n";
	html+= "	if (navigator.appName == 'Netscape') NS_w_plus=15;\n";
	html+= "	if (document.images[0]) window.resizeTo(document.images[0].width+10+NS_w_plus, document.images[0].height+25+NS_h_plus);\n";
	html+= "	self.focus();\n";
	html+= "}\n";
	html+= "function center_me() {\n";
	html+= "	if (navigator.appName == 'Netscape') NS_h_plus=9;\n";
	html+= "	if (navigator.appName == 'Netscape') NS_w_plus=15;\n";
	html+= "	self.moveTo((screen.width-(document.images[0].width+10+NS_w_plus))\/2,(screen.height-(document.images[0].height+25+NS_h_plus))\/2);\n";
	html+= "}\n";
	html+= "<\/script><title>"+title+"<\/title>\n";
	html+= "<\/head>\n";
	html+= "<body leftmargin=\"0\" topmargin=\"0\" rightmargin=\"0\" bottommargin=\"0\" onload=\"resize();center_me();\">\n";
	html+= "<img src=\""+pic+"\" border=\"0\"><\/body>\n";
	html+= "<\/html>";
	wnd.document.open();
	wnd.document.write(html);
	wnd.document.close();
}


function window_open(url, width, height)
{
	_date = new Date;
	wnd = window.open('','win'+_date.getTime(),'top=40,left=40,width='+width+',height='+height+',scrollbars=yes,menu=no,status=yes,resizable=no');
	wnd.focus();
	wnd.location = url;
}

function window_basket(url)
{
	_date = new Date;
	wnd = window.open('','basket_window','top=100,left=100,width=100,height=100,scrollbars=no,menu=no,status=no,resizable=no');
	wnd.focus();
	wnd.location = url;
}

function show_hide(id)
{
	document.getElementById(id).style.display = document.getElementById(id).style.display=="none" ? "block" : "none";
}
