function switchHeader(url) {
	
 var header = document.getElementById("CMSheader");
 header.innerHTML="<img src='/images/pixel.gif' width=480 height=270>";

 header.style.background = "#000000 url('"+url+"') no-repeat center center";
 header.style.display = "block";
}
function goURL(lang,v1,v2,v3) {
	
	location.href='/'+lang+'/'+v1+"-"+v3+".html";
	return false;

}

function showFlash(url) {
	
	var html = "<iframe src='/flashplayer/flvplayer.php?f="+url+"' width=480 height=270 frameborder=0 style='border:0;overflow: hidden'></iframe>";
	document.getElementById("CMSheader").innerHTML = html;
	document.getElementById("CMSheader").style.display  = "block";
	
}

function showPano(pano) {
    
	var html = "<iframe src='http://www.we-are.tv/AVE/VR_AVE/Collection/panoviewer.php?pano="+pano+"' width=480	height=270 frameborder=0 style='border:0;overflow: hidden;'></iframe>";
	document.getElementById("CMSheader").innerHTML = html;
	document.getElementById("CMSheader").style.display  = "block";
}

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;
	
}
*/
function printContent(content) {
 content = content.replace(/href/gi, "name")
 var consoleRef=window.open('','myconsole',
  'width=520,height=450'
   +',menubar=0'
   +',toolbar=1'
   +',status=0'
   +',scrollbars=1'
   +',resizable=1')
consoleRef.document.writeln(
  '<html><head><title></title>'
   +'<link  rel="stylesheet" href="/css/default.css" type="text/css"></head>'
   
   +'<body style="background-color: #FFFFFF;padding: 10px;text-align: left;" onLoad="self.focus();">'
   + content
   +'<script type="text/javascript">window.print();</script>'
   +'</body></html>'
 )
 consoleRef.document.close()
}

