/*

NOTE: The profiling below will only run to the end of the Profile filter.
The actuall result may exceed the stated.

== MEMORY ================ 
Memory Usage = 0.63MB

*/
Effect.ScrollTo=Class.create();Object.extend(Object.extend(Effect.ScrollTo.prototype,Effect.Base.prototype),{initialize:function(element){this.element=$(element);this.start(arguments[1]||{})},setup:function(){Position.prepare();var offsets=Position.cumulativeOffset(this.element);if(this.options.offset)offsets[1]+=this.options.offset;var max=window.innerHeight?window.height-window.innerHeight:document.body.scrollHeight-(document.documentElement.clientHeight?document.documentElement.clientHeight:document.body.clientHeight);this.scrollStart=Position.deltaY;this.delta=(offsets[1]>max?max:offsets[1])-this.scrollStart},update:function(position){Position.prepare();window.scrollTo(Position.deltaX,this.scrollStart+(position*this.delta))}});PluginObject.Util.ExtensionTranslation.Quicktime=['mov','mpeg','mpg','avi','mp3','acc','qt','wav','au','3gp','3gpp'];PluginObject.Util.AliasTranslation.Quicktime=['qt','quicktime'];PluginObject.Plugins.Quicktime=function(){};PluginObject.Plugins.Quicktime.prototype={options:{upgrade_url:'http://www.apple.com/quicktime/download/',_class_id:'clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B',_type:'video/quicktime'},_initiate:function(constructor,src,options){PluginObject.Util.mergeObjects(constructor.options,this.options||{});constructor.installedVer=this._getPlayerVersion(constructor);if(options.bgcolor){constructor.addParam('bgcolor',options.bgcolor)}},_getPlayerVersion:function(constructor){var PlayerVersion=new PluginObject.Util.PlayerVersion([0,0,0]);var foundPlayerVersion;if(navigator.plugins&&navigator.mimeTypes.length){for(var i=0;i<navigator.plugins.length;i++){var x=navigator.plugins[i];if(x.name.indexOf("QuickTime")>-1){if(!foundPlayerVersion){PlayerVersion=new PluginObject.Util.PlayerVersion([1,0,0])}foundPlayerVersion=new PluginObject.Util.PlayerVersion(x.name.replace(/([a-z]|[A-Z]|-|\s)+/,"").split("."));if(foundPlayerVersion.versionIsValid(PlayerVersion)){PlayerVersion=foundPlayerVersion}}}}else{var axo=null;try{axo=new ActiveXObject("QuickTimeCheckObject.QuickTimeCheck.1")}catch(e){axo=null}if(axo){PlayerVersion=new PluginObject.Util.PlayerVersion([1,0,0]);if(axo.QuickTimeVersion){var v=axo.QuickTimeVersion>>16;PlayerVersion=new PluginObject.Util.PlayerVersion([(v&0xf00)>>8,(v&0x0f0)>>4,v&0x00f])}}}return PlayerVersion},_detect:function(constructor,version){return(constructor.installedVer.versionIsValid(version))}};PluginObject.Util.ExtensionTranslation.RealPlayer=['ra','ram','rv','rpm'];PluginObject.Util.AliasTranslation.RealPlayer=['rp','realplayer','real'];PluginObject.Plugins.RealPlayer=function(){};PluginObject.Plugins.RealPlayer.prototype={options:{upgrade_url:'http://www.real.com/',_class_id:'CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA',_type:'audio/x-pn-realaudio-plugin',params:{console:'one',controls:'ImageWindow',backgroundcolor:'#FFFFFF',center:'true'}},_initiate:function(constructor,src,options){PluginObject.Util.mergeObjects(constructor.options,this.options||{});constructor.options.params=PluginObject.Util.mergeObjects(this.options.params,constructor.options.params);constructor.setAttribute('type',constructor.options.type);constructor.addParam('type',constructor.options.type);constructor.installed=this._getPlayerVersion(constructor);if(options.bgcolor){constructor.addParam('bgcolor',options.bgcolor)}},_getPlayerVersion:function(constructor){var PlayerVersion=false;var foundPlayerVersion;if(navigator.plugins&&navigator.mimeTypes.length){for(var i=0;i<navigator.plugins.length;i++){var x=navigator.plugins[i];if(x.name.indexOf('RealPlayer')>-1){PlayerVersion=true}}}else{execScript('on error resume next: rpObj1 = IsObject(CreateObject("rmocx.RealPlayer G2 Control"))','VBScript');execScript('on error resume next: rpObj2 = IsObject(CreateObject("RealPlayer.RealPlayer(tm) ActiveX Control (32-bit)"))','VBScript');execScript('on error resume next: rpObj3 = IsObject(CreateObject("RealVideo.RealVideo(tm) ActiveX Control (32-bit)"))','VBScript');PlayerVersion=rpObj1||rpObj2||rpObj3}return PlayerVersion},_detect:function(constructor){return(constructor.installed)}};PluginObject.Util.ExtensionTranslation.WindowsMediaPlayer=['wmv','wma','wvx','wax','asf','asx'];PluginObject.Util.AliasTranslation.WindowsMediaPlayer=['wmp','mediaplayer','windowsmedia','windowsmediaplayer','windowsmp'];PluginObject.Plugins.WindowsMediaPlayer=function(){};PluginObject.Plugins.WindowsMediaPlayer.prototype={options:{upgrade_url:'http://www.microsoft.com/windows/windowsmedia/download/AllDownloads.aspx',_class_id:'clsid:6BF52A52-394A-11d3-B153-00C04F79FAA6',_type:'application/x-mplayer2'},_initiate:function(constructor,src,options){PluginObject.Util.mergeObjects(constructor.options,this.options||{});constructor.installed=this._getPlayerVersion(constructor);if(options.bgcolor){constructor.addParam('bgcolor',options.bgcolor)}},_getPlayerVersion:function(constructor){var PlayerVersion=false;if(navigator.mimeTypes&&navigator.mimeTypes["application/x-mplayer2"]&&navigator.mimeTypes["application/x-mplayer2"].enabledPlugin){PlayerVersion=true}else{execScript('on error resume next: mpObj = IsObject(CreateObject("MediaPlayer.MediaPlayer.1"))','VBScript');PlayerVersion=mpObj}return PlayerVersion},_detect:function(constructor){return(constructor.installed)}};