sp_left = 100; sp_top = 100; max_width  = 640+20; max_height = 480+20;
if (parseInt(navigator.appVersion.charAt(0))>=4){
var isNN=(navigator.appName=="Netscape")?1:0;
var isIE=(navigator.appName.indexOf("Microsoft")!=-1)?1:0;}
var optNN='scrollbars=no,width='+max_width+',height='+max_height+',left='+sp_left+',top='+sp_top;
var optIE6='scrollbars=no,width=150,height=100,left='+sp_left+',top='+sp_top+',resizable=yes';
var optIE='scrollbars=no,width=150,height=100,left='+sp_left+',top='+sp_top;

function showPict(BeeldURL, info, pictures){
var strPictures = pictures;
var split = pictures.split("@");
var intAantalPics = split.length-1;
var intTeller = 0;
var intPicGeklikt = 0;

if (isNN){imgWin=window.open('about:blank','',optNN);}
if (navigator.appVersion.indexOf("7.")!=-1){
    if (isIE){imgWin=window.open('about:blank','',optIE);}}
else{
    if (isIE){imgWin=window.open('about:blank','',optIE6);}}
with (imgWin.document){
writeln('<html><head><title>' + info + '</title><META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE"><meta http-equiv="imagetoolbar" content="no"><style>body{margin:0px;}</style>');
writeln('<SC'+'RIPT>');
// Check Start Picture
while(intTeller<intAantalPics){
    if(split[intTeller] == BeeldURL)
    {
        intPicGeklikt = intTeller;
        intTeller = intAantalPics;
    }
intTeller = intTeller + 1;
}
writeln('</SC'+'RIPT>');
writeln('<SC'+'RIPT>');
writeln('document.onkeypress = function esc(e) {');
writeln('if(typeof(e) == "undefined") { e=event; }');
writeln('if (e.keyCode == 27) {');
writeln('self.close();');
writeln('}');
writeln('}');
writeln('var isNN,isIE;');
writeln('if (parseInt(navigator.appVersion.charAt(0))>=4){');
writeln('isNN=(navigator.appName=="Netscape")?1:0;');
writeln('isIE=(navigator.appName.indexOf("Microsoft")!=-1)?1:0;}');
writeln('rotator=true;'); 	// needed for initialising the rotator
writeln('n=' + intPicGeklikt + ';');	// initialising the first image 
// The images, add and delete yours here...
writeln('theImages="' + strPictures + '".split("@");');
writeln('allImages=theImages.length-1;');
// Creating the needed image objects => preloading
writeln('imgObjects=new Array();');
writeln('for (i in theImages){');
writeln('imgObjects[i]=new Image();');
writeln('imgObjects[i].src=theImages[i];');
writeln('}');
writeln('function rotate(srcimage,direction){');
writeln('n=n+direction;');
writeln('if (n==allImages) n=0;');
writeln('if (n==-1) n=allImages-1;');
writeln('document.images["SLIDESIMG"].src=imgObjects[n].src;');
writeln('aanpassen_aan_beeldgrootte();');
writeln('}');
// Change Window Size
writeln('function aanpassen_aan_beeldgrootte(){');
writeln('if (isIE){');
writeln('width = document.images["SLIDESIMG"].width;');
writeln('height = document.images["SLIDESIMG"].height;');
writeln('window.innerwidth=width;');
if (navigator.appVersion.indexOf("7.")!=-1){
    if (isIE){writeln('window.innerheight=height+80;');}}
else{
    if (isIE){
	writeln('window.innerheight=height+110;');}}
writeln('window.resizeTo(window.innerwidth,window.innerheight);}');
writeln('if (isNN){');       
writeln('window.innerWidth=document.images["SLIDESIMG"].width;');
writeln('window.innerHeight=document.images["SLIDESIMG"].height+60;}}');
writeln('</sc'+'ript>');
writeln('<link href="http://www.charming.be/css/mainStyle.css" rel="stylesheet" type="text/css" />');
writeln('<STYLE type="text/css">');
writeln('<!--');
writeln('Body {background-color: FFFFFF;}');
writeln('-->');
writeln('</STYLE>');
writeln('</head><body scroll="no" onload="aanpassen_aan_beeldgrootte();self.focus();window.status=\''+info+'\';">');
writeln('<table width="100%" cellpadding="0" cellspacing="0" border="0">');
writeln('<tr><td align="center" colspan="2"><table cellpadding="0" cellspacing="0" border="0"><tr><td align="right" width="50%" class="hSpace20"><a href="javascript:rotate(SLIDESIMG,-1);"><</a>&nbsp;&nbsp;<a href="javascript:rotate(SLIDESIMG,-1);">Retour</a>&nbsp;</td><td width="50%">&nbsp;<a href="javascript:rotate(SLIDESIMG,1);">Suite</a>&nbsp;&nbsp;<a href="javascript:rotate(SLIDESIMG,1);">></a></td></tr>');
writeln('<tr><td align="center" colspan="2"><img name="SLIDESIMG" src="'+BeeldURL+'" style="display:block" alt="'+info+'"></td></tr>');
writeln('<tr><td align="center" valign="bottom" colspan="2" ><table cellpadding="0" cellspacing="0" border="0"><tr><td class="space25" align="left"><img src="http://www.holidayline.be/images/arrowIcon.gif" alt="" title="" /></td><td class="hSpace20"><a href="javascript:window.close();" >Fermez</a></td></tr></table></td>');
writeln('</tr></table>');
writeln('</body></html>');
close(); 
}

return false;
}

