/*jQuery.fn.hksLoad = function(quelle, prefix, arr) {
	var preload = [];
	$.each(arr, function(i,v) {
		preload[i] = new Image();
		preload[i].src = quelle+"/"+prefix+"_"+v+".png";
	});
};
if(document.URL == 'http://hks.hdcontent.de/' || document.URL == 'http://hks.hdcontent.de/branchen/' )
{
jQuery.fn.hksView = function(quelle, prefix, bildBox, changeBox) {
	var curr = "";
	var ur = this;
	var arr = [];
	$("div", ur).hover(function() {
		curr = $(this).attr("class")
		var name = ($(this).attr("name"));
		changeBox.css({ backgroundImage:"url("+quelle+"/"+prefix+"_"+name+".png)" });
		$(".start_visible", bildBox).attr("class", "");
		$("img[name="+name+"]", bildBox).attr("class", "start_visible");
		$(".text_start div", ur).attr("alt", "");
		$(".text_start div").attr("alt", "");
		$(this).attr("alt", "start_visible");
	}).each(function(i,v) {
		arr.push($(v).attr("name"));
	});
	$().hksLoad(quelle, prefix, arr);
};
jQuery.fn.hksViewBranchen = function(quelle, prefix, bildBox, changeBox) {
	var ur = this;
	var arr = [];
	$("div", ur).hover(function() {
		var name = ($(this).attr("name"));
		changeBox.css({ backgroundImage:"url("+quelle+"/"+prefix+"_"+name+"_branchen.png)" });
		$(".start_visible", bildBox).attr("class", "");
		$("img[name="+name+"]", bildBox).attr("class", "start_visible");
		$(".text_branchen div", ur).attr("alt", "");
		$(".text_branchen div").attr("alt", "");
		$(this).attr("alt", "start_visible");
	}).each(function(i,v) {
		arr.push($(v).attr("name"));
	});
	$().hksLoad(quelle, prefix, arr);
};
$(document).ready(function() {
	//view-modul:
	$(".text_start").hksView("/fileadmin/templates/system_images", "schatten", $(".bild_start"), $(".shadow_home"));
	$(".text").hksView("/fileadmin/templates/system_images", "schatten_produkte", $(".bild_produkte_home"), $(".shadow"));
	$(".text_branchen").hksViewBranchen("/fileadmin/templates/system_images", "schatten", $(".bild_branchen"), $(".shadow_branchen"));
	
});
}
*/
$(document).ready(function() {
	$("#c314 h1").css("color","#ffffff"); 
	image = $(".text_start #c314 .csc-textpic .csc-textpic-imagewrap img").attr("src");
	$(".bild_start img").attr("src", image);
	$(".text_start .csc-default").hover(function(){
		$(".text_start div").removeClass("active");
		$(this).addClass("active");
		$(this).attr("id");
		if($(this).attr("id")== "c314")
		{
			$(".shadow_home").css("background-image","url(/fileadmin/templates/system_images/schatten_oben.png)");
			$(".shadow_home").css("background-position","0px 0px");
			$("#c314 p").css("color","#ffffff"); 
			$("#c314 h1").css("color","#ffffff"); 
			$("#c314 .start_links a").css("color","#ffffff"); 
			image = $(".text_start #c314 .csc-textpic .csc-textpic-imagewrap img").attr("src");
			$(".bild_start img").attr("src", image);
		}
		else {
			$("#c314 p").css("color","#333333");			
			$("#c314 h1").css("color","#C00518");
			$("#c314 .start_links a").css("color","#C00518"); 			
		}
		if($(this).attr("id")== "c315")
		{
			$(".shadow_home").css("background-image","url(fileadmin/templates/system_images/schatten_mitte.png)");
			$(".shadow_home").css("background-position","0px 135px");
			$("#c315 p").css("color","#ffffff"); 
			$("#c315 h1").css("color","#ffffff"); 
			$("#c315 .start_links a").css("color","#ffffff"); 
			image = $(".text_start #c315 .csc-textpic .csc-textpic-imagewrap img").attr("src");
			$(".bild_start img").attr("src", image);
		}
		else {
			$("#c315 p").css("color","#333333"); 
			$("#c315 h1").css("color","#C00518"); 
			$("#c315 .start_links a").css("color","#C00518"); 
		}
		if($(this).attr("id")== "c316")
		{	
			$(".shadow_home").css("background-image","url(fileadmin/templates/system_images/schatten_unten.png)");
			$(".shadow_home").css("background-position","0px 270px");
			$("#c316 p").css("color","#ffffff"); 
			$("#c316 h1").css("color","#ffffff"); 
			$("#c316 .start_links a").css("color","#ffffff"); 
			image = $(".text_start #c316 .csc-textpic .csc-textpic-imagewrap img").attr("src");
			$(".bild_start img").attr("src", image);
		}
		else {
			$("#c316 p").css("color","#333333"); 
			$("#c316 h1").css("color","#C00518"); 
			$("#c316 .start_links a").css("color","#C00518"); 
		}
	},function() {
	});
	
	$(".text_start .csc-default").click(function () {
		if($(this).attr("id") == "c314")
			window.location = "/?id=24";
			
		if($(this).attr("id") == "c315")
			window.location = "/?id=25";
			
		if($(this).attr("id") == "c316")
			window.location = "/?id=26";
    });
});


