//to apply hover at the menu items
function preloadImages() 
{ 
	//check if there are some images in the HTML page only then preload the new images
	if(document.images)
	{
		if(!document.p) 
		{
			document.p=new Array();
		} 
	
		var i,j=document.p.length,a=preloadImages.arguments; 
		for(i=0; i<a.length; i++)
		{
			if (a[i].indexOf("#")!=0)
			{ 
				document.p[j]=new Image; 
				document.p[j++].src=a[i];
			}
		} 
	}
}

function doHover(param, divId)
{
	//alert(param);
	//alert(selPage);
	//alert(divId);
	var obj = '',
	strMenu = '';
	obj = document.getElementById(divId);
	strMenu = '/media/img/layout/footer/'+param;
	//alert(strMenu);
	if (obj != null) {
	    //alert(strMenu);
	    obj.setAttribute('src', strMenu);
	}
}

//to remove hover from the menu items
function removeHover(param, divId)
{
	//alert('common/images/menu/'+selPage+'/'+param+');
	//alert('common/images/menu/'+selPage+'/'+param+'');
    obj = document.getElementById(divId);

    if (obj != null) {
        obj.setAttribute('src', '/media/img/layout/footer/' + param);
    }
}
