//**********************************************************************************/
// TOP BOTTOM MENU GLS SCRIPT 
// The code & design were developed by Fat-Man Colectivo Ltda [Fat-Man Collective]. 
// Copyright 2006. http://www.fat-man-collective.com
//**********************************************************************************/

var deform
if (per_bot_menu == 'mtop_01'){
	deform = "glse"
	}
if (per_bot_menu == 'mtop_02'){
	deform = "glse"
	}
if (per_bot_menu == 'mtop_03'){
	deform = "ews"
	}
if (per_bot_menu == 'mtop_04'){
	deform = "ls"
	}	
if (per_bot_menu == 'mtop_05'){
	deform = "oo"
	}	
		
//************************************************************************************


var letmpre = ''
letmpre = letmpre + '			<table border="0" cellpadding="0" cellspacing="0" width="400px" height="10px" background="r_arrow.gif" style="margin:11 0 0 0;background-repeat: no-repeat;" align=right >'
letmpre = letmpre + '			  <tr>'
letmpre = letmpre + '			   <td class=top_menu style="padding:0 0 0 10;" align=right >'
letmpre = letmpre + '			   <a href="../store.htm">Store</a><font class=top_separate>|</font>'
letmpre = letmpre + '			   <a href="../glse/about_us.htm">About Us</a><font class=top_separate>|</font>'
letmpre = letmpre + '			   <a href="../glse/faqs.htm">FAQs</a><font class=top_separate>|</font>'
letmpre = letmpre + '			   <a href="../glse/press.htm">Press</a><font class=top_separate>|</font>'
letmpre = letmpre + '			   <a href="../glse/privacy.htm">Privacy</a><font class=top_separate>|</font>'
letmpre = letmpre + '			   <a href="../glse/site_map.htm">Site Map</a><font class=top_separate>|</font>'
letmpre = letmpre + '			   <a href="../glse/contact_us.htm">Contact Us</a><font class=top_separate>|</font>'
letmpre = letmpre + '			   <a href="../glse/mailing_list.htm">Mailing List</a>'
letmpre = letmpre + '			   </td>'
letmpre = letmpre + '			   </tr>'
letmpre = letmpre + '			</table>'

document.getElementById('top_let_menu').innerHTML = letmpre

//**********************************************************************************/

var lebmpre = ''
if(per_bot_menu == 'mtop_05'){
lebmpre = lebmpre +  '			 <table border="0" cellpadding="0" cellspacing="0" width="480px"> <tr>'
lebmpre = lebmpre +  '			   <td class=top_menu style="padding:0 0 0 0;color:#666666;" align=center>'
lebmpre = lebmpre + '				  <br><b>Our Orphans is a division of Universal Life Charities – Registered Charity Number 1115137</b> <br>Our Orphans Foundation - London – California – Tel-Aviv<br>UK Tel: +44 203 2398885 - US Tel: +1 310 2169000 - www.ourorphans.org <b><a href="mailto:support@ourorphans.com">support@ourorphans.com</a></b>'
lebmpre = lebmpre + '				   <br><br>'
lebmpre = lebmpre + '			   </td></tr></table>'
}
lebmpre = lebmpre + '			<table border="0" cellpadding="0" cellspacing="0" width="400px" height="10px" background="r_arrow.gif" style="margin:11 0 0 0;background-repeat: no-repeat;" align=center >'
lebmpre = lebmpre + '			  <tr>'
lebmpre = lebmpre + '			   <td class=top_menu style="padding:0 0 0 10;" align=right >'
lebmpre = lebmpre + '			   <a href="../store.htm">Store</a><font class=top_separate>|</font>'
lebmpre = lebmpre + '			   <a href="../glse/about_us.htm">About Us</a><font class=top_separate>|</font>'
lebmpre = lebmpre + '			   <a href="../glse/faqs.htm">FAQs</a><font class=top_separate>|</font>'
lebmpre = lebmpre + '			   <a href="../glse/press.htm">Press</a><font class=top_separate>|</font>'
lebmpre = lebmpre + '			   <a href="../glse/privacy.htm">Privacy</a><font class=top_separate>|</font>'
lebmpre = lebmpre + '			   <a href="../glse/site_map.htm">Site Map</a><font class=top_separate>|</font>'
lebmpre = lebmpre + '			   <a href="../glse/contact_us.htm">Contact Us</a><font class=top_separate>|</font>'
lebmpre = lebmpre + '			   <a href="../glse/mailing_list.htm">Mailing List</a>'
lebmpre = lebmpre + '			   </td>'
lebmpre = lebmpre + '			   </tr>'
lebmpre = lebmpre + '			</table>'

document.getElementById('bot_let_menu').innerHTML = lebmpre

//**********************************************************************************/

