// JavaScript Document

function resizeOuterTo(w,h) {
 if (parseInt(navigator.appVersion)>3) {
   if (navigator.appName=="Netscape") {
    top.outerWidth=w;
    top.outerHeight=h;
   }
   else top.resizeTo(w,h);
 }
}

// <![CDATA[




/* Free code from dyn-web.com */

// Two choices for loading new pages into the iframe 
function loadIframe(iframeName, url) {
    if ( window.frames[iframeName] ) {
        window.frames[iframeName].location = url;   
        return false;
    }
    return true;
}

function changeIframeSrc(id, url) {
    if (!document.getElementById) return;
    var el = document.getElementById(id);
    if (el && el.src) {
        el.src = url;
        return false;
    }
    return true;
}




// ]]>

function alertSize() {
  var myWidth = 0, myHeight = 0;
  if( typeof( window.innerWidth ) == 'number' ) {
    //Non-IE
    myWidth = window.innerWidth;
    myHeight = window.innerHeight;
  } else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
    //IE 6+ in 'standards compliant mode'
    myWidth = document.documentElement.clientWidth;
    myHeight = document.documentElement.clientHeight;
  } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
    //IE 4 compatible
    myWidth = document.body.clientWidth;
    myHeight = document.body.clientHeight;
  }
  window.alert( 'Screen Width = ' + screen.width );
  window.alert( 'Screen Height = ' + screen.height );
}

function getportRes(){
	var portRes;
		if(screen.width<1024||screen.height<768){
			portRes = "portfolioLo.html"
			}
		else{
			portRes = "portfolioHi.html"
		}
	window.alert( 'Portfolio File = ' + portRes );
	return portRes;
}

function getslideRes(){
	var slideRes;
		if(screen.width<1024||screen.height<768){
			slideRes = "slidshowLo.html"
			}
		else{
			slideRes = "slidshowHi.html"
		}	
	window.alert( 'Slideshow File = ' + slideRes );
	return slideRes;
}
