
function switchHeader(url) {

 var header = document.getElementById("CMSheader");
 header.innerHTML="<img src='/images/pixel.gif' width=1000 height=270>";

 header.style.background = "#000000 url('"+url+"') no-repeat center center";
 header.style.display = "block";
}
function goURL(lang,v1,v2,v3) {

	location.href='/'+v1+"-"+v3+".html";
	return false;

}
function enlargeHeader(h) {

 document.getElementById("header_container").style.height=h+"px";
 document.getElementById("CMSheader").style.height=h+"px";

 }
function showFlash(url) {

	var html = "<iframe src='/flashplayer/flvplayer.php?f="+url+"' width=1000 height=270 frameborder=0 style='border:0;overflow: hidden'></iframe>";
	document.getElementById("CMSheader").innerHTML = html;
	document.getElementById("CMSheader").style.display  = "block";
	scroll(0,150);
}

function showPano(pano) {

	var html = "<iframe src='http://www.we-are.tv/AVE/VR_AVE/Collection/panoviewer.php?pano="+pano+"' width=1000 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 showFlashObject(url) {

    var html = "<div id='CMSheader' class='CMSheader'><object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0' width='1000' height='270'><param name='movie' value='"+url+"' /><param name='quality' value='high' /><embed src='"+url+"' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='1000' height='270'></embed></object></div>";
    document.getElementById("CMSheader").innerHTML = html;
    document.getElementById("CMSheader").style.display  = "block";

}

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()
}

