function showimg(dep, id, img, sx, sy)
{
	document.getElementById('p_img_'+id).src = 'img.php?dep='+dep+'&img='+img+'&w=250';
	document.getElementById('imghref_'+id).href = "javascript: get_photo('"+dep+"', '"+img+"', "+sx+", "+sy+")";
}

function get_photo(dep, img, sx, sy)
{
	sx = sx+20;
	sy = sy+20;
	wnd = window.open("img/"+dep+"/"+img,"tdatawindow",
	"toolbar=no,location=no,directoties=no,"+
	"status=no,menubar=no,scrollbars=no,resizable=no,"+
	"width="+sx+","+"height="+sy+",left=0,top=0");
}

function flash (version, filename, name, width, height, wmode, bgcolor, menu, flashvars) {
	document.write("<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version="+version+"' width='"+width+"' height='"+height+"' id='"+name+"' align='middle'>");
	document.write("<param name='FlashVars' value='"+flashvars+"' />");
	document.write("<param name='allowScriptAccess' value='sameDomain' />");
	document.write("<param name='wmode' value='"+wmode+"' />");
	document.write("<param name='bgcolor' value='"+bgcolor+"' />");
	document.write("<param name='salign' value='lt' />");
	document.write("<param name='movie' value='"+filename+"' /><param name='menu' value='"+menu+"' /><param name='quality' value='high' /><embed src='"+filename+"' wmode='"+wmode+"' menu='"+menu+"' quality='high' FLashVars='"+flashvars+"' salign='lt' width='"+width+"' height='"+height+"' bgcolor='"+bgcolor+"' name='"+name+"' align='middle' allowScriptAccess='sameDomain' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' />");
	document.write("</object>");
}

function putIntoBasket(pid)
{
	document.getElementById('product_id').value = pid;
	document.getElementById('basket_form').submit();
}

function showMap(sMap, iWidth, iHeight)
{
	oWindow = window.open('/map.php?map='+sMap, 'wnd', 'resizable=0,width='+iWidth+',height='+(iHeight+40)+',scrollbars=0,location=0,toolbar=0,status=0,channelmode=0,fullscreen=0,directories=0');
	return false;
}