/*
 * jQuery Fix Scrollbar Height Plugin
 * Examples and documentation at: http://www.seangw.com/wordpress/index.php/plugins/fix-scrollbar-height-jquery-plugin/
 * Copyright (c) 2011 S. Walther, seangw@seangw.com
 * Version: 0.9 (9-JAN-2011)
 * Dual licensed under the MIT and GPL licenses.
 * http://www.seangw.com/wordpress/license/
 * Requires: jQuery v1.2.6 or later
 */
 (function($)
		   {
			   $.fn.fixScrollbarHeight=function(){
			   var winHeight=$(window).height();
			   var docHeight=$("body>div").height();
			   var scrollWidth=getScrollerWidth();
			   if(docHeight<winHeight){
				   $("body").css("margin-right",scrollWidth+"px");
				   }
				   }
				   ;})
 (jQuery);
 
 function getScrollerWidth(){
	 var scr=null;
	 var inn=null;
	 var wNoScroll=0;
	 var wScroll=0;
	 scr=document.createElement('div');
	 scr.style.position='absolute';
	 scr.style.top='-1000px';
	 scr.style.left='-1000px';
	 scr.style.width='100px';
	 scr.style.height='50px';
	 scr.style.overflow='hidden';
	 inn=document.createElement('div');
	 inn.style.width='100%';
	 inn.style.height='200px';
	 scr.appendChild(inn);
	 document.body.appendChild(scr);
	 wNoScroll=inn.offsetWidth;
	 scr.style.overflow='auto';
	 wScroll=inn.offsetWidth;
	 document.body.removeChild(document.body.lastChild);
	 return(wNoScroll-wScroll);
	 }
