/*
	Copyright (c) 2004-2007, The Dojo Foundation
	All Rights Reserved.

	Licensed under the Academic Free License version 2.1 or above OR the
	modified BSD license. For more information on Dojo licensing, see:

		http://dojotoolkit.org/book/dojo-book-0-9/introduction/licensing
*/


dojo._xdResourceLoaded({depends:[["provide","dijit._base.scroll"]],defineResource:function(_1){if(!_1._hasResource["dijit._base.scroll"]){_1._hasResource["dijit._base.scroll"]=true;_1.provide("dijit._base.scroll");dijit.scrollIntoView=function(_2){if(_1.isIE){if(_1.marginBox(_2.parentNode).h<=_2.parentNode.scrollHeight){_2.scrollIntoView(false);}}else{if(_1.isMozilla){_2.scrollIntoView(false);}else{var _3=_2.parentNode;var _4=_3.scrollTop+_1.marginBox(_3).h;var _5=_2.offsetTop+_1.marginBox(_2).h;if(_4<_5){_3.scrollTop+=(_5-_4);}else{if(_3.scrollTop>_2.offsetTop){_3.scrollTop-=(_3.scrollTop-_2.offsetTop);}}}}};}}});