function openTxt(pgName, winWidth, winHeight, scroll) {
txtWin = window.open(pgName,"txtWindow","width="+winWidth+",height="+winHeight+", scrollbars="+scroll+", screenX=50, screenY=200", status="no");
txtWin.focus();
}

var newWin = null;

function openWin(imageName,imageWidth,imageHeight,alt) {
	if ((parseInt(navigator.appVersion) >= 4 )) {
       		 xposition = (screen.width - imageWidth) / 2;
        		yposition = (screen.height - imageHeight) / 2;
   	}

	if (newWin != null && !newWin.closed) {
		newWin.close();
	}
	newWin = open("","newWindow","width="+imageWidth+",height="+imageHeight+", screenX=0,screenY="+yposition+",left=500,top="+yposition);
	newWin.document.open();
	newWin.document.write('<HTML><TITLE>'+alt+'</TITLE><BODY bgcolor="#FFFFFF" LEFTMARGIN="0" TOPMARGIN="0" MARGINHEIGHT="0" MARGINWIDTH="0">');
	newWin.document.write('<IMG SRC='+imageName+' WIDTH='+imageWidth+' HEIGHT='+imageHeight+' ALT=\"'+alt+'\">');
	newWin.document.write('</BODY></HTML>');
	newWin.document.close();
	newWin.focus();
}

function flash() {
	flashWin = window.open("","flashWindow","width=188,height=5,screenX=10,screenY=40,left=10,top=40,titlebar=0,menubar=0,status=0,resizeable=0");
	flashWin.document.open();
	flashWin.document.write('<HTML><TITLE>Cyanna.gr | Sampler</TITLE><BODY bgcolor="#000000" LEFTMARGIN="0" TOPMARGIN="0" MARGINHEIGHT="0" MARGINWIDTH="0">');
	flashWin.document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"');
	flashWin.document.write('codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0"');
	flashWin.document.write('width="188" height="16" hspace="0" vspace="0" align="top">');
	flashWin.document.write('<param name=movie value="flash/player.swf">');
	flashWin.document.write('<param name=quality value=high><param name="BGCOLOR" value="#000000">');
	flashWin.document.write('<embed src="flash/player.swf" quality=high');
	flashWin.document.write('pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"');
	flashWin.document.write('type="application/x-shockwave-flash" width="188" height="16" hspace="0" vspace="0"');
	flashWin.document.write('align="top" bgcolor="#000000">');
	flashWin.document.write('</embed></object><br><center><img src="press/_CYANNA_IMG1.jpg"></center>');
	flashWin.document.write('</BODY></HTML>');
	flashWin.document.close();
	flashWin.focus();
}

function MM_callJS(jsStr) { //v2.0
  return eval(jsStr)
}