// JavaScript Document

function footer(){
	document.write('<div class="footer">');
		document.write('<div class="left_space">&nbsp;</div>');
		document.write('<div class="left">');
			document.write('<img src="img/txt_footer.gif" width="250" height="10" style="margin-bottom:5px;"/><br /><a href="mailto:info@foro08.com" class="link_black"><img src="img/link_contact.gif" width="28" height="9" /></a><a href="responsibility.html" style="margin-left:10px;" class="link_black"><img src="img/link_responsibility.gif" width="37" height="9" /></a>');
		document.write('</div>');
		document.write('<div class="right"><a href="javascript:history.back();" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage(\'back\',\'\',\'img/link_back_on.gif\',1)"><img src="img/link_back_off.gif" name="back" width="35" height="35" border="0" id="back" style="margin-bottom:20px"/></a><a href="#toppage" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage(\'top\',\'\',\'img/link_top_on.gif\',1)"><img src="img/link_top_off.gif" name="top" width="35" height="35" border="0" style="margin-left:8px;margin-bottom:20px"id="top"/></a></div>');
	document.write('</div>');
	
}

function top_footer(){
	document.write('<div class="footer" style="margin-top:40px;">');
		document.write('<div class="left_space">&nbsp;</div>');
		document.write('<div class="left">');
			document.write('<img src="img/txt_footer.gif" width="250" height="10" style="margin-bottom:5px;"/><br /><a href="mailto:info@foro08.com" class="link_black"><img src="img/link_contact.gif" width="28" height="9" /></a><a href="responsibility.html" style="margin-left:10px;" class="link_black"><img src="img/link_responsibility.gif" width="37" height="9" /></a>');
		document.write('</div>');
		document.write('<div class="right"></div>');
	document.write('</div>');
	
}

function navi(pos) {
	document.write('<div class="navi">');
		document.write('<ul>');
		if(pos == 'about'){
			document.write('<li><img src="img/menu_abount_on.gif" name="about" width="43" height="10" border="0" id="about" alt="ABOUT" /></li>');
		}else{
			document.write('<li><a href="about.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage(\'about\',\'\',\'img/menu_abount_on.gif\',1)"><img src="img/menu_abount_off.gif" name="about" width="43" height="10" border="0" id="about" alt="ABOUT" /></a></li>');
		}
		if(pos == 'news'){
			document.write('<li><img src="img/menu_news_on.gif" name="news" width="35" height="10" border="0" id="news" alt="NEWS" /></li>');
		}else{
			document.write('<li><a href="news.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage(\'news\',\'\',\'img/menu_news_on.gif\',1)"><img src="img/menu_news_off.gif" name="news" width="35" height="10" border="0" id="news" alt="NEWS" /></a></li>');
		}
		if(pos == 'exhibition'){
			document.write('<li><img src="img/menu_exhibition_on.gif" name="exhibition" width="67" height="10" border="0" id="exhibition" alt="EXHIBITION" /></li>');
		}else{
			document.write('<li><a href="exhibition2007.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage(\'exhibition\',\'\',\'img/menu_exhibition_on.gif\',1)"><img src="img/menu_exhibition_off.gif" name="exhibition" width="67" height="10" border="0" id="exhibition" alt="EXHIBITION" /></a></li>');
		}
		if(pos == 'talk_salon'){
			document.write('<li><img src="img/menu_talk_salon_on.gif" name="event" width="76" height="10" border="0" id="event" alt="TALK SALON" /></li>');
		}else{
			document.write('<li><a href="talk_salon2008.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage(\'event\',\'\',\'img/menu_talk_salon_on.gif\',1)"><img src="img/menu_talk_salon_off.gif" name="event" width="76" height="10" border="0" id="event" alt="TALK SALON" /></a></li>');
		}
		if(pos == 'location'){
			document.write('<li><img src="img/menu_contact_on.gif" name="contact" width="58" height="10" border="0" id="contact" alt="CONTACT" /></li>');
		}else{
			document.write('<li><a href="location.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage(\'contact\',\'\',\'img/menu_contact_on.gif\',1)"><img src="img/menu_contact_off.gif" name="contact" width="58" height="10" border="0" id="contact" alt="CONTACT" /></a></li>');
		}
		document.write('</ul>');
	document.write('</div>');
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}