function popup(id,width,height){
    if(window.innerWidth){
	LeftPosition =(window.innerWidth-width)/2;
	TopPosition =((window.innerHeight-height)/2);
    }
    else{
	LeftPosition =(parseInt(window.screen.width)-	width)/2;
	TopPosition=((parseInt(window.screen.height)-height)/2);
    }
    attr = 'resizable=no,scrollbars=no,location=no,toolbar=no,width=' + width + ',height=' +
	height + ',screenX=300,screenY=200,left=' + LeftPosition + ',top=' +
	TopPosition + '';
    popWin=open('', 'video', attr);
    popWin.document.write('<head><title>www.ines-dv.ru</title></head>');
    popWin.document.write('<body>');
    popWin.document.write('<object width="425" height="344">');
    popWin.document.write(' <param name="movie" value="http://www.youtube.com/v/'+ id +'&hl=ru&fs=1&color2=0x07ff01&color1=0x0e9301&rel=0&autoplay=1&border=1"></param>');
    popWin.document.write('<param name="allowFullScreen" value="true"></param>');
    popWin.document.write('<param name="allowscriptaccess" value="always"></param>');
    popWin.document.write('<embed src="http://www.youtube.com/v/'+ id +'&hl=ru&fs=1&color2=0x07ff01&color1=0x0e9301&rel=0&autoplay=1&border=1"');
    popWin.document.write('type="application/x-shockwave-flash"');
    popWin.document.write('allowscriptaccess="always" allowfullscreen="true"');
    popWin.document.write('width="425" height="344">');
    popWin.document.write('</embed>');
    popWin.document.write('</object>');
    popWin.document.write('</body></html>');
}

