

function load(urlName,urlPath) {

	if (!urlPath) {
		urlPath = urlName;
	}
	
 	myWindow=window.open('','myconsole',
  	+',menubar=0'
  	+',toolbar=1'
  	+',status=0'
  	+',scrollbars=1'
  	+',resizable=1')
		
	myWindow.document.writeln(
  	'<html><head><title>Owen &amp; Mzee - External Links</title><link rel="stylesheet" type="text/css" href="omstyle.css" /></head>'
	+'<body bgcolor="#669900" onLoad="self.focus()">'
	+'<table width="768" height="500" align="center" border="0px" cellspacing="0" cellpadding="0"><tr height="100"><td align="left"><a href="javascript:window.close()"><img src="images/logosm.jpg" border="0"></img></a></td></tr><tr><td align="center"><p class="OMBasicLight">You are about to leave OwenandMzee.com<br> to visit another site.</p><p class="OMBasicLight">To return to <a style="color: #FFFFCC; text-decoration: none; font-weight: bold;" href="javascript:window.close()">OwenandMzee.com</a>, close this window.</p><p class="OMBasicLight">To go to the new site, click on the link below:</p><a style="text-decoration:none; font-weight:bold;" href=' + urlPath + '><p class="OMBasicLight"><u>' + urlName + '</u></p></a></td></tr></table>'
 	+'</body></html>'
 	)
 	myWindow.document.close()
}

function loadBookURLs() {
	
		
	
 	myWindow=window.open('','myconsole',
  	+',menubar=0'
  	+',toolbar=1'
  	+',status=0'
  	+',scrollbars=1'
  	+',resizable=1')
		
	myWindow.document.writeln(
  	'<html><head><title>Owen &amp; Mzee - External Links</title><link rel="stylesheet" type="text/css" href="omstyle.css" /></head>'
	+'<body bgcolor="#669900" onLoad="self.focus()">'
	+'<table width="768" height="500" align="center" border="0px" cellspacing="0" cellpadding="0"><tr height="100"><td align="left"><a href="javascript:window.close()"><img src="images/logosm.jpg" border="0"></img></a></td></tr><tr><td align="center"><p class="OMBasicLight">The Owen and Mzee books are available at the following book sellers:</p><a style="text-decoration:none; font-weight:bold;" href="http://www.amazon.com/exec/obidos/search-handle-url/002-1749653-3626424?%5Fencoding=UTF8&search-type=ss&index=books&field-author=Craig%20Hatkoff%20and%20Dr.%20Paula%20Kahumbu"><p class="OMBasicLight"><u>Amazon</u></p></a><a style="text-decoration:none; font-weight:bold;" href="http://search.barnesandnoble.com/booksearch/results.asp?WRD=craig+hatkoff&z=y&cds2Pid=9481"><p class="OMBasicLight"><u>Barnes and Noble</u></p></a><a style="text-decoration:none; font-weight:bold;" href="http://www.amazon.com/s/ref=nb_ss_bgi/002-1749653-3626424?url=search-alias%3Dstripbooks&field-keywords=craig+hatkoff&Go.x=0&Go.y=0&Go=Go"><p class="OMBasicLight"><u>Borders</u></p></a><a style="text-decoration:none; font-weight:bold;" href="http://www.booksense.com"><p class="OMBasicLight"><u>BookSense</u></p></a><a style="text-decoration:none; font-weight:bold;" href="http://store.scholastic.com/webapp/wcs/stores/servlet/ProductDisplay_Owen+%26+Mzee%3A+The+True+Story+of+a+Remarkable+Friendship_12347_-1_10052_10051"><p class="OMBasicLight"><u>Scholastic Store</u></p></a><br><br><br><br><p class="OMBasicLight">To return to OwenandMzee.com, <a style="color: #FFFFCC; text-decoration: none; font-weight: bold;" href="javascript:window.close()">close this window.</a></p></td></tr></table>'
 	+'</body></html>'
 	)
 	myWindow.document.close()
}



function loadomwindow(urlName) {
	newWindow=window.open(urlName,'','width=800,height=600');
	if (window.focus) {newwindow.focus()
	}
		return false;
	
}

function loadNewsletter() {
	newWindow=window.open('newsletter.html','','width=800,height=600,scrollbars=1');
	if (window.focus) {newwindow.focus()
	}
		return false;
}

