var text = document.title;
catsPosition = text.indexOf("Cats");
hiccupPosition = text.indexOf("Changing Gear");
gearPosition = text.indexOf("Gear");
unionbooksPosition = text.indexOf("Union Books");
essentialsPosition = text.indexOf("Essentials & Extras");
othershopsPosition = text.indexOf("Other Shops");	
oldbarPosition = text.indexOf("Old Bar");	
terracePosition = text.indexOf("Terrace");	
juicebarPosition = text.indexOf("Wicked Cafe");	
styluspulseandminePosition = text.indexOf("Stylus, Pulse & Mine");
otherspacesPosition = text.indexOf("Other Spaces");
		




function showcats() {if (catsPosition>=0) 
{document.getElementById('catsnews').style.display = 'block'; document.getElementById('catsopeninghours').style.display = 'block';}

else
{}
}


function showhiccup() {if (hiccupPosition>=0) 
{document.getElementById('hiccupnews').style.display = 'block'; document.getElementById('hiccupopeninghours').style.display = 'block';}

else
{}
}


function showgear() {if (gearPosition>=0) 
{document.getElementById('gearnews').style.display = 'block'; document.getElementById('gearopeninghours').style.display = 'block';}

else
{}
}


function showunionbooks() {if (unionbooksPosition>=0) 
{document.getElementById('unionbooksnews').style.display = 'block'; document.getElementById('unionbooksopeninghours').style.display = 'block';}

else
{}
}


function showessentials() {if (essentialsPosition>=0) 
{document.getElementById('essentialsnews').style.display = 'block'; document.getElementById('essentialsopeninghours').style.display = 'block';} 

else
{}
}

function showothershops() {if (othershopsPosition>=0) 
{document.getElementById('othershopsnews').style.display = 'block'; document.getElementById('othershopsopeninghours').style.display = 'block';} 

else
{}
}


function showoldbar() {if (oldbarPosition>=0) 
{document.getElementById('oldbarnews').style.display = 'block'; document.getElementById('oldbaropeninghours').style.display = 'block';}

else
{}
}

function showterrace() {if (terracePosition>=0) 
{document.getElementById('terracenews').style.display = 'block'; document.getElementById('terraceopeninghours').style.display = 'block';} 

else
{}
}

function showjuicebar() {if (juicebarPosition>=0) 
{document.getElementById('juicebarnews').style.display = 'block'; document.getElementById('juicebaropeninghours').style.display = 'block';}  

else
{}
}

function showstyluspulseandmine() {if (styluspulseandminePosition>=0) 
{document.getElementById('styluspulseandminenews').style.display = 'block'; document.getElementById ('styluspulseandmineopeninghours').style.display = 'block';} 

else
{}
}

function showotherspaces() {if (otherspacesPosition>=0)
{document.getElementById('otherspacesnews').style.display = 'block'; document.getElementById('otherspacesopeninghours').style.display = 'block';}


else
{}
}