/* JavaScript file */

function Show(divid) {
	document.getElementById(divid).style.display="block";
}

function Hide(divid) {
	document.getElementById(divid).style.display="none";
}

flash 			= 1
var plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"] ) ?
navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;
if (plugin && parseInt(plugin.description.substring(plugin.description.indexOf(".")-1)) >=3) {
	flash = 1;
}

//l_img
function l_img (a) 
{ 
document.tool.src=a 
} 





//new window 
function OpenWindowImage (url,width,height) {
	wnd = null;
	var url = document.tool.src || '';
	var newurl = url.substring(0, url.length-4)+'_big.jpg';
	//alert(newurl);
	var width = width || 300;
	var height = height || 300;
	var size = 'width='+width+',height='+height;
	wnd = window.openwnd (newurl,'wfloat',size+'toolbar=no,menubar=no,scrollbars=no,status=no,resizable=no');
	wnd.document.open();
	wnd.document.open();
	wnd.document.write("<html><head>");
	wnd.document.write("<title>Увеличенное изображение</title></head><body topmargin=0 leftmargin=0 marginwidth=0 marginheight=0><img src='"+newurl+"'  border='0' vspace='0' hspace='0' id='photo'/><body></html>");
  wnd.document.close();
}