<!--
	speed = 1
	stepsElastic = 25
	steps = 8
	step = 0
	animateElements = new Array()
        currentElement = 0;

        function IsIE()
        {
	   var ms = navigator.appVersion.indexOf("MSIE");
	   return (ms>0) && (parseInt(navigator.appVersion.substring(ms+5, ms+6)) >= 4);
        }

	function rollin(el)
	{
		if(IsIE())
		{
			el.style.cssText= "color: white; font-weight: bold";
		}
	}
	function rollout(el)
	{
		if(IsIE())
		{
			el.style.cssText= "color: white";
		}
	}

	function dynAnimation(obj)
	{
		animateElements = new Array()
		ie4 = IsIE();
		if(!ie4)
		{
			if((navigator.appName == "Netscape") &&
				(parseInt(navigator.appVersion.substring(0, 1)) >= 4))
				doc_els=document.childNodes
			else
				return
		}
		else
			doc_els=document.all

		i = 0
		for (index=0; index < doc_els.length; index++)
		{
			el = doc_els[index]
			if(0 != el.id.indexOf("elastic"))
				continue

			if (ie4)
			{
				elprops=el.style
				scrollOffsetTop=document.body.scrollTop
				docHeight=document.body.offsetHeight
				docWidth=document.body.offsetWidth
				elW=100
				elH=el.offsetHeight
			}
			else
			{
				elprops=el
				scrollOffsetTop=window.pageYOffset
				docHeight=window.innerHeight
				docWidth=window.innerWidth
				elW=el.clip.width
				elH=el.clip.height
			}

			animation = el.id.substring(0, 7)

			if (animation == "elastic" )
			{
				elprops.posLeft = -offsetLeft(el)+docWidth
				elprops.posTop = 0

				el.initLeft = elprops.posLeft
				el.initTop  = elprops.posTop
				el.endLeft  = 0
				el.endTop   = 0
				elprops.visibility = "hidden"

				if(!ie4)
				{
					elprops.left=elprops.initLeft
					elprops.top =elprops.initTop
				}
				animateElements[i++] = el
			}
		}
		if(animateElements.length > 0)
		{
			window.setTimeout("animate();", speed, "Javascript")
		}
	}
	function animate()
	{
		el = animateElements[currentElement]

		if (ie4)
			elprops=el.style
		else
			elprops=el

		if(!step)
			elprops.visibility="visible"
		step++

		steps = stepsElastic
		v = step/steps
		rf=Math.exp(-v*7)
		t = v * 1.5*Math.PI
		rx =Math.abs(el.initLeft)
		elprops.posLeft = rf*Math.cos(t)*rx
		elprops.posTop  = 0

		if (step >= steps) 
		{
			step = 0
			cornerPhase=0
			currentElement++

		}
		if(!ie4)
		{
			elprops.left=elprops.posLeft
			elprops.top =elprops.posTop
		}
		if(currentElement < animateElements.length)
		{
			window.setTimeout("animate();", speed, "Javascript")
		}
		else
			currentElement=0
	}
	function offsetLeft(el)
	{
		if(ie4)
		{
			x = el.offsetLeft
			for (e = el.offsetParent; e; e = e.offsetParent)
				x += e.offsetLeft
			return x
		}
		else
		{
			x = el.pageX
			return x
		}
	} 

