var sitewindow = '';
function openSiteWindow(url, width, height, scroll)
{
    if (!sitewindow.closed && sitewindow.location)
        sitewindow.close();
    
    sitewindow=window.open(url,'name',"'height="+ height + ",width=" + width + ",resizable="+scroll+",scrollbars="+ scroll +"'");
    if (!sitewindow.opener) sitewindow.opener = self;
    
    if (window.focus) 
        sitewindow.focus();
}
        
function resizeThumBox()
{
    var oldMax = stripMax;
    var wSizes = window.getCoordinates();
    var tSizes = $("thumbox").getCoordinates();
    var windowHeight = wSizes.height;
    var thumboxHeight = tSizes.height + tSizes.top;
    if (windowHeight < thumboxHeight)
        (stripMax - 1 >= 1)? stripMax = stripMax - 1 : stripMax = 1;
    else if(windowHeight >= thumboxHeight)
    {	
    	(stripMax + 1 <= 3)? stripMax = stripMax + 1 : stripMax = 3;
    }
    if(oldMax != stripMax)
        initGlobals();
}

function changeSlider(whatXML)
{
    xmlFile = whatXML;
    divContainer.style.top = "0px"; 
    displayResult();
    initGlobals();
    setVArrows();
    initLytebox();
    setImageLinks();
}

function setImageLinks()
{

     if(xmlFile == "appdesign.xml")
        {
            document.getElementById("linkApp").style.textDecoration = "underline";
            document.getElementById("linkIdentity").style.textDecoration = "none";
        }
    else
        {
            document.getElementById("linkIdentity").style.textDecoration = "underline";
            document.getElementById("linkApp").style.textDecoration = "none";
        }
}




        