var ua=0;
var b=new String(navigator.userAgent);
if(b.indexOf('MSIE')!=-1){ua=1;}

  if( typeof( window.innerWidth ) == 'number' ) {
    //Non-IE
    myWidth = window.innerWidth;
    myHeight = window.innerHeight;
  } else if( document.documentElement &&
      ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
    //IE 6+ in 'standards compliant mode'
    myWidth = document.documentElement.clientWidth;
    myHeight = document.documentElement.clientHeight;
  } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
    //IE 4 compatible
    myWidth = document.body.clientWidth;
    myHeight =document.body.clientHeight;

  }

if(myWidth>1150)document.write("<link rel='stylesheet' type='text/css' href='/webcounter/css/indexbig1.css'>");


var public_obj=new Object();
var str_sub=new String();

if(document.location.pathname.indexOf('index.php')>0 || document.location.pathname.charAt(document.location.pathname.length-1)=="/")
str_sub='';
else str_sub='../';

var move_left;
var steigung;
var direction;

function chgcol(u){
if(u==1)document.getElementById("imgcol").style.backgroundColor="#FF9966";
else document.getElementById("imgcol").style.backgroundColor="";
}

function calltime(){
var uhr=document.getElementById("uhr");
uhr.innerHTML=Date();
setTimeout("calltime()",1000);}


var cl =0
var co 
//ffad5b
co = new Array(
"#ff0000",
"#0000ff",
"#FFFFFF",
"#00008b",
"#f00000",
"#ffff00")

function check(u){
var s=true;
if(document.send.bug.value==""){s=false;document.getElementById("bugtxt").style.color="#FF0000";}
if(document.send.name.value==""){s=false;document.getElementById("nametxt").style.color="#FF0000";}
if(s==false){
	if(u==1)return false;}
	
else{
	if(document.send.secure)document.send.secure.value=2;
	if(u==1)return true;
	else document.send.submit();
}}

function sel(obj){
	
	obj.select();
	
	}



		
function display_air_vehicles2(){
	
if(steigung!=0){	
	
	
if(direction<0){
move_left=myWidth;
public_obj.src=str_sub+"bilder/fly_banner_rl.gif";
public_obj.style.left=move_left+"px";


}else{
move_left=-680;
public_obj.src=str_sub+"bilder/fly_banner_lr.gif";
public_obj.style.left=move_left+"px";
public_obj.style.zIndex=0;
}
public_obj.style.top="250px";

steigung=0;
setTimeout('display_air_vehicles2()',2000);

}else{
move_left+=direction;
if(move_left<=myWidth || move_left>=-680){
public_obj.style.left=move_left+"px";
setTimeout('display_air_vehicles2()',70);
}
}
}


function display_air_vehicles1(){

if((steigung>0 && move_top>=-250)|| (steigung<0 && move_top<=(myHeight)) && move_left<=myWidth && move_left>=-220){

public_obj.style.left=move_left+"px";
public_obj.style.top=move_top+"px";
move_top-=steigung;
move_left+=direction;
setTimeout('display_air_vehicles1()',50);
	
}else{
document.getElementById("linkimg").href="http://www.fincy.com/spameater";
display_air_vehicles2();
}
}
function displayFiortock_adr()
{
document.getElementById('eml0').style.color=co[cl];
cl++;
if(cl==6){cl=1}
setTimeout('displayFiortock_adr()',500);
}
	
function displayFiortock()
{

move_top=Math.random()*1000;
move_top=Math.floor(move_top);

if(move_top/2==Math.floor(move_top/2)){direction=10;var l =-220;}
else {var l=myWidth;direction=-10;}

public_obj=document.getElementById("air_vehicles");
// kommt von oben // steil nach unten
if(move_top<50){ steigung=-5;

	if(direction>0){public_obj.src=str_sub+'bilder/flugzeug_lru.gif';	
	}else{ public_obj.src=str_sub+'bilder/flugzeug_rlu.gif';}

}else if(move_top>myHeight){
	
	move_top=myHeight;steigung=10;

	if(direction>0){
	public_obj.src=str_sub+'bilder/flugzeug_lro.gif';
	}else{ public_obj.src=str_sub+'bilder/flugzeug_rlo.gif';}
	
}else if(move_top>(myHeight-150)){
	steigung=10;
	if(direction>0){public_obj.src=str_sub+'bilder/flugzeug_lro.gif';
	}else{ public_obj.src=str_sub+'bilder/flugzeug_rlo.gif';}
}else if(move_top>((myHeight/2)-100)){
	//kommt von rechts oder links: flacher Flug nach oben
	steigung =2;
	if(direction>0){public_obj.src=str_sub+'bilder/flugzeug_lrof.gif';
	}else{ public_obj.src=str_sub+'bilder/flugzeug_rlof.gif';}
}	
else if(move_top>50){
	//kommt von rechts oder links: flacher Flug nach unten
	steigung =-2;
	if(direction>0){public_obj.src=str_sub+'bilder/flugzeug_lruf.gif';
	}else{ public_obj.src=str_sub+'bilder/flugzeug_rluf.gif';}
}	


move_left=l;
public_obj.style.top=move_top+"px";
public_obj.style.left=move_left+"px";



setTimeout('display_air_vehicles1()',1500);
displayFiortock_adr();

}
var cache=Math.random();
var ini=0;

function check_form(){
ini=1;
return true;	
}

function confirm_form(lan){
if(ini==1){
cache++;
if(lan=='d')var str=new String("Sie werden nach direkter Bezahlung automatisch zum Download weitergeleitet.\n \nBenutzen Sie für einen funktionierenden Download unbedingt den kürzesten Zahlungsweg.\n \nKlicken Sie \"ok\" wenn Sie bereits über ein Paypal-Account verfügen.");
else var str=new String("You will be automatically redirected to the download after your payment.\n \nUse the shortest way to pay at the paypal-homepage.\n \nClick \"ok\" If you already own a paypal-account.");
var el=document.getElementById("call");
if(el.lastChild)el.removeChild(el.lastChild);
var obj=document.createElement("SCRIPT");
obj.setAttribute('src',"sendToPaypal.php?fh=kkkkkkkkkkkokopujioühjiooühuüiohuo&c="+cache);
el.appendChild(obj);
return confirm(str);

}}

