ddaccordion.init({
	headerclass: "menuheader", //Shared CSS class name of headers group
	contentclass: "submenu", //Shared CSS class name of contents group
	revealtype: "click", //Reveal content when user clicks or onmouseover the header? Valid value: "click", "clickgo", or "mouseover"
	mouseoverdelay: 200, //if revealtype="mouseover", set delay in milliseconds before header expands onMouseover
	collapseprev: true, //Collapse previous content (so only one open at any time)? true/false	
	defaultexpanded: [defaultMenu], //index of content(s) open by default [index1, index2, etc] [] denotes no content
	onemustopen: true, //Specify whether at least one header should be open always (so never all headers closed)
	animatedefault: true, //Should contents open by default be animated into view?
	persiststate: false, //persist state of opened contents within browser session?
	toggleclass: ["", "selected"], //Two CSS classes to be applied to the header when it's collapsed and expanded, respectively ["class1", "class2"]
	togglehtml: ["", "", ""], //Additional HTML added to the header when it's collapsed and expanded, respectively  ["position", "html1", "html2"] (see docs)
	animatespeed: "fast", //speed of animation: integer in milliseconds (ie: 200), or keywords "fast", "normal", or "slow"
	oninit:function(headers, expandedindices){ //custom code to run when headers have initalized
		//do nothing
	},
	onopenclose:function(header, index, state, isuseractivated){ //custom code to run whenever a header is opened or closed
		//do nothing
		//alert(header+':::::'+index+':::::'+state+':::::'+isuseractivated);
		
		if(state == 'block'){
			//alert('111');
			$('#'+header.id+' a').css('background-position','0px 0px');
		}else{
			//alert('222 :'+$('#'+header.id+' a').css('background-image',));
			$('#'+header.id+' a').css('background-position','-114px 0px');
		}
	}
});

