// JavaScript Document


///////////////  CHAINED MENU SCRIPTS
onload=function(){ 
		initListGroup('chainedmenu', document.pack6.firstlevel1, document.pack6.secondlevel1, 'savestate');
		initListGroup('chainedmenu', document.pack6.firstlevel2, document.pack6.secondlevel2, 'savestate');
		initListGroup('chainedmenu', document.pack6.firstlevel3, document.pack6.secondlevel3, 'savestate');
		initListGroup('chainedmenu', document.pack6.firstlevel4, document.pack6.secondlevel4, 'savestate');}



///////////////  POP UP FUNCTION FOR SPIRIT PACKS 
function popitupleft(url) {
	newwindow=window.open(url,'name','height=800,width=700,left=200,top=200');
	if (window.focus) {newwindow.focus()}
	return false;}
function popitupright(url) {
	newwindow=window.open(url,'name','height=800,width=700,left=800,top=200');
	if (window.focus) {newwindow.focus()}
	return false;}


///////////////   MODAL POP UP FUNCTIONS
function MM_openMDialog(theURL,args,features) { //v2.0
  var returnedValue = window.showModalDialog(theURL,args,features);
  eval (returnedValue);}
function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;}
