
$(document).ready(function() {
	$(".imageOverlay, .image_overlay_module").hover(
			function () {
				$(this).css('border', '1px solid #BA0000');
				$(this).find('div.img_over, div.img_over_module').css('display', 'block');
			},
			function () {
				$(this).css('border', '1px solid #BFBFBF');
				$(this).find('div.img_over, div.img_over_module').css('display', 'none');
			}
	);
	
	$('input:text, textarea').focus(function () {
		$(this).css('border', '1px solid #808080');
		$(this).css('color', '#202020');
	});
	
	$('input:text, textarea').blur(function () {
		$(this).css('border', '1px solid #BFBFBF');
		$(this).css('color', '#808080');
	});
	
});

function openWindow(url, w, h, bars ) 
{ 
   var screenw = screen.availWidth; 
   var screenh = screen.availHeight; 
   var winw = w; 
   var winh = h; 
   var posx = (screenw / 2) - (winw / 2); 
   var posy = (screenh / 2) - (winh / 2); 

   var params = "top="+posy+",left="+posx+",width="+winw+",height="+winh+",innerWidth="+winw+",innerHeight="+winh;
   if (bars)
   		params = params+","+bars;
   var popupfenster = window.open(url,"popupfenster",params); 
   if (popupfenster)
   		popupfenster.focus(); 
}


function changeGesamtpreis (abholpreis, versandpreis)
{
	if ($('#sendMe').attr('checked'))
	{
		$('#gesamtpreis').html(versandpreis);
	}
	else
	{
		$('#gesamtpreis').html(abholpreis);
	}
	
}