  jQuery("div.detail_link a").toggle(
      function () {
        jQuery("#ctl00_prdPlcLeft_show").show();
		 jQuery("#ctl00_prdPlcLeft_show_less").hide();
      },
	   function () {
       jQuery("#ctl00_prdPlcLeft_show").hide();
		 jQuery("#ctl00_prdPlcLeft_show_less").show();
      }
    );
    
    
function MenuSlide(submenu, menu, menucurrent, menuold)
{
    jQuery(submenu).slideUp() ;
     jQuery(menucurrent).attr('class', 'current');
   jQuery(menu).slideToggle('slow',function(){
        if (jQuery(menu).is(":hidden") )
        {
            jQuery(menucurrent).attr('class', '');
        }
        else
        {
            jQuery(menucurrent).attr('class', 'current');
        }
    }
    ); 
    jQuery(menuold).attr('class', '');
    
    return false;
}

function onMouseLeaveProduct(val)
{
   if (val.tagName.toLowerCase() == "div") 
    {
        if (val.hasChildNodes())
        {
            var childOfDiv = val.childNodes;
            for (c=0; c < childOfDiv.length; c++)
            {
                if (childOfDiv[c].tagName != null && childOfDiv[c].tagName.toLowerCase() == "div" && getClassName(childOfDiv[c]) == "contentdivShow")
                {

                    val = childOfDiv[c];
                    setClassName(val,"contentdivHide");
                    break;
                }
            }
        }
    }
        
}

function onMouseEnterProduct(val)
{
   if (val.tagName.toLowerCase() == "div") 
    {
        if (val.hasChildNodes())
        {
            var childOfDiv = val.childNodes;
            for (c=0; c < childOfDiv.length; c++)
            {
					
                if (childOfDiv[c].tagName != null && childOfDiv[c].tagName.toLowerCase() == "div" && getClassName(childOfDiv[c]) == "contentdivHide")
                {
		    val = childOfDiv[c];
                    setClassName(val,"contentdivShow");
		    val.style.width="130px";
		    val.style.height="130px";
                    break;
                }
            }
        }
    }
        
}

function getClassName(val)
{
    var valExpl = navigator.userAgent.toLowerCase();
    var version=getInternetExplorerVersion() ;
    if(valExpl.indexOf("firefox") > -1)
    {
        return val.getAttribute("class");
    }
    else if(valExpl.indexOf("msie") > -1 && version > -1 && version < 8.0)
    {
        return val.getAttribute("className");
    }
    else
    {
        return val.getAttribute("class");
    }
    return null;
}

function setClassName(val, valCName)
{
    var valExpl = navigator.userAgent.toLowerCase();
    var version=getInternetExplorerVersion() ;
    if(valExpl.indexOf("firefox") > -1)
    {
        val.setAttribute("class", valCName);
    }
    else if(valExpl.indexOf("msie") > -1 && version > -1 && version < 8.0)
    {
        val.setAttribute("className",valCName);
    }
    else
    {
        val.setAttribute("class",valCName);
    }
}


function onMouseLeave(val)
{
   if (val.tagName.toLowerCase() == "div") 
    {
        if (val.hasChildNodes())
        {
            var childOfDiv = val.childNodes;
            for (c=0; c < childOfDiv.length; c++)
            {
                if (childOfDiv[c].tagName != null && childOfDiv[c].tagName.toLowerCase() == "ul")
                {
                    val = childOfDiv[c];
                    break;
                }
            }
        }
    }
        
	var childIL =(val.tagName.toLowerCase() == "ul") ?  val.childNodes  : val.parentNode.childNodes ;
    for (j=0; j < childIL.length;j++)
    {
        if (childIL[j].tagName != null && childIL[j].tagName.toLowerCase() == "li")
        {
            ClearHilite(childIL[j]);
        }
    }

}