var itmpre = ''
itmpre = itmpre + '			<table border="0" cellpadding="0" cellspacing="0" width="768px" height="27px" style="margin:2 0 0 0; ">'
itmpre = itmpre + '			  <tr>'
itmpre = itmpre + '			   <td width="1px" style="padding:0 3 0 0;"><img class=img_menu  src="../img/mmtop_01.gif" width="140" height="27" border="0" id="mmtop_01" onmouseover="funovert(this.id);" onmouseout="funoutt(this.id);" onclick="top.location.href=\'../glse/index.htm\'"></td>'
itmpre = itmpre + '			   <td width="1px" style="padding:0 3 0 0;"><img class=img_menu  src="../img/mmtop_02.gif" width="129" height="27" border="0" id="mmtop_02" onmouseover="funovert(this.id);" onmouseout="funoutt(this.id);" onclick="top.location.href=\'../glse/team_satria.htm\'"></td>'
itmpre = itmpre + '			   <td width="1px" style="padding:0 3 0 0;"><img class=img_menu  src="../img/mmtop_03.gif" width="119" height="27" border="0" id="mmtop_03" onmouseover="funovert(this.id);" onmouseout="funoutt(this.id);" onclick="top.location.href=\'../ews/index.htm\'"></td>'
itmpre = itmpre + '			   <td width="1px" style="padding:0 3 0 0;"><img class=img_menu  src="../img/mmtop_04.gif" width="87" height="27" border="0" id="mmtop_04" onmouseover="funovert(this.id);" onmouseout="funoutt(this.id);" onclick="top.location.href=\'../ls/index.htm\'"></td>'
itmpre = itmpre + '			   <td width="1px" style="padding:0 3 0 0;"><img class=img_menu  src="../img/mmtop_05.gif" width="108" height="27" border="0" id="mmtop_05" onmouseover="funovert(this.id);" onmouseout="funoutt(this.id);" onclick="top.location.href=\'../oo/index.htm\'"></td>'
itmpre = itmpre + '			   <td width="11px">&nbsp;</td>'
itmpre = itmpre + '			   <td width="159px" valign=top background="../img/menusec-06.gif" style="background-repeat: no-repeat;">'
itmpre = itmpre + '			   	<form method="get" action="../'+ deform +'/search.php" name=form1><table border="0" cellpadding="0" cellspacing="0" style="margin:4 0 0 8;">'
itmpre = itmpre + '			   	<tr>'
itmpre = itmpre + '			   	<td>'
itmpre = itmpre + '			   	<input type=text class=input_top value="Search" name="zoom_query">'
itmpre = itmpre + '			  	</td>'
itmpre = itmpre + '			  	<td style="padding:0 0 0 5;"><input type=image src="../img/search_button.gif" style="cursor:pointer;" title="Search"></td>'
itmpre = itmpre + '			   	</tr>'
itmpre = itmpre + '			   	</table></form>'
itmpre = itmpre + '			   </td> '
itmpre = itmpre + '			   </tr>'
itmpre = itmpre + '			</table>'

document.getElementById('top_img_menu').innerHTML = itmpre


//**********************************************************************************/

var ibmpre = ''
ibmpre = ibmpre + '			<table border="0" cellpadding="0" cellspacing="0" width="768px" height="27px" style="margin:2 0 0 0; ">'
ibmpre = ibmpre + '			  <tr>'
ibmpre = ibmpre + '			   <td width="1px" style="padding:0 3 0 0;"><img class=img_menu  src="../img/mtop_01.gif" width="140" height="27" border="0" id="mtop_01" onmouseover="funovert(this.id);" onmouseout="funoutt(this.id);" onclick="top.location.href=\'../glse/index.htm\'"></td>'
ibmpre = ibmpre + '			   <td width="1px" style="padding:0 3 0 0;"><img class=img_menu  src="../img/mtop_02.gif" width="129" height="27" border="0" id="mtop_02" onmouseover="funovert(this.id);" onmouseout="funoutt(this.id);" onclick="top.location.href=\'../glse/reel_combat.htm\'"></td>'
ibmpre = ibmpre + '			   <td width="1px" style="padding:0 3 0 0;"><img class=img_menu  src="../img/mtop_03.gif" width="119" height="27" border="0" id="mtop_03" onmouseover="funovert(this.id);" onmouseout="funoutt(this.id);"onclick="top.location.href=\'../ews/index.htm\'"></td>'
ibmpre = ibmpre + '			   <td width="1px" style="padding:0 3 0 0;"><img class=img_menu  src="../img/mtop_04.gif" width="87" height="27" border="0" id="mtop_04" onmouseover="funovert(this.id);" onmouseout="funoutt(this.id);" onclick="top.location.href=\'../ls/index.htm\'"></td>'
ibmpre = ibmpre + '			   <td width="1px" style="padding:0 3 0 0;"><img class=img_menu  src="../img/mtop_05.gif" width="108" height="27" border="0" id="mtop_05" onmouseover="funovert(this.id);" onmouseout="funoutt(this.id);" onclick="top.location.href=\'../oo/index.htm\'"></td>'
ibmpre = ibmpre + '			   <td width="11px">&nbsp;</td>'
ibmpre = ibmpre + '			   <td width="159px" valign=top background="../img/menusec-06.gif" style="background-repeat: no-repeat;">'
ibmpre = ibmpre + '			   	<form method="get" action="../'+ deform +'/search.php"><table border="0" cellpadding="0" cellspacing="0" style="margin:4 0 0 8;"> '
ibmpre = ibmpre + '			   	<tr>'
ibmpre = ibmpre + '			   	<td>'
ibmpre = ibmpre + '			   	<input type=text class=input_top value="Search" name=zoom_query>'
ibmpre = ibmpre + '			  	</td>'
ibmpre = ibmpre + '			  	<td style="padding:0 0 0 5;"><input type=image src="../img/search_button.gif" style="cursor:pointer;" title="Search"></td>'
ibmpre = ibmpre + '			   	</tr>'
ibmpre = ibmpre + '			   	</table></form>'
ibmpre = ibmpre + '			   </td>'
ibmpre = ibmpre + '			   </tr>'
ibmpre = ibmpre + '			</table>'

