var picWin1, picWin2, picWin3, movieWin, myWin, myWin2, myWin3;

function openMovieWin(movieNum) {
	var myPath;
	if (movieNum == 1) 
		myPath = "http://184.168.83.81/Promo2/productdemo.htm";
	else if (movieNum == 2)
		myPath = "http://184.168.83.81/Promo2/homeschool.htm";
	else if (movieNum == 3)
		myPath = "http://184.168.83.81/Promo2/tutors.htm";
	else if (movieNum == 4)
		myPath = "http://184.168.83.81/Promo2/terminology.htm";
	else if (movieNum == 5)
		myPath = "http://184.168.83.81/Promo2/realworld.htm";
	if (isWinOpen(movieWin))
		movieWin.location = myPath;
	else 
		movieWin = window.open(myPath,"","width=762,height=610,toolbar=no,menubar=no,resizable=no,status=no");
	movieWin.focus();
}



function openPic1(picture,w,h,x) {
	if (isWinOpen(picWin1)) 
		picWin1.location = picture;
	else
		picWin1 = window.open(picture,"","width=" + w + ",height=" + h + ",screenX=" + x + ", screenY=200,left=" + x + ",top=200,toolbar=no,menubar=no,resizable=no");
	picWin1.focus();
}
function openPic2(picture,w,h,x) {
	if (isWinOpen(picWin2)) 
		picWin2.location = picture;
	else
		picWin2 = window.open(picture,"","width=" + w + ",height=" + h + ",screenX=" + x + ", screenY=200,left=" + x + ",top=200,toolbar=no,menubar=no,resizable=no");
	picWin2.focus();
}
function openPic3(picture,w,h,x) {
	if (isWinOpen(picWin3)) 
		picWin3.location = picture;
	else
		picWin3 = window.open(picture,"","width=" + w + ",height=" + h + ",screenX=" + x + ", screenY=200,left=" + x + ",top=200,toolbar=no,menubar=no,resizable=no");
	picWin3.focus();
}
function isWinOpen(myWin) {
	if (myWin == null || myWin.closed)
		return false;
	return true;
}

function openWin(file) {
	if (isWinOpen(myWin))
		myWin.location = file;
	else
		myWin = window.open(file,"","width=480,height=344,toolbar=no,menubar=no,resizable=no");
	myWin.focus();
}


function openWin3(file) {
	if (isWinOpen(myWin3))
		myWin3.location = file;
	else
		myWin3 = window.open(file,"","width=878,height=608,toolbar=no,menubar=no,resizable=no");
	myWin3.focus();
}


function openWin2(file) {
	if (isWinOpen(myWin2))
		myWin2.location = file;
	else
		myWin2 = window.open(file,"","width=760,height=540,toolbar=no,menubar=no,resizable=no");
	myWin2.focus();
}

function isWinOpen(myWin) {
	if (myWin == null || myWin.closed)
		return false;
	return true;
}

function submitForm() { //need this for mailing list
	document.MailingList.submit();
}	

// This function is for Product Info Display to show/hide a Div
function showText(DivID){
	if (document.getElementById(DivID).style.display=='none') {
		document.getElementById(DivID).style.display='block';		// show current selection
	} else {
		document.getElementById(DivID).style.display='none';		// hide current selection
	}
}




<!--
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->


