
var FOx = { movie:"/flash/gja_home_final_10_11_07.swf",  width:"786", height:"525",name:"gja_home_final",id:"gja_home_final", majorversion:"7", build:"0", xi:"false" , setcontainercss:"false",wmode:"transparent", bgcolor:"#BE91BE"};


//CHECK FOR FLASH 8
hasFlashNEEDED = UFO.hasFlashVersion(7);
//VERSION 6.65 NEEDED FOR EXPRESS INSTALL
function getFLASH(obj){
	if (document.getElementById)
		return document.getElementById(obj)
	else if (document.all)
		return document.all[obj]
	}

	
function getWinSize(){
	var myWidth = 0, myHeight = 0;
	if( typeof( window.innerWidth ) == 'number' ){
		//Non-IE
		myWidth = window.innerWidth;
		myHeight = window.innerHeight;
	}
	else if(document.documentElement && (document.documentElement.clientWidth || document.documentElement.clientHeight)){
		//IE 6+ in 'standards compliant mode'
		myWidth = document.documentElement.clientWidth;
		myHeight = document.documentElement.clientHeight;
	}else if(document.body && (document.body.clientWidth || document.body.clientHeight)){
		//IE 4 compatible
		myWidth = document.body.clientWidth;
		myHeight = document.body.clientHeight;
	}
	return {w:myWidth,h:myHeight}
}
// keeps full-window flash from becoming smaller than 1024 browsers size
function adjustFlashSize(id) {
  var winSizes = getWinSize();
  
  var flashObj = M_object(id);
  
//  alert(winSizes.w + "," + winSizes.h);
  
  if(winSizes.w < 980){
	 flashObj.style.width = "980px";
  }else{
	 flashObj.style.width = "100%";
  }
  
  if(winSizes.h < 875){
	 flashObj.style.height = "875px";
  }else{
	 flashObj.style.height = "100%";
  }
}

function imageSwap(daImage, daSrc){
 	var obj;
 	if(document.images){
		// Check to see whether you are using a name, number, or object
		if (typeof(daImage) == 'string') {
	   		obj = 'document.' + daImage;
	   		obj = eval(obj);
	   		obj.src = daSrc;
	   	} 
		else if ((typeof(daImage) == 'object') && daImage && daImage.src) {
			daImage.src = daSrc;
	   	}
 	}
}

function loadImages() {
    for (var i = 0; i < arguments.length; i++) {
        var temp = makeId(arguments[i]);
        eval(temp +"= new Image()");
        eval(temp+".src ='"+ arguments[i] +"'");
    }
}
function makeId(path) {
    return path.substring( path.lastIndexOf("/")+1, path.lastIndexOf("."));
}

