﻿function showAnimationPopup(file, width, height)
{
	var popupWidth;
	var popupHeight;

    if(width == undefined)
    {
        width = 1260;
    }
    if(height == undefined)
    {
        height = 760;
    }

	if(screen.width > width + 20 || screen.height > height + 40)
	{
		popupWidth = width;
		popupHeight = height;
	}
	else
	{
		popupWidth = screen.width;
		popupHeight = screen.height;
	}
    window.open(file,'name','width=' + popupWidth + ', height=' + popupHeight + ',location=no,status=no,menubar=no,toolbar=no,directories=no,channelmode=no,resizable=no,dependent=yes,scrollbars=no');
}
