// JavaScript Document

<!---------------------------------->
<!-- SWAP IMAGES FOR NAVIGATION -->
<!---------------------------------->
function SimpleSwap(obj,which){
        obj.src=obj.getAttribute(which||"origsrc");
}

<!---------------------------------->
<!-- MAXIMISE WINDOW -->
<!---------------------------------->
function maximizeWin() {
  if (window.screen) {
    var aw = screen.availWidth;
    var ah = screen.availHeight;
    window.moveTo(0, 0);
    window.resizeTo(aw, ah);
  }
}
<!--caller: <body onLoad="maximizeWin();">  -->

<!---------------------------------->
<!-- CHANGE IMAGES -->
<!---------------------------------->
function showImage(theImg){
	document.imageHolder.src = 'portfolio/'+theImg;
}

<!---------------------------------->
<!-- OPEN WEBSITE IN NEW WINDOW -->
<!---------------------------------->
function OpenSite(theSite){
	<!--siteURL = "http://www."+ theSite; -->
	siteURL = "http://"+ theSite;
	var SiteWindow = window.open(siteURL, "SiteWindow");
}

<!---------------------------------->
<!-- OPEN MOVIES IN NEW WINDOW -->
<!---------------------------------->
function OpenMovie(theMovie, theWidth, theHeight){
	//
	movieURL = 'portfolio/'+ theMovie;
	movieSize = 'width='+theWidth+',height='+theHeight;
	var MovieWindow = window.open(movieURL, 'MovieWindow', movieSize);
	MovieWindow.resizeTo(theWidth,theHeight);
	MovieWindow.focus();
}
