<style type="text/css">
div[class] {
border:red solid 1px;
width:130px;
margin:2px;
padding:6px;
}
div[id] {
width:230px;
height:40px;
padding:6px;
border:blue solid 1px;
}
</style>
<script type="text/javascript">
var obj={
Marker:'Текст для Marker',
products:'Текст для products',
services:'BLa-BLa-Текст для services'
}
function change1(elem) {
document.getElementById('center').innerHTML = obj[elem.className];
}
</script>
<div id="center"></div>
<br />
<br />
<div onclick="change1(this)" class="products"></div>
<div onclick="change1(this)" class="services"></div>
<div onclick="change1(this)" class="Marker"></div>