$(document).ready(function() {
	var h = 0;
	
	
	
	h = $(document).height() - $('.wrapper').height() - $('#footer').height();
	h += 'px';
	
	$('#footer').css('margin-top', h);
	$('#footer').css('margin-bottom', '0px');
	
	var w = $(window).height();
	var doc = $(document).height();
	var wrapper = $('.wrapper').height();
	var footer = $('#footer').height();
	
	//alert($('#ServiceText_tbl').height())
	
	//alert('window='+w+' document='+doc+' wrapper='+wrapper+' footer='+footer)
	
	//alert($(window).height());
	//alert($(document).height());
	//alert($('.wrapper').height());
	//alert($('#footer').height());
	
	
	/*(function doIframe(){
		o = document.getElementsByTagName('iframe');
		for(i=0;i<o.length;i++){
			if ($(o[i]).attr('id') == 'ServiceText_ifr'){
				$('#ServiceText_parent').height('50px');
				setHeight(o[i]);
				
					//alert($('#ServiceText_parent').height());
					//alert($('#ServiceText_ifr').height());
				addEvent(o[i],'load', doIframe);
			}
		}
	}

	function setHeight(e){
		if(e.contentDocument){
			//e.height = e.contentDocument.body.offsetHeight;
			e.height = 100;
		} else {
			//e.height = e.contentWindow.document.body.scrollHeight;
			e.height = 100;
		}
	}
	
	function addEvent(obj, evType, fn){
		if(obj.addEventListener)
		{
			obj.addEventListener(evType, fn,false);
			return true;
		} 
		else if (obj.attachEvent){
			var r = obj.attachEvent("on" + evType, fn);
			return r;
		} 
		else {
			return false;
		}
	}

	if (document.getElementById && document.createTextNode){
		addEvent(window,'load', doIframe);	
	}
	
	*/

	
	//var theFrame = $("#ServiceText_ifr", parent.document.body); 
	//theFrame.height('30px');
	
	//alert(theFrame.height());
	
});

