function goTo(section){
	window.location.hash = section;
}

function getLoc(){
	var flashMovie=getFlashMovieObject("mainMovie");
	ddl = window.location.hash;
	ddl = ddl.replace("#", "");
	//alert(section);
	flashMovie.SetVariable("ddl", ddl);
}
function openWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
/*
function setMovie(section, skipFlash){
	var flashMovie=getFlashMovieObject("mainMovie");
	window.location.hash = section;
	//alert(section);
	flashMovie.SetVariable("section", section);
	flashMovie.SetVariable("fromNav", "1");
	flashMovie.GotoFrame(1);
	flashMovie.Play();
	setNav(section);
	//alert(section);
}
		
function setNav(section){
	if(!section || (section == "")){
		var section = window.location.hash;
		if(!section || (section != "")){
			section = section.replace("#", "");
			varmyEl = document.getElementById(section);
			var sections = new Array("home","about","services","portfolio","contact");
			var bgColors = new Array("#12D66A","#db961e","#fde90a","#DDDDDD","#DDDDDD");
			for(i=0; i<sections.length; i++){
				var targetEl = document.getElementById(sections[i]);
				var linkEl = document.getElementById(i+1);
				if(myEl == targetEl){
					targetEl.style.backgroundColor = bgColors[i];
					linkEl.style.color = "#333333";
					linkEl.style.textDecoration = "none";
				}
				else{
					targetEl.style.backgroundColor = "";
					linkEl.style.color = "#FFFFFF";
					linkEl.style.textDecoration = "underline";
				}
			}
		}
	}
	else{
		var myEl = document.getElementById(section);
		var sections = new Array("home","about","services","portfolio","contact");
		var bgColors = new Array("#12D66A","#db961e","#DDDDDD","#DDDDDD","#DDDDDD");
		for(i=0; i<sections.length; i++){
			var targetEl = document.getElementById(sections[i]);
			var linkEl = document.getElementById(i+1);
			if(myEl == targetEl){
				targetEl.style.backgroundColor = bgColors[i];
				linkEl.style.color = "#333333";
				linkEl.style.textDecoration = "none";
			}
			else{
				targetEl.style.backgroundColor = "";
				linkEl.style.color = "#FFFFFF";
				linkEl.style.textDecoration = "underline";
			}
		}
	}
}

function getFlashMovieObject(movieName){
	if (window.document[movieName]){
		return window.document[movieName];
	}
	if (navigator.appName.indexOf("Microsoft Internet")==-1){
		if (document.embeds && document.embeds[movieName])
			return document.embeds[movieName];
		}
	else { // if (navigator.appName.indexOf("Microsoft Internet")!=-1)
		return document.getElementById(movieName);
	}
	//alert(movieName);
}
*/