// config

// fade background
var fade2black = document.createElement("div");
fade2black.id = "fade2black";
fade2black.style.position = "fixed";
fade2black.style.zIndex = "300";
fade2black.style.display = "none";
fade2black.style.top = "0px";
fade2black.style.left = "0px";
fade2black.style.height = "100%";
fade2black.style.width = "100%";
fade2black.style.backgroundColor = "#5A5A5C";
fade2black.style.opacity = "0";
fade2black.style.filter = "alpha(opacity=0)";

// innner div
var blocker = document.createElement("div");
blocker.id = "blocker";
blocker.align = "center"
blocker.style.position = "absolute";
blocker.style.zIndex = "301";
blocker.style.height = "100%";
blocker.style.width = "100%";
blocker.style.top = "0px";
blocker.style.left = "0px";
blocker.style.display = "none";

// inner html
var ihtml = "";
ihtml += '<table id="popup2show" class="{innerCSSclass}" cellpadding="0" cellspacing="10" border="0" style="margin-top:{margin_top}px;">';
ihtml += '	<tr>';
ihtml += '		<td style="padding:10px; background-color:#FBFBFB;">';
ihtml += '			<table cellpadding="0" cellspacing="0" border="0" width="100%" class="{innerCSSclass}">';
ihtml += '				<tr>';
ihtml += '					<td align="right"><img src="VAImageBox/close.gif" alt="{text_Close}" title="{text_Close}" style="cursor:pointer;height:20px;width:20px;border:0px;" type="image" onClick="close_gallery(); return false;"><br>&nbsp;</td>';
ihtml += 				'</tr>';
ihtml += '			</table>';
ihtml += '			<table cellpadding="0" cellspacing="0" border="0" width="100%" class="{innerCSSclass}">';
ihtml += '				<tr>';
ihtml += '					<td style="background-image:url(VAImageBox/loading.gif); background-position:center center; background-repeat:no-repeat; minwidth:100px; minheight:100px;"><img src="" border="0" id="gallery_image" title="{title}" style="display:none;"></td>';
ihtml += '					<td width="140" style="padding:6px; background-color:#f5f5f5;" valign="top" align="left">{title}</td>';
ihtml += '				</tr>';
ihtml += 			'</table>';
//ihtml += '			<br><a href="{imgurl}" target="_blank">{imgname}</a><br>';
ihtml += 			'<br><br>';
ihtml += '			<table cellpadding="0" cellspacing="0" border="0" width="100%" class="{innerCSSclass}">';
ihtml += '				<tr>';
ihtml += '					<td width="33%" align="left">&nbsp;{prev}</td>';
ihtml += '					<td width="34%" align="center">{galinfo}</td>'
ihtml += '					<td align="right" width="33%">{next}</td>';
ihtml += '				</tr>';
ihtml += '			</table>';
ihtml += '		</td>';
ihtml += '	</tr>';
ihtml += '</table>';

// other stuff
var path_thumbnail = "image.php?src={image}&w=220&h=220" // {image} will be replaced with the path
var path_image = "image.php?src={image}" // {image} will be replaced with the path
var innerCSSclass = "VAGalleryBox";
var text_Weiter = "n&auml;chstes Bild &gt;";
var text_Zurueck = "&lt; vorheriges Bild";
var text_Bild = "Bild";
var text_von = "von";
var text_Close = "Schlie&szlig;en";
var margin_top = 100;
var base_href = "/portal/"; // !important! absolute path to root dir without hostname. for example: "/website/"

//test function if config is included
function galleryConfigIncluded() { return true; }
