/**********************************************************************************/
// FEATURE CONTROL BOX
// The code & design were developed by Fat-Man Colectivo Ltda [Fat-Man Collective]. 
// Copyright 2006. http://www.fat-man-collective.com

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

function content_1(boxnumber){
// BEGIN FEATURE No 1 STORE

imgbox = "images/tn_store.gif"

// Please do not use more than 90 characters (including spaces)
boxcontent = "<b>Inspiring</b> CDs and Books on Life and Life in all its abundance. <b>Order</b> "
imgbutton = "store"
buttonlink = "../store_item_lf.htm"

// END FEATURE No 1
box_write(boxnumber, imgbox, boxcontent, imgbutton, buttonlink)
}



function content_2(boxnumber){
// BEGIN FEATURE No 2 MAIL

imgbox = "images/tn_mail.jpg"

// Please do not use more than 90 characters (including spaces)
boxcontent = "<b>Join our mailing list</b> and receive free Life School teachings and articles. <b>Join Now</b>  "
imgbutton = "mail"
buttonlink = "mailing_list.htm"

// END FEATURE No 2
box_write(boxnumber, imgbox, boxcontent, imgbutton, buttonlink)
}



function content_3(boxnumber){
// BEGIN FEATURE No 3 TV ROOM

imgbox = "images/tn_tv.jpg"

// Please do not use more than 90 characters (including spaces)
boxcontent = "<b>Watch exclusive</b> Life School programmes only on GLS*tv"
imgbutton = "tv"
buttonlink = "../glse/glstv_spirit.php?vari1=trailers&vari2=menu_a&vari3=video_london"

// END FEATURE No 3
box_write(boxnumber, imgbox, boxcontent, imgbutton, buttonlink)
}



function content_4(boxnumber){
// BEGIN FEATURE No 4 LIVING ROOM

imgbox = "images/tn_living.jpg"

// Please do not use more than 90 characters (including spaces)
boxcontent = "<b>Listen</b> to life giving words to water the mind, body and soul "
imgbutton = "living"
buttonlink = "livingroom.htm"

// END FEATURE No 4
box_write(boxnumber, imgbox, boxcontent, imgbutton, buttonlink)
}



function content_5(boxnumber){
// BEGIN FEATURE No 5 STUDY ROOM

imgbox = "images/tn_study.jpg"

// Please do not use more than 90 characters (including spaces)
boxcontent = "<b>Read</b> life giving words to water the mind, body and soul"
imgbutton = "study"
buttonlink = "read.htm"

// END FEATURE No 5
box_write(boxnumber, imgbox, boxcontent, imgbutton, buttonlink)
}



function content_6(boxnumber){
// BEGIN FEATURE No 6 MEETING ROOM EVENTS

imgbox = "images/tn_meeting.jpg"

// Please do not use more than 90 characters (including spaces)
boxcontent = "<B>EVENTS</B> - Experience a deeper impartation from the Life School"
imgbutton = "meeting"
buttonlink = "events.htm"

// END FEATURE No 6
box_write(boxnumber, imgbox, boxcontent, imgbutton, buttonlink)
}



function content_7(boxnumber){
// BEGIN FEATURE No 7 SECRET

imgbox = "images/tn_secret.jpg"

// Please do not use more than 90 characters (including spaces)
boxcontent = "<b>Protection</b> - I who dwell in the secret place of the Most High"
imgbutton = "secret"
buttonlink = "secretroom.htm"

// END FEATURE No 7
box_write(boxnumber, imgbox, boxcontent, imgbutton, buttonlink)
}



function content_8(boxnumber){
// BEGIN FEATURE No 8 Community Room

imgbox = "images/tn_community.jpg"

// Please do not use more than 90 characters (including spaces)
boxcontent = "<b>Forum</b> - Your link to like minded souls around the world"
imgbutton = "community"
buttonlink = "forum.htm"

// END FEATURE No 8
box_write(boxnumber, imgbox, boxcontent, imgbutton, buttonlink)
}



function content_9(boxnumber){
// BEGIN FEATURE No 9 BATHROOM

imgbox = "images/tn_bath.jpg"

// Please do not use more than 90 characters (including spaces)
boxcontent = "<b>New Life</b> - Where you can renew your heart and awaken your new life"
imgbutton = "bath"
buttonlink = "bathroom.htm"

// END FEATURE No 9
box_write(boxnumber, imgbox, boxcontent, imgbutton, buttonlink)
}



