	function adjd(){
		var th = $("#wrapper_footer").position().top-140;
		var b = $("#bottom").height();
		if(th < b)
			th = b;
		$("#bottom").attr("style","height:"+th+"px");

	}
	function adjustDivs(){
			var win = $(window).height();
			var col2 = $(document).height();

			tmp = win-$("#footer_footer").height();;
			$("#wrapper_footer").css('top', tmp);
			$("#wrapper_footer").fadeIn();
	}
	
	function conadjd(){
		var th = $("#wrapper_footer").position().top-170;
		var b = $("#bottom").height();
		//alert(th+"  "+b);
		if(th < b)
			th = b;
		$("#col1").attr("style","height:"+th+"px");

	}
	function conadjustDivs(){
		/*setTimeout(adjd,100);*/
		conadjd();
	}

	$(function(){
	
		if(navigator.platform == 'iPad' || navigator.platform == 'iPhone' || navigator.platform == 'iPod')
		{
				var width = $(document).width();
				 $("#wrapper_footer").css("position", "static");
				 $("#wrapper_footer").css("width", width+"px");
				 $("#footer").css("margin-top","0");
				 $("#footer").css("padding-top","10px");
		};
	
	});

