function switchHeader(url) {
	
 var header = document.getElementById("CMSheader");
 header.innerHTML="<img src='/images/pixel.gif' width=720 height=105>";
 header.style.background = "#000000 url('"+url+"') no-repeat center center";
 
 
}
function goURL(lang,v1,v2,v3) {
	
//	location.href='/'+lang+'/'+v1+"/"+v3+".html";
	location.href='/'+v3+".html";
	
	return false;

}

function showFlash(url) {
	
	var html = "<iframe src='/flashplayer/flvplayer.php?f="+url+"' width=720 height=105 frameborder=0 style='border:0;overflow: hidden'></iframe>";
	document.getElementById("CMSheader").innerHTML = html;
	
}

function showPano(pano) {
    
	var html = "<iframe src='http://www.we-are.tv/AVE/VR_AVE/Collection/panoviewer.php?pano="+pano+"' width=720 height=105 frameborder=0 style='border:0;overflow: hidden;'></iframe>";
	document.getElementById("CMSheader").innerHTML = html;
}

function bookmarkThis(title,url){
if (window.sidebar) // firefox
    window.sidebar.addPanel(title, url, "");
else if(window.opera && window.print){ // opera
    var elem = document.createElement('a');
    elem.setAttribute('href',url);
    elem.setAttribute('title',title);
    elem.setAttribute('rel','sidebar');
    elem.click();
}
else if (document.all)// ie
    window.external.AddFavorite(url, title);
}


/*
function showFlashVideo(url) {

	var so = new SWFObject('/flashplayer/player.swf','mpl','100%','100%','9');
	so.addParam('allowscriptaccess','always');
	so.addParam('allowfullscreen','true');
	so.addParam('flashvars','autostart=true&controlbar=over&file='+url);
	so.write('mediaPlayer');
return false;
	
}
*/

