// livecam flag
isMente = false;

if (!isMente)
{
	var liveVanaCode = '\
	<div style="padding:0px;margin:10px 0 10px 5px">\
		<a href="http://www.youtube.com/finalfantasyxi#p/u/39/dJ2-6l-lm1U" target="_blank">\
			<img id="liveVanaImage" src="/ff11de/imgs/livelnk.png" border="0"">\
		</a>\
	</div>';


}
else
{
	var liveVanaCode = '\
	<div style="background-image:url(/ff11/imgs/livevana.jpg); background-repeat:no-repeat; margin-top:10px; padding:0px; width:148px; height:153px;margin-left:5px">\
		<img id="liveVanaImage" src="/ff11/imgs/Livements.jpg" width="125" height="97" border="0" style="margin:37px 0px 0px 11px;">\
	</div>';
}

with (document) {
	// Language
	write('<div style="background-image:url(/ff11de/imgs/langbg.gif); background-repeat:no-repeat; margin-top:0px; padding:0px; width:148px; height:90px;margin-left:5px">');
	write('<a href="/ff11eu/"><img src="/ff11de/imgs/lgbteu.gif" width="136" height="17" border="0" style="margin:36px 0px 0px 5px;"></a>');
	write('<a href="/ff11fr/"><img src="/ff11de/imgs/lgbtfr.gif" width="136" height="17" border="0" style="margin:2px 0px 0px 5px;"></a>');
	write('</div>');

	// Server Stataus
	write('<div id="serverStatus" style="margin-left:5px"><iframe width="148" height="86" frameborder="0" src="http://www.playonline.com/pcd/service/ff11de.html" scrolling="no" ></iframe></div>');

	// Live Vana'diel
	write(liveVanaCode)
}

var scriptEls = document.getElementsByTagName('script');
for (var k in scriptEls) {
		if (scriptEls[k].src != undefined && scriptEls[k].src.indexOf('/widget.js') > 0) {
			with (document) {
				write('<div style="margin:0 0 0 5px;width:148px;">');
				write('<img src="/ff11/imgs/twbg01.gif">');
			}

			new TWTR.Widget({
			  version: 2,
			  type: 'profile',
			  rpp: 10,
			  interval: 6000,
			  width: 'auto',
			  height: 200,
			  theme: {
			    shell: {
			      background: '#787878',
			      color: '#e4e4e4'
			    },
			    tweets: {
			      background: '#f7f7f7',
			      color: '#333333',
			      links: '#d6402f'
			    }
			  },
			  features: {
			    scrollbar: true,
			    loop: false,
			    live: true,
			    hashtags: false,
			    timestamp: true,
			    avatars: false,
			    behavior: 'all'
			  }
			}).render().setUser('FFXI_EN').start();
			
			with (document) {	
				write('<img src="/ff11/imgs/twbg02.gif">');
				write('</div>')
			}
	}
}

with (document) {
	// Screen Shots Gallery
	write('<div style="margin-left:5px"><iframe width="148" height="197" frameborder="0" src="/ff11de/js/kongazo.html" scrolling="no" ></iframe></div>');

	// BANNER AREA
	write('<div id="czbn">');
	write("<img src='/ff11de/imgs/spacer.gif' width='1' height='30' border='0' alt=''><br>");
	write('<a class="imgb" href="http://www.youtube.com/finalfantasyxi" target="_blank"><img src="/ff11/banner/img_c/xichannel.gif" border="0" width="148" height="48" alt=""></a><br>');
	write('<a class="imgb" href="http://fanzone.playonline.com/lscom/index.do" target="_blank"><img src="/ff11de/banner/img_c/lscom.gif" border="0" width="148" height="48" alt=""></a><br><br>');

	write('<a class="imgb" href="http://www.square-enix-shop.com/eu/" target="_blank"><img src="/ff11de/banner/img_c/sqexprod.gif" border="0" width="148" height="48" alt=""></a><br><br>');
	write('<a class="imgb" href="http://www.square-enix.com/jp/recruit/career/job/game/loc_translator_de.html" target="_blank"><img src="/ff11de/banner/img_c/localize.gif" border="0" width="148" height="48" alt=""></a><br>');
	write('</div>');
}
