function stopError(){ return true; } //window.onerror=stopError;
//--- GetClientBrowser -----------------------------------------------
var browser,platform,firefoxversionerror,otherbrowsererror,iemacerror,tempsafarierror = false;
function GetClientBrowser(){
	if( !document.getElementById ){ 
		alert("Your browser does not support the DHTML standard \"getElementById()\"\n please return with an updated browser.");
		document.location.href = "http://www.mozilla.com/";
	}if( navigator.userAgent.indexOf("MSIE") != -1 ){ browser = "ie"; }
	else if( navigator.userAgent.indexOf("Firefox") != -1 ){ browser = "firefox"; }
	else if( navigator.userAgent.indexOf("Safari") != -1 ){ browser = "safari"; }
	else if( navigator.userAgent.indexOf("Opera") != -1 ){ browser = "opera"; }
	else if( navigator.userAgent.indexOf("Netscape") != -1 ){ browser = "netscape"; }
	else{ browser = "other"; }
	if( navigator.platform.indexOf("Win") != -1 ){ platform = "windows"; }
	else if( navigator.platform.indexOf("Mac") != -1 ){ platform = "mac"; }
	else{ platform = "other"; }
}	GetClientBrowser();
//
function xalert( message ){ alert(message); return true; }
//
var pageFullyLoaded = false;  
function pageInit(){ pageFullyLoaded = true; } //alert("javascript is loaded");
function javaScriptReady(){ if( pageFullyLoaded ){ initActionScript('sarahweedenfla',vvv); } return pageFullyLoaded; } //alert("flash checks if ready, returning: "+pageFullyLoaded);
function requestVariables(){ return vvv; } //alert("flash requests varibles, returning: "+typeof(vvv));

function getMovie(flashid) {
	if (navigator.appName.indexOf("Microsoft") != -1) {
		return window[flashid]; }else{ return document[flashid]; 
	}
}
function initActionScript(flashid,args){
	//var test = new Object(); test["image"] = 'success'; //alert( test[0][0] );
	var swfRef = getMovie(flashid); //var flashFunc = swfRef.receiveVariables; //alert(swfRef);
	try { swfRef.sendVariables(args); } catch(e){ alert(e.message); }
}//

//
//--- FLASH COMMUNICATION functionality ------------------------------------------------------


 //--------------------------------------------------------
//function flashMovieCheck_in(){ alert('movie checked in'); if( typeof(photoVars) == "array" ){ sendToFlash( 'sarahweedenfla', 'receiveVars', photoVars );  } }

//--------------------------------------------------------                                    
//--- DIV functionality ------------------------------------------------------
//--------------------------------------------------------
function DOM_toggleVisibility( id, action ){ //alert(document.getElementById(id));
	document.getElementById(id).style.visibility = action;
}
function DOM_setHeight( id,hgt ){ //must send this format: "100px"
	document.getElementById(id).style.height = hgt;
}
function DOM_setPosition( id, x, y ){ //alert(x);
	document.getElementById(id).style.left = x;
	document.getElementById(id).style.top = y;
}
//--------------------------------------------------------
//--- SPECIFIC SWEEDEN FUCNCTIONS ------------------------------------------------------
//--------------------------------------------------------









