/*Use the page title's five digit reference number to load related images for each page.  The RHOXbox image storage scheme enables the title to determine all pics for a given page.  Isn't scripting GREAT!*/

//The basic version to see if it worked! (As you can see, it did.)
function imageLoader(titleRef){
	var whichArticle = titleRef.substring(titleRef.indexOf("(") + 1, titleRef.length - 1);
	document.write(whichArticle);
}

//=======================================================================================================
// Pre-load scripts for ALL
//=======================================================================================================

//Write in the "Featured" title beneath top right pic by grabbing all title text before the semi-colon
function featuredArticleTitleLoader(titleRef){
	var whichArticle = titleRef.substring(0, titleRef.indexOf(":"));
	document.write(whichArticle);
}

//=======================================================================================================
// Pre-load scripts for "Articles"
//=======================================================================================================

//Load the Top Right "Featured Article" pic
function featuredArticleImageLoader(titleRef){
	var whichArticle = titleRef.substring(titleRef.indexOf("(") + 1, titleRef.length - 1);
	document.write('<img src="../articles.data_/' + whichArticle + '/featuredGame.jpg" alt="" height="111" width="263" border="0">');
}

//Load the drop cap pic for "Featured Article"
function dropCapImageLoader(titleRef){
	var whichArticle = titleRef.substring(titleRef.indexOf("(") + 1, titleRef.length - 1);
	document.write('<img src="../articles.data_/' + whichArticle + '/picRef50x50.jpg" alt="" height="50" width="50" border="0">');
}

//Generic window for slideshow
function newwindow(theWindow){
	newWindow = open(theWindow,"Viewer","height=600, width=700, toolbar=0, location=0, directories=0, status=1, menubar=0, scrollbars=0, resizable=0, copyhistory=0");
}

//Load thumbs 1 thru 3
function thumbs1_3Loader(titleRef){
	var whichArticle = titleRef.substring(titleRef.indexOf("(") + 1, titleRef.length - 1);
	document.write('<a onmouseup=newwindow("../articles.data_/' + whichArticle + '/ss01.html"); href="#">');
	document.write('<img src="../articles.data_/' + whichArticle + '/thumb01.jpg" alt="" width="100" height="75" border="0">');
	document.write('</a>');
	document.write('<img src="../RHOX_Reviewed.data_/images/spacer.gif" alt="" height="75" width="11">');
	document.write('<a onmouseup=newwindow("../articles.data_/' + whichArticle + '/ss02.html"); href="#">');
	document.write('<img src="../articles.data_/' + whichArticle + '/thumb02.jpg" alt="" width="100" height="75" border="0">');
	document.write('</a>');
	document.write('<img src="../RHOX_Reviewed.data_/images/spacer.gif" alt="" height="75" width="11">');
	document.write('<a onmouseup=newwindow("../articles.data_/' + whichArticle + '/ss03.html"); href="#">');
	document.write('<img src="../articles.data_/' + whichArticle + '/thumb03.jpg" alt="" width="100" height="75" border="0">');
	document.write('</a>');
}

//Load thumbs 4 thru 6
function thumbs4_6Loader(titleRef){
	var whichArticle = titleRef.substring(titleRef.indexOf("(") + 1, titleRef.length - 1);
	document.write('<a onmouseup=newwindow("../articles.data_/' + whichArticle + '/ss04.html"); href="#">');
	document.write('<img src="../articles.data_/' + whichArticle + '/thumb04.jpg" alt="" width="100" height="75" border="0">');
	document.write('</a>');
	document.write('<img src="../RHOX_Reviewed.data_/images/spacer.gif" alt="" height="75" width="11">');
	document.write('<a onmouseup=newwindow("../articles.data_/' + whichArticle + '/ss05.html"); href="#">');
	document.write('<img src="../articles.data_/' + whichArticle + '/thumb05.jpg" alt="" width="100" height="75" border="0">');
	document.write('</a>');
	document.write('<img src="../RHOX_Reviewed.data_/images/spacer.gif" alt="" height="75" width="11">');
	document.write('<a onmouseup=newwindow("../articles.data_/' + whichArticle + '/ss06.html"); href="#">');
	document.write('<img src="../articles.data_/' + whichArticle + '/thumb06.jpg" alt="" width="100" height="75" border="0">');
	document.write('</a>');
}

