﻿



function divact (v,sx) {

var v= v;
var sx=sx;
if (v == 'off'){

var coulo = document.body.scrollTop
var boulo = document.body.offsetHeight;

	window.status='Interkriti Image Library.';
	document.body.style.backgroundColor = "#033569";
	topmenu.style.visibility = "visible";
	prlist.style.visibility = "visible";
	prpages.style.visibility = "visible";
	full.style.visibility = "hidden";
	full.style.background = "#000000";
	full.style.filter = "alpha(opacity=100)";
	full.style.opacity = "1";
	full.style.width = "0%";
	full.style.height = "0px";
	full2.style.height = "0px";
	var vi = "";
	document.getElementById('full2').innerHTML = vi;
}
else {
	//if(v.indexOf("gallery") == -1) {v= "/gallery/g"+v;}
	document.getElementById('full2').innerHTML = "<table width=100% height=100%><tr><td align=center><img src=\"/lout06/loading02.gif\"></td></tr></table>"
	topmenu.style.visibility = "hidden";
	prlist.style.visibility = "hidden";
	prpages.style.visibility = "hidden";
	full2.style.height = "100%";
	full.style.visibility = "visible";
	full.style.background = "#000000";
	document.body.style.backgroundColor = "#001133";
	var op =50;
	full.style.filter = "alpha(opacity="+op+")";
	op = op / 100;
	full.style.opacity = op;
	var coulo = document.body.scrollTop;
	var boulo = document.body.scrollHeight;
	full.style.width = "100%";
	full.style.height = boulo +500+ "px";
	full2.style.top =  coulo +10+ "px";

	var iwid = 0;
	var ihid = 0;
	var nh = 0;
	var nw = 0;
	window.status='Loading image from interkriti server- Please wait...';
	var t_image = "<img src=\""+v+"\" alt=\"click to return\"  id=\"dimage\" name=\"dimage\">";
	document.getElementById('full3').innerHTML = t_image;

	document.getElementById('dimage').onload = function(){

	window.status='Image Loaded. Click the screen to return.';
	w = document.body.clientWidth;
	h = document.body.clientHeight;

	iwid = document.getElementById('dimage').width;
	ihid = document.getElementById('dimage').height;

	if (iwid > w) {
		var nh = ihid * (w-10)/ iwid; var nw = w-10;
		var vif = "<span onclick=\"javascript:viewFull('"+v+"','"+sx+"')\" class=bve10 style=\"cursor:pointer; background:#fff2c2; color:#000000; padding:3px;\">\n";
		vif += "View full size</span>";
		}
	else if (ihid > h) {
		var nw = iwid * (h-30)/ ihid; var nh = h-30;
		var vif = "<span onclick=\"javascript:viewFull('"+v+"','"+sx+"')\" class=bve10 style=\"cursor:pointer; background:#fff2c2; color:#000000; padding:3px;\">\n";
		vif += "View full size</span>";
		}
	else {nh = ihid*1 ; nw = iwid*1 ; var vif = "";}
	


	the_image = "<img src=\""+v+"\" width=\""+nw+"\" height=\""+nh + "\" alt=\"click to return\"  id=\"nimage\" name=\"nimage\" style=\"border:2px #ffffff solid;\">";

	var pleft = (w - nw)/2;
	var vi = "<table cellpadding=0 width="+nw+" height="+nh+" style=\"position:absolute; z-index:105;left:"+pleft+"px;\" border=0>";

	vi += "<tr><td valign=top align=right><embed src=\"/gallery/interkriti.swf\" wmode=\"transparent\" quality=\"high\" bgcolor=\"#99CCFF\" width=\"160\" height=\"30\" name=\"interkriti\" align=\"middle\" allowScriptAccess=\"sameDomain\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" /></td></tr>";
	vi += "<tr><td  valign=bottom align=left style=\"font-family:tahoma; font-size:18px;\"><embed src=\"/gallery/medialib.swf\" wmode=\"transparent\" quality=\"high\" bgcolor=\"#99CCFF\" width=\"230\" height=\"30\" name=\"medialib\" align=\"middle\" allowScriptAccess=\"sameDomain\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" /></td></tr></table>";

	vi += "<div style=\"margin-bottom:1px;padding:0px; cursor:pointer; overflow:auto; color:#ffffff;\">" + the_image +"</div>";

	vi +="<table cellpadding=3 cellspacing=0 width="+nw+" align=center><tr><td><span onclick=\"javascript:divact('off')\" class=btr12 style=\"cursor:pointer; color:#f0f0f0; padding:2px;\">\n";
	vi +=sx;
	vi +="</span><td align=right>"+ vif + "<span onclick=\"javascript:divact('off')\" class=bve10 style=\"cursor:pointer; margin-left:3px; background:#ffcc00;border:1px #ffffff solid; color:#000000; padding:2px;\">&nbsp;&nbsp;X&nbsp;&nbsp;</span></td></tr></table>";

	document.getElementById('full2').innerHTML = vi;

	} //onload
	
}


}




