var run_debug=0;

function Dumper(obj)
{
	if(!run_debug)
	{
		var p="";
//		for(i in obj) p+=i+"\t->\t"+typeof(i)+"\n";
		for(i in obj) p+=(isNaN(parseInt(i)))?"\t"+i+"\t\t= "+eval("obj."+i)+"\n":"\t"+i+"\n";
//			w=window.open();
//		w.document.writeln("<pre>"+p+"</pre>");
		document.writeln("<pre>"+p+"</pre>");
//		alert(p);
		run_debug=1;
	}
}

var FlashMode = false;

if (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"] && navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin) 
{

	if (navigator.plugins && navigator.plugins["Shockwave Flash"] && (versionIndex = navigator.plugins["Shockwave Flash"].description.indexOf(".")) != - 1) {

		var versionString = navigator.plugins["Shockwave Flash"].description.substring(versionIndex-1, versionIndex);
		versionIndex = parseInt( versionString );
		if ( versionIndex >= 5 ) {FlashMode = true;}
	}
}

else if (navigator.userAgent && navigator.userAgent.indexOf("MSIE")>=0 && (navigator.userAgent.indexOf("Windows 95")>=0 || navigator.userAgent.indexOf("Windows 98")>=0 || navigator.userAgent.indexOf("Windows NT")>=0 ))
{
	document.write('<SCRIPT LANGUAGE=VBScript\>\n');
	document.write('on error resume next \n');
	document.write('FlashMode = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.5")))\n');
	document.write('</SCRIPT\> \n');
}
//var FlashMode = false;

function ChImg(img_destination,img_source)
{
	if(img_destination&&img_source) img_destination.src=img_source.src;
}

function ChangeImage(img)
{
	if(img)
	{
		i=img.src.lastIndexOf("/");
		j=img.src.indexOf("-",i);
		img_name=(img.src.toLowerCase()).substring(i+1,j);
		if((img.src).indexOf("-out.",i)!=-1) ChImg(img,eval(img_name+"_over"));
		else ChImg(img,eval(img_name+"_out"));
	}
}

function LoadFlash(flash,image,width,height,alt,url)
{
//	var FlashMode=false;
	if(FlashMode)
	{
		document.writeln('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://active.macromedia.com/flash4/cabs/swflash.cab#version=4,0,0,0" id="'+flash+'" width="'+width+'" height="'+height+'">');
		document.writeln('<param name="movie" value="/_flash/'+flash+'">');
		document.writeln('<param name="wmode" value="opaque" />');
		document.writeln('<param name="quality" value="high">');
		document.writeln('<param name="base" value="">');
		document.writeln('<param name="bgcolor" value="#FFFFFF">');
		document.writeln('<embed name="'+flash+'" src="/_flash/'+flash+'" quality="high" base="" bgcolor="#FFFFFF" width="'+width+'" height="'+height+'" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">');
		document.writeln('</embed>');
		document.writeln('</object>');
	}
	else
	{
		if(url) document.write('<a href="'+url+'">');
		document.write('<img src="/_img/'+image+'" width="'+width+'" height="'+height+'" border="0" alt="'+alt+'" />');
		if(url) document.write('</a>');
	}
}

var MSG = new Array();
function MESSAGE()
{
	for(i=0;i<MSG.length;i++)
	{
		if(MSG[i]) alert(MSG[i][1].toUpperCase()+"\n\n"+MSG[i][2]);
	}
}

//ÀÂÒÎÇÀÏÓÑÊ ïîñëå çàãðóçêè
window.onload=function()
{
	MESSAGE();
}

