
    function getFlashWidth()
    {
        var l_w = 1000 ;
        /*
        var section = g_swfAddressParams['section'];
        section = ((section) ? section : "").toLowerCase();
        //if certain section (such as work); adjust Flash piece min width; as it's large then 1000px for these sections
        
        switch(section)
        {
            case "work" : l_w = 1584;
            case "client" : l_w = 1584;
            case "history" : l_w = 1584;
        }
        
        //else, just return default 1000px;
        */
        return l_w;
    }
    


	function getWindow(){
		var winW = null;
		var winH = null;

        var l_FlashWidth = getFlashWidth();		

        // Browser version 4.0 or later
		if (parseInt(navigator.appVersion)>3) {
		     // if NS
			 if (navigator.appName=="Netscape") {
				 winW = window.innerWidth;
				 winH = window.innerHeight;
			 }
		     // if Microsoft
			 if (navigator.appName.indexOf("Microsoft")!=-1) {
				 winW = document.body.offsetWidth;
				 winH = document.body.offsetHeight;
			 }
		}
		
		var obj = document.getElementById("shell");
		//var embed = document.getElementsByTagName("embed")[0];
		var embed = document.getElementById("website");


		if(winW < l_FlashWidth){
			if(obj) { obj.width = l_FlashWidth + 'px'; }
			if(embed) { embed.width = l_FlashWidth + 'px'; }
		} else {
			if(obj) { obj.width = 100 + '%'; }
			if(embed) { embed.width = 100 + '%'; }
		}
		
		if(winH < 600) {
			if(obj) { obj.height = 700 + 'px'; }
			if(embed) { embed.height = 700 + 'px'; }

			
		} else {
			if(obj) { obj.height = '100%'; }
			if(embed) { embed.height = '100%'; }
		}

	}

	