$(document).ready(function(){

	$(".calculatemenu").colorbox({iframe:true, innerWidth:900, innerHeight:530, scrolling: false, 
		onComplete: function() { 
			document.getElementById("cboxClose").innerHTML="";
			//document.getElementById("cboxPrint").innerHTML="";
			document.getElementById("cboxContent").style.width="860px";
			document.getElementById("cboxContent").style.height="500px";
			document.getElementById("cboxLoadedContent").style.width="860px";
			document.getElementById("cboxLoadedContent").style.height="500px";
		} 
	});
	if($("#menuDefault").val() == '1'){
		//$("div#menuLHProperty img:first").attr('src','images/template/B_LH_Properties_Over.png');
		$('div#menuLHHome a').css('background', 'url(../../../../images/menu/LH_HOME/images/LH_HOME_01.png) 0px 0px no-repeat');
	}else if($("#menuDefault").val() == '2'){
		//$("div#menuLHDesign img:first").attr('src','images/template/LH_Design.png');
		$('div#menuLHDesign a').css('background', 'url(../../../../images/menu/LH_DESIGN/images/LH_DESIGN_01.png) 0px 0px no-repeat');
	}else if($("#menuDefault").val() == '3'){
		//$("div#menuLHhomeOwner img:first").attr('src','images/template/B_LH_HomeOwner_Over.png');
		$('div#menuLHhomeOwner a').css('background', 'url(../../../../images/menu/LH_HOME_OWNER/images/LH_HOME_OWNER_01.png) 0px 0px no-repeat');
	}
	
	//$('#menu4-3').unbind('mouseenter mouseleave');
	
	if($("#menuSubDefault").val() == '1-2'){
		$('#menu1-2').css('background', 'url(../../../../images/menu/LH_HOME/images/LH_HOME_02.png) -114px 0px no-repeat');
		$('#menu1-2').hover(
				  function () {
					  $('#menu1-2').css('background', 'url(../../../../images/menu/LH_HOME/images/LH_HOME_02.png) -114px 0px no-repeat');
				  }, 
				  function () {
					  $('#menu1-2').css('background', 'url(../../../../images/LH_HOME_02.png) -114px 0px no-repeat');
				  }
				);
	}else if($("#menuSubDefault").val() == '1-3'){
		$('#menu1-3').css('background', 'url(../../../../images/menu/LH_HOME/images/LH_HOME_03.png) -114px 0px no-repeat');
		$('#menu1-3').hover(
				  function () {
					  $('#menu1-3').css('background', 'url(../../../../images/menu/LH_HOME/images/LH_HOME_03.png) -114px 0px no-repeat');
				  }, 
				  function () {
					  $('#menu1-3').css('background', 'url(../../../../images/menu/LH_HOME/images/LH_HOME_03.png) -114px 0px no-repeat');
				  }
				);
	}else if($("#menuSubDefault").val() == '1-4'){
		$('#menu1-4').css('background', 'url(../../../../images/menu/LH_HOME/images/LH_HOME_04.png) -114px 0px no-repeat');
		$('#menu1-4').hover(
				  function () {
					  $('#menu1-4').css('background', 'url(../../../../images/menu/LH_HOME/images/LH_HOME_04.png) -114px 0px no-repeat');
				  }, 
				  function () {
					  $('#menu1-4').css('background', 'url(../../../../images/menu/LH_HOME/images/LH_HOME_04.png) -114px 0px no-repeat');
				  }
				);
	}else if($("#menuSubDefault").val() == '1-5'){
		$('#menu1-5').css('background', 'url(../../../../images/menu/LH_HOME/images/LH_HOME_05.png) -114px 0px no-repeat');
		$('#menu1-5').hover(
				  function () {
					  $('#menu1-5').css('background', 'url(../../../../images/menu/LH_HOME/images/LH_HOME_05.png) -114px 0px no-repeat');
				  }, 
				  function () {
					  $('#menu1-5').css('background', 'url(../../../../images/menu/LH_HOME/images/LH_HOME_05.png) -114px 0px no-repeat');
				  }
				);
	}else if($("#menuSubDefault").val() == '2-2'){
		$('#menu2-2').css('background', 'url(../../../../images/menu/LH_DESIGN/images/LH_DESIGN_02.png) -114px 0px no-repeat');
		$('#menu2-2').hover(
				  function () {
					  $('#menu2-2').css('background', 'url(../../../../images/menu/LH_DESIGN/images/LH_DESIGN_02.png) -114px 0px no-repeat');
				  }, 
				  function () {
					  $('#menu2-2').css('background', 'url(../../../../images/menu/LH_DESIGN/images/LH_DESIGN_02.png) -114px 0px no-repeat');
				  }
				);
	}else if($("#menuSubDefault").val() == '2-3'){
		$('#menu2-3').css('background', 'url(../../../../images/menu/LH_DESIGN/images/LH_DESIGN_03.png) -114px 0px no-repeat');
		$('#menu2-3').hover(
				  function () {
					  $('#menu2-3').css('background', 'url(../../../../images/menu/LH_DESIGN/images/LH_DESIGN_03.png) -114px 0px no-repeat');
				  }, 
				  function () {
					  $('#menu2-3').css('background', 'url(../../../../images/menu/LH_DESIGN/images/LH_DESIGN_03.png) -114px 0px no-repeat');
				  }
				);
	}else if($("#menuSubDefault").val() == '2-4'){
		$('#menu2-4').css('background', 'url(../../../../images/menu/LH_DESIGN/images/LH_DESIGN_04.png) -114px 0px no-repeat');
		$('#menu2-4').hover(
				  function () {
					  $('#menu2-4').css('background', 'url(../../../../images/menu/LH_DESIGN/images/LH_DESIGN_04.png) -114px 0px no-repeat');
				  }, 
				  function () {
					  $('#menu2-4').css('background', 'url(../../../../images/menu/LH_DESIGN/images/LH_DESIGN_04.png) -114px 0px no-repeat');
				  }
				);
	}else if($("#menuSubDefault").val() == '3-2'){
		$('#menu3-2').css('background', 'url(../../../../images/menu/LH_HOME_OWNER/images/LH_HOME_OWNER_02.png) -114px 0px no-repeat');
		$('#menu3-2').hover(
				  function () {
					  $('#menu3-2').css('background', 'url(../../../../images/menu/LH_HOME_OWNER/images/LH_HOME_OWNER_02.png) -114px 0px no-repeat');
				  }, 
				  function () {
					  $('#menu3-2').css('background', 'url(../../../../images/menu/LH_HOME_OWNER/images/LH_HOME_OWNER_02.png) -114px 0px no-repeat');
				  }
				);
	}else if($("#menuSubDefault").val() == '3-3'){
		$('#menu3-3').css('background', 'url(../../../../images/menu/LH_HOME_OWNER/images/LH_HOME_OWNER_03.png) -114px 0px no-repeat');
		$('#menu3-3').hover(
				  function () {
					  $('#menu3-3').css('background', 'url(../../../../images/menu/LH_HOME_OWNER/images/LH_HOME_OWNER_03.png) -114px 0px no-repeat');
				  }, 
				  function () {
					  $('#menu3-3').css('background', 'url(../../../../images/menu/LH_HOME_OWNER/images/LH_HOME_OWNER_03.png) -114px 0px no-repeat');
				  }
				);
	}else if($("#menuSubDefault").val() == '3-4'){
		$('#menu3-4').css('background', 'url(../../../../images/menu/LH_HOME_OWNER/images/LH_HOME_OWNER_04.png) -114px 0px no-repeat');
		$('#menu3-4').hover(
				  function () {
					  $('#menu3-4').css('background', 'url(../../../../images/menu/LH_HOME_OWNER/images/LH_HOME_OWNER_04.png) -114px 0px no-repeat');
				  }, 
				  function () {
					  $('#menu3-4').css('background', 'url(../../../../images/menu/LH_HOME_OWNER/images/LH_HOME_OWNER_04.png) -114px 0px no-repeat');
				  }
				);
	}else if($("#menuSubDefault").val() == '3-5'){
		$('#menu3-5').css('background', 'url(../../../../images/menu/LH_HOME_OWNER/images/LH_HOME_OWNER_05.png) -114px 0px no-repeat');
		$('#menu3-5').hover(
				  function () {
					  $('#menu3-5').css('background', 'url(../../../../images/menu/LH_HOME_OWNER/images/LH_HOME_OWNER_05.png) -114px 0px no-repeat');
				  }, 
				  function () {
					  $('#menu3-5').css('background', 'url(../../../../images/menu/LH_HOME_OWNER/images/LH_HOME_OWNER_05.png) -114px 0px no-repeat');
				  }
				);
	}else if($("#menuSubDefault").val() == '4-2'){
		$('#menu4-2').css('background', 'url(../../../../images/menu/MORTGAGE_ADVISOR/images/MORTGAGE_ADVISOR_02.png) -114px 0px no-repeat');
		$('#menu4-2').hover(
				  function () {
					  $('#menu4-2').css('background', 'url(../../../../images/menu/MORTGAGE_ADVISOR/images/MORTGAGE_ADVISOR_02.png) -114px 0px no-repeat');
				  }, 
				  function () {
					  $('#menu4-2').css('background', 'url(../../../../images/menu/MORTGAGE_ADVISOR/images/MORTGAGE_ADVISOR_02.png) -114px 0px no-repeat');
				  }
				);
	}else if($("#menuSubDefault").val() == '4-3'){
		$('#menu4-3').css('background', 'url(../../../../images/menu/MORTGAGE_ADVISOR/images/MORTGAGE_ADVISOR_03.png) -114px 0px no-repeat');
		$('#menu4-3').hover(
				  function () {
					  $('#menu4-3').css('background', 'url(../../../../images/menu/MORTGAGE_ADVISOR/images/MORTGAGE_ADVISOR_03.png) -114px 0px no-repeat');
				  }, 
				  function () {
					  $('#menu4-3').css('background', 'url(../../../../images/menu/MORTGAGE_ADVISOR/images/MORTGAGE_ADVISOR_03.png) -114px 0px no-repeat');
				  }
				);
	}else if($("#menuSubDefault").val() == '5-2'){
		$('#menu5-2').css('background', 'url(../../../../images/menu/FOREIGN_BUYERS/images/FOREIGN_BUYERS_02.png) -114px 0px no-repeat');
		$('#menu5-2').hover(
				  function () {
					  $('#menu5-2').css('background', 'url(../../../../images/menu/FOREIGN_BUYERS/images/FOREIGN_BUYERS_02.png) -114px 0px no-repeat');
				  }, 
				  function () {
					  $('#menu5-2').css('background', 'url(../../../../images/menu/FOREIGN_BUYERS/images/FOREIGN_BUYERS_02.png) -114px 0px no-repeat');
				  }
				);
	}else if($("#menuSubDefault").val() == '5-3'){
		$('#menu5-3').css('background', 'url(../../../../images/menu/FOREIGN_BUYERS/images/FOREIGN_BUYERS_03.png) -114px 0px no-repeat');
		$('#menu5-3').hover(
				  function () {
					  $('#menu5-3').css('background', 'url(../../../../images/menu/FOREIGN_BUYERS/images/FOREIGN_BUYERS_03.png) -114px 0px no-repeat');
				  }, 
				  function () {
					  $('#menu5-3').css('background', 'url(../../../../images/menu/FOREIGN_BUYERS/images/FOREIGN_BUYERS_03.png) -114px 0px no-repeat');
				  }
				);
	}else if($("#menuSubDefault").val() == '5-4'){
		$('#menu5-4').css('background', 'url(../../../../images/menu/FOREIGN_BUYERS/images/FOREIGN_BUYERS_04.png) -114px 0px no-repeat');
		$('#menu5-4').hover(
				  function () {
					  $('#menu5-4').css('background', 'url(../../../../images/menu/FOREIGN_BUYERS/images/FOREIGN_BUYERS_04.png) -114px 0px no-repeat');
				  }, 
				  function () {
					  $('#menu5-4').css('background', 'url(../../../../images/menu/FOREIGN_BUYERS/images/FOREIGN_BUYERS_04.png) -114px 0px no-repeat');
				  }
				);
	}else if($("#menuSubDefault").val() == '5-5'){
		$('#menu5-5').css('background', 'url(../../../../images/menu/FOREIGN_BUYERS/images/FOREIGN_BUYERS_05.png) -114px 0px no-repeat');
		$('#menu5-5').hover(
				  function () {
					  $('#menu5-5').css('background', 'url(../../../../images/menu/FOREIGN_BUYERS/images/FOREIGN_BUYERS_05.png) -114px 0px no-repeat');
				  }, 
				  function () {
					  $('#menu5-5').css('background', 'url(../../../../images/menu/FOREIGN_BUYERS/images/FOREIGN_BUYERS_05.png) -114px 0px no-repeat');
				  }
				);
	}else if($("#menuSubDefault").val() == '6-2'){
		$('#menu6-2').css('background', 'url(../../../../images/menu/CORPORATE_INFORMATION/images/CORPORATE_INFORMATION_02.png) -114px 0px no-repeat');
		$('#menu6-2').hover(
				  function () {
					  $('#menu6-2').css('background', 'url(../../../../images/menu/CORPORATE_INFORMATION/images/CORPORATE_INFORMATION_02.png) -114px 0px no-repeat');
				  }, 
				  function () {
					  $('#menu6-2').css('background', 'url(../../../../images/menu/CORPORATE_INFORMATION/images/CORPORATE_INFORMATION_02.png) -114px 0px no-repeat');
				  }
				);
	}else if($("#menuSubDefault").val() == '6-3'){
		$('#menu6-3').css('background', 'url(../../../../images/menu/CORPORATE_INFORMATION/images/CORPORATE_INFORMATION_03.png) -114px 0px no-repeat');
		$('#menu6-3').hover(
				  function () {
					  $('#menu6-3').css('background', 'url(../../../../images/menu/CORPORATE_INFORMATION/images/CORPORATE_INFORMATION_03.png) -114px 0px no-repeat');
				  }, 
				  function () {
					  $('#menu6-3').css('background', 'url(../../../../images/menu/CORPORATE_INFORMATION/images/CORPORATE_INFORMATION_03.png) -114px 0px no-repeat');
				  }
				);
	}else if($("#menuSubDefault").val() == '6-4'){
		$('#menu6-4').css('background', 'url(../../../../images/menu/CORPORATE_INFORMATION/images/CORPORATE_INFORMATION_04.png) -114px 0px no-repeat');
		$('#menu6-4').hover(
				  function () {
					  $('#menu6-4').css('background', 'url(../../../../images/menu/CORPORATE_INFORMATION/images/CORPORATE_INFORMATION_04.png) -114px 0px no-repeat');
				  }, 
				  function () {
					  $('#menu6-4').css('background', 'url(../../../../images/menu/CORPORATE_INFORMATION/images/CORPORATE_INFORMATION_04.png) -114px 0px no-repeat');
				  }
				);
	}else if($("#menuSubDefault").val() == '6-5'){
		$('#menu6-5').css('background', 'url(../../../../images/menu/CORPORATE_INFORMATION/images/CORPORATE_INFORMATION_05.png) -114px 0px no-repeat');
		$('#menu6-5').hover(
				  function () {
					  $('#menu6-5').css('background', 'url(../../../../images/menu/CORPORATE_INFORMATION/images/CORPORATE_INFORMATION_05.png) -114px 0px no-repeat');
				  }, 
				  function () {
					  $('#menu6-5').css('background', 'url(../../../../images/menu/CORPORATE_INFORMATION/images/CORPORATE_INFORMATION_05.png) -114px 0px no-repeat');
				  }
				);
	}else if($("#menuSubDefault").val() == '7-2'){
		$('#menu7-2').css('background', 'url(../../../../images/menu/menu_lh_01.jpg) -114px 0px no-repeat');
		$('#menu7-2').hover(
				  function () {
					  $('#menu7-2').css('background', 'url(../../../../images/menu/menu_lh_01.jpg) -114px 0px no-repeat');
				  }, 
				  function () {
					  $('#menu7-2').css('background', 'url(../../../../images/menu/menu_lh_01.jpg) -114px 0px no-repeat');
				  }
				);
	}else if($("#menuSubDefault").val() == '7-3'){
		$('#menu7-3').css('background', 'url(../../../../images/menu/menu_lh_02.jpg) -114px 0px no-repeat');
		$('#menu7-3').hover(
				  function () {
					  $('#menu7-3').css('background', 'url(../../../../images/menu/menu_lh_02.jpg) -114px 0px no-repeat');
				  }, 
				  function () {
					  $('#menu7-3').css('background', 'url(../../../../images/menu/menu_lh_02.jpg) -114px 0px no-repeat');
				  }
				);
	}else if($("#menuSubDefault").val() == '7-4'){
		$('#menu7-4').css('background', 'url(../../../../images/menu/menu_lh_03.jpg) -114px 0px no-repeat');
		$('#menu7-4').hover(
				  function () {
					  $('#menu7-4').css('background', 'url(../../../../images/menu/menu_lh_03.jpg) -114px 0px no-repeat');
				  }, 
				  function () {
					  $('#menu7-4').css('background', 'url(../../../../images/menu/menu_lh_03.jpg) -114px 0px no-repeat');
				  }
				);
	}else if($("#menuSubDefault").val() == '7-5'){
		$('#menu7-5').css('background', 'url(../../../../images/menu/menu_lh_04.jpg) -114px 0px no-repeat');
		$('#menu7-5').hover(
				  function () {
					  $('#menu7-5').css('background', 'url(../../../../images/menu/menu_lh_04.jpg) -114px 0px no-repeat');
				  }, 
				  function () {
					  $('#menu7-5').css('background', 'url(../../../../images/menu/menu_lh_04.jpg) -114px 0px no-repeat');
				  }
				);
	}else if($("#menuSubDefault").val() == '7-6'){
		$('#menu7-5').css('background', 'url(../../../../images/menu/menu_lh_05.jpg) -114px 0px no-repeat');
		$('#menu7-5').hover(
				  function () {
					  $('#menu7-5').css('background', 'url(../../../../images/menu/menu_lh_05.jpg) -114px 0px no-repeat');
				  }, 
				  function () {
					  $('#menu7-5').css('background', 'url(../../../../images/menu/menu_lh_05.jpg) -114px 0px no-repeat');
				  }
				);
	}else if($("#menuSubDefault").val() == '7-7'){
		$('#menu7-7').css('background', 'url(../../../../images/menu/menu_lh_06.jpg) -114px 0px no-repeat');
		$('#menu7-7').hover(
				  function () {
					  $('#menu7-7').css('background', 'url(../../../../images/menu/menu_lh_06.jpg) -114px 0px no-repeat');
				  }, 
				  function () {
					  $('#menu7-7').css('background', 'url(../../../../images/menu/menu_lh_06.jpg) -114px 0px no-repeat');
				  }
				);
	}
	
});