function content_10(boxnumber){
// BEGIN FEATURE No 10 Bed Room

imgbox = "images/tn_bed.jpg"

// Please do not use more than 90 characters (including spaces)
boxcontent = "<b>Balance</b> - Here you can learn to awaken your potential during the night"
imgbutton = "bed"
buttonlink = "bedroom.htm"

// END FEATURE No 10
box_write(boxnumber, imgbox, boxcontent, imgbutton, buttonlink)
}



function content_11(boxnumber){
// BEGIN FEATURE No 11 Kitchen Room

imgbox = "images/tn_kitchen.jpg"

// Please do not use more than 90 characters (including spaces)
boxcontent = "<b>Nutrition</b> - Learn about the most natural foods to truly improve your life"
imgbutton = "kitchen"
buttonlink = "kitchenroom.htm"

// END FEATURE No 11
box_write(boxnumber, imgbox, boxcontent, imgbutton, buttonlink)
}



function content_12(boxnumber){
// BEGIN FEATURE No 12 GARDEN

imgbox = "images/tn_garden.jpg"

// Please do not use more than 90 characters (including spaces)
boxcontent = "<b>Unlock the Garden</b> where Mother Earth reveals her inner secrets to you "
imgbutton = "garden"
buttonlink = "gardenroom.htm"

// END FEATURE No 12
box_write(boxnumber, imgbox, boxcontent, imgbutton, buttonlink)
}






function box_write(boxnumber, imgbox, boxcontent, imgbutton, buttonlink){
	if(boxcontent.length > 80){
		var valid_boxcontent = boxcontent.substr(0,90)
	}else{
		var valid_boxcontent = boxcontent 
	}
//box_code = ''
box_code = '<table border="0" cellpadding="0" cellspacing="0" width="155px"><tr><td><a href="'+ buttonlink +'"><img src="'+ imgbox +'" width="155px" height="67px" border=0></a></td></tr><tr><td class=box_text valign=top>'+ valid_boxcontent +'</td></tr><tr><td class=box_button><a href="'+ buttonlink +'"><img  src="img/button_'+ imgbutton + '.gif" border=0  onmouseover="this.src=\'img/button_'+ imgbutton + '_over.gif\';" onmouseout="this.src=\'img/button_'+ imgbutton + '.gif\';"></a></td></tr></table>'

document.getElementById(boxnumber).innerHTML = box_code
//document.getElementById(boxnumber).style.display = "none"
}

// BEGIN FEATURES RANDOM FUNCTION

//var tb1 = 0
var tb2 = 0
var tb3 = 0
var tb4 = 0
var tb5 = 0
var tb6 = 0
var tb7 = 0
var tb8 = 0

//var tc1 = 0
var tc2 = 0
var tc3 = 0
var tc4 = 0
var tc5 = 0
var tc6 = 0
var tc7 = 0
var tc8 = 0
var tc9 = 0
var tc10 = 0
var tc11 = 0
var tc12 = 0

var ttc2 = 'store'
var ttc3 = 'mail'
var ttc4 = 'tv'
var ttc5 = 'living'
var ttc6 = 'study'
var ttc7 = 'meeting'
var ttc8 = 'secret'
var ttc9 = 'community'
var ttc10 = 'bed'
var ttc11 = 'kitchen'
var ttc12 = 'garden'

var ranbox
var rancont
var labox = 2

function features_loop(){
	
	if(labox > 1 && labox < 9){
		//alert(labox)
		rancont = Math.floor((Math.random()*10)+2);
		eval('testcont = tc'+rancont+'')
		eval('testtype = ttc'+rancont+'')
		//alert(testtype)
		//alert(type_page)
		 if(testcont == 0 && testtype != this_content){
		 	
			eval('content_'+ rancont +'("box_0'+ labox +'")')
			eval('tc'+rancont+'=1')
			labox = labox + 1
			reloop()
			
		 }else{
		 reloop()
		 }
	}
}

function reloop(){
	features_loop()
}

content_1("box_01")
features_loop()



// END FEATURES RANDOM FUNCTION