var myWidth = 0;var myHeight = 0;function determineSize() {// determines the inner size of the browser window  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;  }}function positionContent() {	topY = Math.floor(myHeight / 2) - 315;		// 315 pixels is half of the height of the content	if (topY < 2) {		topY = 2; // if by this calculation the top of the content would be off the top of the screen, instead place it just below the top	}	leftX = Math.floor(myWidth / 2) - 480;		// 480 pixels is half of the width of the content	if (leftX < 2) {		leftX = 2;	}	topY += "px";	leftX += "px";	document.getElementById("contentwrapper").style.top = topY;	document.getElementById("contentwrapper").style.left = leftX;}




function preloadRollOvers() {	im1r = new Image;	im1r.src = "images/northwest_fashion_media_text_style.jpg";	im2r = new Image;	im2r.src = "images/photography_style.jpg";	im3r = new Image;	im3r.src = "images/video_production_style.jpg";	im4r = new Image;	im4r.src = "images/web_design_style.jpg";	im5r = new Image;	im5r.src = "images/media_marketing_style.jpg";	im6r = new Image;	im6r.src = "images/nwfashionmedia_email_style.jpg";}




function preloadPhotoPageLinkImg() {
	photoLink = new Image;
	photoLink.src = "images/photography_examples_style.jpg";
	photoSamples = new Image;
	photoSamples.src = "images/fashion_photography_samples/perspective.jpg";
}


function preloadVideoPageLinkImg() {
	vidLink = new Image;
	vidLink.src = "images/video_bottom_link_style.jpg";
}


function preloadWebPageLinkImg() {
	webLink = new Image;
	webLink.src = "images/web_bottom_link_style.jpg";
}
