// xine.js - basic Xine definitions
// requires BACKSIDE.JS already loaded

var xine_base_URL = (backside_base_URL() + 'xine/');
var xine_issues_members_URL = (xine_base_URL + 'issues/');
var xine_issues_membersnot_URL = (xine_base_URL + 'issues/');

function xine_global_notices()
{};

var xine_global_notices = new xine_global_notices();  
var xine_global_notices_number = 0;

xine_global_notices[xine_global_notices_number++] =  ('<a href="' + backside_base_URL() + 'RL/index.html"><img src="' + xine_base_URL + 'notices/xine_notice_RL.jpg" border="0" align="center"></a>');
xine_global_notices[xine_global_notices_number++] =  ('<a href="' + backside_base_URL() + 'writers/index.html"><img src="' + xine_base_URL + 'notices/xine_notice_writers.jpg" border="0" align="center"></a>');
	
var xine_global_notices_random_number = Math.floor(Math.random() * xine_global_notices_number);


function global_notices () {
	document.write ('<table WIDTH="100" HEIGHT="100" CELLPADDING="0" CELLSPACING="0" BORDER="0" align="center"><tr>');
	document.write (	'<td ALIGN="center" VALIGN="middle" class="global_TOC">');
//	document.write (		xine_global_notices[xine_global_notices_random_number]);
	document.write (	'</td>');
	document.write ('</tr></table>');
} // func




function display_end_of_piece () {
	document.write ('xine_base_URL = "' + xine_base_URL + '"<BR /><BR />');
	document.write ('<div align="center"><img align="center" src="' + xine_base_URL + 'images/end_of_piece_X2.jpg" width="484" height="162" /></div>');
} // func


function issues_menu (mem) {
	document.write ('<img height="15" width="100%" border="0" src="' + backside_base_URL() + 'images/pixel_transparent.gif">');
	document.write ('<table WIDTH="100%" BORDER="0" STYLE="border-collapse:  collapse;" CELLPADDING="0" CELLSPACING="0"><tr>');
	document.write (	'<td class="xine_backissue_menu_style" ALIGN="center" VALIGN="middle" HEIGHT="1" WIDTH="100%">');
	document.write (		'<table WIDTH="100%" BORDER="0" CELLSPACING="0" CELLPADDING="0">');
	document.write (			'<tr>');
	document.write (				'<td class="xine_backissue_menu_header_style" HEIGHT="1" align="center" valign="middle">');
	document.write (					'Xine Issues');
	document.write (				'</td>');
	document.write (			'</tr>');
	document.write (			'<tr>');
	document.write (				'<td  class="xine_backissue_menu_style" HEIGHT="1" align="center" valign="middle">');
	document.write (					' <a TARGET="_top" href="' + xine_base_URL + 'issues/X006/index.html">Sacred Blush</a>');
	document.write (				'</td>');
	document.write (			'</tr>');
	document.write (			'<tr>');
	document.write (				'<td  class="xine_backissue_menu_style" HEIGHT="1" align="center" valign="middle">');
	document.write (					' <a TARGET="_top" href="' + xine_base_URL + 'issues/X005/index.html">LD Discipline</a>');
	document.write (				'</td>');
	document.write (			'</tr>');
	document.write (			'<tr>');
	document.write (				'<td  class="xine_backissue_menu_style" HEIGHT="1" align="center" valign="middle">');
	document.write (					' <a TARGET="_top" href="' + xine_base_URL + 'issues/X004/index.html">Rituals</a>');
	document.write (				'</td>');
	document.write (			'</tr>');
	document.write (			'<tr>');
	document.write (				'<td  class="xine_backissue_menu_style" HEIGHT="1" align="center" valign="middle">');
	document.write (					' <a TARGET="_top" href="' + xine_base_URL + 'issues/X003/index.html">Consistency</a>');
	document.write (				'</td>');
	document.write (			'</tr>');
	document.write (			'<tr>');
	document.write (				'<td  class="xine_backissue_menu_style" HEIGHT="1" align="center" valign="middle">');
	document.write (					' <a TARGET="_top" href="' + xine_base_URL + 'issues/X002/index.html">Punishmentality</a>');
	document.write (				'</td>');
	document.write (			'</tr>');
	document.write (			'<tr>');
	document.write (				'<td class="xine_backissue_menu_style" HEIGHT="1" align="center" valign="middle">');
	document.write (					' <a TARGET="_top" href="' + xine_base_URL + 'issues/X001/index.html">maiden voyage</a>');
	document.write (				'</td>');
	document.write (			'</tr>');
	document.write (		'</table>');
	document.write (	'</TD>');
	document.write ('</TR></table>');
} // func


function xine_departments_menu () {
	document.write ('<img height="15" width="100%" border="0" src="' + backside_base_URL() + 'images/pixel_transparent.gif">');
	document.write ('<table BGCOLOR="#4F0027" WIDTH="100%" BORDER="0" align="center" CELLPADDING="0" CELLSPACING="2">');
	document.write ('	<tr>');
	document.write ('		<td ALIGN="center" VALIGN="middle" HEIGHT="1"  class="global_TOC_header">');
	document.write ('			Xine offices');
	document.write ('		</td>');
	document.write ('	</tr>');
	document.write ('	<tr>');
	document.write (		'<td ALIGN="center" VALIGN="middle" HEIGHT="1"  class="global_TOC">');
	document.write (			'<a  TARGET="_blank" href="' + xine_base_URL + 'index.html">home</a>');
	document.write (		'</td>');
	document.write ('	</tr>');
	document.write ('	<tr>');
	document.write ('		<td ALIGN="center" VALIGN="middle" HEIGHT="1"  class="global_TOC">');
	document.write (			'<a  TARGET="_blank" href="' + xine_base_URL + 'subscribers/index.html">subscription desk</a>');
	document.write ('		</td>');
	document.write ('	</tr>');
	document.write ('	<tr>');
	document.write ('		<td ALIGN="center" VALIGN="middle" HEIGHT="1"  class="global_TOC">');
	document.write (			'(<a href="<?php echo $PHP_SELF; ?>?action=logout.php">log out</a>)<BR />');
	document.write ('		</td>');
	document.write ('	</tr>');
	document.write ('	<tr>');
	document.write ('		<td ALIGN="center" VALIGN="middle" HEIGHT="1" class="global_TOC">');
	document.write (			'<a TARGET="_blank" href="' + backside_base_URL() + 'admin/index.html">editor\'s desk</a>');
	document.write ('		</td>');
	document.write ('	</tr>');
	document.write ('</table>');
} // func