function onMouseEnter(val)
{
    val.style.cursor='pointer';
	var img = null;
	var insertSpan = false;
	if (val.attributes["image"] != null)
	    img = val.attributes["image"].nodeValue;
	if (img) {
	    insertSpan  =true;
		jQuery("#"+val.attributes["imgID"].nodeValue).hide();
			jQuery("#"+val.attributes["imgID"].nodeValue).attr("src", img);
			jQuery("#"+val.attributes["imgID"].nodeValue).show();
		/*jQuery("#"+val.attributes["imgID"].nodeValue).fadeOut("fast", function() {
			jQuery("#"+val.attributes["imgID"].nodeValue).attr("src", img);
			jQuery("#"+val.attributes["imgID"].nodeValue).fadeIn("fast");
		});*/
	    var hrefID = val.attributes["ancID"].nodeValue;
	    if (hrefID)
	    {
	        jQuery("#"+val.attributes["ancID"].nodeValue).attr("href" , val.attributes["urlToGo"].nodeValue);
	    }
	}
	
	var childIL = val.parentNode.childNodes;
	    for (j=0; j < childIL.length;j++)
	    {
	        if (childIL[j].tagName != null && childIL[j].tagName.toLowerCase() == "li")
	        {
	            ClearHilite(childIL[j]);
	        }
	    }
	
	if(val.className.indexOf('currentCarousel') < 0)
	{
		val.className += ' currentCarousel';
	}
	
	
	if (val.attributes["imgID"] != null )
	{
	    if (jQuery("#"+val.attributes["imgID"].nodeValue+"_Arrow") != null)
	    {
	    
	    
	        var valStyle = jQuery("#"+val.attributes["imgID"].nodeValue+"_Arrow").attr("style");
	        var indexof = valStyle.indexOf("top");
	        if (indexof > 0)
	        {
	            valStyle = valStyle.substr(0,indexof-1);
	        }
	    
            var valExpl = navigator.userAgent.toLowerCase();
            var styleadd ="";
            var version=getInternetExplorerVersion() ;
            if(valExpl.indexOf("msie") > -1 && version > -1 && version < 8.0)
                valStyle = valStyle + ";top:"+(val.offsetTop+10)+"px";
            else
                valStyle = valStyle + ";top:"+(val.offsetTop)+"px";
                
	        jQuery("#"+val.attributes["imgID"].nodeValue+"_Arrow").attr("style", valStyle);
            jQuery("#"+val.attributes["imgID"].nodeValue+"_Arrow").show();
	        
	    }
	}
	
/*  	children = val.childNodes;
	for(i=0; i < children.length;i++)
	{
		if(children[i].tagName != null && children[i].tagName.toLowerCase() == 'span')
		{
			insertSpan = false;
		}
	}
	    
  var valExpl = navigator.userAgent.toLowerCase();
    var styleadd ="";
    var version=getInternetExplorerVersion() ;
    
    var ObjParent = val.parentNode;
    while (ObjParent != null)
    {
        if (ObjParent.className == "inner_box")
            break;
        ObjParent = ObjParent.parentNode;    
    }
	if(insertSpan)
	{
	  var spanTag = document.createElement("span");
	  spanTag.id = "span1";
	  spanTag.style.left='121px';
	  spanTag.style.top=val.offsetTop+'px';
	    if(valExpl.indexOf("firefox") > -1)
	    {
         spanTag.style.position="absolute";	    
         }
	    else if(valExpl.indexOf("msie") > -1 && version > -1 && version < 8.0)
	    {
             spanTag.style.position="relative";	    
		     spanTag.style.left='121px';
        	  spanTag.style.top=val.offsetTop+'px';
        	  spanTag.style.float="left";
        	  spanTag.style.z-index =900;
        }
	    else
	    {
         spanTag.style.position="absolute";	    
	    } 
	  spanTag.style.background="url(common/images/arrow2.gif) no-repeat 0px 0px";
	  spanTag.style.height="38px";
	  spanTag.style.width="19px";
	  styleadd = 'left:'+(ObjParent.offsetRight-19)+'px;top:'+val.offsetTop+'px;position:absolute;'
      ObjParent.insertBefore(spanTag,ObjParent.firstChild);
	}
	if(insertSpan)
	{
	    if(valExpl.indexOf("firefox") > -1)
	    {
	        styleadd = 'left:'+(val.offsetLeft-19)+'px;top:'+val.offsetTop+'px;position:absolute;'
    		val.innerHTML = "<span style='background:url(common/images/arrow2.gif) no-repeat 0px 0px;width:19px;  height:38px;"+styleadd +"'></span>" + val.innerHTML;
	    }
	    else if(valExpl.indexOf("msie") > -1 && version > -1 && version < 8.0)
	    {
	        styleadd = 'float:left;left:-23px;top:-5px;width:19px;height:38px;position:relative;'
    		val.innerHTML = "<span style='background:url(common/images/arrow2.gif) no-repeat 0px 0px;"+styleadd +"'></span>" + val.innerHTML;
	    }
	    else
	    {
	        styleadd = 'left:'+(val.offsetLeft-19)+'px;top:'+val.offsetTop+'px;position:absolute;'
    		val.innerHTML = "<span style='background:url(common/images/arrow2.gif) no-repeat 0px 0px;width:19px;  height:38px;"+styleadd +"'></span>" + val.innerHTML;
	    }
	}*/
	
	
	
}
function onMouseenter(val)
{
    val.style.cursor='pointer';	
	
}

function ClearHilite(obj)
{
	obj.className = obj.className.replace(new RegExp(" currentCarousel\\b"), "");
	children = obj.childNodes;
	if (obj.attributes["imgID"] != null )
	{
	    if (jQuery("#"+obj.attributes["imgID"].nodeValue+"_Arrow") != null)
	    {
	        jQuery("#"+obj.attributes["imgID"].nodeValue+"_Arrow").hide();
	        
	    }
	}
	for(i=0; i < children.length;i++)
	{
	
		if(children[i].tagName!= null && children[i].tagName.toLowerCase() == 'span')
		{
			children[i].parentNode.removeChild(children[i]);
		}
	}
}


function getInternetExplorerVersion() 
{    
    var rv = -1; // Return value assumes failure.    
    if (navigator.appName == 'Microsoft Internet Explorer') 
    {        
        var ua = navigator.userAgent;        
        var re = new RegExp("MSIE ([0-9]{1,}[\.0-9]{0,})");        
        if (re.exec(ua) != null)            
            rv = parseFloat(RegExp.$1);    
    }    
    return rv;
}