//Load thumbs 7 thru 9
function thumbs7_9Loader(titleRef){
	var whichArticle = titleRef.substring(titleRef.indexOf("(") + 1, titleRef.length - 1);
	document.write('<a onmouseup=newwindow("../articles.data_/' + whichArticle + '/ss07.html"); href="#">');
	document.write('<img src="../articles.data_/' + whichArticle + '/thumb07.jpg" alt="" width="100" height="75" border="0">');
	document.write('</a>');
	document.write('<img src="../RHOX_Reviewed.data_/images/spacer.gif" alt="" height="75" width="11">');
	document.write('<a onmouseup=newwindow("../articles.data_/' + whichArticle + '/ss08.html"); href="#">');
	document.write('<img src="../articles.data_/' + whichArticle + '/thumb08.jpg" alt="" width="100" height="75" border="0">');
	document.write('</a>');
	document.write('<img src="../RHOX_Reviewed.data_/images/spacer.gif" alt="" height="75" width="11">');
	document.write('<a onmouseup=newwindow("../articles.data_/' + whichArticle + '/ss09.html"); href="#">');
	document.write('<img src="../articles.data_/' + whichArticle + '/thumb09.jpg" alt="" width="100" height="75" border="0">');
	document.write('</a>');
}

//Load thumbs 10 thru 12
function thumbs10_12Loader(titleRef){
	var whichArticle = titleRef.substring(titleRef.indexOf("(") + 1, titleRef.length - 1);
	document.write('<a onmouseup=newwindow("../articles.data_/' + whichArticle + '/ss10.html"); href="#">');
	document.write('<img src="../articles.data_/' + whichArticle + '/thumb10.jpg" alt="" width="100" height="75" border="0">');
	document.write('</a>');
	document.write('<img src="../RHOX_Reviewed.data_/images/spacer.gif" alt="" height="75" width="11">');
	document.write('<a onmouseup=newwindow("../articles.data_/' + whichArticle + '/ss11.html"); href="#">');
	document.write('<img src="../articles.data_/' + whichArticle + '/thumb11.jpg" alt="" width="100" height="75" border="0">');
	document.write('</a>');
	document.write('<img src="../RHOX_Reviewed.data_/images/spacer.gif" alt="" height="75" width="11">');
	document.write('<a onmouseup=newwindow("../articles.data_/' + whichArticle + '/ss12.html"); href="#">');
	document.write('<img src="../articles.data_/' + whichArticle + '/thumb12.jpg" alt="" width="100" height="75" border="0">');
	document.write('</a>');
}

//Load thumbs 1 and 2
function thumbs1and2Loader(titleRef){
	var whichArticle = titleRef.substring(titleRef.indexOf("(") + 1, titleRef.length - 1);
	document.write('<a onmouseup=newwindow("../articles.data_/' + whichArticle + '/ss01.html"); href="#">');
	document.write('<img src="../articles.data_/' + whichArticle + '/thumb01.jpg" alt="" width="100" height="75" border="0">');
	document.write('</a>');
	document.write('<img src="../RHOX_Reviewed.data_/images/spacer.gif" alt="" height="75" width="11">');
	document.write('<a onmouseup=newwindow("../articles.data_/' + whichArticle + '/ss02.html"); href="#">');
	document.write('<img src="../articles.data_/' + whichArticle + '/thumb02.jpg" alt="" width="100" height="75" border="0">');
	document.write('</a>');
}

//Load thumbs 3 and 4
function thumbs3and4Loader(titleRef){
	var whichArticle = titleRef.substring(titleRef.indexOf("(") + 1, titleRef.length - 1);
	document.write('<a onmouseup=newwindow("../articles.data_/' + whichArticle + '/ss03.html"); href="#">');
	document.write('<img src="../articles.data_/' + whichArticle + '/thumb03.jpg" alt="" width="100" height="75" border="0">');
	document.write('</a>');
	document.write('<img src="../RHOX_Reviewed.data_/images/spacer.gif" alt="" height="75" width="11">');
	document.write('<a onmouseup=newwindow("../articles.data_/' + whichArticle + '/ss04.html"); href="#">');
	document.write('<img src="../articles.data_/' + whichArticle + '/thumb04.jpg" alt="" width="100" height="75" border="0">');
	document.write('</a>');
}

//Load thumbs 5 and 6
function thumbs5and6Loader(titleRef){
	var whichArticle = titleRef.substring(titleRef.indexOf("(") + 1, titleRef.length - 1);
	document.write('<a onmouseup=newwindow("../articles.data_/' + whichArticle + '/ss05.html"); href="#">');
	document.write('<img src="../articles.data_/' + whichArticle + '/thumb05.jpg" alt="" width="100" height="75" border="0">');
	document.write('</a>');
	document.write('<img src="../RHOX_Reviewed.data_/images/spacer.gif" alt="" height="75" width="11">');
	document.write('<a onmouseup=newwindow("../articles.data_/' + whichArticle + '/ss06.html"); href="#">');
	document.write('<img src="../articles.data_/' + whichArticle + '/thumb06.jpg" alt="" width="100" height="75" border="0">');
	document.write('</a>');
}

