/*	if (navigator.appName=="Netscape" && parseInt(navigator.appVersion)==4) {
		window.onResize = resizeFix;
	}
	function resizeFix() {
		history.go(0);
	}

	function CheckContactDe(myform){

		if (myform.FirstName.value == ''){
			alert('Geben Sie bitte Ihren Vornamen ein.');
			myform.FirstName.focus();
			return;
		}
		else if (myform.LastName.value == ''){
			alert('Geben Sie bitte Ihren Nachnamen ein.');
			myform.LastName.focus();
			return;
		}
		else if (myform.Firm.value == ''){
			alert('Geben Sie bitte den Namen Ihrer Firma ein.');
			myform.Firm.focus();
			return;
		}
		else if (myform.Email.value == ''){
			alert('Geben Sie bitte Ihre email-Adresse ein');
			myform.Email.focus();
			return;
		}
		else if (myform.Email.value.search(/@/) == -1 || myform.Email.value.search(/\./) == -1){
			alert('Ihre email-Adresse ist nicht korrekt');
			myform.Email.focus();
			return;
		}
	    else if (myform.Country.value == ''){
			alert('Geben Sie bitte das Land ein.');
			myform.Country.focus();
			return;
		}
		else
		 myform.submit();
	}

	function CheckContactEn(myform){

		if (myform.FirstName.value == ''){
			alert('Please enter your firstname.');
			myform.FirstName.focus();
			return;
		}
		else if (myform.LastName.value == ''){
			alert('Please enter your surname.');
			myform.LastName.focus();
			return;
		}
		else if (myform.Firm.value == ''){
			alert('Please enter your Company.');
			myform.Firm.focus();
			return;
		}
		else if (myform.Email.value == ''){
			alert('Please enter your email');
			myform.Email.focus();
			return;
		}
		else if (myform.Email.value.search(/@/) == -1 || myform.Email.value.search(/\./) == -1){
			alert('Your email-adress is not correct');
			myform.Email.focus();
			return;
		}
	    else if (myform.Country.value == ''){
			alert('Please enter your country');
			myform.Country.focus();
			return;
		}
		else
		 myform.submit();
	}

	function CheckJobDe(myform){

		if (myform.FirstName.value == ''){
			alert('Geben Sie bitte Ihren Vornamen ein.');
			myform.FirstName.focus();
			return;
		}
		else if (myform.LastName.value == ''){
			alert('Geben Sie bitte Ihren Nachnamen ein.');
			myform.LastName.focus();
			return;
		}
		else if (myform.Street.value == ''){
			alert('Geben Sie bitte Ihre Strasse ein.');
			myform.Street.focus();
			return;
		}
	    else if (myform.City.value == ''){
			alert('Geben Sie bitte Ihre Stadt ein.');
			myform.City.focus();
			return;
		}
		else if (myform.Plz.value == ''){
			alert('Geben Sie bitte Ihre Postleitzahl ein.');
			myform.Plz.focus();
			return;
		}
		else if (myform.Email.value == ''){
			alert('Geben Sie bitte Ihre email-Adresse ein');
			myform.Email.focus();
			return;
		}
		else if (myform.Email.value.search(/@/) == -1 || myform.Email.value.search(/\./) == -1){
			alert('Ihre email-Adresse ist nicht korrekt');
			myform.Email.focus();
			return;
		}
		else
		 myform.submit();
	}

	function CheckWhiteForm(myform){

		if (myform.FirstName.value == ''){
			alert('Please put in your First Name');
			myform.FirstName.focus();
			return;
		}
		else if (myform.LastName.value == ''){
			alert('Please put in your Last Name');
			myform.LastName.focus();
			return;
		}
		else if (myform.Firm.value == ''){
			alert('Please put in your Company Name');
			myform.Firm.focus();
			return;
		}
		else if (myform.Email.value == ''){
			alert('Please put in your email');
			myform.Email.focus();
			return;
		}
		else if (myform.Email.value.search(/@/) == -1 || myform.Email.value.search(/\./) == -1){
			alert('your email is not correct');
			myform.Email.focus();
			return;
		}
		else
		 myform.submit();
	}

   function SendForm(form)
   {
       form.submit();
   }

   function moveTo(form)
   {
       window.location.href = form.choiceCountry.options[form.choiceCountry.selectedIndex].value;
   }

  function setZaehler(wert)
  {
    zaehler = wert;
  }

  function addZaehler(wert)
  {
    zaehler = zaehler + wert;
  }
*/
   an1 = new Array();
   aus1 = new Array();

   img_aus1 = new Array ('_l_images/home1.gif','_l_images/home2.gif',
						 '_l_images/home3.gif',
						 '_l_images/home4.gif',
						 '_l_images/home5.gif',
						 '_l_images/home6.gif',
						 '_l_images/home7.gif');


   img_an1 = new Array ('_l_images/home1_on.gif',
						 '_l_images/home2_on.gif',
						 '_l_images/home3_on.gif',
						 '_l_images/home4_on.gif',
						 '_l_images/home5_on.gif',
						 '_l_images/home6_on.gif',
						 '_l_images/home7_on.gif');

	for (i=0; i<img_an1.length; i++) {
		an1[i]=new Image();
		an1[i].src = img_an1[i];
		aus1[i]=new Image();
		aus1[i].src = img_aus1[i];
	};

	function on1(x) {
		if (document.images) {
			document.images['bild' + x].src = an1[x].src;
		}
	};

	function out1(x) {
		document.images['bild' + x].src = aus1[x].src;
	};


	function winopen(){
	  window.open("../../_PopUp/_PopUpHome.html", "iSourceOnline",
	              "toolbar=no,location=no,directories=no,status=no,                   menubar=no,scrollbars=no,resizable=no,copyhistory=yes,width=200,height=200")
  	};



