var $j = jQuery.noConflict();

$j(document).ready(function(){
	// LEAFLET
	/*$j.ajax({
		type: "POST",
		dataType: 'html',
		global: 'false',
		url: "fileadmin/scripts/leafletTeaser.inc.php",
		success: function(msg){
			$j('#leaflet').html(msg);
		}
	});*/
	// EXPOSECONTACT
	/*$j.ajax({
		type: "POST",
		dataType: 'html',
		global: 'false',
		url: "fileadmin/scripts/exposeContact.inc.php",
		success: function(msg){
			$j('#exposeContact').html(msg);
		}
	});*/
	// EXPOSECONTACTPERSON
	/*$j.ajax({
		type: "POST",
		dataType: 'html',
		global: 'false',
		url: "fileadmin/scripts/exposeContactPerson.inc.php",
		success: function(msg){
			$j('#exposeContactPerson').html(msg);
		}
	});*/
	// KUNDENMEINUNG
	$j.ajax({
		type: "POST",
		dataType: 'html',
		global: 'false',
		url: "fileadmin/scripts/kundenmeinungTeaser.inc.php",
		success: function(msg){
			$j('#customer').html(msg);
		}
	});
	// REFERENZEN
	$j.ajax({
		type: "POST",
		dataType: 'html',
		global: 'false',
		url: "fileadmin/scripts/referencesTeaser.inc.php",
		success: function(msg){
			$j('#references').html(msg);
		}
	});
	//$j('#exposeContact').load("fileadmin/scripts/exposeContact.inc.php");
	//$j('#exposeContactPerson').load("fileadmin/scripts/exposeContactPerson.inc.php");
	//$j('#customer').load("fileadmin/scripts/kundenmeinungTeaser.inc.php");
	//$j('#leaflet').load("fileadmin/scripts/leafletTeaser.inc.php");
	//$j('#references').load("fileadmin/scripts/referencesTeaser.inc.php");

	/*$j.ajax({
		type: "POST",
		dataType: 'html',
		global: 'false',
		url: "fileadmin/scripts/objectOfTheWeek.inc.php",
		success: function(msg){
			$j('DIV#rightCol-content').html(msg);
		}
	});*/

    $j("a.group1").fancybox({
		'zoomSpeedIn': 500,
		'zoomSpeedOut': 500,
		'overlayShow': false,
		'overlayOpacity': 0,
		'hideOnContentClick': true
	});

	$j("A#toggleInformation").click(function(){
        $j("DIV#information").slideToggle('slow');
	});

	/*$j("A#toggleContact").click(function(){
        $j("DIV#exposeContactform").slideToggle('slow');
	});*/

    $j(".toggleOpinion1").click(function(){
        $j(this).parents('.reflist-item').next().next().hide();
		$j(this).parents('.reflist-item').next().slideToggle("slow");
	});
	$j(".toggleOpinion2").click(function(){
	    $j(this).parents('.reflist-item').next().hide();
		$j(this).parents('.reflist-item').next().next().slideToggle("slow");
	});
	$j(".opinion1Closer").click(function(){
	    $j(this).parent().parent().parent().slideUp("slow");
	});
	$j(".opinion2Closer").click(function(){
	    $j(this).parent().parent().parent().slideUp("slow");
	});
});
