 function showQuickMenuPanel(id){

	var DivCount = countChildrenByClassName(id+"area","quickmenupanel_box");
	var RowCount = 0;
	var RowFactor = 0;
	var TargetDivHeight = 0;
	if(DivCount==0){
	 	RowCount = 1;
	}else if(DivCount<=4){
	 	RowCount = 1;
	}else{
		 RowCount = Math.ceil(DivCount / 4) ;
	}
	TargetDivHeight = 155*RowCount;
	TargetDivHeight = TargetDivHeight+"px";

	if(id=="quickmenupanel1") {
		if($("#"+id+"area").css('opacity') == 0) {
			 $("#quickmenupanel1area").animate({height:TargetDivHeight}, 400 );
			 $("#quickmenupanel1area").animate({opacity:100}, 800 );
			 $("#quickmenupanel2area").animate({height:"0px", opacity:0}, 400 );
		}else{
			 $("#quickmenupanel1area").animate({height:"0px", opacity:0}, 400 );
			 /*$("#quickmenupanel2area").animate({height:"150px", opacity:100}, 400 );*/
		}
	}else if(id=="quickmenupanel2") {
		if($("#"+id+"area").css('opacity') == 0) {
			 $("#quickmenupanel1area").animate({height:"0px", opacity:0}, 400 );
			 $("#quickmenupanel2area").animate({height:TargetDivHeight}, 400 );
			 $("#quickmenupanel2area").animate({opacity:100}, 800 );
		}else{
			 /*$("#quickmenupanel1area").animate({height:"150px", opacity:100}, 400 );*/
			 $("#quickmenupanel2area").animate({height:"0px", opacity:0}, 400 );
		}
	}
 }
 
function countChildrenByClassName(moms_id, classname) {
	var mom, kids, kid, i = n = 0;
	mom = document.getElementById(moms_id);
	if (mom)
	{
		kids = mom.getElementsByTagName('*') || mom.all;
		while (kid = kids.item(i++))
			if (kid.className == classname)
				++n;
	}
	return n;
}

<!-- change font size//-->
function changeFontSize(inc)
{
	if(document.getElementsByClassName('resizable_text') === undefined){
		  var p = document.getElementsByClassName('maincontent_contenttextarea_800');
	}else{
		  var p = document.getElementsByClassName('resizable_text');

	}
	if(p===undefined){
		alert("Sorry there is no text able to be resize on this page");	
	}
	
  for(n=0; n<p.length; n++) {
	if(p[n].style.fontSize) {
	   var size = parseInt(p[n].style.fontSize.replace("px", ""));
	} else {
	   var size = 12;
	}
	if((size+inc)==16){
		
	}else if((size+inc)<=12){
	
	}else{
		p[n].style.fontSize = inc + 'px';
	}
   }
}
<!--
function bookmarkPage(){
	var is_4up = parseInt(navigator.appVersion);
	var is_mac   = navigator.userAgent.toLowerCase().indexOf("mac")!=-1;
	var is_ie   = navigator.userAgent.toLowerCase().indexOf("msie")!=-1;
	var thePage = location.href;
	if (thePage.lastIndexOf('#')!=-1)
		thePage = thePage.substring(0,thePage.lastIndexOf('#'));
	if (is_ie && is_4up && !is_mac) 
		window.external.AddFavorite(thePage,document.title);
	else if (is_ie || document.images)
		booker_hp = window.open(thePage,'booker_','menubar,width=325,height=100,left=140,top=60');
	//booker_hp.focus();
	}
//-->
if (window.name=='booker_'){
	var pre_fix = document.images? '<BR>':'';
	document.write(pre_fix + '<P align="center">'
	+ 'Use the menu or ctrl/cmd-D now <BR>to bookmark the page then <BR>'
	+ '<A href="javascript:window.close();">close this window</A></p>'
	+ '<P>&nbsp;</P><P>&nbsp;</P><P>&nbsp;</P><P>&nbsp;</P><P>&nbsp;</P>');
	}
//-->



function printPage(siteurl, sitedomain, companyname, copyrightyear, csstoprint){

var theContent = document.getElementById(csstoprint).innerHTML;
var printContentHeader = "<HTML><HEAD><TITLE>"+document.title+"</TITLE><HEAD><STYLE>body { color : #000000; background : #ffffff; font-family : 'Times New Roman', Times, serif; font-size : 12pt; } a { text-decoration : underline; color : #0000ff;} div{font-size: 12pt;}p{font-size:12pt;}li{font-size:12pt;}table{font-size:12pt;}</STYLE></HEAD>";
printContentHeader = printContentHeader + "<BODY bgColor=#ffffff leftMargin=20px topMargin=5px><table width=100% border=0 cellpadding=0 cellspacing=0 style=border-bottom: 1px solid #000000;><tr><td width=40% align=left valign=top><b>" + companyname + "</b><!--<img src=" + siteurl +"images/logo-print.jpg>--></td><td align=right valign=top width=60% style=font-size:11px;>| <a href=# onClick=\"window.print();return false\" style='font-size:11px;'>Print now</a> | <a href='javascript:window.close()' style='font-size:11px;'>Close window</a> |</td></tr></table><p><TABLE id=\"contentpane\" width=100% border=0 cellpadding=20 cellspacing=0 style=font-size:11px;line-height:1.5em;>";
var printContentFooter = "</TABLE><div style=font-size:11px;padding-top:20px;>Copyright&copy; " + copyrightyear + " " + companyname + "<br>Source : " + sitedomain + "</div></BODY></HTML>";
var newContent = printContentHeader + theContent + printContentFooter;

var printWin = window.open("","printWin",'alwaysRaised=yes,dependent=yes,scrollbars=yes,status=yes,resizable=yes,width=600,height=580');
printWin.document.write(newContent);
printWin.location.reload();


}	