function DoMarquee(lang)
{
	if (IsIE())
	{
		var s;
		var el;
		el = document.getElementById("ThisMarquee");
		if (el)
		{
		s = '<marquee scrollamount="4">';
		if (lang == "eng")
		{
			s = s + 'User-friendly (no mandatory fields), Accurate graphic image of your cellar (customizable), Suggestion of the keeping potential of many appellations, Information about the value and number of bottles contained in your cellar (according to country, appellation, type of vine, classification, region, vintage, colour, category), Shopping list for products contained in your cellar or not, Report printing, The sort order can be changed by clicking on the column headers, Simple and advanced search of your products, Search of product availability in the SAQ Website, Product search in the Website of your choice, Quick access to your favorite Websites, Tasting notes for each product, Search of tasting notes, Many preset fields according to appellation of new product - to speed up data entry, Simultaneous consultation of many products, List of recently consulted (opened) products - for easier access, Possibility of associating an image to each product, List administration tools (appellations, countries, regions, etc.), Batch move of products in cellar, Tip of the day (to help familiarize you with the application), Available in French, English and Spanish, Possibility of transferring existing data <a href="mailto:support@avosvins.ca">(contact us)</a>, Free support.';
		}
		else if (lang == "spa")
		{
		 s = s + 'Programa flexible y fácil a utilizar (ningún campo es obligatorio), Representación grafica fiel de su bodega (sección configurable según sus necesidades), Sugerencia del tiempo de conservación de la mayoría de las denominaciones, Libro de bodega: informaciones sobre el valor y el número de botellas contenido en la bodega (por país, denominación, tipo de uva, clasificación, región, añada, color y categoría), Lista de compras para los productos ya en bodega o no, Impresión de informes y de diversas listas, Búsqueda simple y avanzada de sus productos, Búsqueda con cualquier sitio Internet elegido por el usuario, Acceso rápido a sus sitios Internet preferidos, Notas de degustación por cada producto, Búsqueda sobre las notas de degustación, Varios campos predeterminados según la denominación del nuevo producto para acelerar su inscripción, Consulta de varios productos al mismo tiempo, Lista de los productos recientemente abiertos para un acceso más rápido, Posibilidades de asociar una imagen para cada uno de sus productos, Herramientas de administración para las listas (denominaciones, países, regiones, etc.), Herramientas que le permite reorganizar la bodega (cambiar la posición de las botellas en grupo), Sugerencia del día (para permitirle de conocer más las posibilidades del programa), Posibilidad de transferir sus datos ya existentes <a href="mailto:support@avosvins.ca">(contáctenos)</a>, Soporte gratis.';
		}
		else
		{
	        s = s + 'Logiciel souple et facile d\'utilisation (aucun champ obligatoire), Représentation graphique fidèle de votre cave (section paramétrable selon vos besoins), Suggestion sur le temps de garde de la plupart des appellations, Livre de cave : informations sur la valeur et le nombre de bouteilles contenues dans la cave (par pays, appellation, cépage, classement, région, millésime, couleur, catégorie), Liste d\'achat pour des produits déjà en cave ou non, Impression de rapports et de listes diverses, Informations triées selon les besoins de l\'utilisateur par un simple clic sur les entêtes des listes, Recherche simple et avancée de vos produits, Recherche sur le site internet de la SAQ, Recherche sur tout site internet choisi par l\'utilisateur, Accès rapide à vos sites internet préférés, Notes de dégustation pour chaque produit, Recherche sur les notes de dégustation, Plusieurs champs prédéterminés selon l\'appellation du nouveau produit pour accélérer son inscription, Consultation de plusieurs produits en même temps, Liste des produits récemment ouverts pour un accès plus rapide, Possibilités d\'associer une image pour chacun de vos produits, Outils d\'administration pour les listes (appellations, pays, régions, etc.), Outils permettant de réaménager la cave (changer la position des bouteilles en lots), Astuce du jour (pour vous permettre d\'approfondir l\'application), Disponible en français, anglais et en espagnol. , Possibilité de transfert de vos données déjà existantes <a href="mailto:support@avosvins.ca">(contactez-nous)</a>, Support gratuit.';
		}
		s = s + '</marquee>';
		el.innerHTML = s;
		}
	}
}

function DoElastic(lang)
{
	if (IsIE())
	{
		var s;
		var el;
		el = document.getElementById("TheUl");
		if (el)
		{
		 s = '<ul>';
		 if (lang == "eng")
		 {
		  s = s + '<li><p id="elastic1" style="position: relative !important; visibility: hidden" language="Javascript1.2">User-friendly</p></li><li><p id="elastic2" style="position: relative !important; visibility: hidden" language="Javascript1.2">Accurate graphic image of your cellar (<a href="caveengspecial.jpg" target="_blank">Show&nbsp;image...</a>)</p></li><li><p id="elastic3" style="position: relative !important; visibility: hidden" language="Javascript1.2">Suggestion of the keeping potential of many appellations</p></li><li><p id="elastic4" style="position: relative !important; visibility: hidden" language="Javascript1.2">Wine information downloadable via Internet (free).</p></li><li><p id="elastic5" style="position: relative !important; visibility: hidden" language="Javascript1.2">Customize your reports</p></li><li><p id="elastic6" style="position: relative !important; visibility: hidden" language="Javascript1.2"><a href="#features">American AVAs and much more...</a></p></li>';
		 }
		 else if (lang == "spa")
		 {
		  s = s + '<li><p id="elastic1" style="position: relative !important; visibility: hidden" language="Javascript1.2">Programa flexible y fácil a utilizar</p></li><li><p id="elastic2" style="position: relative !important; visibility: hidden" language="Javascript1.2">Representación grafica fiel de su bodega (<a href="caveengspecial.jpg" target="_blank">Mirar...</a>)</p></li><li><p id="elastic3" style="position: relative !important; visibility: hidden" language="Javascript1.2">Sugerencia del tiempo de conservación de la mayoría de las denominaciones</p></li><li><p id="elastic4" style="position: relative !important; visibility: hidden" language="Javascript1.2"><a href="#features">Y mucho más...</a></p></li>';
		 }
		 else
		 {
		  s = s + '<li><p id="elastic1" style="position: relative !important; visibility: hidden" language="Javascript1.2">Logiciel souple et <b>facile d\'utilisation</b></p></li><li><p id="elastic2" style="position: relative !important; visibility: hidden" language="Javascript1.2">Représentation graphique fidèle de votre cave (<a href="cavespecial.jpg" target="_blank">Voir&nbsp;image...</a>)</p></li><li><p id="elastic3" style="position: relative !important; visibility: hidden" language="Javascript1.2">Suggestion sur le temps de garde de la plupart des appellations</p></li><li><p id="elastic4" style="position: relative !important; visibility: hidden" language="Javascript1.2">Mise à jour de produits par Internet (gratuit)</p></li><li><p id="elastic5" style="position: relative !important; visibility: hidden" language="Javascript1.2">Personnalisez vos rapports</p></li><li><p id="elastic6" style="position: relative !important; visibility: hidden" language="Javascript1.2"><a href="#features">Et encore plus...</a></p></li>';
		 }
		 s = s + '</ul>';
		 el.innerHTML = s;
		 dynAnimation();
		}
	}
}
//-->


