function stopError(){ return true; } window.onerror=stopError;
//--------------------------------------------------------- IMAGE SWAPS / POPUPS ---------------------------------------	
var phpinc=[]; var jsimg=[];
function img_swap( thisarray ){
	var evalarray = jsimg[thisarray]; ++phpinc[thisarray];
	if( phpinc[thisarray] > evalarray.length-1 ){  phpinc[thisarray] = 0;  } var thisnum = phpinc[thisarray]; 
	if( jsimg[thisarray][thisnum] ){ document.images[thisarray].src = ( jsimg[thisarray][thisnum] ); }
}
function js_popup( addr, wname ){ 
	window.open( addr, wname, 'screenX=50, screenY=20, left=50, top=20, width=350, height=400, resizable=yes, location=no, status=yes, menubar=yes, toolbar=no, directories=no, copyhistory=no' );
}
//--------------------------------------------------------- DOM VARIABLE DECLARATION ---------------------------------------	 
var LAYER=[]; var lyrbk,lyrft; var px='px'; var h="hidden"; var s="visible"; var lyrft='document.getElementById(\''; var lyrbk='\')'; 
//--------------------------------------------------------- lyr CLASS CONSTRUCTOR ---------------------------------------
function getsyn(name){ var rtsyn=( lyrft+name+lyrbk ); return rtsyn; }
function lyr( name ){ var rtsyn= getsyn(name); this.syn= eval( rtsyn ); this.syst=eval( rtsyn+'.style' ); return this; }
function init_LAYER( name ){ LAYER[name]=new lyr( name ); }
//--------------------------------------------------------- lyr CLASS METHODS ---------------------------------------
function dmp( content ){ this.syst.visibility=( s ); this.syn.innerHTML=( content ); }// dumping : and showing
function clear(){ this.syst.visibility=( h ); /*this.syn.innerHTML=' ';*/ }// clearing : and hiding
lyr.prototype.dmp=( dmp ); lyr.prototype.clear=( clear );

////////////////////////////////////////////////////////////////////////////////////////////////////
//---------FLASH COMMUNICATION-----------------------------------------------
////////////////////////////////////////////////////////////////////////////////////////////////////
function flipBanner( flag ){
	if( !flag ){ return; } callToFlash( 'bannersmov', 'gotolabel', flag );
}
//--------------------------------------------------------
function getSWF( moviename ) { //return document.getElementById(moviename);
	if( navigator.appName.indexOf("Microsoft")!= -1 ) {
		return window[moviename]; }else{ return document[moviename];  }
}
//----------------------------CALL TO FLASH 
function callToFlash( swffile, func, arg1, arg2, arg3 ){ //alert( swffile+" | func = "+func+" | arg1 = "+arg1+" | arg2 = "+arg2 ); 
	var swfref = getSWF( swffile ); //alert( typeof(swfref.anyFlashFunction) );
	if( !swfref || typeof(swfref.anyFlashFunction) != "function" ){  /*alert("NO SWF: \""+swffile+"\"");*/ return false; }
	else{ swfref.anyFlashFunction( func, arg1, arg2, arg3 ); return true; }
}////////////////////////////////////////////////////////////////////////////////////////////////////
//--------------------------------------------- flashMoviesCheck_in 
var flashMovieCheckedinList = new Array;
function flashMovieCheck_in( themovieID ){  //alert("flashMovieCheck_in = "+themovieID);
	//if( themovieID == "flashGo" ){ flashStartWebsite(); /*alert("flashGo called");*/ return; } // check for init code / start website on flashGo check_in 
	// record that this movie has checked in !!! 
	flashMovieCheckedinList[themovieID] = true; 
	// IF the variables for this movie are available, send them. 
	//if( typeof(flashVariablesCheckedinList[themovieID]) == "object" ){ 
		callToFlash( themovieID, "receiveVars", flashVariablesCheckedinList[themovieID] );// alert("vars sending to flash:: src="+onloadSection+" | moiveID="+themovieID+" | thevars= "+ flashVariablesCheckedinList[themovieID].length); //flash func must be named:  receiveVars 
		flashMovieCheckedinList[themovieID] = "vars_are_loaded";// record that the vars have been sent...
	//}else{   // check if the vars are there, return if not.
		//return;
	//}
}//--------------------------------------------- flashVariablesCheck_in 
var flashVariablesCheckedinList = new Array;
function flashVariablesCheck_in( thevars, themovieID ){ //alert("these vars are checking in: "+themovieID);
	flashVariablesCheckedinList[themovieID] = thevars; // record that the vars for this movieID are loaded 
	// IF the flash movie has checked in, then send the vars to it -- 
	//if( flashMovieCheckedinList[themovieID] ){
	//	if( flashMovieCheckedinList[themovieID] != "vars_are_loaded" ){ //alert("these vars are checking in: "+themovieID);
			//var thisSrc = ( src_loadnow != "loadnow" )? src_loadnow : onloadSection;
			//callToFlash( themovieID, "receiveVars", thevars, thisSrc );  //alert("vars sending to flash:: src="+thisSrc+" | moiveID="+themovieID+" | thevars= "+thevars);
			//flashMovieCheckedinList[themovieID] = "vars_are_loaded";
		//}else{ return;//alert("vars for = "+themovieID+" already loaded."); // these vars are loaded.
		//}
	//}
}
////////////////////////////////////////////////////////////////////////////////////////////////////
