function enlarge(src, w, h) {
var winParam = 'scrollbars=no, width=' + w + ', height=' + h + ', location=no, toolbar=no, directories=no, status=no ,menubar=no, resizable=no, screenX=0,screenY=0, top=0, left=0';    
   var wer = Math.random();
  wer = wer*10000;
  wer = Math.round(wer); 
  
  var name = 'nm' + wer;
  subs=window.open('', name, winParam);
 
  
  subs.document.write('<html>' + 
'<head>' + 
'<title>Bacardi Club Украина</title><meta http-equiv="content-type" content="text/html; charset=utf-8" />' + 
'</head>' +
'<body bgcolor="#ffffff" marginwidth=0 marginheight=0 topmargin=0 leftmargin=0 link="#DF671C" vlink="#DF671C" alink="#DF671C">' +
'<img src="'  + src + '" border="0"><br>' + 
'</body>' +
'</html>')
		  }	


function renderMovie(file) {
if (file!='') {
    var leftPos = 100;
    var topPos = 100;
    var nWindow = new Object();
	txt1='<html><head><title>ABM</title><meta http-equiv="content-type" content="text/html; charset=utf-8" /><link href="http://www.avm.kiev.ua/css/main.css" rel="stylesheet" type="text/css" /></head>';
    txt1+='<body><table><tr><td style="background:url(http://www.avm.kiev.ua/i/popuplogo.gif) no-repeat;"><div style="float:right;padding:28px 17px 8px 17px"><a href="javascript:self.close()">Закрыть окно</a></div><br>';
	txt1=txt1+'<object classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" codebase=http://www.apple.com/qtactivex/qtplugin.cab width=480 height=275 align=top>';
    txt1=txt1+'<param name="SRC" value="'+file+'"><param name="AUTOPLAY" value=true><param name="CONTROLLER" value=true>';
	txt1=txt1+'<embed src="'+file+'" width=480 height=275 align=top autoplay=true bgcolor=000000 controller=true pluginspage="http://www.apple.com/quicktime/download/"></embed> </object>';
	txt1+='<br><div style="padding:10px 10px 0px 17px" class="fs11">&copy; 2007. ABM</div></td></tr></table></body></html>';
    nWindow = window.open('show_movie.htm', 'ShowMovie','width=480,height=360,scrollbars=yes,resizable=no,statusbar=no,location=no,titlebar=0,top=' + topPos + ',left=' + leftPos);
    nWindow.document.write(txt1);
    }
else {
    alert('Your browser settings not allow to run scripts or version of your browser is old.');
    }
}

function showMovie(file) {
if (file!='') {
    var leftPos = 100;
    var topPos = 100;
    var nWindow = new Object();

    var browser_name = navigator.appName;
    var MS=navigator.appVersion.indexOf("MSIE")
    var browser_version = parseInt(navigator.appVersion.substring(MS+5, MS+6))
    var show_pannel = 'true';

    if (browser_name == "Microsoft Internet Explorer" && browser_version >=6)
       show_pannel = 'false'; 


	txt1='<html><head><title>ABM</title><meta http-equiv="content-type" content="text/html; charset=utf-8" /><link href="http://www.avm.kiev.ua/css/main.css" rel="stylesheet" type="text/css" /></head>';
    txt1+='<body><table><tr><td style="background:url(http://www.avm.kiev.ua/i/popuplogo.gif) no-repeat;"><div style="float:right;padding:28px 17px 8px 17px"><a href="javascript:self.close()">Закрыть окно</a></div><p><div class="video-player">';
	txt1=txt1+"<object width='351' height='290'><param value='"+file+"' name='src'/><param value='ImageWindow' name='CONTROLS'/><param value='true' name='autostart'/><param value='"+file+"' name='CONSOLE'/><embed width='351' height='290' border='0' align='top' autostart='true' console='"+file+"' controls='ImageWindow' nojava='false' type='audio/x-pn-realaudio-plugin' src='"+file+"'/></object><br>";
    if(show_pannel == 'true') 
		txt1=txt1+"<object width='351' height='30' id='"+file+"'><param value='"+file+"' name='SRC'/><param value='controlpanel' name='CONTROLS'/><param value='"+file+"' name='CONSOLE'/><param value='true' name='autostart'/><embed width='351' height='30' align='middle' console='"+file+"' controls='controlpanel' nojava='false' type='audio/x-pn-realaudio-plugin' src='"+file+"'></embed></object>";
	txt1+='</div><div style="padding:3px 10px 0px 10px" class="fs11">&copy; 2007. ABM</div></td></tr></table></body></html>';
    nWindow = window.open('show_movie.htm', 'ShowMovie','width=351,height=390,scrollbars=no,resizable=no,statusbar=no,location=no,titlebar=0,top=' + topPos + ',left=' + leftPos);
    nWindow.document.write(txt1);
    }
else {
    alert('Your browser settings not allow to run scripts or version of your browser is old.');
    }
}

function showBill() {
    var leftPos = 100;
    var topPos = 100;
    var nWindow = new Object();

    var browser_name = navigator.appName;
    var MS=navigator.appVersion.indexOf("MSIE")
    var browser_version = parseInt(navigator.appVersion.substring(MS+5, MS+6))
    var show_pannel = 'true';

    if (browser_name == "Microsoft Internet Explorer" && browser_version >=6)
       show_pannel = 'false'; 


	txt1='<html><head><title>ABM</title><meta http-equiv="content-type" content="text/html; charset=utf-8" /><link href="http://www.avm.kiev.ua/css/main.css" rel="stylesheet" type="text/css" /></head>';
    txt1+='<body><div style="float:right;padding:28px 17px 8px 17px"><a href="javascript:self.close()">???°?^(o)N~?N~?N~?N~? ?3/4?^(o)?1/2?3/4</a></div>';
	txt1=txt1+"<div id='billText'><table background='receipt.jpg' width='1197' height='841'><tr><td align='left' valign='top'><table><tr><td height='75' colspan=4 >&nbsp;</td></tr><tr><td width='730'>&nbsp;</td><td width='160' align='center'>45</td><td width='60'></td><td width='190' align='center'>21.12.2010</td></tr></table><br><table height='200'><tr ><td colspan=2  height='150'>&nbsp;</td></tr><tr><td width='280'>&nbsp;</td><td width='860'>ÎÎÎ &quot;êàðêåð âàîóåíî àïîêïë&quot;</td></tr></table>";
	txt1=txt1+"<table height='186'><tr ><td colspan=2  height='40'>&nbsp;</td></tr><tr><td width='899' height='58'>&nbsp;</td> <td width='244' align='right'>456.00</td></tr><tr ><td colspan=2  height='40'>&nbsp;</td></tr><tr><td width='899'>&nbsp;</td> <td width='244' align='right'>456.00</td></tr></table>	</td></tr> </table></div> ";	
	txt1+='</div><div style="padding:3px 10px 0px 10px" class="fs11">&copy; 2007. ABM</div></td></tr></table></body></html>';
    nWindow = window.open('show_bill.htm', 'ShowMovie','width=351,height=390,scrollbars=no,resizable=no,statusbar=no,location=no,titlebar=0,top=' + topPos + ',left=' + leftPos);
    nWindow.document.write(txt1);

}


