// JavaScript Document
<!--
function newImage(arg) {
	if (document.images) {
		rslt = new Image();
		rslt.src = arg;
		return rslt;
	}
}
function changeImages() {
	if (document.images && (preloadFlag == true)) {
		for (var i=0; i<changeImages.arguments.length; i+=2) {
			document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
		}
	}
}
var preloadFlag = false;
function preloadImages() {
	if (document.images) {
		int_bt_updates_over = newImage("/templates/images/int_bt_updates-over.gif");
		int_bt_contact_over = newImage("/templates/images/int_bt_contact-over.gif");
		int_bt_bio_over = newImage("/templates/images/int_bt_bio-over.gif");
		int_bt_journey_over = newImage("/templates/images/int_bt_journey-over.gif");
		int_bt_family_over = newImage("/templates/images/int_bt_family-over.gif");
		int_bt_adoption_over = newImage("/templates/images/int_bt_adoption-over.gif");
		int_bt_resources_over = newImage("/templates/images/int_bt_resources-over.gif");
		preloadFlag = true;
	}
}

function videopop(theSource, fileType) {
	if(fileType=="wmv"){
		var theURL = "/video/player4-asx.asp?Source=" + theSource;
		window.open(theURL,"CBNWorldReachVideo","width=240,height=200,scrolling=no,resizable=no,toolbar=0");
	} else {
		var theURL = "/video/player4-smi.asp?Source=" + theSource;
		//   position = theSource.length-1;
		//   type = theSource.charAt(position);
		type = theSource.substr(theSource.length-2);
	
		if (type.toLowerCase() == "_l"){
			window.open(theURL,"FamilyVideo","height=140,width=160,scrolling=no,resizable=no,toolbar=0");
		} else if (type.toLowerCase() == "_h") {
			window.open(theURL,"FamilyVideo","height=230,width=280,scrolling=no,resizable=no,toolbar=0");
		} else {
			window.open(theURL,"FamilyVideo","height=140,width=160,scrolling=no,resizable=no,toolbar=0");
		}
	}
}
// -->