function swap(image, over) {
	if (over) {
		document.images[image].src = document.images[image].src.replace(/_off/gi, '_over');
	} else {
		document.images[image].src = document.images[image].src.replace(/_over/gi, '_off');
	}
}



// this is a blank function for the setTimeout called in popDocument
function foo2(){
	var test = true;
	return test;
}

function popDocument(fileName, lang){
	var size = "toolbar=no,location=no,directories=no,"+
				"status=no,menubar=yes,scrollbars=yes,"+
				"resizable=yes,width=780,height=550";
	path = 'document_catalog/' + lang.toLowerCase() + '/' + fileName;
	top.docWindow = window.open(path, 'docWindow', size);
}

function popImage(fileName, width, height){
	var size = "toolbar=no,location=no,directories=no,"+
				"status=no,menubar=yes,scrollbars=yes,"+
				"resizable=yes,width="+ width +",height="+ height +"";
	path = 'images/' + fileName;
	top.docWindow = window.open(path, 'docWindow', size);
}

function popTour(fileName, width, height){
	var size = "toolbar=no,location=no,directories=no,"+
				"status=no,menubar=no,scrollbars=auto,"+
				"resizable=yes,width="+width+",height="+height+"";
	path = '../../../solutions/tour/' + fileName;
	top.docWindow = window.open(path, 'docWindow', size);
}



// 8888888888888888888888888888888888888888888888888888888888888888

// Company: SorensonMedia
// Author: Dave Kizerian
// Date created: 1/16/02
// 
// mediaWindow.js - pops new window with content from media_link.php
// Include on page that calls media_link.php
	

// this is a blank function for the setTimeout called in popWindow
function foo(){
	var test = true;
	return test;
}

var flag = 0;

function popMediaWindow(mediaName,width,height){
	var size = "toolbar=no,location=no,directories=no,"+
				"status=no,menubar=no,scrollbars=no,"+
				"resizable=yes,width="+width+",height="+height;
	
	if(!flag){
		top.resultWindow = window.open(mediaName, 'resultWindow', size);
		flag = 1;
		top.resultWindow.moveTo(50, 50);	
	}
	else{
		top.resultWindow.close();
		setTimeout('foo()', 100);
		top.resultWindow = window.open(mediaName, 'resultWindow', size);
		flag = 1;
		top.resultWindow.moveTo(50, 50);
	}
}