function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function loadImages(){
  MM_preloadImages('/images/menu_whats_on_off.gif','/images/menu_whats_on_on.gif',
  		   '/images/menu_about_us_off.gif','/images/menu_about_us_on.gif',
  		   '/images/menu_party_booking_off.gif','/images/menu_party_booking_on.gif',
  		   '/images/menu_our_restaurants_off.gif','/images/menu_our_restaurants_on.gif',
  		   '/images/menu_franchise_opportunity_off.gif','/images/menu_franchise_opportunity_on.gif',
  		   '/images/menu_contact_us_off.gif','/images/menu_contact_us_on.gif',
  		   '/images/menu_products_off.gif','/images/menu_products_on.gif');


}

function booking(restaurant,location,address,tel,fax,contact,business) {
	var str = "scrollbars=no,width=200,height=230,status=no,left=350,screenX=0,top=200,screenY=0";
	str += ",resizable"; // so the user can resize the newwindow manually
	var newwin = window.open('','', str);
	var content = "";
	content += "<html>\n\r";
	content += "<title>Party Booking</title>\n\r";
	content += "<head>\n\r";
	content += "<script language=javascript src=\"/common.js\"></script>\n\r";
	content += "<link href=\"/common.css\" rel=\"stylesheet\" type=\"text/css\">\n\r";
	content += "</head>\n\r";
	content += "<body topmargin=0 leftmargin=0 marginheight=0 marginwidth=0>\n\r";
	content += "<center>\n\r";
	content += "<table border=0 cellspacing=0 cellpadding=0 class=pad10>\n\r";
	content += "<tr><td><img src=\"/images/blank.gif\" width=1 height=16 border=0></td></tr>\n\r";
	content += "<tr><td align=left valign=top class=header>" + restaurant + "<br>\n\r" + location + "</td></tr>\n\r";
if(address > 0) {
	content += "<tr><td><img src=\"/images/blank.gif\" width=1 height=4 border=0></td></tr>\n\r";
	content += "<tr><td align=left valign=top class=text>" + address + "</td></tr>\n\r";
}
if(tel.length > 0) {
	content += "<tr><td><img src=\"/images/blank.gif\" width=1 height=4 border=0></td></tr>\n\r";
	content += "<tr><td align=left valign=top class=text>Tel: " + tel + "</td></tr>\n\r";
}
if(fax.length > 0) {
	content += "<tr><td><img src=\"/images/blank.gif\" width=1 height=4 border=0></td></tr>\n\r";
	content += "<tr><td align=left valign=top class=text>Fax: " + fax + "</td></tr>\n\r";
}
if(contact.length > 0) {
	content += "<tr><td><img src=\"/images/blank.gif\" width=1 height=4 border=0></td></tr>\n\r";
	content += "<tr><td align=left valign=top class=text>Contact: <b>" + contact + "</b></td></tr>\n\r";
}
if(business > 0) {
	content += "<tr><td><img src=\"/images/blank.gif\" width=1 height=4 border=0></td></tr>\n\r";
	content += "<tr><td align=left valign=top class=text>Business Hours:<br>" + business + "</td></tr>\n\r";
}
	content += "<tr><td><img src=\"/images/blank.gif\" width=1 height=16 border=0></td></tr>\n\r";
	content += "<tr><td align=middle valign=top><a class=rlink href=\"javascript:selfclose()\">close</a></td></tr>\n\r";
	content += "<tr><td><img src=\"/images/blank.gif\" width=1 height=16 border=0></td></tr>\n\r";
	content += "</table>\n\r";
	content += "</center>\n\r";
	content += "</body>\n\r";
	content += "</html>\n\r";
	newwin.document.write(content);
	

}


