if(typeof estik == "undefined") {
	estik = false;
	}
	
if(typeof fullscreen == "undefined") {
	fullscreen = true;
	}
	
if(typeof border == "undefined") {
	border = false;
	}
	
if(typeof pageid == "undefined") {
	pageid = 1;
	}
	
if(typeof borderColor == "undefined") {
	borderColor = 0;
	}
	
if(typeof launchURL == "undefined") {
	launchURL = null;
	}

function FullscreenWindow(gotoHTML){
	if (window.screen){
		var hori=screen.availWidth;
		var verti=screen.availHeight;

	window.open(gotoHTML,'zmag'+ Math.round(1099999999*Math.random()), 'width='+hori+',height='+verti+',fullscreen=1,channelmode=1, scrollbars=1,titlebar=1,left='+(0)+',top='+(0));
}
}
launchURL = escape(launchURL);

var mag_vars = '?magid='+id+'&__width='+width+'&estik='+estik+'&fullscreen='+fullscreen+'&_border='+border+'&launchURL='+launchURL+'&pageid='+pageid+'&_borderColor='+borderColor;

document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="'+(width+1)+'" height="'+height+'">\n');
document.write('<param name="movie" value="http://viewer.zmags.com/gfx/r_singleFront.swf'+mag_vars+'" />\n');
document.write('<param name="quality" value="high" />\n');
document.write('<param name="menu" value="false" />\n');
document.write('<param name="wmode" value="transparent" />\n');
document.write('<param name="bgcolor" value="'+bgcolor+'" />\n');
document.write('<embed src="http://viewer.zmags.com/gfx/r_singleFront.swf'+mag_vars+'" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="'+(width+1)+'" height="'+height+'"></embed></object>\n');
