function doll(url)
{
	w = window.open(url,'bigdoll','left=20,top=20,width=800,height=600,toolbar=0,resizable=0');
	w.focus();
	return true;
}

function resizeWindow() {
	var w = xWidth("image");
	var h = xHeight("image");

    if (document.layers) window.resizeTo(w+20,h+20)
    else if (document.all) window.resizeTo(w+30,h+50)
	
}

function isIE5up() {
  	var agt=navigator.userAgent.toLowerCase();
    var is_major = parseInt(navigator.appVersion);
    var is_minor = parseFloat(navigator.appVersion);
    var is_ie   = (agt.indexOf("msie") != -1);
    var is_ie3  = (is_ie && (is_major < 4));
    var is_ie4  = (is_ie && (is_major == 4) && (agt.indexOf("msie 5.0")==-1) && (agt.indexOf("msie 6.0") == -1));
    var is_ie4up  = (is_ie  && (is_major >= 4));
    var is_ie5  = (is_ie && (is_major == 4) && (agt.indexOf("msie 5.0")!=-1) );
    var is_ie5up  = (is_ie  && !is_ie3 && !is_ie4);

	alert(agt + " - " + is_ie5up + " - " + is_major + " - " + is_minor);
	return is_ie5up;
}

function setHomePage(obj) {
	if (isIE5up()) {
		obj.style.behavior='url(#default#homepage)';
		obj.setHomePage('http://www.marieosmond.com');
		alert("You're home page has been set to www.mariesosmond.com");
	} else {
		alert("Sorry, your browser does not support this feature.");
	}
}

function xxx() {
    if (document.images) {
        if (window.document.images.length == 1) {
            if (document.layers) window.resizeTo(window.document.images[0].width+20,window.document.images[0].height+20)
            else if (document.all) window.resizeTo(window.document.images[0].width+30,window.document.images[0].height+50)
        }
        else 
            setTimeout('resizeWindow()',1000);
    }
}

function adjustLayout()
{
    var cHeight = xHeight("ContentPane");
    var lHeight = xHeight("LeftPane");
    var rHeight = xHeight("RightPane");
    var bHeight = xHeight("Banner_loggedInBanner");
	
	var maxHeight = Math.max(cHeight, Math.max(lHeight, rHeight));
    xHeight("center_home_page", maxHeight);
    xHeight("LeftContainer", maxHeight);
    xHeight("RightContainer", maxHeight);
    xTop("LeftContainer", 154 + bHeight);
    xTop("RightContainer", 154 + bHeight);
    xShow("footer");
    
}

window.onload = function()
{
    adjustLayout();
}

