// JavaScript Document
//this is the global variable which is changed through sites name
var urlpath = "http://www.millbanksolicitors.co.uk/";
//function for active image on rollover
function menuact(obj)
{
	
	if(obj == 'home')
	{
		if((window.location == urlpath)||(window.location == urlpath+"default.htm"))
		{}
		else{document.getElementById(obj).src = urlpath+'images/top-menu-1-act.gif';}
	}
	if(obj == 'area')
	{
		if(window.location == urlpath+"personal-Injury-solicitors/personal-injury-solicitors-uk/personal-injury-solicitors-in-uk.htm" || window.location == urlpath+"business-immigration-solicitors/business-immigration-solicitors-uk/busines-immigration-solicitors-in-uk.htm" || window.location == urlpath+"business-in-india-solicitors/business-india-solicitors-uk/business-in-india-solicitors-in-uk.htm" || window.location == urlpath+"company-commercial-solicitors/company-commercial-solicitors-uk/company-commercial-solicitors-in-uk.htm" || window.location == urlpath+"employment-law-solicitors/employment-law-solicitors-uk/employment-law-solicitors-in-uk.htm" || window.location == urlpath+"litigation-solicitors/litigation-solicitors-uk/litigation-solicitors-in-uk.htm" || window.location == urlpath+"property-advice-solicitors/property-advice-solicitors-uk/property-advice-solicitors-in-uk.htm" || window.location == urlpath+"regulatory-law-solicitors/regulatory-law-solicitors-uk/regulatory-law-solicitors-in-uk.htm" || window.location == urlpath+"wills-and-probate/wills-and-probate-solicitors-uk/wills-and-probate-in-uk.htm" || window.location == urlpath+"debt-recovery/debt-recovery-solicitors-uk/debt-recovery-in-uk.htm")
		{document.getElementById('menud').style.display = 'block';}
		else{document.getElementById(obj).src = urlpath+'images/top-menu-2-ac.gif';
		document.getElementById('menud').style.display = 'block';}
	}
	if(obj == 'about')
	{
		if(window.location == urlpath+"about-our-solicitors-uk/indian.htm" || window.location == urlpath+"about-our-solicitors-uk/italy.htm" || window.location == urlpath+"about-our-solicitors-uk/polish.htm" || window.location == urlpath+"about-our-solicitors-uk/russian.htm" || window.location == urlpath+"about-our-solicitors-uk/chinese.htm")
		{document.getElementById('menudab').style.display = 'block';}
		else{document.getElementById(obj).src = urlpath+'images/top-menu-3-ac.gif';
		document.getElementById('menudab').style.display = 'block';}
	}
	if(obj == 'team')
	{
		if(window.location == urlpath+"faqs.htm")
		{}
		else{document.getElementById(obj).src = urlpath+'images/top-menu-4-ac.gif';}
	}
	if(obj == 'news')
	{
		if(window.location == urlpath+"news.htm")
		{}
		else{document.getElementById(obj).src = urlpath+'images/top-menu-5-ac.gif';}
	}
	if(obj == 'contact')
	{
		if(window.location == urlpath+"contact-solicitors-uk/contact-us.htm")
		{}
		else{document.getElementById(obj).src = urlpath+'images/top-menu-6-ac.gif';}
	}
}
//function for deactive image on mouseout
function menuda(obj)
{
	if(obj == 'home')
	{
		if((window.location == urlpath)||(window.location == urlpath+"default.htm"))
		{}
		else{document.getElementById(obj).src = urlpath+'images/top-menu-1-da.gif';}
	}
	if(obj == 'area')
	{
		if(window.location == urlpath+"personal-Injury-solicitors/personal-injury-solicitors-uk/personal-injury-solicitors-in-uk.htm" || window.location == urlpath+"business-immigration-solicitors/business-immigration-solicitors-uk/busines-immigration-solicitors-in-uk.htm" || window.location == urlpath+"business-in-india-solicitors/business-india-solicitors-uk/business-in-india-solicitors-in-uk.htm" || window.location == urlpath+"company-commercial-solicitors/company-commercial-solicitors-uk/company-commercial-solicitors-in-uk.htm" || window.location == urlpath+"employment-law-solicitors/employment-law-solicitors-uk/employment-law-solicitors-in-uk.htm" || window.location == urlpath+"litigation-solicitors/litigation-solicitors-uk/litigation-solicitors-in-uk.htm" || window.location == urlpath+"property-advice-solicitors/property-advice-solicitors-uk/property-advice-solicitors-in-uk.htm" || window.location == urlpath+"regulatory-law-solicitors/regulatory-law-solicitors-uk/regulatory-law-solicitors-in-uk.htm" || window.location == urlpath+"wills-and-probate/wills-and-probate-solicitors-uk/wills-and-probate-in-uk.htm"|| window.location == urlpath+"debt-recovery/debt-recovery-solicitors-uk/debt-recovery-in-uk.htm")
		{document.getElementById('menud').style.display = 'none';}
		else{document.getElementById(obj).src = urlpath+'images/top-menu-2-da.gif';
		document.getElementById('menud').style.display = 'none';}
	}
	if(obj == 'about')
	{
		if(window.location == urlpath+"about-our-solicitors-uk/indian.htm" || window.location == urlpath+"about-our-solicitors-uk/italy.htm" || window.location == urlpath+"about-our-solicitors-uk/polish.htm" || window.location == urlpath+"about-our-solicitors-uk/russian.htm" || window.location == urlpath+"about-our-solicitors-uk/chinese.htm")
		{document.getElementById('menudab').style.display = 'none';}
		else{document.getElementById(obj).src = urlpath+'images/top-menu-3-da.gif';
		document.getElementById('menudab').style.display = 'none';}
	}
	if(obj == 'team')
	{
		if(window.location == urlpath+"faqs.htm")
		{}
		else{document.getElementById(obj).src = urlpath+'images/top-menu-4-da.gif';}
	}
	if(obj == 'news')
	{
		if(window.location == urlpath+"news.htm")
		{}
		else{document.getElementById(obj).src = urlpath+'images/top-menu-5-da.gif';}
	}
	if(obj == 'contact')
	{
		if(window.location == urlpath+"contact-solicitors-uk/contact-us.htm")
		{}
		else{document.getElementById(obj).src = urlpath+'images/top-menu-6-da.gif';}
	}
}
//function for active the tab on page load
function title()
{
	if((window.location == urlpath)||(window.location == urlpath+"default.htm"))
	{document.getElementById('home').src = urlpath+'images/top-menu-1-act.gif';}
	else if(window.location == urlpath+"personal-Injury-solicitors/personal-injury-solicitors-uk/personal-injury-solicitors-in-uk.htm" || window.location == urlpath+"business-immigration-solicitors/business-immigration-solicitors-uk/busines-immigration-solicitors-in-uk.htm" || window.location == urlpath+"business-in-india-solicitors/business-india-solicitors-uk/business-in-india-solicitors-in-uk.htm" || window.location == urlpath+"company-commercial-solicitors/company-commercial-solicitors-uk/company-commercial-solicitors-in-uk.htm" || window.location == urlpath+"employment-law-solicitors/employment-law-solicitors-uk/employment-law-solicitors-in-uk.htm" || window.location == urlpath+"litigation-solicitors/litigation-solicitors-uk/litigation-solicitors-in-uk.htm" || window.location == urlpath+"property-advice-solicitors/property-advice-solicitors-uk/property-advice-solicitors-in-uk.htm" || window.location == urlpath+"regulatory-law-solicitors/regulatory-law-solicitors-uk/regulatory-law-solicitors-in-uk.htm" || window.location == urlpath+"wills-and-probate/wills-and-probate-solicitors-uk/wills-and-probate-in-uk.htm"|| window.location == urlpath+"debt-recovery/debt-recovery-solicitors-uk/debt-recovery-in-uk.htm")
	{document.getElementById('area').src = urlpath+'images/top-menu-2-ac.gif';}
	else if(window.location == urlpath+"about-our-solicitors-uk/indian.htm" || window.location == urlpath+"about-our-solicitors-uk/italy.htm" || window.location == urlpath+"about-our-solicitors-uk/polish.htm" || window.location == urlpath+"about-our-solicitors-uk/russian.htm" || window.location == urlpath+"about-our-solicitors-uk/chinese.htm")
	{document.getElementById('about').src = urlpath+'images/top-menu-3-ac.gif';}
	else if(window.location == urlpath+"faqs.htm")
	{document.getElementById('team').src = urlpath+'images/top-menu-4-ac.gif';}
	else if(window.location == urlpath+"news.htm")
	{document.getElementById('news').src = urlpath+'images/top-menu-5-ac.gif';}
	else if(window.location == urlpath+"contact-solicitors-uk/contact-us.htm")
	{document.getElementById('contact').src = urlpath+'images/top-menu-6-ac.gif';}
}

/**********************  New  Js Div hide and show  ******************************/

function aboutone()
{
	document.getElementById('one').style.display = 'block';
	document.getElementById('two').style.display = 'none';
	document.getElementById('three').style.display = 'none';
		document.getElementById('four').style.display = 'none';
}
function abouttow()
{
document.getElementById('one').style.display = 'none';
	document.getElementById('two').style.display = 'block';
	document.getElementById('three').style.display = 'none';
		document.getElementById('four').style.display = 'none';
}
function aboutthree()
{
document.getElementById('one').style.display = 'none';
	document.getElementById('two').style.display = 'none';
	document.getElementById('three').style.display = 'block';
		document.getElementById('four').style.display = 'none';
}
function aboutfour()
{
	document.getElementById('one').style.display = 'none';
	document.getElementById('two').style.display = 'none';
	document.getElementById('three').style.display = 'none';
		document.getElementById('four').style.display = 'block';
}

/*************************  FAQ page ********************************************/
function showhide(obj)
{	if(document.getElementById(obj).className =="arrowimg")
{
document.getElementById(obj).className="arrowimghide";
}
else
{
document.getElementById(obj).className="arrowimg";
} 
}
