$(document).ready(function(){
	
	
	var page_transition = false; 
	
	/* PNG FIX */
	$(document).pngFix();

	if(page_transition == true){
		$('#CONTENT').css('display','none').delay(300).slideDown();
		$('a').click(function(){
			var href = $(this).attr('href');
			if(href){
				if((href.substr(0,1)=='/' && href.substr(-4) != '.jpg')){
					$('.level2').css('display','none');
					$('html, body').animate({scrollTop:0}, -$('html').offset().top, function(){
						$('#CONTENT').slideUp(500,function(){
							document.location.href = 'http://www.dorins-kindermode.de' + href;
						});
					});
					return false;
				}
			}
		});
	}
	else{
		$('#MAINCONTENT').css('background','#fff');
	}
	
	/* TELL A FRIEND BOX */
	
	$('#TellAFriend').css({'position':'relative', 'width':'500px', 'border':'1px dotted #999'});
	$('#TellAFriend').find('.box_gray2').css({'border':'none'});
	$('#TellAFriend_Sender, #TellAFriend_Name, #TellAFriend_Mail, #TellAFriend_Message').css({'width':'300px'});
	$('#TellAFriend').find(':input[value="Absenden"]').parent().css('text-align','left');
	$('#TellAFriend').find(':input[value="Absenden"]').css({'background':'url(/layout/bs-style/images/tellAFriendSubmitButton.jpg) center no-repeat', 'width':'102px', 'height':'24px', 'cursor':'pointer', 'border':'0', 'padding':'3px'}).val('');
	$('#TellAFriend').find(':input[type="text"]').css({'border':'1px dashed #999','margin-bottom':'5px', 'padding':'3px'});
	$('#TellAFriend').find('img[src="/images/icons/cancel.png"]').css({'position':'absolute', 'right':'10px'}).attr('src','/layout/bs-style/images/dialog_close.png');
	
	$('.tell_a_friend.dialog_trigger').click(function(){
		$('#TellAFriend').slideDown();
	});
	/*
	$('.searchSubmit, .searchText').bind('mouseenter',function(){
		$('#SEARCH').expose({
			onBeforeLoad: function(){
				$('#SEARCH').animate({'height':$('#SEARCH_OPTIONS').height() + 50});
			},
			onBeforeClose: function(){
				$('#SEARCH').animate({'height':'33px'});
			}
		});
		$("#closeSearch").click(function(){
			$.mask.close();
			return false;
		});
		
	});
	*/
});



