

//

// doLargerView() - initiates popup window based on section & image //

//



function doLargerView(theSection,theImage) {



  // define image specifics //

  if (theSection == "advertising") {

    if (theImage == "lighting_lab") { theWidth = 403; theHeight = 520; theType = ".jpg"; theEdge = 3; }

    else if (theImage == "mccormick_schmicks") { theWidth = 393; theHeight = 520; theType = ".jpg"; theEdge = 3; }

    else if (theImage == "pge") { theWidth = 700; theHeight = 520; theType = ".jpg"; theEdge = 3; }
	else if (theImage == "genstar") { theWidth = 1203; theHeight = 520; theType = ".jpg"; theEdge = 3; }
	else if (theImage == "toucan") { theWidth = 539; theHeight = 700; theType = ".jpg"; theEdge = 3; }

    }

  else if (theSection == "print_collateral") {

    if (theImage == "arrowood_1") { theWidth = 700; theHeight = 428; theType = ".jpg"; theEdge = 3; }

    else if (theImage == "arrowood_2") { theWidth = 371; theHeight = 908; theType = ".jpg"; theEdge = 3; }

    else if (theImage == "earth_advantage") { theWidth = 700; theHeight = 520; theType = ".jpg"; theEdge = 3; }

    else if (theImage == "nike") { theWidth = 700; theHeight = 520; theType = ".jpg"; theEdge = 3; }

    else if (theImage == "pennbrook") { theWidth = 700; theHeight = 520; theType = ".jpg"; theEdge = 3; }

    else if (theImage == "pge_enron") { theWidth = 700; theHeight = 520; theType = ".jpg"; theEdge = 3; }

    }

  else if (theSection == "web") {

    if (theImage == "mhp") { theWidth = 620; theHeight = 520; theType = ".gif"; theEdge = 3; }

    else if (theImage == "progressive_management") { theWidth = 667; theHeight = 520; theType = ".jpg"; theEdge = 3; }

    else if (theImage == "wtc_pdx") { theWidth = 578; theHeight = 431; theType = ".jpg"; theEdge = 3; }
    
     else if (theImage == "wchs") { theWidth = 575; theHeight = 551; theType = ".gif"; theEdge = 0; }
     
      else if (theImage == "new_road") { theWidth = 575; theHeight = 431; theType = ".jpg"; theEdge = 0; }

    }
	
	
 // else if (theSection == "packaging") {

  //  if (theImage == "touraco") { theWidth = 969; theHeight = 343; theType = ".gif"; theEdge = 3; }

 //   }



  // define window url //

  theWindowUrl = "../site/images/" + theSection + "/img_" + theImage + "_big" + theType;



  // define window name //

  theWindowName = theSection + "_" + theImage;



  // define window specifications //

  theWindowSpecs = "toolbar=no,location=no,directories=no,menubar=no";

  if ((screen.width < 800) && (screen.height < 600)) {

    theWindowWidth = 620;

    theWindowHeight = 440;

		theWindowSpecs = theWindowSpecs + ",resizable=yes,scrollbars=yes";

    }

  else {

    theWindowWidth = theWidth + theEdge + 8;

    theWindowHeight = theHeight + theEdge + 8;

		theWindowSpecs = theWindowSpecs + ",resizable=no,scrollbars=no";

    }

  theWindowX = parseInt((screen.width - theWindowWidth) / 2);

  theWindowY = parseInt((screen.height - theWindowHeight) / 2);

	if (navigator.appName.indexOf("Microsoft") >= 0) {

		theWindowSpecs = theWindowSpecs + ",left=" + theWindowX;

		theWindowSpecs = theWindowSpecs + ",top=" + theWindowY;

	  }

  else {

		theWindowSpecs = theWindowSpecs + ",screenX=" + theWindowX;

		theWindowSpecs = theWindowSpecs + ",screenY=" + theWindowY;

	  }

  theWindowSpecs = theWindowSpecs + ",width=" + theWindowWidth;

  theWindowSpecs = theWindowSpecs + ",height=" + theWindowHeight;

  

  // display window //

  theViewLargerWindow = window.open(theWindowUrl,theWindowName,theWindowSpecs);

  theViewLargerWindow.focus();



  }



//

//

//


