
//
//$(document).ready(function() {
//   $('.auto a').hover(function(){
//       $(this).find("div.details").stop().animate({'bottom':'0'}, 500 , 'easeOutExpo').buble();
//    },function(){
//       $(this).find("div.details").stop().animate({'bottom':'-158px'}, 500, 'easeOutExpo' );
//    });
//
//});

$(document).ready(function() {
	var detailsDiv = $(".auto a .details");
	detailsDiv.css("display","block")
	detailsDiv.css("opacity","0")

	$(".auto a").hover(function(){
		$(this).find(".details").stop().animate({ opacity:1 }, 250);
		//$(this).find(".details").css("opacity","0").fadeIn(250);
	}, function(){
		$(this).find(".details").stop().animate({ opacity:0 }, 100);
		//$(this).find(".details").css("opacity","1").fadeOut(100);
	});
});
 


function ShowGlitnir(strUmbod, strTegund, strVerd, strArgerd)
{
    seljandi = '';
    logo = '';
    seljandi_url = '';

    kaupverd = strVerd;
    tegund = strTegund;
    fastnr = '';
    notud_bifreid = '';

    var slod = 'http://www.ergo.is/einstaklingar/reiknivelar/?';
    slod += 'lanstegund='     + 'FB';
    slod += '&lanstimi='      + '60';
    slod += '&kaupverd='      + kaupverd;
    slod += '&tegund='        + tegund;
    slod += '&seljandi='      + seljandi;
    slod += '&logo='          + logo;
    slod += '&seljandi_url='  + seljandi_url;
    slod += '&notud_bifreid=' + notud_bifreid;
    slod += '&fastnr='        + fastnr;

    window.open(slod, '', 'width=555,height=505');

}
