$(document).ready(function(){
	/* SlideUpBox */
	var arVersion = navigator.appVersion.split("MSIE");
	var version = parseFloat(arVersion[1]);
	if ((version >= 5.5) && (version < 7)){
		$("#footer").css({ "height":"57px","overflow":"hidden" });
		$(".btn-slide").click(function(){
			if($(this).attr("class") != "btn-slide opened"){
				$("#footer").css({ "height":"382px" }).animate({ marginTop:"-327px"},110).animate({marginTop:"-312px"},110).animate({marginTop:"-327px"},110).animate({marginTop:"-320px"},110).animate({marginTop:"-327px"},110,function(){ 
					$('.btn-slide').addClass('opened');
					$('.btn-slide img').attr('src','images/down.png');
					$("#footer").css({ "overflow":"auto" });
				});
			}
			else{
				$("#footer").animate({marginTop:"0"},120).animate({marginTop:"-17px"},120).animate({marginTop:"0"},120).animate({marginTop:"-7px"},120).animate({marginTop:"0"},120,function(){
					$("#footer").css({ "height":"57px","overflow":"hidden" });
					$('.btn-slide').removeClass('opened');
					$('.btn-slide img').attr('src','images/up.png');
				});
			}
			return false;
		});
	}
	else{
		$("#drogbabox").hide();
		$(".btn-slide").click(function(){
			if($(this).attr("class") != "btn-slide opened"){
				$("#drogbabox").animate({ height:"327px"},110).animate({height:"312px"},110).animate({height:"327px"},110).animate({height:"320px"},110).animate({height:"327px"},110,function(){ 
					$('.btn-slide').addClass('opened');
					$('.btn-slide img').attr('src','images/down.png');
				});
			}
			else{ 
				$("#drogbabox").animate({height:"0"},120).animate({height:"17px"},120).animate({height:"0"},120).animate({height:"7px"},120).animate({height:"0"},120,function(){ 
					$('.btn-slide').removeClass('opened');
					$('.btn-slide img').attr('src','images/up.png');
					$("#drogbabox").hide();
				});
			}
			return false;
		});
	}
});

$('#drogbabox li').ifixpng();
