if (parent.frames.length > 0) top.location.replace(document.location);

function VerFoto(url,windowname,width,features)
{
var features= "width=600" + ",height=510" + "top=50,left=100,toolbar=no,menubar=no,scrollbars=no,resizable=yes,status=no,location=no,directories=no,copyhistory=no=no";
 
var mywin=window.open(url, windowname, features);
if (mywin)
mywin.focus();
return false;
}
function VerLaos(url,windowname,width,features)
{
var features= "width=650" + ",height=500" + "top=50,left=50,toolbar=no,menubar=no,scrollbars=no,resizable=yes,status=no,location=no,directories=no,copyhistory=no=no";
 
var mywin=window.open(url, windowname, features);
if (mywin)
mywin.focus();
return false;
}

function dialog(url,windowname,width,height,features)
{
var screenX = (screen.width/2 - width/2);
var screenY = (screen.height/2 - height/2);
var features= "width=" + width + ",height=" + height +"toolbar=no,menubar=no,scrollbars=no,resizable=yes,status=no,location=no,directories=no,copyhistory=no=no";
features += ",screenX=" + screenX + ",left=" + screenX;
features += ",screenY=" + screenY + ",top=" + screenY;
 
var mywin=window.open(url, windowname, features);
if (mywin)
mywin.focus();
return false;
}

function generate_address( username, domain) {
        var atsign = "&#64;";
        var addr = username + atsign + domain;
        document.write(
          "<" + "a" + " " + "href=" + "mail" + "to:" + addr + ">" +
          addr +
          "<\/a>");
}

function gallery_image(url,windowname)
{
width= screen.width;
height= screen.height;
var screenX = 1;
var screenY = 1;
var features= "width=" + width + ",height=" + height +"toolbar=no,menubar=no,scrollbars=no,resizable=no,status=no,location=no,directories=no,copyhistory=no,fullscreen=no";
features += ",screenX=" + screenX + ",left=" + screenX;
features += ",screenY=" + screenY + ",top=" + screenY;
 
var mywin=window.open(url, windowname, features);
if (mywin)
mywin.focus();
return false;
}

function gallery_slideshow(urlparam,windowname)
{
width= screen.width;
height= screen.height;
var screenX = 1;
var screenY = 1;

if (width > 1000 && height > 750) {
	url = "/slideshow.html?" + urlparam;
} else {
	url = "/slideshow.html?small=1&" + urlparam
}
var features= "width=" + width + ",height=" + height +"toolbar=no,menubar=no,scrollbars=no,resizable=no,status=no,location=no,directories=no,copyhistory=no,fullscreen=yes";
features += ",screenX=" + screenX + ",left=" + screenX;
features += ",screenY=" + screenY + ",top=" + screenY;
 
var mywin=window.open(url, windowname, features);
if (mywin)
mywin.focus();
return false;
}

