var cpage;
function highlight()
{ 
var sPath = window.location.pathname;
var sPage = sPath.substring(sPath.lastIndexOf('/') + 1);
var strTest = sPage;
switch(strTest)
  {
	case 'aboutus.aspx':
	case 'history.aspx':
	case 'management-team.aspx':
	var sel=document.getElementById("about2").id;			
    sel=sel.substring(sel.length-1,sel.length);
    cpage=sel;
    selecticon('aboutus-mouseover.gif',sel);
	break;
	
	case 'products.aspx':
	case 'skinsure-daily.aspx':
	case 'skinsure-plus.aspx':
	case 'skinsure-ultra.aspx':
	case 'skinsure-duo.aspx':
	case 'skinsure-protech-hands.aspx':
	case 'skinsure-salon.aspx':
	case 'skinsure-aftersun.aspx':
	var sel=document.getElementById("product3").id;			
    sel=sel.substring(sel.length-1,sel.length);
    cpage=sel;
    selecticon('products-mouseover.gif',sel);
	break;
						
	case 'faqs.aspx':
	var sel=document.getElementById("faq5").id;			
     sel=sel.substring(sel.length-1,sel.length);
    cpage=sel;
    selecticon('faqs-mouseover.gif',sel);
	break;
		
	case 'contactus.aspx':
	var sel=document.getElementById("contact7").id;			
    sel=sel.substring(sel.length-1,sel.length);
    cpage=sel;
    selecticon('contactus-mouseover.gif',sel);
	break;
	case 'clinical-studies.aspx':
	var sel=document.getElementById("clinical6").id;			
    sel=sel.substring(sel.length-1,sel.length);
    cpage=sel;
    selecticon('clinical-studies-mouseover.gif',sel);
	break;
	
	case 'news.aspx':
	case 'news-detail.aspx':
	var sel=document.getElementById("news4").id;			
    sel=sel.substring(sel.length-1,sel.length);
    cpage=sel;
    selecticon('news-mouseover.gif',sel);
	break;
	default:	
	break;
   }
   
}
function selecticon(image,id)
{
    document.getElementById("txtid"+id).style.color="#80B51A";   
    document.getElementById("imgid"+id).src ="images/"+image;
}
function mouseover(image,id)
{	    
    document.getElementById("txtid"+id).style.color="#80B51A";
    if(image!="")
    	document.getElementById("imgid"+id).src ="images/"+image;    	
}
function mouseout(image,id)
{ 
    if(cpage!=id)
    {
        document.getElementById("txtid"+id).style.color="#3ab2f7";
        if(image!="")
            document.getElementById("imgid"+id).src ="images/"+image;
    }
 }
function selectproduct()
{
	var path=document.getElementById('product').options[document.getElementById('product').selectedIndex].value;		
		document.location="/"+path+".aspx";		
}



