/*Javascripts fuer viti-interspez.ch*/
/************************************/



/*Frameset anzeigen*/

function frameset(page) {
	if(top==self) {	self.location.href = page; }			
}


/*Frameset verhindern*/

function frame_del() {
	if(top!=self) { top.location = self.location; }
}



/*Link Rebsorten*/

function hybrids_de() {
	parent.frames[1].location.href = "hybrids_main.de.htm";
	parent.frames[2].location.href = "hybrids_right.de.htm";
}

function hybrids_fr() {
	parent.frames[1].location.href = "hybrids_main.fr.htm";
	parent.frames[2].location.href = "hybrids_right.fr.htm";
}



/*Sprache an Browser anpassen*/

function enter() {
	if (navigator.appName == 'Microsoft Internet Explorer') {
		if (navigator.userLanguage.indexOf("de") >-1) {
			top.location.href = "de.htm";
			}
		else if (navigator.userLanguage.indexOf("fr") >-1) {
			top.location.href = "fr.htm";
			}
		else {
			top.location.href = "de.htm";
			}
		}
	else if ( navigator.appName == 'Netscape') {
		if (navigator.language.indexOf("de") >-1) {
			top.location.href = "de.htm";
			}
		else if (navigator.language.indexOf("fr") >-1) {
			top.location.href = "fr.htm";
			}
		else {
			top.location.href = "de.htm";
			}
		}
	else {
		top.location.href = "de.htm";
		}
}



/*Sprache aendern*/

function sprache() {
	if (document.stationform.stationselect.options[1].selected) {
		top.location.href = "de.htm";
	}	
	else if (document.stationform.stationselect.options[2].selected) {
		top.location.href = "fr.htm";	
	}	
	return true;	
}



/*Rollover Image*/

function SwitchImg() {
  var rem, keep=0, store, obj, switcher=new Array, history=document.Data;
    for (rem=0; rem < (SwitchImg.arguments.length-2); rem+=3) {
    	store = SwitchImg.arguments[(navigator.appName == 'Netscape')?rem:rem+1];
    if ((store.indexOf('document.layers[')==0 && document.layers==null) ||
        (store.indexOf('document.all[')==0 && document.all==null))
         store = 'document'+store.substring(store.lastIndexOf('.'),store.length);
         obj = eval(store);
    if (obj != null) {
   	   switcher[keep++] = obj;
      switcher[keep++] = (history==null || history[keep-1]!=obj)?obj.src:history[keep];
      obj.src = SwitchImg.arguments[rem+2];
  } }
  document.Data = switcher;
}

function RestoreImg() {
  if (document.Data != null)
    for (var rem=0; rem<(document.Data.length-1); rem+=2)
      document.Data[rem].src=document.Data[rem+1];
}
