﻿function popup_image(url,width,height,show_scrbars)
{
	var name = url.replace("/", "_");
	name = name.replace(".", "_");
	name = name.replace("-", "_");
	
	var floater = window.open(url,name,"width="+width+",height="+height+",scrollbars="+show_scrbars+",toolbar=no,location=no,status=no,resizable=yes,screenX=60,screenY=50");
	floater.focus();
}

function popup_animation(url,width,height)
{
	var name = url.replace("/", "_");
	name = name.replace(".", "_");
	name = name.replace("-", "_");

	var w = parseInt(width) + 40;
	var h = parseInt(height) + 16 + 30; //16 - for flash slider control
	var params = "width="+w+",height="+h+",scrollbars=no,toolbar=no,location=no,status=no,resizable=yes,screenX=60,screenY=50";

	var floater = window.open(url,name,params);
	floater.focus();
}

function popup_m4v(url,width,height)
{
	var name = url.replace("/", "_");
	name = name.replace(".", "_");
	name = name.replace("-", "_");

	var w = parseInt(width);
	var h = parseInt(height);
	var params = "width="+w+",height="+h+",scrollbars=no,menubar=no,resizable=yes";

	var floater = window.open(url,name,params);
	floater.focus();
	return;
}

function resizeInnerTo(width,height)
{
}

