// JavaScript Document

//===============[ insert flash ]=====================================================//

var myMovie;

function loadMovie() { //uses swfHandler.js to load flash
		var movieUrl = '/internet/wwres.nsf/vwWebResources/IPS2007HomeFlash/$file/leadspace.swf';
		//if (xmlLang) {movieUrl += '?xml_file=' + xmlLang; }
		myMovie = swf.movie(movieUrl, 760, 240, 7,noFlash);
		if (myMovie) {
					if (typeof(xmlLang) != 'undefined') {
						myMovie.setParam('flashvars', 'xml_file=' + xmlLang);
					}
					myMovie.setParam('wmode', 'transparent');
					myMovie = getObj("divFlashContainer").appendChild(myMovie);
		}
}

function noFlash() {
	  	var d = getObj("divFlashContainer");
	 	d.innerHTML = noFlashArea;
}

//===============[ get obj ]================================================//

function getObj(name){ // returns an object with a specified id tag (name)
	if(document.getElementById) this.obj = document.getElementById(name);
	else if(document.all) this.obj = document.all[name];
	return this.obj;
}


//===============[ highlight tablecell ]================================================//

function highlight(el,state) {
	
	if (state == 1) { 
		el.style.backgroundColor = "#eee";
		}
	else {
		el.style.backgroundColor = "#fff";
		}
}