// 
// Thanks to MP1515 <MP1515@aramette.net> for all Mathematical model
// __________________________________________________________
//
// Elastic Ouille script
//
// email  : Elastic_Ouille_script@GHindoute.net
// __________________________________________________________
//
//          END-USER LICENSE AGREEMENT FOR THIS SOFTWARE
//                   Important - read carefully:
//
// This End-User License Agreement ("EULA") is a legal agreement
// between you (either an individual or a single entity) and the
// mentioned author of this Software for the Elastic Ouille script
// identified above, which includes computer software and may
// include associated media, printed materials, and "online"
// or electronic documentation ("Elastic Ouille script").
// By installing, copying, or otherwise using the Elastic Ouille script,
// you agree to be bound by the terms of this EULA. If you do not
// agree to the terms of this EULA, do not install or use the
// Elastic Ouille script.
// 
// Elastic Ouille script LICENSE
// The Elastic Ouille script is protected by copyright laws and international
// copyright treaties, as well as other intellectual property laws and
// treaties. The Elastic Ouille script is licensed, not sold.
//
// 1. GRANT OF LICENSE. This EULA grants you the following rights:
// Installation and Use. You may install and use an unlimited number of
// copies of the Elastic Ouille script.
// 
// Reproduction and Distribution. You may reproduce and distribute an
// unlimited number of copies of the Elastic Ouille script; provided that
// each copy shall be a true and complete copy, including all copyright
// and trademark notices, and shall be accompanied by a copy of this
// EULA. Copies of the Elastic Ouille script may be distributed as a
// standalone product or included with your own product.
//
// 2. DESCRIPTION OF OTHER RIGHTS AND LIMITATIONS.
//
// Software Transfer.
// You may permanently transfer all of your rights under this EULA,
// provided the recipient agrees to the terms of this EULA.
//
// Termination.
// Without prejudice to any other rights, the Author of this Software
// may terminate this EULA if you fail to comply with the terms and
// conditions of this EULA. In such event, you must destroy all copies
// of the Elastic Ouille script and all of its component parts.
//
// Distribution.
// The Elastic Ouille script may not be sold or be included in a product or
// package which intends to receive benefits through the inclusion of
// the Elastic Ouille script. The Elastic Ouille script may be included in any
// free or non-profit packages or products.
// 
// 3. COPYRIGHT.
// All title and copyrights in and to the Elastic Ouille script
// and any copies of the Elastic Ouille script are owned by the Author of this
// Software. The Elastic Ouille script is protected by copyright laws
// and international treaty provisions. Therefore, you must treat
// the Elastic Ouille script like any other copyrighted material except
// that you may install the Elastic Ouille script on a single computer
// provided you keep the original solely for backup or archival
// purposes.
//
//
// MISCELLANEOUS 
//
// Should you have any questions concerning this EULA, or if you desire
// to contact the author of this Software for any reason, please contact
// him/her at the email address mentioned at the top of this EULA or
// write to his address (also mentioned at the top).
//
// LIMITED WARRANTY 
// 
// NO WARRANTIES.
// The Author of this Software expressly disclaims any warranty for
// the Elastic Ouille script. The Elastic Ouille script and any related
// documentation is provided "as is" without warranty of any kind,
// either express or implied, including, without limitation, the
// implied warranties or merchantability, fitness for a particular
// purpose, or noninfringement. The entire risk arising out of use
// or performance of the Elastic Ouille script remains with you.
//
// NO LIABILITY FOR DAMAGES.
// In no event shall the author of this Software be liable for any
// damages whatsoever (including, without limitation, damages for
// loss of business profits, business interruption, loss of business
// information, or any other pecuniary loss) arising out of the use
// of or inability to use this product, even if the Author of this
// Software has been advised of the possibility of such damages.
// Because some states/jurisdictions do not allow the exclusion
// or limitation of liability for consequential or incidental damages,
// the above limitation may not apply to you.
// 
//----------------------------------------------------------------------

function Ouille(){
	x=Math.round(PX+=(ddx+=((xm-PX-ddx)*3)/100))
	y=Math.round(PY+=(ddy+=((ym-PY-ddy)*3-300)/100))
	Om.style.left=x-OmW
	Om.style.top=y-OmH
	elastoc.to=x+","+y
	elastoc.strokecolor="RGB("+x+","+(2*y)+",0)"
	setTimeout("Ouille()",1)   
}
function momouse(){
	xm=window.event.x
	ym=window.event.y
	elastoc.from=xm+","+ym
}
