// sh_list_bild, sh_list_subtitel
// sh_single
var $j = jQuery.noConflict();
$j(document).ready(function() {

	// Shop Singlelayer
	$j('.sh_list_subtitel').hover(function(e) {
		//var x = e.pageX; // Mausposition
		var x = this.offsetLeft + 20;
		var y = parseInt($j(this).css("height")) + 10 + parseInt(this.offsetTop);
		$j(this).parent().find(".sh_single").css("left", x);
		$j(this).parent().find(".sh_single").css("top", y);
		$j(this).parent().find(".sh_single").show();
	}, function() {
		$j(this).parent().find(".sh_single").hide();
	});
/*
	$j('.i_gbereiche AREA').hover(function(e) {
		var index = $j(".i_gbereiche AREA").index(this);
		pos = new Array();
		pos[0] = new Array(171,129);
		pos[1] = new Array(256,195);
		pos[2] = new Array(310,155);
		pos[3] = new Array(118,237);
		pos[4] = new Array(420,107);
		$j('.i_gbereiche_box').eq(index).css("left", pos[index][0] + "px");
		$j('.i_gbereiche_box').eq(index).css("top", pos[index][1] + "px");
		$j('.i_gbereiche_box').eq(index).css("display", "block");
	}, function() {
		var index = $j(".i_gbereiche AREA").index(this);
		gbereichetimer[index] = setTimeout('gbereiche_checkover(' + index + ')', gbereicheduration);
		//$j('.i_gbereiche_box').eq(index).css("display", "none");
	});

// Subseiten Kopfbildslider
	anzahl = $j(".s_bild img").length;
	if (anzahl > 1) {
		imageInterval = window.setInterval("changeImage();", 6000);
		currentImage = 0;
		fadeInterval = 3000;
	}

	// Slider Home Groß
	var anzahl_hs = $j('.jcarousel-skin-home').children().length;
	for (i=0; i<anzahl_hs; i++) {
		zahl = i+1;
		$j(".paging").append('<a href="javascript:;"><span>' + zahl + '</span></a>');
	}
	
	$j('.jcarousel-skin-home').jcarousel({
		scroll: 1,
		wrap: 'circular',
		auto: 15,
        buttonNextHTML: null,
        buttonPrevHTML: null,
		initCallback: mycarousel_initCallback,
//		itemVisibleInCallback: home_itemVisibleInCallback
		itemVisibleInCallback: {
		  onBeforeAnimation: home_itemVisibleInCallback
//		  onAfterAnimation: home_itemVisibleInCallback
		}
	});
	
	// Slider Home Referenzen
	$j('.jcarousel-skin-related').jcarousel({
		scroll: 1,
		wrap: 'circular',
		auto: 0,
		initCallback: mycarousel_initCallbackRef
	});
	*/
	
});