function showmap(restaurant,location,address,tel,fax,contact,path) {
	var str = "scrollbars=yes,width=500,height=550,status=no,left=100,screenX=0,top=100,screenY=0";
	str += ",resizable"; // so the user can resize the newwindow manually
	var newwin = window.open('','', str);
	var content = "";
	content += "<html>\n\r";
	content += "<title>Map</title>\n\r";
	content += "<head>\n\r";
	content += "<script language=javascript src=\"/common.js\"></script>\n\r";
	content += "<link href=\"/common.css\" rel=\"stylesheet\" type=\"text/css\">\n\r";
	content += "</head>\n\r";
	content += "<body topmargin=0 leftmargin=0 marginheight=0 marginwidth=0>\n\r";
	content += "<center>\n\r";
	content += "<table width=350 border=0 cellspacing=0 cellpadding=0 class=pad10>\n\r";
	content += "<tr><td><img src=\"/images/blank.gif\" width=1 height=16 border=0></td></tr>\n\r";
	content += "<tr><td align=left valign=top><img src=\"" + path + "\" border=0></td></tr>\n\r";
	content += "<tr><td><img src=\"/images/blank.gif\" width=1 height=16 border=0></td></tr>\n\r";
	content += "<tr><td align=left valign=top class=header>" + restaurant + " (" + location + ")</td></tr>\n\r";
	content += "<tr><td><img src=\"/images/blank.gif\" width=1 height=4 border=0></td></tr>\n\r";
	content += "<tr><td align=left valign=top class=text>" + address + "</td></tr>\n\r";
	content += "<tr><td><img src=\"/images/blank.gif\" width=1 height=4 border=0></td></tr>\n\r";
	content += "<tr><td align=left valign=top class=text>Tel: " + tel + "</td></tr>\n\r";
	content += "<tr><td><img src=\"/images/blank.gif\" width=1 height=4 border=0></td></tr>\n\r";
	content += "<tr><td align=left valign=top class=text>Fax: " + fax + "</td></tr>\n\r";
	content += "<tr><td><img src=\"/images/blank.gif\" width=1 height=4 border=0></td></tr>\n\r";
	content += "<tr><td align=left valign=top class=text>Contact: <b>" + contact + "</b></td></tr>\n\r";
	content += "<tr><td><img src=\"/images/blank.gif\" width=1 height=4 border=0></td></tr>\n\r";
	content += "<tr><td><img src=\"/images/blank.gif\" width=1 height=16 border=0></td></tr>\n\r";
	content += "<tr><td align=middle valign=top class=text><a class=rlink href=\"javascript:window.print()\">print</a> | <a class=rlink href=\"javascript:selfclose()\">close</a></td></tr>\n\r";
	content += "<tr><td><img src=\"/images/blank.gif\" width=1 height=16 border=0></td></tr>\n\r";
	content += "</table>\n\r";
	content += "</center>\n\r";
	content += "</body>\n\r";
	content += "</html>\n\r";

	newwin.document.write(content);
}

function showimg(title,image,width,height) {
	nwidth = width + 4;
	nheight = height + 40;
        var str = "scrollbars=no,width="+nwidth+",height="+nheight+",status=no,left=100,screenX=0,top=100,screenY=0";
        str += ",resizable"; // so the user can resize the newwindow manually
        var newwin = window.open('','', str);
        var content = "";
        content += "<html>\n\r";
        content += "<title>Elgrande Concepts - Event - "+ title+"</title>\n\r";
        content += "<head>\n\r";
        content += "<script language=javascript src=\"/common.js\"></script>\n\r";
        content += "<link href=\"/common.css\" rel=\"stylesheet\" type=\"text/css\">\n\r";
        content += "</head>\n\r";
        content += "<body cellspacing=0 cellpadding=0 topmargin=0 leftmargin=0 marginheight=0 marginwidth=0>\n\r";
        content += "<center>\n\r";
        content += "<tr><td><img src=\""+image+"\" width=\""+width+"\" height=\""+height+"\" border=\"0\"></td></tr>";
        content += "<tr><td><img src=\"/images/blank.gif\" width=1 height=16 border=0></td></tr>\n\r";
        content += "<tr><td align=middle valign=top class=text><a class=rlink href=\"javascript:selfclose()\">close</a></td></tr>\n\r";
        content += "<tr><td><img src=\"/images/blank.gif\" width=1 height=16 border=0></td></tr>\n\r";
        content += "</table>\n\r";
        content += "</center>\n\r";
        content += "</body>\n\r";
        content += "</html>\n\r";

        newwin.document.write(content);
}

function showfaq(path) {
	var str = "scrollbars=yes,width=500,height=550,status=no,left=100,screenX=0,top=100,screenY=0";
	str += ",resizable"; // so the user can resize the newwindow manually
	var newwin = window.open(path,'', str);
}

function selfclose() {
        opener.focus();
        window.close();
}

function selfclose1() {
        self.close();
	msg = window.open('http://www.chickenhotpot.com.cn','','');
	msg.focus();
}

function View(winname,theURL,top,left,width,height) 
{
	msgWindow = window.open(theURL,winname,'menubar=no,scrollbars=yes,toolbar=no,location=no,titlebar=no,resizable=no,status=no,screenX=0,top='+top+',screenY=0,left='+left+',width='+width+',height='+height+'');

	if (msgWindow.opener == null) 
		msgWindow.opener = self;

}

