function getcontent (divId , contentId)
{
	ajax.requestFile = '/getcontent.html?contentId='+ contentId;	// Specifying which file to get
	ajax.onCompletion = function () {
		
		if (document.getElementById(divId))
		{
			document.getElementById(divId).innerHTML = ajax.response;		
		}
		
	}
	ajax.runAJAX();		// Execute AJAX function
	
}


function getHcontent(id)
{
	ajax.requestFile = '/getHContentContent.html?id='+ id;	// Specifying which file to get
	ajax.onCompletion = function () {	

document.getElementById('product_details').innerHTML = ajax.response;					
	}
	ajax.runAJAX();		// Execute AJAX function
}




function getImageMaps()
{
	 var objContainer = document.getElementById('bigimage');
	 var tmpInnerHTML = objContainer.innerHTML;
	 
	 objContainer.innerHTML='';
	 
	 var e=document.getElementsByTagName("map");
	 for(var i=0;i<e.length;i++)
	 {
			var areas = e[i].getElementsByTagName("area");
			for(var j=0;j<areas.length;j++)
	 		{
				var coords = areas[j].coords;
				var linkurl = areas[j].href;
				
				var theCoords = coords.split(',');
				//for (k = 0; k < theCoords.length)
				//we create a div to put the image in there
				
				var xvalue = parseInt(parseInt(theCoords[3]) - parseInt(theCoords[1]));
				var yvalue = parseInt(parseInt(theCoords[2]) - parseInt(theCoords[0]));
				xvalue = xvalue / 2;
				yvalue = yvalue / 2;
				
				xvalue = parseInt(theCoords[1]) + parseInt(xvalue) - 11;
				yvalue = parseInt(theCoords[0]) + parseInt(yvalue) - 11;
				
				
				var thediv = document.createElement('div');
					thediv.className ='imageplus';				
					thediv.style.marginLeft = yvalue + 'px';
					thediv.style.marginTop  = xvalue + 'px';
				
					objContainer.appendChild(thediv);
					
				var thediv = document.createElement('div');
					thediv.className ='imageplus2';				
					thediv.style.marginLeft = yvalue + 'px';
					thediv.style.marginTop  = xvalue + 'px';
					thediv.innerHTML = '<a href="'+linkurl+'">&nbsp;</a>';
					
					objContainer.appendChild(thediv);	
				
			}
			
			
	 }
	 
	 objContainer.innerHTML = objContainer.innerHTML + tmpInnerHTML;
	
	
}