
  function setupTransparency() {     
            jQuery('div#imgRotate, div#imgSubRotate').ifixpng();
			
  }

  
  function changeHeight() {
	
	  $('#mainContent').css('padding-bottom','0');
	  
	  windowsHeight = document.documentElement.clientHeight;
	  
	   totalHeight   = $('#header')[0].offsetHeight + $('#navigation')[0].offsetHeight + $('#columnLeft')[0].offsetHeight + $('#footer')[0].offsetHeight;
	 
	 
			 if($('body').attr('id')=="homepage") 	  
				 totalHeight   += $('#imgBar')[0].offsetHeight;
			  else 
				totalHeight   += $('#imgBarSub')[0].offsetHeight ;
			  
			  diff = parseInt(windowsHeight) - parseInt(totalHeight);
			  
			  if(diff>0) {
					$('#mainContent').css('padding-bottom',diff+'px');
			  }
			  else {
					$('#mainContent').css('padding-bottom','15px');
			 }
	
	
	
		  

	  if($('#columnLeft')[0].offsetHeight >= $('#columnRight')[0].offsetHeight) {
	  		 maxDivHeight =  $('#columnLeft')[0].offsetHeight
			 
			

	  }
	  else  { 
	  		
	    	maxDivHeight = $('#columnRight')[0].offsetHeight
			
			var padB = $('#mainContent').css('padding-bottom')
    		$('#mainContent').css('padding-bottom',parseInt(padB)+(maxDivHeight-$('#columnLeft')[0].offsetHeight)+15+'px');
	 		
	 }

  }

	  	

jQuery( function( $ )  
{ 		

		setupTransparency();
		changeHeight();
		
		$(window).wresize(changeHeight)

} ); 	

