// JavaScript Document

$(document).ready(function(){




$("#start").everyTime(2000,function(i) {
					
					if(document.getElementById("senderemail").value !== '' && document.getElementById("receiveremail").value !== '' ){
						$("#start").css("cursor","pointer");
						$("#start").css("background-position","0px -96px");
						
					
					}else{
						$("#start").css("background-position","0px 0px");
					}
});









var triggers = $("button.modalInput").overlay({ 
 
    // some expose tweaks suitable for modal dialogs 
    expose: { 
        color: '#444', 
        loadSpeed: 10, 
        opacity: 0.8 
    }, 
 
    closeOnClick: false 
});


var buttons = $("#yesno button").click(function(e) { 
     
    // get user input 
    var yes = buttons.index(this) === 0; 
 
    // do something with the answer 
    triggers.eq(0).html("" + (yes ? "wird gel&ouml;scht" : "")); 
	
});

//$("div#clone").cloneField($("div#formrow"));


$("#form1 :input").tooltip({ 
 
    // place tooltip on the right edge 
    position: "center right", 
 
    // a little tweaking of the position 
    offset: [-2, 10], 
 
    // use the built-in fadeIn/fadeOut effect 
    effect: "fade", 
 
    // custom opacity setting 
    opacity: 0.7, 
 
    // use this single tooltip element 
    tip: '.tooltip' 
 
});





$("a#hilfetaster").toggle(
						 
    function(){

         $("div#hilfe").animate({"height": "950px"}, "fast");
		 $("div#hilfe_inner").load("hilfe/hilfe_upload.php");
		 $("div#hilfe").css("margin","20px");
		 $("div#hilfe_inner").css("padding","20px");
  		 $("div#hilfe").css("visibility","visible");
		 return false;

      },

   function () {
        $("div#hilfe").animate({"height": "0px"}, "slow");
  		$("div#hilfe").css("visibility","hidden");
		$("div#hilfe").css("margin","0px");
		return false;

      }

	);


$("a#closehilfe").click(function(){
        $("div#hilfe").animate({"height": "0px"}, "slow");
  		$("div#hilfe").css("visibility","hidden");
		$("div#hilfe").css("margin","0px");
		return false;

      }
	);

 });