//Load thumbs 7 and 8
function thumbs7and8Loader(titleRef){
	var whichArticle = titleRef.substring(titleRef.indexOf("(") + 1, titleRef.length - 1);
	document.write('<a onmouseup=newwindow("../articles.data_/' + whichArticle + '/ss07.html"); href="#">');
	document.write('<img src="../articles.data_/' + whichArticle + '/thumb07.jpg" alt="" width="100" height="75" border="0">');
	document.write('</a>');
	document.write('<img src="../RHOX_Reviewed.data_/images/spacer.gif" alt="" height="75" width="11">');
	document.write('<a onmouseup=newwindow("../articles.data_/' + whichArticle + '/ss08.html"); href="#">');
	document.write('<img src="../articles.data_/' + whichArticle + '/thumb08.jpg" alt="" width="100" height="75" border="0">');
	document.write('</a>');
}

//Load thumbs 9 and 10
function thumbs9and10Loader(titleRef){
	var whichArticle = titleRef.substring(titleRef.indexOf("(") + 1, titleRef.length - 1);
	document.write('<a onmouseup=newwindow("../articles.data_/' + whichArticle + '/ss09.html"); href="#">');
	document.write('<img src="../articles.data_/' + whichArticle + '/thumb09.jpg" alt="" width="100" height="75" border="0">');
	document.write('</a>');
	document.write('<img src="../RHOX_Reviewed.data_/images/spacer.gif" alt="" height="75" width="11">');
	document.write('<a onmouseup=newwindow("../articles.data_/' + whichArticle + '/ss10.html"); href="#">');
	document.write('<img src="../articles.data_/' + whichArticle + '/thumb10.jpg" alt="" width="100" height="75" border="0">');
	document.write('</a>');
}

//Load thumbs 11 and 12
function thumbs11and12Loader(titleRef){
	var whichArticle = titleRef.substring(titleRef.indexOf("(") + 1, titleRef.length - 1);
	document.write('<a onmouseup=newwindow("../articles.data_/' + whichArticle + '/ss11.html"); href="#">');
	document.write('<img src="../articles.data_/' + whichArticle + '/thumb11.jpg" alt="" width="100" height="75" border="0">');
	document.write('</a>');
	document.write('<img src="../RHOX_Reviewed.data_/images/spacer.gif" alt="" height="75" width="11">');
	document.write('<a onmouseup=newwindow("../articles.data_/' + whichArticle + '/ss12.html"); href="#">');
	document.write('<img src="../articles.data_/' + whichArticle + '/thumb12.jpg" alt="" width="100" height="75" border="0">');
	document.write('</a>');
}

//=======================================================================================================
// Pre-load scripts for "Reviews"
//=======================================================================================================

//Load the Top Right "Featured Review" pic
function featuredReviewImageLoader(titleRef){
	var whichArticle = titleRef.substring(titleRef.indexOf("(") + 1, titleRef.length - 1);
	document.write('<img src="../RHOX_Reviewed.data_/' + whichArticle + '/featuredGame.jpg" alt="" height="111" width="263" border="0">');
}

//Load the drop cap pic for "Featured Review"
function dropCapImageLoader_Review(titleRef){
	var whichArticle = titleRef.substring(titleRef.indexOf("(") + 1, titleRef.length - 1);
	document.write('<img src="../RHOX_Reviewed.data_/' + whichArticle + '/picRef50x50.jpg" alt="" height="50" width="50" border="0">');
}

//Load thumbs 1 and 2
function thumbs1and2Loader_Review(titleRef){
	var whichArticle = titleRef.substring(titleRef.indexOf("(") + 1, titleRef.length - 1);
	document.write('<a onmouseup=newwindow("../RHOX_Reviewed.data_/' + whichArticle + '/ss01.html"); href="#">');
	document.write('<img src="../RHOX_Reviewed.data_/' + whichArticle + '/thumb01.jpg" alt="" width="100" height="75" border="0">');
	document.write('</a>');
	document.write('<img src="../RHOX_Reviewed.data_/images/spacer.gif" alt="" height="75" width="11">');
	document.write('<a onmouseup=newwindow("../RHOX_Reviewed.data_/' + whichArticle + '/ss02.html"); href="#">');
	document.write('<img src="../RHOX_Reviewed.data_/' + whichArticle + '/thumb02.jpg" alt="" width="100" height="75" border="0">');
	document.write('</a>');
}