/*
AUTHOR
John Walker
http://321WebLiftOff.net
john@321webliftoff.net

COPYRIGHT
This script is Copyright © 2000 JF Walker All Rights
Reserved but may be freely used provided this colophon is
included in full.
*/

if (navigator.appName == 'Netscape')
var language = navigator.language;
else
var language = navigator.browserLanguage;



function writeMessage() {
if (language.indexOf('en') > -1) document.write("Welcome");
else if (language.indexOf('is') > -1) document.write("Halló, Góđan daginn");
else if (language.indexOf('pl') > -1) document.write("Dzien' dobry");
else if (language.indexOf('ro') > -1) document.write("Binevenit");
else if (language.indexOf('kl') > -1) document.write("Ilaali");
else if (language.indexOf('bg') > -1) document.write("Dobro utro");
else if (language.indexOf('af') > -1) document.write("Welkom");
else if (language.indexOf('ar') > -1) document.write("Sabah al khair");
else if (language.indexOf('zh') > -1) document.write("Ni hao");
else if (language.indexOf('cs') > -1) document.write("Vítany");
else if (language.indexOf('da') > -1) document.write("Hallo");
else if (language.indexOf('nl') > -1) document.write("Welkom");
else if (language.indexOf('eo') > -1) document.write("Bonvenigi");
else if (language.indexOf('fi') > -1) document.write("Hei");
else if (language.indexOf('fr') > -1) document.write("Bienvenue");
else if (language.indexOf('de') > -1) document.write("Willkommen");
else if (language.indexOf('hu') > -1) document.write("Isten hozta!");
else if (language.indexOf('it') > -1) document.write("Benvenuto");
else if (language.indexOf('ja') > -1) document.write("Kouguu");
else if (language.indexOf('ga') > -1) document.write("Tá fáilte romhat");
else if (language.indexOf('la') > -1) document.write("Ave");
else if (language.indexOf('no') > -1) document.write("Hei");
else if (language.indexOf('sk') > -1) document.write("Prosím; Nie je za c^o");
else if (language.indexOf('ru') > -1) document.write('<img src="ruwelcome.gif">');
else if (language.indexOf('tr') > -1) document.write("Merhaba");
else if (language.indexOf('es') > -1) document.write("Bienvenida");
else if (language.indexOf('sv') > -1) document.write("Hej");
else if (language.indexOf('cy') > -1) document.write("Croeso");
else if (language.indexOf('zu') > -1) document.write("Sawubona");
else if (language.indexOf('pt') > -1) document.write("Bem-vindo");

else document.write("Welcome");

}