function loadwavwindow(urlName) {
	newWindow=window.open(urlName,'','width=770, height=500, scrollbars=no; resizable=no');
	/*if (window.focus) {
		newwindow.focus()
	}
	return false;*/
}

function loadDocumentaryWindow() {
	
	myWindow = window.open('flash/mediacenter/mediacenter.html','','width=770, height=500, scrollbars=no, resizable=no');
	callExternalInterface();
}

function loadSingalong() {
	
	myWindow = window.open('flash/singalong/singalong.html','','width=770, height=590, scrollbars=no, resizable=no');
	//callExternalInterface();
}

function loadVideoMaker() {
	
	//myWindow = window.open('flash/videomaker/deploy/launch_videomaker.html','','width=770, height=500, scrollbars=no, resizable=no');
	myWindow = window.open('http://www.turtlepondpublications.com/videomaker?src=owen_mzee','','width=900, height=700, scrollbars=no, resizable=no');
	//callExternalInterface();
}

function callExternalInterface() {
	
	thisMovie("splash").tryme();

}

function thisMovie(movieName) {
    if (navigator.appName.indexOf("Microsoft") != -1) {
       	return window[movieName];
    }
    else {
        return document[movieName];
    }
}


function callTest() {
	//alert("call test!");
}

/*
function loadInterview(whichVid) {

	
	newWindow = window.open('','interviews','width=360, height=320, resizable=no, scrollbars=no');
	
	
	newWindow.document.writeln(
	'<html><head><title>Interviews</title><link rel="stylesheet" type="text/css" href="omstyle.css" /></head>'
	+'<body bgcolor="#669900" onLoad="self.focus()" style="margin:0px;">'
	+ '<script src="myScripts.js"></script>'
	+ '<script src="AC_RunActiveContent.js" type="text/javascript"></script>'
	+ '<script src="AC_ActiveX.js" type="text/javascript"></script>'
	+ '<script type="text/javascript">'
	+ 'AC_FL_RunContent( "esi_parameters","vidNum=' + whichVid + '","codebase","http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0","width","360","height","320","src","flash/mediacenter/book_interview","quality","high","pluginspage","http://www.macromedia.com/go/getflashplayer","movie","flash/mediacenter/book_interview" ); //end AC code'
	+ '</script><noscript>'
	+'<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="360" height="320" id="book_interview" align="middle">'
	+ '<param name="allowScriptAccess" value="sameDomain" />'
	+ '<param name="movie" value="flash/mediacenter/book_interview.swf?vidNum=' + whichVid + '" />'
	+ '<param name="quality" value="high" />'
	+ '<param name="bgcolor" value="#669900" />'
	+ '<embed src="flash/mediacenter/book_interview.swf?vidNum=' + whichVid + '" quality="high" bgcolor="#669900" width="360" height="320" name="book_interview" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></object>'
 	+'</noscript>'
 	+ '</body></html>'
	)
	myWindow.document.close();
}*/

function loadInterview(whichVid) {

	
	newWindow = window.open('','interviews','width=360, height=320, resizable=no, scrollbars=no');
	
	
	newWindow.document.writeln(
	'<html><head><title>Interviews</title><link rel="stylesheet" type="text/css" href="omstyle.css" /></head>'
	+'<body bgcolor="#669900" onLoad="self.focus()" style="margin:0px;">'
	+ '<script src="myScripts.js"></script>'
	+ '<script src="AC_RunActiveContent.js" type="text/javascript"></script>'
	+ '<script src="AC_ActiveX.js" type="text/javascript"></script>'
	
	+'<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="360" height="320" id="book_interview" align="middle">'
	+ '<param name="allowScriptAccess" value="sameDomain" />'
	+ '<param name="movie" value="flash/mediacenter/book_interview.swf?vidNum=' + whichVid + '" />'
	+ '<param name="quality" value="high" />'
	+ '<param name="bgcolor" value="#669900" />'
	+ '<embed src="flash/mediacenter/book_interview.swf?vidNum=' + whichVid + '" quality="high" bgcolor="#669900" width="360" height="320" name="book_interview" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></object>'

 	+ '</body></html>'
	)
	newWindow.document.close();
}


function loadPrivacyPolicy() {
	newWindow=window.open('policy.pdf', '', 'scrollbars=yes');
	if (window.focus) {
		newwindow.focus()
	}
	return false;
}

