// JavaScript Document


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_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_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];}
}
// Formular check start -----------------
function zeiger()
{
document.formular.name.focus();
}

function kontrolle()
{
	if(document.formular.name.value==""||document.formular.name.value.length<5)
	{
	alert("Please supply a correct name");
	document.formular.name.focus();
	return false;
	}
	if(document.formular.email.value.indexOf("@")==-1 ||document.formular.email.value.indexOf(".")==-1)
	{
	alert("Email address is invalid. Please supply a correct email");
	document.formular.email.focus();
	return false;
	}
	if(document.formular.city.value==""||document.formular.city.value.length<3)
	{
	alert("please enter a correct city");
	document.formular.city.focus();
	return false;
	}
	
if(document.formular.comment.value==""||document.formular.comment.value.length<3)
	{
	alert("Please write your message down and tell us your story");
	document.formular.comment.focus();
	return false;
	}
}

function Schaltflächenverändern(Abschicken)
{
Send.value = "Gesendet";
} 

//albenga pop up window ---------------
function Fenster1()
{
fenster1=window.open('../../content/areas/albenga_topos/cb_topo.htm','infofenster','height=500,width=600,menubar=no,resizable=yes,scrollbars=yes');
}
function Fenster2()
{
fenster1=window.open('../../content/areas/albenga_topos/nn_topo.htm','infofenster','height=500,width=600,menubar=no,resizable=yes,scrollbars=yes');
}
function Fenster3()
{
fenster1=window.open('../../content/areas/albenga_topos/terminal_topo.htm','infofenster','height=500,width=600,menubar=no,resizable=yes,scrollbars=yes');
}
function Fenster4()
{
fenster1=window.open('../../content/areas/albenga_topos/bausu_topo.htm','infofenster','height=500,width=600,menubar=no,resizable=yes,scrollbars=yes');
}
function Fenster5()
{
fenster1=window.open('../../content/areas/albenga_topos/caprette_topo.htm','infofenster','height=500,width=600,menubar=no,resizable=yes,scrollbars=yes');
}
function Fenster6()
{
fenster1=window.open('../../content/areas/albenga_topos/ciusa_topo.htm','infofenster','height=500,width=600,menubar=no,resizable=yes,scrollbars=yes');
}
function Fenster7()
{
fenster1=window.open('../../content/areas/albenga_topos/coletta_topo.htm','infofenster','height=500,width=600,menubar=no,resizable=yes,scrollbars=yes');
}
function Fenster8()
{
fenster1=window.open('../../content/areas/albenga_topos/planetario_topo.htm','infofenster','height=500,width=600,menubar=no,resizable=yes,scrollbars=yes');
}
function Fenster9()
{
fenster1=window.open('../../content/areas/albenga_topos/rrossa_topo.htm','infofenster','height=500,width=600,menubar=no,resizable=yes,scrollbars=yes');
}
function Fenster10()
{
fenster1=window.open('../../content/areas/albenga_topos/telematica_topo.htm','infofenster','height=500,width=600,menubar=no,resizable=yes,scrollbars=yes');
}
function Fenster12()
{
fenster1=window.open('../../content/areas/albenga_topos/euskal_topo.htm','infofenster','height=500,width=600,menubar=no,resizable=yes,scrollbars=yes');
}
function Fenster13()
{
fenster1=window.open('../../content/areas/albenga_topos/mrosso_topo.htm','infofenster','height=500,width=600,menubar=no,resizable=yes,scrollbars=yes');
}
function Fenster14()
{
fenster1=window.open('../../content/areas/albenga_topos/reunion_topo.htm','infofenster','height=500,width=600,menubar=no,resizable=yes,scrollbars=yes');
}
function Fenster15()
{
fenster1=window.open('../../content/areas/albenga_topos/sorgenta_topo.htm','infofenster','height=500,width=600,menubar=no,resizable=yes,scrollbars=yes');
}
//casso.htm
function Fenster16()
{
fenster1=window.open('../../content/areas/ca_topo.htm','infofenster','height=500,width=600,menubar=no,resizable=yes,scrollbars=yes');
}

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_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_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];}
}

// albenga end --------------------

//add to favourites
function Add2Favorites() 
{
if ((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4)) {
	window.external.AddFavorite ("http://www.klimbingkorns.de","Klimbingkorns - a climbing passion");
}
else {
	var mes = "To bookmark this page use these combination:";
	if(navigator.appName == "Netscape") mes += "  STRG + D";
	alert(mes);
}
}

// video pop up pages - gallery

//function popup_zu()
//{ //closes popup window halfway
//window.close("../../popup.htm","","");
//}

function fenster_op()
{ //opens Opportunist
window.open("../content/vi_opport.htm","","width=400,height=400",menubar="no",resizeable="no",scrollbars="no",toolbar="no");
}

function fenster_co()
{ //opens Corto
window.open("../content/vi_corto.htm","","width=400,height=400",menubar="no",resizeable="no",scrollbars="no",toolbar="no");
}

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_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_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];}
}