var win = null;
function NewWindow(mypage,myname,w,h,scroll){
LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
settings =
'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable'
win = window.open(mypage,myname,settings)
}

function lib_bwcheck(){ //Browsercheck (needed)
	this.ver=navigator.appVersion
	this.agent=navigator.userAgent
	this.dom=document.getElementById?1:0
	this.opera5=this.agent.indexOf("Opera 5")>-1
	this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom && !this.opera5)?1:0;
	this.ie6=(this.ver.indexOf("MSIE 6")>-1 && this.dom && !this.opera5)?1:0;
	this.ie4=(document.all && !this.dom && !this.opera5)?1:0;
	this.ie=this.ie4||this.ie5||this.ie6
	this.mac=this.agent.indexOf("Mac")>-1
	this.ns6=(this.dom && parseInt(this.ver) >= 5) ?1:0;
	this.ns4=(document.layers && !this.dom)?1:0;
	this.bw=(this.ie6 || this.ie5 || this.ie4 || this.ns4 || this.ns6 || this.opera5)
	return this
}
var bw=new lib_bwcheck()


/*****************

You set the width and height of the divs inside the style tag, you only have to
change the divScrollTextCont, Remember to set the clip the same as the width and height.
You can remove the divUp and divDown layers if you want.
This script should also work if you make the divScrollTextCont position:relative.
Then you should be able to place this inside a table or something. Just remember
that Netscape crash very easily with relative positioned divs and tables.

Updated with a fix for error if moving over layer before pageload.

****************/


//If you want it to move faster you can set this lower, it's the timeout:
var speed = 30

//Sets variables to keep track of what's happening
var loop, timer

//Object constructor
function makeObj(obj,nest){
    nest=(!nest) ? "":'document.'+nest+'.'
	this.el=bw.dom?document.getElementById(obj):bw.ie4?document.all[obj]:bw.ns4?eval(nest+'document.'+obj):0;
  	this.css=bw.dom?document.getElementById(obj).style:bw.ie4?document.all[obj].style:bw.ns4?eval(nest+'document.'+obj):0;
	this.scrollHeight=bw.ns4?this.css.document.height:this.el.offsetHeight
	this.clipHeight=bw.ns4?this.css.clip.height:this.el.offsetHeight
	this.up=goUp;this.down=goDown;
	this.moveIt=moveIt; this.x=0; this.y=0;
    this.obj = obj + "Object"
    eval(this.obj + "=this")
    return this
}

// A unit of measure that will be added when setting the position of a layer.
var px = bw.ns4||window.opera?"":"px";

function moveIt(x,y){
	this.x = x
	this.y = y
	this.css.left = this.x+px
	this.css.top = this.y+px
}

//Makes the object go up
function goDown(move){
	if (this.y>-this.scrollHeight+oCont.clipHeight){
		this.moveIt(0,this.y-move)
			if (loop) setTimeout(this.obj+".down("+move+")",speed)
	}
}
//Makes the object go down
function goUp(move){
	if (this.y<0){
		this.moveIt(0,this.y-move)
		if (loop) setTimeout(this.obj+".up("+move+")",speed)
	}
}

//Calls the scrolling functions. Also checks whether the page is loaded or not.
function scroll(speed){
	if (scrolltextLoaded){
		loop = true;
		if (speed>0) oScroll.down(speed)
		else oScroll.up(speed)
	}
}

//Stops the scrolling (called on mouseout)
function noScroll(){
	loop = false
	if (timer) clearTimeout(timer)
}
//Makes the object
var scrolltextLoaded = false
function scrolltextInit(){
	oCont = new makeObj('divScrollTextCont')
	oScroll = new makeObj('divText','divScrollTextCont')
	oScroll.moveIt(0,0)
	oCont.css.visibility = "visible"
	scrolltextLoaded = true
}


 // function returns the document - width (pixel)
function getDocWidth()
{
  if (document.body)
  {
    docWidth = document.body.clientWidth;
    if (!isNaN(docWidth)) return docWidth;
    else
    {
       return self.innerWidth;
    }
  }
  else if (self)
  {
    return self.innerWidth + 4;
  }
}

