/*
$(window).load(function(){
	if($('.body').height() < $(window).height()){
		$('.body').height(parseInt($(document).height()));
	}
});
*/

function focusInput(el, txt){
	$(el).css('color', '#505d62');
	if(el.value == txt){
		el.value=''
	}
}
function blurInput(el, txt){
	if(el.value == ''){
		$(el).css('color', '#aebfc8');
		el.value=txt;
	}
}

$(document).ready(function(){
	$('.home').pngFix();
	$('.page').pngFix();
	$(".produkt a").hover(
		function(){
			$(this).parents('.produkt').addClass('produkt-hover');
		},
		function(){	
			$(this).parents('.produkt').removeClass('produkt-hover');
		}
	);

	//onclick="return hs.expand(this)"
	$('a.highslide').each(function() {
    		this.onclick = function() {
			return hs.expand(this, { captionEval: 'this.thumb.alt' });
      			//return hs.expand(this);
    		};
 	});
	
	$(".mini a").click(function(){
		var src_mini = $("img", this).attr('src');
		var src_small = src_mini.replace('_mini', '_small');
		var parent_zoom = $(this).parents('.zoom');
		$(".bigger", parent_zoom).attr('src', src_small);
		$(".mini a", parent_zoom).removeClass('active');
		$(this).addClass('active');
		return false;
	});
});

$(window).load(function(){
	if($('.content .left').height()<$('.content .right').height()){
		$('.content .left').height($('.content .right').height());
	}


	$('.cycle').cycle({
		fx: 'scrollUp',
		//fx: 'scrollHorz',
		//speed: 300,
		pause: 1,
		cleartypeNoBg: true,
		timeout: 5000
	});
});