document.getElementById('bot_img_menu').innerHTML = ibmpre

//**********************************************************************************/

var botcop = ''
botcop = botcop + '			<table border="0" cellpadding="0" cellspacing="0" width="577px" style="margin:9 0 0 0;" align=center >'


botcop = botcop + '			  <tr>'
botcop = botcop + '			   <td class=top_menu style="padding:0 0 0 0;color:#666666;" align=center>'
botcop = botcop + '				   Copyright © 2006   All rights reserved.'
botcop = botcop + '				   <br>'
botcop = botcop + '			   </td>'
botcop = botcop + '			   </tr>'
botcop = botcop + '			   <tr>'
botcop = botcop + '			   <td class=top_menu style="padding:5 0 0 0;font-size:10px;" align=center>'
botcop = botcop + '				Use of this site constitutes acceptance of our  and . © 2006 Golden Light Studios. All rights reserved. The material on this site may not be reproduced, distributed, transmitted, cached or otherwise used, except with the prior written permission of Golden Light Studios. <br><br>'
botcop = botcop + '			   Designed & Developed by:<br><a href="http://www.fat-man-collective.com" target="_blank"><img src="../img/fmc_logo.gif" border=0 title="Fat-Man Collective"><br><br></td>'
botcop = botcop + '			   </tr>'
botcop = botcop + '			</table>'

document.getElementById('bot_copy').innerHTML = botcop

//**********************************************************************************/
// WRITE BANNERS

var mlog = ''
mlog = mlog + '<img src="images/' + m_logo + '.jpg">'
document.getElementById('main_logo').innerHTML = mlog

//writemenu(); 

var vbann = ''
vbann = vbann + '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="120" height="600">'
vbann = vbann + '<param name="movie" value="ad_banners/' + ver_banner + '.swf">'
vbann = vbann + '<param name="quality" value="high" >'
vbann = vbann + '<embed src="ad_banners/' + ver_banner + '.swf" width="120" height="600" loop="false" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" ></embed>'
vbann = vbann + '</object>'

	if(ver_banner == 'none'){
	document.getElementById('vertical_banner').innerHTML = ''
	}else{
	document.getElementById('vertical_banner').innerHTML = vbann
	}


//**********************************************************************************/

	function funperini_top_menu(){
	per_top_menu = 'm' +  per_bot_menu 
	var per_top_menu_over = '../img/m' +  per_bot_menu + '_over.gif'
	document.getElementById(per_top_menu).src = per_top_menu_over;
	var per_bot_menu_over = '../img/' + per_bot_menu + '_over.gif'
	document.getElementById(per_bot_menu).src = per_bot_menu_over;
	}

	function funper_top_menu(){
	per_top_menu = 'm' +  per_bot_menu 
	var per_top_menu_over = '../img/m' + per_bot_menu + '_over.gif'
	document.getElementById(per_top_menu).src = per_top_menu_over;
	var per_bot_menu_over = '../img/' + per_bot_menu + '_over.gif'
	document.getElementById(per_bot_menu).src = per_bot_menu_over;
	}
	
	function funovert(elid){
	var elover ='../img/'+ elid + '_over.gif'
	document.getElementById(elid).src = elover;
	funper_top_menu()
	}
	
	function funoutt(elid){
	var elup ='../img/'+ elid + '.gif'
	document.getElementById(elid).src = elup;
	funper_top_menu()
	}
