
function menuBg(resimId, resim,renk) {

document.getElementById('menu'+resimId).style.backgroundImage= 'url(http://www.esproit.com/images/' + resim + ')';
document.getElementById('img'+resimId).style.color = renk;
}


function openClose(menuId){
document.getElementById(menuId).style.display="block";
}
function closeOpen(menuId){
document.getElementById(menuId).style.display="none";
}
function productJs(grup_no,productType,product){
$.ajax({
		  type: "GET",
		  url: "ajax.asp",
		  data: "grup_no="+grup_no+"&productType="+productType+"&product="+product,
		  success: function(donendeger){		  
		    $("#productContainer").html(donendeger);  
		  }
		
		});
	if 	(productType==2)
	{document.getElementById('imgH').src="images/projeweb2.jpg"
	document.getElementById('imgH2').src="images/projetic2.jpg"
	document.getElementById('imgH3').src="images/eticaretbas.jpg"
	}
	if 	(productType==1)
	{document.getElementById('imgH').src="images/projeweb.jpg"
	document.getElementById('imgH2').src="images/projetic.jpg"
	document.getElementById('imgH3').src="images/webref.jpg"}
}

function chngColor(id,mouseType,lid){

var div=document.getElementById(id);
var img=document.getElementById('img'+id);
var td = document.getElementById('td' + id);
var lid = document.getElementById(lid);

if (mouseType=='mousein')
{
//div.style.backgroundImage='url(images/menulaci.jpg)';
td.style.backgroundImage='url(http://www.esproit.com/images/menulaci3.jpg)';
//td.style.backgroundRepeat='no-repeat';
td.style.color = '#ffffff';
lid.style.color = '#ffffff';
img.src = 'http://www.esproit.com/images/menuok2.jpg';
}else{
img.src='http://www.esproit.com/images/menuok.jpg';
div.style.backgroundImage='';
td.style.backgroundImage='';
td.style.color = '#657D7D';
lid.style.color = '#657D7D';
}
}












