function openPresentation() {
var file = "portfolio/flash/corporate/pixelmedia_presentation.htm";
  if (is_ie && !is_ie4) {
    window.open(file,"flashfullWindow","fullscreen=1,scrollbars=1")
  } else {
    window.open(file,"flashfullWindow","scrollbars=auto,width=612,height=400,resizable=yes")
  }
}

Con = new Image();
Coff = new Image();
extranetOn = new Image();
extranetOff = new Image();

Con.src = "img/homepage/cnst_arrow_right.gif";
Coff.src = "img/bg_tan.gif";
extranetOn.src = "img/homepage/top_extranet_arrow_r.gif";
extranetOff.src = "img/homepage/top_extranet_arrow_0.gif";

function changeImages() {
  for (var i=0; i<changeImages.arguments.length; i+=2) {
    document[changeImages.arguments[i]].src = eval(changeImages.arguments[i+1] + ".src");
  }
}

for (i=1;i<=4;i++) {
	eval("F"+i+"on = new Image();"); eval("F"+i+"off = new Image();");
	eval("F"+i+"on.src = \"images/btn_"+i+"_r.gif\";");
	eval("F"+i+"off.src = \"images/btn_"+i+"_0.gif\";");
}

function changeImages() {
	for (var i=0; i<changeImages.arguments.length; i+=2) {
	document[changeImages.arguments[i]].src = eval(changeImages.arguments[i+1] + ".src"); 
	}
}

function grabElement(ID) {
	// set up element reference for NS4, DOM-compliant and IE4 respectively
	if (document.layers) {
		thisElement = document.layers[ID];
	}
	if (document.getElementById) {
		thisElement = document.getElementById(ID).style;
	}
	if (document.all && !document.getElementById) {
		thisElement = document.all(ID).style;
	}
	
	return thisElement;
}

function switchFeaturedProject(theProject,onImage) {
	
	var presentation_list = new Array();
	presentation_list = ["photo1","photo2","photo3","photo4"]
	
	// turn off all divs
	for (i = 0; i < presentation_list.length; i++) {
		thisPresentation = grabElement(presentation_list[i])
		thisPresentation.visibility = "hidden";
	}
	// turn on the moused-over div
	viewablePresentation = grabElement(theProject);
	viewablePresentation.visibility = "visible";
}

function noClick() {
	// does nothing
	}

function openPortfolioWindow(url){
		windowAttributes = "top=52,left=72,width=710,height=481"
  		portfolioWindow = window.open(url,"portfolioWindow",windowAttributes)
		portfolioWindow.focus()
}