var IE = (document.all) ? true : false;

function RandomNumber() {
  today = new Date();
  num= Math.abs(Math.sin(today.getTime()));
  return num;
}

function load_flash () {
html = new Array( "<OBJECT classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0\" WIDTH=480 HEIGHT=177>" +
" <PARAM NAME=movie VALUE=\"flash/main.swf\"> <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE=#FFFFFF> <EMBED src=\"flash/main.swf\" quality=high bgcolor=#FFFFFF  WIDTH=480 HEIGHT=177 TYPE=\"application/x-shockwave-flash\" PLUGINSPAGE=\"http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash\"></EMBED></OBJECT>",
"<OBJECT classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0\" WIDTH=480 HEIGHT=177>" +
" <PARAM NAME=movie VALUE=\"flash/main2.swf\"> <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE=#FFFFFF> <EMBED src=\"flash/main2.swf\" quality=high bgcolor=#FFFFFF  WIDTH=480 HEIGHT=177 TYPE=\"application/x-shockwave-flash\" PLUGINSPAGE=\"http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash\"></EMBED></OBJECT>",
"<OBJECT classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0\" WIDTH=480 HEIGHT=177>" +
" <PARAM NAME=movie VALUE=\"flash/main3.swf\"> <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE=#FFFFFF> <EMBED src=\"flash/main3.swf\" quality=high bgcolor=#FFFFFF  WIDTH=480 HEIGHT=177 TYPE=\"application/x-shockwave-flash\" PLUGINSPAGE=\"http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash\"></EMBED></OBJECT>"
);
n = Math.round((RandomNumber() * 100));
number = n % 3;
html_src = html[number];

if (IE) 
	{
		document.all['sky'].innerHTML = html_src;
	}
	else
	{
		document.getElementById('sky').innerHTML = html_src;
	}
}

	tab_p_0=new Image()
	tab_p_0.src=imgd + "img/tab0" + lang + ".gif";
	tab_p_0_hi=new Image()
	tab_p_0_hi.src=imgd + "img/tab0" + lang + "_hi.gif";

	tab_p_1=new Image()
	tab_p_1.src=imgd + "img/tab1" + lang + ".gif";
	tab_p_1_hi=new Image()
	tab_p_1_hi.src=imgd + "img/tab1" + lang + "_hi.gif";

	tab_p_2=new Image()
	tab_p_2.src=imgd + "img/tab2" + lang + ".gif";
	tab_p_2_hi=new Image()
	tab_p_2_hi.src=imgd + "img/tab2" + lang + "_hi.gif";

	tab_p_3=new Image()
	tab_p_3.src=imgd + "img/tab3" + lang + ".gif";
	tab_p_3_hi=new Image()
	tab_p_3_hi.src=imgd + "img/tab3" + lang + "_hi.gif";

	tab_p_4=new Image()
	tab_p_4.src=imgd + "img/free" + lang + ".gif";
	tab_p_4_hi=new Image()
	tab_p_4_hi.src=imgd + "img/free" + lang + "_hi.gif";

	function on(co) {
		if (co == 0) {document.tab0.src = tab_p_0_hi.src}
		if (co == 1) {document.tab1.src = tab_p_1_hi.src}
		if (co == 2) {document.tab2.src = tab_p_2_hi.src}
		if (co == 3) {document.tab3.src = tab_p_3_hi.src}
		if (co == 4) {document.tab4.src = tab_p_4_hi.src}
}

	function off(co) {
		if (co == 0) {document.tab0.src = tab_p_0.src}
		if (co == 1) {document.tab1.src = tab_p_1.src}
		if (co == 2) {document.tab2.src = tab_p_2.src}
		if (co == 3) {document.tab3.src = tab_p_3.src}
		if (co == 4) {document.tab4.src = tab_p_4.src}
}

function new_window(co, w, h) {
	w=window.open(co,"GWFOTO","width=" + w + ",height=" + h + ",scrollbars=NO,resizeable=YES",1);
}
