function nwin(name) {
            var width = 440;
            var height = 640;
            var left = parseInt((screen.availWidth/2) - (width/2));
            var top = parseInt((screen.availHeight/2) - (height/2));
            var set = 'width='+width+',height='+height+',left='+left+',top='+top+',screenX='+left+',screenY='+top;
            var content = "<html><head><title>GOLDENFRAME</title><link rel='stylesheet' href='../../css/photo.css' type='text/css'  media='screen'>";
            content += "<body><div id=image-vert><a href=javascript:window.close();>"
            content += "<img src=img/" + name +".jpg border=0 width=400 height=600>"
            content += "</a></div></body>"
            newWindow = window.open("", "GOLDENFRAME", set);
            newWindow.document.write(content);
            newWindow.document.close();
            newWindow.focus();
        }

function nwing(name) {
            var width = 640;
            var height =440;
            var left = parseInt((screen.availWidth/2) - (width/2));
            var top = parseInt((screen.availHeight/2) - (height/2));
            var set = 'width='+width+',height='+height+',left='+left+',top='+top+',screenX='+left+',screenY='+top;
            var content = "<html><head><title>GOLDENFRAME</title><link rel='stylesheet' href='../../css/photo.css' type='text/css'  media='screen'>";
            content += "<body><div id=image><a href=javascript:window.close();>"
            content += "<img src=img/" + name +".jpg border=0 width=600 height=400>"
            content += "</a></div></body>"
            newWindow = window.open("", "GOLDENFRAME", set);
            newWindow.document.write(content);
            newWindow.document.close();
            newWindow.focus();
        }

function nwingh(name) {
            var width = 440;
            var height = 640;
            var left = parseInt((screen.availWidth/2) - (width/2));
            var top = parseInt((screen.availHeight/2) - (height/2));
            var set = 'width='+width+',height='+height+',left='+left+',top='+top+',screenX='+left+',screenY='+top;
            var content = "<html><head><title>GOLDENFRAME</title><link rel='stylesheet' href='css/photo.css' type='text/css'  media='screen'>";
            content += "<body><div id=image-vert><a href=javascript:window.close();>"
            content += "<img src=wedding/img/" + name +".jpg border=0 width=400 height=600>"
            content += "</a></div></body>"
            newWindow = window.open("", "GOLDENFRAME", set);
            newWindow.document.write(content);
            newWindow.document.close();
            newWindow.focus();
        }

function nwingw(name) {
            var width = 640;
            var height =440;
            var left = parseInt((screen.availWidth/2) - (width/2));
            var top = parseInt((screen.availHeight/2) - (height/2));
            var set = 'width='+width+',height='+height+',left='+left+',top='+top+',screenX='+left+',screenY='+top;
            var content = "<html><head><title>GOLDENFRAME</title><link rel='stylesheet' href='../../css/photo.css' type='text/css'  media='screen'>";
            content += "<body><div id=image><a href=javascript:window.close();>"
            content += "<img src=wedding/img/" + name +".jpg border=0 width=600 height=400>"
            content += "</a></div></body>"
            newWindow = window.open("", "GOLDENFRAME", set);
            newWindow.document.write(content);
            newWindow.document.close();
            newWindow.focus();
        }


function nwing_a(name) {
            var width = 540;
            var height = 373;
            var left = parseInt((screen.availWidth/2) - (width/2));
            var top = parseInt((screen.availHeight/2) - (height/2));
            var set = 'width='+width+',height='+height+',left='+left+',top='+top+',screenX='+left+',screenY='+top;
            var content = "<html><head><title>GOLDENFRAME</title><link rel='stylesheet' href='../css/photo.css' type='text/css' media='screen'>";
            content += "<body><div id=image><a href=javascript:window.close();>"
            content += "<img src=img/" + name +".jpg border=0 width=500 height=333>"
            content += "</a></div></body>"
            newWindow = window.open("", "GOLDENFRAME", set);
            newWindow.document.write(content);
            newWindow.document.close();
            newWindow.focus();
        }

function nwing_i(name) {
            var width = 386;
            var height =565;
            var left = parseInt((screen.availWidth/2) - (width/2));
            var top = parseInt((screen.availHeight/2) - (height/2));
            var set = 'width='+width+',height='+height+',left='+left+',top='+top+',screenX='+left+',screenY='+top;
            var content = "<html><head><title>GOLDENFRAME</title><link rel='stylesheet' href='../css/photo.css' type='text/css'  media='screen'>";
            content += "<body><div id=image-vert><a href=javascript:window.close();>"
            content += "<img src=img/" + name +".jpg border=0 width=346 height=525>"
            content += "</a></div></body>"
            newWindow = window.open("", "GOLDENFRAME", set);
            newWindow.document.write(content);
            newWindow.document.close();
            newWindow.focus();
        }
        



function Advert(theURL,winName) { 
        var width=380;
        var height=350;
        var top=(screen.height) ? (screen.height-height)/2 : 0;
        var left=(screen.width) ? (screen.width-width)/2 : 0;
        var features = 'scrollbars=1,resizable=0,width='+width+',height='+height+',top='+top+',left='+left;
        window.open(theURL,winName,features);
}


function high(which2){
theobject=which2
highlighting=setInterval("highlightit(theobject)",50)
}
function low(which2){
clearInterval(highlighting)
which2.filters.alpha.opacity=20
}
function highlightit(cur2){
if (cur2.filters.alpha.opacity<100)
cur2.filters.alpha.opacity+=5
else if (window.highlighting)
clearInterval(highlighting)
}

function swap_content(span) {
    displayType=(document.getElementById(span).style.display=='none') ? 'block':'none';
    document.getElementById(span).style.display=displayType;
}