/**
 * @author RWelbers
 * <rwelbers@brainpool.de>
 */

var movieName = "kantenwein";
		function thisMovie(movieName) {
   		if (navigator.appName.indexOf ("Microsoft") !=-1) {
    	return window[movieName]
 		 	}    else {
   		 return document[movieName]
  			}
		}
		
		function movieIsLoaded (theMovie) {
 		if (typeof(theMovie) != "undefined") {
    	return theMovie.PercentLoaded() == 100;
  			} else {
    		return false;
  			}
		}
		
		function go(theFrame) {
  		if (movieIsLoaded(thisMovie(movieName))) {
    	thisMovie(movieName).GotoFrame(theFrame);
  			}
		}
		
		//hochzeit
		
		var movieName1 = "kantenweinkl";
		function thisMovie1(movieName1) {
   		if (navigator.appName.indexOf ("Microsoft") !=-1) {
    	return window[movieName1]
 		 	}    else {
   		 return document[movieName1]
  			}
		}
		
		function movieIsLoaded1 (theMovie1) {
 		if (typeof(theMovie1) != "undefined") {
    	return theMovie1.PercentLoaded() == 100;
  			} else {
    		return false;
  			}
		}
		
		function goh(theFrame) {
  		if (movieIsLoaded1(thisMovie1(movieName1))) {
    	thisMovie1(movieName1).GotoFrame(theFrame);
  			}
		}
		
		//family
		
		var movieName2 = "kantenweinkl2";
		function thisMovie2(movieName2) {
   		if (navigator.appName.indexOf ("Microsoft") !=-1) {
    	return window[movieName2]
 		 	}    else {
   		 return document[movieName2]
  			}
		}
		
		function movieIsLoaded2 (theMovie2) {
 		if (typeof(theMovie2) != "undefined") {
    	return theMovie2.PercentLoaded() == 100;
  			} else {
    		return false;
  			}
		}
		
		function gof(theFrame) {
  		if (movieIsLoaded2(thisMovie2(movieName2))) {
    	thisMovie2(movieName2).GotoFrame(theFrame);
  			}
		}
		//geschenk
		
		var movieName3 = "kantenweinkl3";
		function thisMovie3(movieName3) {
   		if (navigator.appName.indexOf ("Microsoft") !=-1) {
    	return window[movieName3]
 		 	}    else {
   		 return document[movieName3]
  			}
		}
		
		function movieIsLoaded3 (theMovie3) {
 		if (typeof(theMovie3) != "undefined") {
    	return theMovie3.PercentLoaded() == 100;
  			} else {
    		return false;
  			}
		}
		
		function gog(theFrame) {
  		if (movieIsLoaded3(thisMovie3(movieName3))) {
    	thisMovie3(movieName3).GotoFrame(theFrame);
  			}
		}
		
		//kidz
		
		var movieName4 = "kantenweinkl4";
		function thisMovie4(movieName4) {
   		if (navigator.appName.indexOf ("Microsoft") !=-1) {
    	return window[movieName4]
 		 	}    else {
   		 return document[movieName4]
  			}
		}
		
		function movieIsLoaded4 (theMovie4) {
 		if (typeof(theMovie4) != "undefined") {
    	return theMovie4.PercentLoaded() == 100;
  			} else {
    		return false;
  			}
		}
		
		function gok(theFrame) {
  		if (movieIsLoaded4(thisMovie4(movieName4))) {
    	thisMovie4(movieName4).GotoFrame(theFrame);
  			}
		}
		
		//image
		
		var movieName5 = "kantenweinkl5";
		function thisMovie5(movieName5) {
   		if (navigator.appName.indexOf ("Microsoft") !=-1) {
    	return window[movieName5]
 		 	}    else {
   		 return document[movieName5]
  			}
		}
		
		function movieIsLoaded5 (theMovie5) {
 		if (typeof(theMovie5) != "undefined") {
    	return theMovie5.PercentLoaded() == 100;
  			} else {
    		return false;
  			}
		}
		
		function goi(theFrame) {
  		if (movieIsLoaded5(thisMovie5(movieName5))) {
    	thisMovie5(movieName5).GotoFrame(theFrame);
  			}
		}


var RecaptchaOptions = {
   theme : 'clean',
   tabindex : 2
};


function domElem(id){
	return document.getElementById(id);
}

function showElem(id){
	document.getElementById(id).style.display = 'block';
}
function hideElem(id){
	document.getElementById(id).style.display = 'none';
}



function checkNaviPos()
{
	// all except Explorer
	if (self.innerHeight)  {
	    screenX = self.innerWidth;
	    screenY = self.innerHeight;
	}
	// Explorer 6 Strict Mode
	else if (document.documentElement && document.documentElement.clientHeight) {
	    screenX = document.documentElement.clientWidth;
	    screenY = document.documentElement.clientHeight;
	}
	// other Explorers
	else if (document.body) {
	    screenX = document.body.clientWidth;
	    screenY = document.body.clientHeight;
	}  
	
	if(screenY <= 590)
	{
		posNavi = domElem('posNavi');
		navi = domElem('navi');
		
		posNavi.style.top = '0';
		posNavi.style.left = '0';
		
		navi.style.top = '0';
		navi.style.left = '0';
		
	}
}


function openPopup(width, height, url) {
	if(!width || (typeof width == 'undefined')){width = 600;}
	if(!height || (typeof height == 'undefined')){height = 500;}

    var newPop = window.open(url, '', 'width=' + width + ',height=' + height + ',screenX=150,screenY=50');
    newPop.focus();
	return false;
}


function zu() {	
		self.close(); 
}

