/* Register Event Listeners -- */
/* MOZILLA */  if (document.addEventListener){document.addEventListener("DOMContentLoaded", init, null);}
/* OTHER   */  window.onload = init;
/* --------------------------- */

function init()
{	if (arguments.callee.done) return;
	arguments.callee.done = true;
   
	
	//Write scripts here.
	
	if (gId('backlink'))
	{	gId('backlink').setAttribute('href','javascript:history.go(-1);');
	}
		
	if (gId('flash'))
	{	objectparams="";
		embedparams="";
		document.getElementById('flash').innerHTML=generateFlash('gn2/swf/home.swf',493,103);
	}
	
						
	
	
	//Fix popups redirecting.
	var pagelinks=document.getElementsByTagName("A");
	for (var i=0;i<pagelinks.length;i++)
	{	if (pagelinks[i].getAttribute('href')=="/")
		{	pagelinks[i].setAttribute('href','javascript:;');
		}
	}
	
}



function generateFlash(movie,width,height)
{
  var flashcode;
  flashcode="<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=\"" + width + "\" height=\"" + height + "\">"
           + "<param name=\"movie\" value=\"" + movie + "\" />"
           + "<param name=\"quality\" value=\"high\" />"
           + "<param name=\"wmode\" value=\"transparent\" />"
		   + "<param name=\"scale\" value=\"exactfitfit\" />"
           + objectparams
           + "<embed src=\"" + movie + embedparams + "\"" + "debug=\"false\" scale=\"exactfitfit\" quality=\"high\" wmode=\"transparent\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" width=\"" + width + "\" height=\"" + height + "\"></embed>"
           + "</object>";
  return flashcode;
}

//<!-- This script and many more are available free online at -->
//<!-- The JavaScript Source!! http://javascript.internet.com -->

function NewWindow(mypage, myname, w, h, scroll)
{
mypage=escape(mypage);
mypage=mypage.replace(/%F6/, "oe");
mypage=unescape(mypage);
var winl = (screen.width - w) / 2;
var wint = (screen.height - h) / 2;
winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable'
win = window.open(mypage, myname, winprops)
if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}