
function popupVideos(url,width,height) {
	orgwinheight = parseFloat(height);
	orgwinwidth =  parseFloat(width);
	winheight = parseFloat(height) + 30;
	winwidth =  parseFloat(width) + 30;

	newWin=window.open('', 'popupwin','resizable=0,HEIGHT='+winheight+',WIDTH='+winwidth+', scrollbars=0', true);
	newWin.document.write('<html>\n');
	newWin.document.write('<head>\n');
	newWin.document.write('<title>Video PopUp</title>');
	newWin.document.write('<script language="javascript" type="text/javascript">\n<!--\n');
	newWin.document.write('var arrTemp=self.location.href.split("?");\n');
	newWin.document.write('var picUrl = (arrTemp.length>1)?arrTemp[1]:"";\n');
	newWin.document.write('var NS = (navigator.appName=="Netscape")?true:false;\n');
	newWin.document.write('function fitMedia() {\n');
	newWin.document.write('	iWidth = (NS)?window.innerWidth:document.body.clientWidth;\n');
	newWin.document.write('	iHeight = (NS)?window.innerHeight:document.body.clientHeight;\n');
	newWin.document.write('	iWidth = '+winwidth+' - iWidth;\n');
	newWin.document.write('	iHeight = '+winheight+' - iHeight;\n');
	newWin.document.write('	window.resizeBy(iWidth, iHeight);\n');
	newWin.document.write('	var posLeft = (window.screen.width - '+winwidth+')/2;\n');
	newWin.document.write('	window.moveTo(posLeft,80);\n');
	newWin.document.write('};\n');
	newWin.document.write('-->\n</script>\n');
	newWin.document.write('<style>html,body{height:100%;padding:0px;}</style>\n');
	newWin.document.write('</head>\n');
	newWin.document.write('<body style="background-color:white; margin:0px; padding:0px;">\n');
	newWin.document.write('<table border=0 style="height:100%; width:100%; text-align:center;"><tr><td>\n');
	
        newWin.document.write( '<OBJECT id="VIDEO" CLASSID="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6" type="application/x-oleobject" width="'+orgwinwidth+'" height="'+orgwinheight+'"> \n');
        newWin.document.write( '<PARAM NAME="URL" VALUE="'+url+'"> \n');
        newWin.document.write( '<PARAM NAME="enabled" VALUE="True"> \n');
        newWin.document.write( '<PARAM NAME="AutoStart" VALUE="True"> \n');
        newWin.document.write( '<PARAM name="PlayCount" value="2"> \n');
        newWin.document.write( '<PARAM name="Volume" value="30"> \n');
        newWin.document.write( '<PARAM NAME="balance" VALUE="0"> \n');
        newWin.document.write( '<PARAM NAME="Rate" VALUE="1.0"> \n');
        newWin.document.write( '<PARAM NAME="Mute" VALUE="False"> \n');
        newWin.document.write( '<PARAM NAME="fullScreen" VALUE="False"> \n');
        newWin.document.write( '<PARAM name="uiMode" value="full"> \n');
        newWin.document.write( '</OBJECT> \n');	newWin.document.write('</td>\n</tr>\n</table>\n</body>\n<script language="javascript" type="text/javascript">\n<!--\n');
	
        newWin.document.write('fitMedia();\n');
	newWin.document.write('-->\n</script>\n');	
	newWin.document.write('</html>');
	newWin.document.close()
	newWin.focus();
}






   

   

   

   

   

   

   

   





