function startComponents() {
    // Suche
    $('#button_suche')
        .mouseover(function() {
            $(this).addClass('button_suche_h');
        })
        .mouseout(function() {
            $(this).removeClass('button_suche_h');
        });


    // Box Pressearbeit
    $('#box_pressearbeit')
        .mouseover(function() {
            $(this).addClass('box_pressearbeit_h');
        })
        .mouseout(function() {
            if ($(this).hasClass('box_pressearbeit_l')) {
                $(this).removeClass('box_pressearbeit_h');
            }
        });

    // Box International
    $('#box_international')
        .mouseover(function() {
            $(this).addClass('box_international_h');
        })
        .mouseout(function() {
            if ($(this).hasClass('box_international_l')) {
                $(this).removeClass('box_international_h');
            }
        });


    // Box Branchenthemen
    $('#box_branchenthemen')
        .mouseover(function() {
            $(this).addClass('box_branchenthemen_h');
        })
        .mouseout(function() {
            if ($(this).hasClass('box_branchenthemen_l')) {
                $(this).removeClass('box_branchenthemen_h');
            }
        });

    // Box Login
    $('#txt-login-username')
		.focus(function(){
				if ($(this).val() == 'Benutzername') {
					$(this).val('');
				}
		})
		.blur(function(){
				if ($(this).val() == '') {
					$(this).val('Benutzername');
				}
		})
		.each(function(){
				if ($(this).val() == '') {
					$(this).val('Benutzername');
				}
		});

    $('#pw-login-password')
		.hide()
		.blur(function(){
				if ($(this).val() == '') {
					$(this).hide();
					$('#txt-login-password').show();
				}
		});

    $('#txt-login-password')
		.show()
		.focus(function(){
				$(this).hide();
				$('#pw-login-password').show().focus();
			})


    // BottomBox media coffee
    $('#bbox_mediacoffee')
        .mouseover(function() {
            $(this).addClass('bbox_mediacoffee_h');
        })
        .mouseout(function() {
            if ($(this).hasClass('bbox_mediacoffee_l')) {
                $(this).removeClass('bbox_mediacoffee_h');
            }
        });

    // BottomBox Presseportal
    $('#bbox_presseportal')
        .mouseover(function() {
            $(this).addClass('bbox_presseportal_h');
        })
        .mouseout(function() {
            if ($(this).hasClass('bbox_presseportal_l')) {
                $(this).removeClass('bbox_presseportal_h');
            }
        });

    // BottomBox media workshop
    $('#bbox_workshop')
        .mouseover(function() {
            $(this).addClass('bbox_workshop_h');
        })
        .mouseout(function() {
            if ($(this).hasClass('bbox_workshop_l')) {
                $(this).removeClass('bbox_workshop_h');
            }
        });


    // BottomBox euro adhoc
    $('#bbox_euroadhoc')
        .mouseover(function() {
            $(this).addClass('bbox_euroadhoc_h');
        })
        .mouseout(function() {
            if ($(this).hasClass('bbox_euroadhoc_l')) {
                $(this).removeClass('bbox_euroadhoc_h');
            }
        });

    // Zaehlen der Klicks auf die PDF-Links
    $('.pdf_box').find('a').click(function() {
        if (typeof urchinTracker != 'undefined') {
            urchinTracker($(this).attr('href'));
        }
    });
}

function ajaxRequest(url,params,targetFunc,method) {
    url = '/services/'+url+'.htx';
    if(!method) method='get';
	helpAjax = new Ajax.Request(url,
		{
  		method: method,
  		parameters: params,
    	onComplete: eval(targetFunc)
  	}
  );
}

/*function fade(objid,tduration) {
    if(!tduration) tduration = 0.2;
    new Effect.Fade(objid,{ duration: tduration, from: 1.0, to: 0.0  });
}

function appear(objid,tduration) {
    if(!tduration) tduration = 0.2;
    new Effect.Appear(objid,{ duration: tduration, from: 0.0, to: 1.0  });
}*/


function checkMail(email) {
 var a = false;
 var res = false;

 if(typeof(RegExp) == 'function') {
    var b = new RegExp('abc');
    if(b.test('abc') == true){
        a = true;
    }
 }

 if(a == true) {
  reg = new RegExp('^([a-zA-Z0-9\\-\\.\\_]+)'+
                   '(\\@)([a-zA-Z0-9\\-\\.]+)'+
                   '(\\.)([a-zA-Z]{2,4})$');
  res = (reg.test(email));
 }
 else {
  res = (email.search('@') >= 1 &&
         email.lastIndexOf('.') > email.search('@') &&
         email.lastIndexOf('.') >= email.length-5)
 }
 return(res);
}



