function show_info(lnk, param){
    runt = "toolbar=0,location=0,directories=0,status=0,menubar=1,resizable=1,scrollbars=1," + param;
    var iwin = window.open(lnk, 'info1', runt);
    iwin.focus();
    }


function photo_win(img_path,img_alt){
var str, StrBody;

	str = 'menubar=0,resizable=no,width=100,height=100,screenX=100,screenY=100,left=10,top=10,scrollbars=0';
	
	if (document.all){ 
		StrBody = '<body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0" bgcolor="White" onblur="self.window.close();">';
	} else {
		StrBody = '<body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0" bgcolor="White" onblur="self.window.close();">';
	}
		
	var win_op = window.open('','show', str);
	win_op.document.open();
	win_op.document.writeln('<html>');
	win_op.document.writeln('<head>');
	win_op.document.writeln('<title>' + img_alt + '</title>');
	win_op.document.writeln('<script>');
	win_op.document.writeln('function resize_img() {');
	win_op.document.writeln('var width = document.image.width;');
	win_op.document.writeln('var height = document.image.height;');
	win_op.document.writeln('if (!(document.all)){ self.resizeTo(width,height); } else { self.resizeTo((width+12),(height + 31));');
	win_op.document.writeln(' }');
	win_op.document.writeln('}');
	win_op.document.writeln('</script>');	
	win_op.document.writeln('</head>');
	win_op.document.writeln(StrBody);
	win_op.document.writeln('<img name="image" src='+ img_path + ' border=0 alt="'+img_alt+'" onload="resize_img();">');
	win_op.document.writeln('</body>');
	win_op.document.writeln('</html>');		
	win_op.document.close();
}


function open_flash(width, height, src, alt){
    win_width = !(document.all) ? width+9 : width;
    win_height = !(document.all) ? height+69+20 : height+20;
    param = "menubar=0, toolbar=0,location=0,directories=0,status=0,resizable=1,scrollbars=0, top=20, left=20, width="+win_width+", height="+win_height;
    var win=window.open('','win',param);   
    win.focus();
    win.document.write('<html><head><title>'+alt+'</title></head><body marginheight=0 marginwidth="0" bottommargin="0" leftmargin="0" rightmargin="0" topmargin="0" bgcolor="#ffffff">')
    win.document.write('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" WIDTH="'+width+'" HEIGHT="'+height+'"><PARAM NAME=movie VALUE="'+src+'"><PARAM NAME=quality VALUE=high><EMBED src="'+src+'" quality=high bgcolor=#ffffff WIDTH="'+width+'" HEIGHT="'+height+'" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED></OBJECT>');
   
   // win.document.write('<a href="javascript:window.opener.location.href=\'/ru/about/territory/pav1/\'; void(0)">изм. сылку в родит. окне</a>');
   win.document.write('</body></html>');  
   win.document.close();
}

function change_theme(lang) {
   var theme = document.getElementById('theme4');
   if(lang == 'Show') {
    self.location.href = "/en/exhibitions/search/index.php?theme4=" + theme.value + "&action4=search";
   }else{
    self.location.href = "/ru/exhibitions/search2/index.php?theme4=" + theme.value + "&action4=search";
   }
   
   //alert(theme.value);
       
}