function viewFull (v,sx) {
var v= v;
var sx=sx;
	document.getElementById('full2').innerHTML = "<table width=100% height=100%><tr><td align=center><img src=\"/lout06/loading02.gif\"></td></tr></table>"
	topmenu.style.visibility = "hidden";
	full2.style.height = "100%";
	full.style.visibility = "visible";
	full.style.background = "#000000";
	document.body.style.backgroundColor = "#001133";
	var op =50;
	full.style.filter = "alpha(opacity="+op+")";
	op = op / 100;
	full.style.opacity = op;
	var coulo = document.body.scrollTop;
	var boulo = document.body.scrollHeight;
	full.style.width = "100%";
	full.style.height = boulo +500+ "px";
	full2.style.top =  coulo+ "px";
	var iwid = 0;
	var ihid = 0;
	var nh = 0;
	var nw = 0;

	var t_image = "<img src=\""+v+"\" alt=\"click to return\"  id=\"dimage\" name=\"dimage\" style=\"border:0px #ffffff solid;\">";
	document.getElementById('full3').innerHTML = t_image;

	document.getElementById('dimage').onload = function(){

	w = document.body.clientWidth;
	h = document.body.clientHeight;

	iwid = document.getElementById('dimage').width;
	ihid = document.getElementById('dimage').height;
	var vif = "<span onclick=\"javascript:divact('"+v+"','"+sx+"')\" class=bve10 style=\"cursor:pointer; background:#fff2c2; color:#000000; padding:3px;\">\n";
	vif += "Fit to page</span>";
	the_image = "<img src=\""+v+"\" alt=\"click to return\"  id=\"nimage\" name=\"nimage\" style=\"border:0px #ffffff solid;\">";

	if (iwid > w) {
	nh = ihid*1 -15 ; nw = w-20;
	var vhei = ihid+20;
	var pleft = 0;
	}
	else {nh = ihid*1 ; nw = iwid*1 ;
	the_image = "<img src=\""+v+"\" width=\""+nw+"\" height=\""+nh + "\" alt=\"click to return\"  id=\"nimage\" name=\"nimage\" style=\"border:2px #ffffff solid;\">";
	var pleft = (w - nw)/2;
	}
	var vi = "<table cellpadding=0 width="+nw+" height="+nh+" style=\"position:absolute; z-index:105;left:"+pleft+"px;\" border=0 title=\"Click the screen to return\">";

	vi += "<tr><td valign=top align=right><embed src=\"/gallery/interkriti.swf\" wmode=\"transparent\" quality=\"high\" bgcolor=\"#99CCFF\" width=\"160\" height=\"30\" name=\"interkriti\" align=\"middle\" allowScriptAccess=\"sameDomain\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" /></td></tr>";
	vi += "<tr><td  valign=bottom align=left style=\"font-family:tahoma; font-size:18px;\"><embed src=\"/gallery/medialib.swf\" wmode=\"transparent\" quality=\"high\" bgcolor=\"#99CCFF\" width=\"230\" height=\"30\" name=\"medialib\" align=\"middle\" allowScriptAccess=\"sameDomain\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" /></td></tr></table>";
	if (iwid > w) {
	vi += "<div style=\"width:100%; height:"+vhei+"px; margin:0px;padding:0px; cursor:pointer; overflow:auto; color:#ffffff; background:#ffffff;\">" + the_image +"</div>";
 	}
	else {
	vi += "<div style=\"margin-bottom:1px;padding:0px;cursor:pointer;color:#ffffff;\">" + the_image +"</div>";
	}
	vi +="<table cellpadding=3 cellspacing=0 width="+nw+" align=center><tr><td><span onclick=\"javascript:divact('off')\" class=btr12 style=\"cursor:pointer; color:#f0f0f0; padding:2px;\">\n";
	vi +=sx;
	vi +="</span><td align=right>"+ vif + "<span onclick=\"javascript:divact('off')\" class=bve10 style=\"cursor:pointer; margin-left:3px; background:#ffcc00;border:1px #ffffff solid; color:#000000; padding:2px;\">&nbsp;&nbsp;X&nbsp;&nbsp;</span></td></tr></table>";

	document.getElementById('full2').innerHTML = vi;
	} //onload
	
}