// function returns the document - height (pixel)
function getDocHeight()
{
  if (document.body)
  {
    docHeight = document.body.clientHeight;
    if (!isNaN(docHeight)) return docHeight;
    else
       return self.innerHeight;
  }
  else if (self)
  {
    return self.innerHeight + 4;
  }
}  
      




//function getImgSize(){
//image0=document.getElementById('images')
//image0.width=Math.round(top.document.body.clientWidth*0.48)
//image0.height=Math.round(top.document.body.clientWidth*0.48*0.67)
//document.writeln(image0.width) 
//document.writeln(top.document.body.clientWidth)
//         alert(image0.width)      
//        alert(image0.height)
//}

function initImage(){
image0=document.getElementById('size_image')
image0.width=Math.round(top.document.body.clientWidth*0.48)
image0.height=Math.round(image0.width*0.67)
//document.writeln(image0.width) 
//document.writeln(top.document.body.clientWidth)
}
function initImageHeight(){
image1=document.getElementById('height_image')
image1.height=Math.round(document.body.clientHeight)

}
function initIframe1(){
iframe1=document.getElementById('size_iframe')
iframe1.width=Math.round(document.body.clientWidth*0.48)
iframe1.height=Math.round(iframe1.width*0.67)
}
function initIframe(){
iframe1=document.getElementById('size_iframe')
iframe1.width=Math.round(document.body.clientWidth*0.48)
iframe1.height=Math.round(iframe1.width*0.67)

//document.writeln(document.body.clientWidth)

image1=document.getElementById('size_image0')
image2=document.getElementById('size_image1')
image3=document.getElementById('size_image2')
image1.width=Math.round(document.body.clientWidth*0.13)
image2.width=image1.width
image3.width=image1.width

}
function initIframe4(){
iframe1=document.getElementById('size_iframe')
iframe1.width=Math.round(document.body.clientWidth*0.48)
//document.writeln(document.body.clientWidth)
iframe1.height=Math.round(iframe1.width*0.67)
image1=document.getElementById('size_image0')
image2=document.getElementById('size_image1')
image3=document.getElementById('size_image2')
image4=document.getElementById('size_image3')
image1.width=Math.round(document.body.clientWidth*0.13)
image2.width=image1.width
image3.width=image1.width
image4.width=image1.width

}
function initIframe5(){
iframe1=document.getElementById('size_iframe')
iframe1.width=Math.round(document.body.clientWidth*0.48)
//document.writeln(document.body.clientWidth)
iframe1.height=Math.round(iframe1.width*0.67)
image1=document.getElementById('size_image0')
image2=document.getElementById('size_image1')
image3=document.getElementById('size_image2')
image4=document.getElementById('size_image3')
image5=document.getElementById('size_image4')
image1.width=Math.round(document.body.clientWidth*0.13)
image2.width=image1.width
image3.width=image1.width
image4.width=image1.width
image5.width=image1.width
//         alert(iframe1.width)       
//        alert(iframe1.height)

}
function initIframe6(){
iframe1=document.getElementById('size_iframe')
iframe1.width=Math.round(document.body.clientWidth*0.48)
//document.writeln(document.body.clientWidth)
iframe1.height=Math.round(iframe1.width*0.67)
image1=document.getElementById('size_image0')
image2=document.getElementById('size_image1')
image3=document.getElementById('size_image2')
image4=document.getElementById('size_image3')
image5=document.getElementById('size_image4')
image6=document.getElementById('size_image5')
image1.width=Math.round(document.body.clientWidth*0.13)
image2.width=image1.width
image3.width=image1.width
image4.width=image1.width
image5.width=image1.width
image6.width=image1.width

}
function initIframe7(){
iframe1=document.getElementById('size_iframe')
iframe1.width=Math.round(document.body.clientWidth*0.48)
//document.writeln(document.body.clientWidth)
iframe1.height=Math.round(iframe1.width*0.67)
image1=document.getElementById('size_image0')
image2=document.getElementById('size_image1')
image3=document.getElementById('size_image2')
image4=document.getElementById('size_image3')
image5=document.getElementById('size_image4')
image6=document.getElementById('size_image5')
image7=document.getElementById('size_image6')
image1.width=Math.round(document.body.clientWidth*0.13)
image2.width=image1.width
image3.width=image1.width
image4.width=image1.width
image5.width=image1.width
image6.width=image1.width
image7.width=image1.width

}

