$(document).ready(function()
{
	$("#btnSendContact").click(function()
										{
											$("#contactContent").hide();
											$("#contactSendLoader").show();
											$.ajax({
											   type: "POST",
											   url: "http://www.makrogd.com/appCode/sendContactMail.php",
											   data: "operation=sendContactMail&tbNameSurname=" + $("#name").val() + "&tbEmail=" + $("#email").val() + "&tbMessage=" + $("#note").val(),
											   success: function(msg){
												   $("#contactContent").hide();
												   $("#contactSendLoader").hide();
												   $("#contactSentMessage").fadeIn("slow");
											   }
											 });
										});
//iso-belge.jpg

	$('#imgIso').lightBox({fixedNavigation:true});
	
	/*
	$(".iso").click(function()
							 {
								 $('#gallery a').lightBox({fixedNavigation:true});
							 });
	*/

	///////////< menu>///////////////
	$("#menubtns li ul").hide(); 
	$("#menubtns li").hover(
		function ()
		{
			$(this).css({ color:"#bb271b"});
//			alert($(this).children("#subs").children(".menuItemLeft").attr("id"));
			$(this).children(".subs").children(".menuItemLeft").css({ background:"url(http://www.makrogd.com/images/menuItemLeft.jpg) repeat-x top center"});
			$(this).children(".subs").children(".menuItemBg").css({ background:"url(http://www.makrogd.com/images/menuItemBg.jpg) repeat-x top center"});
			$(this).children(".subs").children(".menuItemRight").css({ background:"url(http://www.makrogd.com/images/menuItemRight.jpg) repeat-x top center"});
			$(this).children("img:not(.selected)").css({ visibility:"hidden"});
			$(this).children("ul").show();
		}
		,
		function()
		{
			$(this).css({ color:"#475561"});
			$(this).children(".subs").children(".menuItemLeft").css({ background:"none"});
			$(this).children(".subs").children(".menuItemBg").css({ background:"none"});
			$(this).children(".subs").children(".menuItemRight").css({ background:"none"});
			$(this).children("img:not(.selected)").css({ visibility:"visible"});
			$(this).children("ul").hide();
	});
	
	$("#menubtns li li").hover(
		function ()
		{
			if( $(this).attr("class") != "submenubot" && $(this).attr("class") != "subMenuItemSeparetor" )
			{
				//$(this).css({ backgroundColor:"#515151", color:"#ffffff"});
			}
		}
		,
		function()
		{
			if( $(this).attr("class") != "submenubot" && $(this).attr("class") != "subMenuItemSeparetor" )
			{
				//$(this).css({ backgroundColor:"#ffffff", color:"#2d2d2d"});
			}
	});
	////////////</menu>///////////////
	
	////////////</leftMenu>///////////////
	$("#pageTwo #leftMenu li").hover(
									 function ()
									 {
										 if( $(this).attr("class") != "liSelected" )
										 {
											 $(this).css('background-color', '#9fabb3');
											 $(this).css('color', '#ffffff');
										 }
									 }
									 ,
									 function()
									 {
										 if( $(this).attr("class") != "liSelected" )
										 {
											 $(this).css('background-color', '#e2e2e2');
											 $(this).css('color', '');
										 }
									 }
									 );
	////////////<leftMenu>///////////////

});

function url(url)
{
	window.location=url;
}