/*
	Simple popup script Victor Nils has done for playing swf in his indexhibit site.
	http://victornils.com.br
	http://indexhibit.org
*/

function PopupSwf(swfdescription,swfurl,swfwidth,swfheight) {
titre=swfdescription+" at: www.victornils.com.br";
LeftPosition=(screen.width)?(screen.width-swfwidth)/2:100;
TopPosition=(screen.height)?(screen.height-swfheight)/2:100;
swfwindowheight = parseInt(swfheight)+50;
w=open("",'about:blank','width='+(swfwidth+20)+',height='+swfwindowheight+',top='+TopPosition+',left='+LeftPosition+',location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no');
w.document.write("<HTML><HEAD><TITLE>"+titre+"</TITLE></HEAD>");
w.document.write("<link rel='stylesheet' href='http://www.victornils.com.br/indexhibit/ndxz-studio/site/sample/style.css' type='text/css' />");
/*w.document.write("<link rel=stylesheet' href='http://www.victornils.com.br/ndxz-studio/site/sample/style.css' type='text/css' />");*/
w.document.write("</HEAD>");
w.document.write("<BODY onblur='window.close()' onclick='window.close()' style='margin:0 0 0 10px;' >");
w.document.write("");
w.document.write("<h4>"+swfdescription+"</h4>");
w.document.write("<object type='application/x-shockwave-flash' data='"+swfurl+"' width='"+swfwidth+"' height='"+swfheight+"'><param name='movie' value='"+swfurl+"' /><div style='width:"+swfwidth+"px; height:"+swfheight+"px;'><a href='http://www.adobe.com/go/gntray_dl_getflashplayer'>Get Flash player to view this content</a></div></object>");
w.document.write("</BODY></HTML>");
w.document.close();
}

