function scriptInit(){	if (!document.getElementById){return;}}
function addEvent(elm, evType, fn, useCapture){	if (elm.addEventListener)	{elm.addEventListener(evType, fn, useCapture);	return true;}	else if (elm.attachEvent)	{	var r = elm.attachEvent('on' + evType, fn);	return r;}	else	{elm['on' + evType] = fn;}}
function checkActive(){	var a = document.getElementsByTagName("a");	for(var i=0; i < a.length; i++)	{	if (a[i].href.match("yg.com/item/") || a[i].href.match("yg.com/es/item/") || a[i].href.match("yg.com/de/item/") || a[i].href.match("yg.com/fr/item/") || a[i].href.match("yg.com/pl/item/") || a[i].href.match("yg.com/ru/item/"))	{	if (a[i].className == 'c0')	{	a[i].style.color = '#8A8A89';}	else if (a[i].className == 'c1')	{	a[i].style.color = '#B7B7B7';}	else if (a[i].className == 'c2')	{	a[i].style.color = '#5B933D';}	else if (a[i].className == 'c3')	{a[i].style.color = '#006EA7';}	else if (a[i].className == 'c4')	{	a[i].style.color = '#8D11BE';}	else if (a[i].className == 'c5')	{	a[i].style.color = '#E38F35';}	a[i].onmouseover = function(event)	{	if (this.href.match("yg.com/item/"))	{var langcode = '/';}	else	{var langcode = '/' + this.href.substr(this.href.indexOf("yg.com/")+7,2) + '/';}	ShowToolTip(event, 'http://aoc.yg.com' + langcode + 'tooltip?h='+ this.href.substr(this.href.indexOf("?h=")+3,8));	}}}}
addEvent(window, 'load', checkActive, false);
function ShowToolTip(event, contentLink){	var toolTipObj = document.getElementById('ygContentTooltip');	if (toolTipObj == null)	{	toolTipObj = document.createElement("DIV");	toolTipObj.id = 'ygContentTooltip';	toolTipObj.style.position = 'absolute';	toolTipObj.style.display = 'none';	toolTipObj.style.zIndex = '100000';	document.body.appendChild(toolTipObj);}	if (!event)	event = window.event;	if (event.target != null)	target = event.target;	else	target = event.srcElement;	target.onmousemove = MoveToolTip;	target.onmouseout = HideToolTip;	var scrollX, scrollY, x, y, windowX, windowY;	if (typeof(window.pageXOffset) == 'undefined')	{	scrollX = ((parseInt(document.body.scrollLeft, 10) > parseInt(document.documentElement.scrollLeft, 10)) ? document.body.scrollLeft : document.documentElement.scrollLeft);	scrollY = ((parseInt(document.body.scrollTop, 10) > parseInt(document.documentElement.scrollTop, 10)) ? document.body.scrollTop : document.documentElement.scrollTop);	windowX = document.body.clientWidth;	windowY = document.body.clientHeight;}	else	{	scrollX = window.pageXOffset;	scrollY = window.pageYOffset;	windowX = window.innerWidth;	windowY = window.innerHeight;}	x = event.clientX + scrollX;	y = event.clientY + scrollY;	if (contentLink)	toolTipObj.innerHTML = '<img src="' + contentLink + '" border="0">';	else	toolTipObj.innerHTML = '';	if (y + toolTipObj.clientHeight > scrollY + windowY)	toolTipObj.style.top = ((scrollY + windowY) - toolTipObj.clientHeight - 10).toString() + 'px';	else	toolTipObj.style.top = (10 + y).toString() + 'px';	toolTipObj.style.left = (20 + x).toString() + 'px';	toolTipObj.style.display = '';	return false;}
function MoveToolTip(event){	if (!event)	event = window.event;	var scrollX, scrollY, x, y, windowX, windowY, toolTipObj;	if (typeof(window.pageXOffset) == 'undefined')	{	scrollX = ((parseInt(document.body.scrollLeft, 10) > parseInt(document.documentElement.scrollLeft, 10)) ? document.body.scrollLeft : document.documentElement.scrollLeft);	scrollY = ((parseInt(document.body.scrollTop, 10) > parseInt(document.documentElement.scrollTop, 10)) ? document.body.scrollTop : document.documentElement.scrollTop);	windowX = document.body.clientWidth;	windowY = document.body.clientHeight;}	else	{	scrollX = window.pageXOffset;	scrollY = window.pageYOffset;	windowX = window.innerWidth;	windowY = window.innerHeight;}	x = event.clientX + scrollX;	y = event.clientY + scrollY;	toolTipObj = document.getElementById('ygContentTooltip');	if (y + toolTipObj.clientHeight > scrollY + windowY)	toolTipObj.style.top = ((scrollY + windowY) - toolTipObj.clientHeight - 10).toString() + 'px';	else	toolTipObj.style.top = (10 + y).toString() + 'px';	toolTipObj.style.left = (20 + x).toString() + 'px';}
function HideToolTip(event){	if (!event)	event = window.event;	if (event.target != null)	target = event.target;	else	target = event.srcElement;	target.onmousemove = null;	target.onmouseout = null;	var toolTipObj = document.getElementById('ygContentTooltip');	toolTipObj.style.display = 'none';}
