function openEZFlip(id,page)
{
//	var fileurl='http://growingtrends.wicow.com/start.asp?id=1&page=0';
	var sid = '1';
	var spage = '0';
	if (id) {
		sid = id;
	}
	if (page) {
		spage = page;
	}
	var fileurl='http://www.wicow.com/library/ezflip.asp?id='+ sid +'&page='+ spage;
	//fileurl='http://www.wicow.com/library/route.asp?id='+ sid +'&page='+ spage;
	if (document.all)
	{
		var xMax = screen.width, yMax = screen.height-16;
	}
	else
	{
		if (document.layers)
		{
			var xMax = window.outerWidth, yMax = window.outerHeight;
		}
		else
		{
			var xMax = 1024, yMax=800;
		}
	}
	var w = xMax-10;
	var h = yMax-12;
	w = screen.availWidth;
	h = screen.availHeight;
	var pop = window.open(fileurl,'','width='+w+',height='+h+', screenX=0,screenY=0,top=0,left=0,menubar=0,toolbar=0,status=no,resizable=no');
}

function resizeEZFlipWindow() {
	var xMax;
	var yMax;
	if (document.all) {
		xMax = screen.width;
		yMax = screen.height-16;
	}
	else {
		if (document.layers) {
			xMax = window.outerWidth;
			yMax = window.outerHeight;
		}
		else {
			xMax = 1024;
			yMax=800;
		}
	}
	xMax = screen.availWidth;
	yMax = screen.availHeight;
	moveTo(0,0);
	this.resizeTo(xMax,yMax); 
}

function pwOpenLatestEZFlip() {
	var sid = '{EC6F7EB4-7C3E-48DE-B758-7E66C55FB45A}';
	var fileurl='http://www.wicow.com/library/ezflip.asp?id='+ sid;
	if (document.all)
	{
		var xMax = screen.width, yMax = screen.height-16;
	}
	else
	{
		if (document.layers)
		{
			var xMax = window.outerWidth, yMax = window.outerHeight;
		}
		else
		{
			var xMax = 1024, yMax=800;
		}
	}
	var w = xMax-10;
	var h = yMax-12;
	var pop = window.open(fileurl,'','width='+w+',height='+h+', screenX=0,screenY=0,top=0,left=0,menubar=0,toolbar=0,status=no,resizable=no');		
}
