var str = '';
var szovegek = new Array();
function init(){
str = '
';
return true;
}
function raise(obj){
obj.style.cursor = "pointer";
obj.style.zIndex = 2;
return true;
}
function sink(obj){
obj.style.zIndex = 0;
return true;
}
function dontShow(){
document.body.removeChild(document.getElementById("imgdiv"));
document.body.removeChild(document.getElementById("showdiv"));
return true;
}
function show(url){
var innerstr = "";
innerstr += "
";
innerstr += "
pic title:" + szovegek[url] + "
";
var imgdiv = document.createElement('div');
imgdiv.setAttribute("id", "imgdiv");
imgdiv.style.position = "fixed";
imgdiv.style.top = "10%";
imgdiv.style.width = "100%";
imgdiv.style.height = "90%";
imgdiv.style.zIndex = 4;
imgdiv.style.textAlign = "center";
imgdiv.innerHTML = innerstr;
var showdiv = document.createElement('div');
showdiv.setAttribute("id", "showdiv");
showdiv.style.position = "fixed";
showdiv.style.top = 0;
showdiv.style.left = 0;
showdiv.style.width = "100%";
showdiv.style.height = "100%";
showdiv.style.background = "#303030";
//opacity CSS standard
showdiv.style.opacity = 0.9;
//opacity for IE
showdiv.style.filter = "alpha(opacity = 90)";
showdiv.style.zIndex = 3;
document.body.appendChild(showdiv);
document.body.appendChild(imgdiv);
return true;
}
function addBlank(){
str += '
';
return true;
}
function addPic(url, altText){
str += '';
str += '
';
str += '
';
szovegek[url] = altText;
return true;
}
function displayIt(){
document.write(str);
return true;
}