function View1(winname,theURL,top,left,width,height) 
{
	msgWindow = window.open(theURL,winname,'menubar=no,scrollbars=no,toolbar=no,location=no,titlebar=no,resizable=no,status=no,screenX=0,top='+top+',screenY=0,left='+left+',width='+width+',height='+height+'');

	if (msgWindow.opener == null) 
		msgWindow.opener = self;

}
/*
var no = 13; // snow number
var speed = 10; // smaller number moves the snow faster
var snowflake = "/images/snow.gif";

var ns4up = (document.layers) ? 1 : 0;  // browser sniffer
var ie4up = (document.all) ? 1 : 0;
var dx, xp, yp;    // coordinate and position variables
var am, stx, sty;  // amplitude and step variables
var i, doc_width = 800, doc_height = 2400;
if (ns4up) {
//doc_width = self.innerWidth;
doc_width = 776;
doc_height = self.innerHeight;
} else if (ie4up) {
//doc_width = document.body.clientWidth;
//doc_height = document.body.clientHeight;
doc_width = 776;
doc_height = screen.height;
}
dx = new Array();
xp = new Array();
yp = new Array();
am = new Array();
stx = new Array();
sty = new Array();


for (i = 0; i < no; ++ i) {
dx[i] = 0;                        // set coordinate variables
xp[i] = Math.random()*(doc_width-50);  // set position variables
yp[i] = Math.random()*doc_height;
am[i] = Math.random()*20;         // set amplitude variables
stx[i] = 0.02 + Math.random()/10; // set step variables
sty[i] = 0.7 + Math.random();     // set step variables



if (ns4up) {                      // set layers
if (i == 0) {
document.write("<layer name=\"dot"+ i +"\" left=\"15\" ");
document.write("top=\"15\" visibility=\"show\"><img src=\"");
document.write(snowflake + "\" border=\"0\"></layer>");
} else {
document.write("<layer name=\"dot"+ i +"\" left=\"15\" ");
document.write("top=\"15\" visibility=\"show\"><img src=\"");
document.write(snowflake + "\" border=\"0\"></layer>");
   }
} else if (ie4up) {
if (i == 0) {
document.write("<div id=\"dot"+ i +"\" style=\"POSITION: ");
document.write("absolute; Z-INDEX: "+ i +"; VISIBILITY: ");
document.write("visible; TOP: 15px; LEFT: 15px;\"><img src=\"");
document.write(snowflake + "\" border=\"0\"></div>");
} else {
document.write("<div id=\"dot"+ i +"\" style=\"POSITION: ");
document.write("absolute; Z-INDEX: "+ i +"; VISIBILITY: ");
document.write("visible; TOP: 15px; LEFT: 15px;\"><img src=\"");
document.write(snowflake + "\" border=\"0\"></div>");
      }
   }
}





function snowNS() {  // Netscape main animation function
for (i = 0; i < no; ++ i) {  // iterate for every dot
yp[i] += sty[i];
if (yp[i] > doc_height-50) {
xp[i] = Math.random()*(doc_width-am[i]-30);
yp[i] = 0;
stx[i] = 0.02 + Math.random()/10;
sty[i] = 0.7 + Math.random();
//doc_width = self.innerWidth;
doc_width = 776;
doc_height = self.innerHeight;
}
dx[i] += stx[i];
document.layers["dot"+i].top = yp[i];
document.layers["dot"+i].left = xp[i] + am[i]*Math.sin(dx[i]);
}
setTimeout("snowNS()", speed);
}
function snowIE() {  // IE main animation function
for (i = 0; i < no; ++ i) {  // iterate for every dot
yp[i] += sty[i];
if (yp[i] > doc_height-50) {
xp[i] = Math.random()*(doc_width-am[i]-30);
yp[i] = 0;
stx[i] = 0.02 + Math.random()/10;
sty[i] = 0.7 + Math.random();
//doc_width = document.body.clientWidth;
doc_width = 776;
doc_height = screen.height;
}
dx[i] += stx[i];
document.all["dot"+i].style.pixelTop = yp[i];
document.all["dot"+i].style.pixelLeft = xp[i] + am[i]*Math.sin(dx[i]);
}
setTimeout("snowIE()", speed);
}

if (ns4up) {
snowNS();
} else if (ie4up) {
snowIE();
}
*/

var winImage;
function showImage(file,width,height,bgcolor,center,popup){
                if(bgcolor=='') bgcolor='FFFFFF';
                content = "<HTML>\n";
                content += "<BODY TOPMARGIN=0 LEFTMARGIN=0 BGCOLOR=#"+bgcolor+">\n";
                if(center=='Y') content += "<CENTER>\n";
                content += "<IMG SRC='"+file+"' BORDER=0>";
                if(center=='Y') content += "</CENTER>\n";
                content += "</BODY>\n";
                content += "</HTML>\n";
                if(popup=='Y'){
                        winWidth = width+20;
                        winHeight = height;
                        args='top=50,left=200,screenX=0,screenY=0,width='+winWidth+',height='+winHeight+',scrollbars=yes,resizable=yes';
                }else{
                        if ((navigator.appName=="Netscape") && (parseInt(navigator.appVersion)<=4)) {
                                winWidth = screen.availWidth;
                                winHeight = screen.availHeight
                        }else{
                                winWidth = screen.Width;
                                winHeight = screen.Height;
                        }
                        args='top=0,left=0,screenX=0,screenY=0,width='+winWidth+',height='+winHeight+',toolbar=yes,location=yes,directories=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes';
                }
                winImage=window.open("","Win",args);
                winImage.document.write(content);
                winImage.opener=self;
                winImage.focus();
}


