$(function() {

$('body').addClass('hasJS');

// Ankerlinks vor den Objekten machen das Karussel kaputt (trick von effizienzhaus)
$('#content_left .items > a').remove();

// initialize scrollable Karussel
$("#content_left .scrollable").scrollable({
    circular: true
    });

// initialize Screenshot cloud carousel
	$("#sites_carousel").CloudCarousel( {
        itemWrapper: '.car_item',
        itemsTarget: '.car_image_link',
        titleBox: $('#carousel-title'),
		textBox: $('#carousel-text'),
		buttonLeft: $('#but1'),
		buttonRight: $('#but2'),
        textSource: '.car_richtext',
        titleSource: '.csc-header h1',
		reflHeight: 0,
		reflGap: 0,
		yRadius: -15,
        xRadius: 70,
		xPos: 150,
		yPos: 25,
		speed:0.15,
        minScale: .7,
		mouseWheel:true,
        autoRotate: 'left',
        autoRotateDelay: 5500,
        maxDark: .5,
        bringToFront: true
	});




});

function clickclear(thisfield, defaulttext) {
	if (thisfield.value == defaulttext) {
		thisfield.value = "";
	}
}
function clickrecall(thisfield, defaulttext) {
	if (thisfield.value == "") {
		thisfield.value = defaulttext;
	}
}

