/**********************************************************************************/
// 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>Special Offer</b> – The WAY DVDs are now half the original price "
imgbutton = "store"
buttonlink = "../store.htm"

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



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

imgbox = "images/tn_movies.jpg"

// Please do not use more than 90 characters (including spaces)
boxcontent = "<b>GLS</b> is filming the Showreel for the Epic martial arts Trilogy  "
imgbutton = "movies"
buttonlink = "dark_eden.htm"

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



function content_3(boxnumber){
// BEGIN FEATURE No 3 REEL COMBAT

imgbox = "images/tn_reel.jpg"

// Please do not use more than 90 characters (including spaces)
boxcontent = "<b>The WAY</b> – Discover our groundbreaking new DVD series"
imgbutton = "reel"
buttonlink = "team_satria.htm"

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



function content_4(boxnumber){
// BEGIN FEATURE No 4 GLSTV

imgbox = "images/tn_gls.gif"

// Please do not use more than 90 characters (including spaces)
boxcontent = "<b>Watch Exclusive</b> new TV series and unique short films only on GLS*tv "
imgbutton = "glstv"
buttonlink = "glstv_home.htm"

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



function content_5(boxnumber){
// BEGIN FEATURE No 5 TELEVISION

imgbox = "images/tn_television.jpg"

// Please do not use more than 90 characters (including spaces)
boxcontent = "<b>Enjoy Clips</b> of our latest TV Shows & Raindance Nominated Documentaries"
imgbutton = "television"
buttonlink = "television_tales_from_the_mat.htm"

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



function content_6(boxnumber){
// BEGIN FEATURE No 6 DVD

imgbox = "images/tn_dvd.gif"

// Please do not use more than 90 characters (including spaces)
boxcontent = "<b>The WAY</b> – Warrior Arts Yoga: the groundbreaking new DVD series"
imgbutton = "dvd"
buttonlink = "dvd_reel_combat.htm"

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



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

imgbox = "images/tn_music.gif"

// Please do not use more than 90 characters (including spaces)
boxcontent = "<b>ReelMusic</b> dedicated composition and production department for film & tv"
imgbutton = "music"
buttonlink = "music.htm"

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



function content_8(boxnumber){
// BEGIN FEATURE No 8 GAMES

imgbox = "images/tn_games.jpg"

// Please do not use more than 90 characters (including spaces)
boxcontent = "<b>Find out</b> about new games in development by GLS GAMES"
imgbutton = "games"
buttonlink = "games_vision.htm"

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



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

imgbox = "images/tn_downloads.gif"

// Please do not use more than 90 characters (including spaces)
boxcontent = "Clips, Films, Mobile, Screensavers, Life School, Pictures & Podcasts"
imgbutton = "downloads"
buttonlink = "index.htm"

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



function content_10(boxnumber){
// BEGIN FEATURE No 10 FORUM

imgbox = "images/tn_forum.gif"

// Please do not use more than 90 characters (including spaces)
boxcontent = "<b>Join in:</b> get hooked into the latest developments in the GLS Forum. Check it out"
imgbutton = "forum"
buttonlink = "http://www.goldenlightstudios.com/forum/forum_gls.htm"

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



function content_11(boxnumber){
// BEGIN FEATURE No 11 MAILING LIST

imgbox = "images/tn_mailing.gif"

// Please do not use more than 90 characters (including spaces)
boxcontent = "<b>Join</b> and keep up to date with the latest free info from Golden Light Studios"
imgbutton = "mailing"
buttonlink = "mailing_list.htm"

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



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

imgbox = "images/tn_blog.gif"

// Please do not use more than 90 characters (including spaces)
boxcontent = "Blog blog blog blog blog blog blog blog blog blog blog blog blog "
imgbutton = "blog"
buttonlink = "blog.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 = 'movies'
var ttc3 = 'reel'
var ttc4 = 'glstv'
var ttc5 = 'television'
var ttc6 = 'dvd'
var ttc7 = 'music'
var ttc8 = 'games'
var ttc9 = 'downloads'
var ttc10 = 'forum'
var ttc11 = 'mailing'
var ttc12 = 'blog'

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