//Load thumbs 3 and 4
function thumbs3and4Loader_Review(titleRef){
	var whichArticle = titleRef.substring(titleRef.indexOf("(") + 1, titleRef.length - 1);
	document.write('<a onmouseup=newwindow("../RHOX_Reviewed.data_/' + whichArticle + '/ss03.html"); href="#">');
	document.write('<img src="../RHOX_Reviewed.data_/' + whichArticle + '/thumb03.jpg" alt="" width="100" height="75" border="0">');
	document.write('</a>');
	document.write('<img src="../RHOX_Reviewed.data_/images/spacer.gif" alt="" height="75" width="11">');
	document.write('<a onmouseup=newwindow("../RHOX_Reviewed.data_/' + whichArticle + '/ss04.html"); href="#">');
	document.write('<img src="../RHOX_Reviewed.data_/' + whichArticle + '/thumb04.jpg" alt="" width="100" height="75" border="0">');
	document.write('</a>');
}

//Load thumbs 5 and 6
function thumbs5and6Loader_Review(titleRef){
	var whichArticle = titleRef.substring(titleRef.indexOf("(") + 1, titleRef.length - 1);
	document.write('<a onmouseup=newwindow("../RHOX_Reviewed.data_/' + whichArticle + '/ss05.html"); href="#">');
	document.write('<img src="../RHOX_Reviewed.data_/' + whichArticle + '/thumb05.jpg" alt="" width="100" height="75" border="0">');
	document.write('</a>');
	document.write('<img src="../RHOX_Reviewed.data_/images/spacer.gif" alt="" height="75" width="11">');
	document.write('<a onmouseup=newwindow("../RHOX_Reviewed.data_/' + whichArticle + '/ss06.html"); href="#">');
	document.write('<img src="../RHOX_Reviewed.data_/' + whichArticle + '/thumb06.jpg" alt="" width="100" height="75" border="0">');
	document.write('</a>');
}

//Load thumbs 7 and 8
function thumbs7and8Loader_Review(titleRef){
	var whichArticle = titleRef.substring(titleRef.indexOf("(") + 1, titleRef.length - 1);
	document.write('<a onmouseup=newwindow("../RHOX_Reviewed.data_/' + whichArticle + '/ss07.html"); href="#">');
	document.write('<img src="../RHOX_Reviewed.data_/' + whichArticle + '/thumb07.jpg" alt="" width="100" height="75" border="0">');
	document.write('</a>');
	document.write('<img src="../RHOX_Reviewed.data_/images/spacer.gif" alt="" height="75" width="11">');
	document.write('<a onmouseup=newwindow("../RHOX_Reviewed.data_/' + whichArticle + '/ss08.html"); href="#">');
	document.write('<img src="../RHOX_Reviewed.data_/' + whichArticle + '/thumb08.jpg" alt="" width="100" height="75" border="0">');
	document.write('</a>');
}

//Load thumbs 9 and 10
function thumbs9and10Loader_Review(titleRef){
	var whichArticle = titleRef.substring(titleRef.indexOf("(") + 1, titleRef.length - 1);
	document.write('<a onmouseup=newwindow("../RHOX_Reviewed.data_/' + whichArticle + '/ss09.html"); href="#">');
	document.write('<img src="../RHOX_Reviewed.data_/' + whichArticle + '/thumb09.jpg" alt="" width="100" height="75" border="0">');
	document.write('</a>');
	document.write('<img src="../RHOX_Reviewed.data_/images/spacer.gif" alt="" height="75" width="11">');
	document.write('<a onmouseup=newwindow("../RHOX_Reviewed.data_/' + whichArticle + '/ss10.html"); href="#">');
	document.write('<img src="../RHOX_Reviewed.data_/' + whichArticle + '/thumb10.jpg" alt="" width="100" height="75" border="0">');
	document.write('</a>');
}

//Load thumbs 11 and 12
function thumbs11and12Loader_Review(titleRef){
	var whichArticle = titleRef.substring(titleRef.indexOf("(") + 1, titleRef.length - 1);
	document.write('<a onmouseup=newwindow("../RHOX_Reviewed.data_/' + whichArticle + '/ss11.html"); href="#">');
	document.write('<img src="../RHOX_Reviewed.data_/' + whichArticle + '/thumb11.jpg" alt="" width="100" height="75" border="0">');
	document.write('</a>');
	document.write('<img src="../RHOX_Reviewed.data_/images/spacer.gif" alt="" height="75" width="11">');
	document.write('<a onmouseup=newwindow("../RHOX_Reviewed.data_/' + whichArticle + '/ss12.html"); href="#">');
	document.write('<img src="../RHOX_Reviewed.data_/' + whichArticle + '/thumb12.jpg" alt="" width="100" height="75" border="0">');
	document.write('</a>');
}
