// *************************************************************************************
// FIX THE BACKSIDE_BASE_URL SETTINGS IN FUNCTION BARNUM() !!!!!!!!!!!!!!!!!!!!!
//*************************************************************************************





// permutations: 300x50 / 300x100 (not used) / 100x200 / 100x50 (not used)
function barnum_notices() {};  
var barnum_notices = new barnum_notices();  
var barnum_notices_number = 0;

// pass one of these to determine notice size to be displayed
var notice_size_300x050  = '300x050'; 
var notice_size_100x200 = '100x200'; 

var spanking_genre = 'spanking';
var ageplay_genre = 'ageplay';
var GI_snuggery_genre = 'GI_snuggery';
var GI_kittery_genre = 'GI_kittery';

document.write ('<link rel="stylesheet" type="text/css" href="' + backside_base_URL() + 'barnum/barnum.css" />');


////////////////////////////////////////////////////////////////////////////////////////////							 
// builds a single array of notices depending on the genre passed and the size needed
// genre: spanking / ageplay / GI  [blank includes any given genre]
// w : 100 or 300
// h : 50 or 200
//  100x200 / 300x50  
////////////////////////////////////////////////////////////////////////////////////////////							 
function barnum (genre, notice_size) {
	
	////////////////////////////////////////////////////////////////////////
	// add spanking or * genres to the array
	if ((genre == spanking_genre) || (genre == 'GI_kittery') || (genre == '') || (genre == '*')) {
		// spanking 01 (firm hand / adoration)
			barnum_notices[barnum_notices_number++] =  ('<a target="_blank" href="' + backside_base_URL() + 'readery/spanking/index.html"><img align="center" border="0" src="' + backside_base_URL() + 'barnum/notices_300x050/barnum_spanking_01_300x050.jpg"></a>');
		// spanking 02 (neeeded this purging
			barnum_notices[barnum_notices_number++] =  ('<a target="_blank" href="' + backside_base_URL() + 'readery/spanking/index.html"><img align="center" border="0" src="' + backside_base_URL() + 'barnum/notices_300x050/barnum_spanking_02_300x050.jpg"></a>');
		// butterflies
			barnum_notices[barnum_notices_number++] =  ('<a target="_blank" href="' + backside_base_URL() + 'exhibits/BacksideOfLove.com_exhibit_05021V/index.html"><img align="center" border="0" src="' + backside_base_URL() + 'barnum/notices_300x050/barnum_butterflies_01_300x050.jpg"></a>');
		// Tears of A Vampire
			barnum_notices[barnum_notices_number++] =  '<em><a target="_blank" href="http://backsideoflove.com/readery/display_item.html?01018">Tears Of A Vampire</em></a> brings the shadow atmospheres of Anne Rice to the rich headspace of Adoring Discipline';
		// embraced
			barnum_notices[barnum_notices_number++] =  'She resisted... but ultimately couldn\'t resist wondering what it would be like to be with a <a target="_blank" href="http://backsideoflove.com/readery/display_item.html?01020">man like that</a>...';
		// Soulmates
			barnum_notices[barnum_notices_number++] =  'He\'s used to making things run like clockwork, but the military never held any challenges like <a target="_blank" href="http://backsideoflove.com/readery/display_item.html?01019">her</a>!';
	} // 300x050 spanking or all

	//////////////////////////////////////////////////////////////////////////////////////////////
	if ((genre == 'ageplay') || (genre == 'GI_kittery') || (genre == '') || (genre == '*')) {
		// Tears of A Vampire
			barnum_notices[barnum_notices_number++] =  ('<a target="_blank" href="' + backside_base_URL() + 'readery/display_item.html?01100"><img border="0" src="' + backside_base_URL() + 'barnum/notices_300x050/barnum_missy_300x050.jpg"></a>');
	} // ageplay or GI_kittery or any
	
	//////////////////////////////////////////////////////////////////////////////////////////////
	if ((genre == 'GI_kittery') || (genre == '') || (genre == '*')) {
	} // just GI_kittery stuff or any
	
	//////////////////////////////////////////////////////////////////////////////////////////////
	if ((genre == 'GI_snuggery') || (genre == '') || (genre == '*')) {
		// readery
			barnum_notices[barnum_notices_number++] =  ('<a title="Adoring Discipline stories" href="http://BacksideOfLove.com/readery/spanking/index.html" target="_blank"><font size="2" color="#996699">spanking romance classics</font></a><br /><a title="Adult Ageplay stories" href="http://BacksideOfLove.com/readery/ageplay/index.html" target="_blank"><font size="2" color="#996699">adult ageplay fiction</font></a>');
			barnum_notices[barnum_notices_number++] =  ('<a title="Adoring Discipline stories" href="http://BacksideOfLove.com/readery/spanking/index.html" target="_blank"><font size="2" color="#996699">spanking romance classics</font></a><br /><a title="Adult Ageplay stories" href="http://BacksideOfLove.com/readery/ageplay/index.html" target="_blank"><font size="2" color="#996699">adult ageplay fiction</font></a>');
		// GICAB
//			barnum_notices[barnum_notices_number++] =  ('<img border="0" src="http://ageplay.org/GI_support/touches/sponsors/GICAB_01_300x050.jpg">');
		// GIEN
//			barnum_notices[barnum_notices_number++] =  ('<img border="0" src="http://ageplay.org/GI_support/touches/sponsors/GIEN_01_300x050.jpg">');
		// GIDRL
//			barnum_notices[barnum_notices_number++] =  ('<img border="0" src="http://ageplay.org/GI_support/touches/sponsors/GIDRL_300x050.jpg">');
	} // just GI_snuggery stuff or any
	
	var barnum_notices_random_number = Math.floor(Math.random() * barnum_notices_number);
	
	document.write ('<TABLE align="center" width="100%" height="100%" border="0" cellpadding="0" cellspacing="0"><TR>');
	document.write (	'<TD align="center" valign="middle" class="barnum_simple">');
	document.write (		barnum_notices[barnum_notices_random_number]);
	document.write (	'</TD>');
	document.write ('<TR><TABLE>');
	
} // barnum - master barnum routines



	