function initIframe9(){
iframe1=document.getElementById('size_iframe')
iframe1.width=Math.round(document.body.clientWidth*0.48)
//document.writeln(document.body.clientWidth)
iframe1.height=Math.round(iframe1.width*0.67)
image1=document.getElementById('size_image0')
image2=document.getElementById('size_image1')
image3=document.getElementById('size_image2')
image4=document.getElementById('size_image3')
image5=document.getElementById('size_image4')
image6=document.getElementById('size_image5')
image7=document.getElementById('size_image6')
image8=document.getElementById('size_image7')
image9=document.getElementById('size_image8')
image1.width=Math.round(document.body.clientWidth*0.13)
image2.width=image1.width
image3.width=image1.width
image4.width=image1.width
image5.width=image1.width
image6.width=image1.width
image7.width=image1.width
image8.width=image1.width
image9.width=image1.width

}

function initIframe12(){
iframe1=document.getElementById('size_iframe')
iframe1.width=Math.round(document.body.clientWidth*0.48)
//document.writeln(document.body.clientWidth)
iframe1.height=Math.round(iframe1.width*0.67)
image1=document.getElementById('size_image0')
image2=document.getElementById('size_image1')
image3=document.getElementById('size_image2')
image4=document.getElementById('size_image3')
image5=document.getElementById('size_image4')
image6=document.getElementById('size_image5')
image7=document.getElementById('size_image6')
image8=document.getElementById('size_image7')
image9=document.getElementById('size_image8')
image10=document.getElementById('size_image9')
image11=document.getElementById('size_image10')
image12=document.getElementById('size_image11')
image1.width=Math.round(document.body.clientWidth*0.13)
image2.width=image1.width
image3.width=image1.width
image4.width=image1.width
image5.width=image1.width
image6.width=image1.width
image7.width=image1.width
image8.width=image1.width
image9.width=image1.width
image10.width=image1.width
image11.width=image1.width
image12.width=image1.width

}
function initIframeLage(){
iframe1=document.getElementById('size_iframe')
iframe1.width=Math.round(document.body.clientWidth*0.48)
//document.writeln(document.body.clientWidth)
iframe1.height=490
image1=document.getElementById('size_image0')
image2=document.getElementById('size_image1')
image3=document.getElementById('size_image2')
image4=document.getElementById('size_image3')
image1.width=Math.round(document.body.clientWidth*0.12)
image2.width=image1.width
image3.width=image1.width
image4.width=image1.width


}

var gAutoPrint = true; // Flag for whether or not to automatically call the print function

function printSpecial()
{
	if (document.getElementById != null)
	{
		var html = '<HTML>\n<HEAD>\n';

		if (document.getElementsByTagName != null)
		{
			var headTags = document.getElementsByTagName("head");
			if (headTags.length > 0)
				html += headTags[0].innerHTML;
		}

		html += '\n</HE' + 'AD>\n<BODY>\n';

		var printReadyElem = document.getElementById("printReady");

		if (printReadyElem != null)
		{
				html += printReadyElem.innerHTML;
		}
		else
		{
			alert("Could not find the printReady section in the HTML");
			return;
		}

		html += '\n</BO' + 'DY>\n</HT' + 'ML>';

		var printWin = window.open("","printSpecial");
		printWin.document.open();
		printWin.document.write(html);
		printWin.document.close();
		if (gAutoPrint)
			printWin.print();
	}
	else
	{
		alert("Sorry, the print ready feature is only available in modern browsers.");
	}
}



//Call the init on page load if the browser is ok...
//if (bw.bw) onload = scrolltextInit

/***************
Multiple Scripts
If you have two or more scripts that use the onload event, probably only one will run (the last one).
Here is a solution for starting multiple scripts onload:
   1. Delete or comment out all the onload assignments, onload=initScroll and things like that.
   2. Put the onload assignments in the body tag like in this example, note that they must have braces ().
   Example: <body onload="initScroll(); initTooltips(); initMenu();">
**************/


