﻿document.write('<div id="lightBoxSection" style="position:absolute;z-index:100;"><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="400" height="600" id="LightBox" align="middle"><param name="allowScriptAccess" value="always" /><param name="allowFullScreen" value="false" /><param name="movie" value="/shared/media/swf/LightBox.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" /><param name="wmode" value="transparent" /><embed src="/shared/media/swf/LightBox.swf" wmode="transparent" quality="high" bgcolor="#ffffff" width="400" height="600" name="LightBox" align="middle" allowScriptAccess="always" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></object></div>');
var lightBoxSection = document.getElementById("lightBoxSection");
var swfElement = document.all ? document.getElementById("LightBox") : document.getElementsByName("LightBox")[0];
var defaultWidth = swfElement.width;
var defaultHeight = swfElement.height;
swfElement.width = 1;
swfElement.height = 1;

function drawLightBox(sender, params) {
	swfElement.width = defaultWidth;
	swfElement.height = defaultHeight;
	swfElement.reset();
	lightBoxSection.style.left = (getBrowserWidth() / 2) - (lightBoxSection.clientWidth / 2) + "px";
	lightBoxSection.style.top = ((getBrowserHeight() / 2) - (lightBoxSection.clientHeight / 2) + this.getScrollTop()) + "px";
	swfElement.draw(sender, "burn", params);
}

function closeLightBox() {
	swfElement.width = 1;
	swfElement.height = 1;
}

function getBrowserWidth() {  
	if (window.innerWidth) { return window.innerWidth; }  
	else if (document.documentElement && document.documentElement.clientWidth != 0) { return document.documentElement.clientWidth; }  
	else if (document.body ) { return document.body.clientWidth;}  
	return 0;  
}

function getBrowserHeight() {  
	if (window.innerHeight) { return window.innerHeight; }  
	else if (document.documentElement && document.documentElement.clientHeight != 0) { return document.documentElement.clientHeight; }  
	else if (document.body ) { return document.body.clientHeight;}  
	return 0;  
}

function getScrollTop() {
	return document.documentElement.scrollTop || document.body.scrollTop;
}