window.onload = function(){
    try {
        if (uHref.indexOf("/www/home/")>0)      { document.getElementsByTagName("UL")[0].getElementsByTagName("LI")[0].className = "c"; }
        if (uHref.indexOf("/www/news/?id=2")>0) { document.getElementsByTagName("UL")[0].getElementsByTagName("LI")[1].className = "c"; }
        if (uHref.indexOf("/www/news/?id=3")>0) { document.getElementsByTagName("UL")[0].getElementsByTagName("LI")[2].className = "c"; }
    }catch(e){}
    try { windowOnload();            } catch(e){}
	try { loadGallery();             } catch(e){}
    try { loadImages("delivery.ph"); } catch(e){}
    try {
        parent.getObject("DIV", "divLoadbox").className = "displayNone";
    } catch(e){}
}

//@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
function goMain(){
document.location = ("/www/home");
}

function goTwtr(){
document.location = ("http://twitter.com/smartinternetPH");
}

//@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
function filterQ(){
var oData = getObject("INPUT","q");
    oData.focus();

    if (oData.value!=""){
    parent.document.location = ("/www/home/?q=" + oData.value);
    }
}
//@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
function showSearch(){
    var html = "";
        html = "<iframe frameborder=0 marginwidth=0 marginheight=0 width=715 height=400 scrolling=no src=/www/home/search></iframe>";
        onLightbox(html, 715, 400);
}

function showMap(){
    var html = "";
        html = "<iframe frameborder=0 marginwidth=0 marginheight=0 width=800 height=400 scrolling=no src=/www/restaurant/map/?id=#0#></iframe>";
        html = html.replace("#0#", u2Empty(arguments[0]));
        onLightbox(html, 800, 400);
}

function showBasket(){
    var html = "";
        html = "<iframe frameborder=0 marginwidth=0 marginheight=0 width=700 height=300 scrolling=no src=/www/restaurant/basket/></iframe>";
        onLightbox(html, 700, 300);
}

function showGly(){
    var html = "";
        html = "<iframe frameborder=0 marginwidth=0 marginheight=0 width=300 height=300 scrolling=no src=/www/restaurant/gallery/?id=#0#></iframe>";
        html = html.replace("#0#", u2Empty(arguments[0]));
        onLightbox(html, 300, 300);
}

function showLocation(){
    var html = "";
        html = getObject("DIV","divLocation").innerHTML;
        onLightbox(html, 500, 340, "no");
}

function showDtl(){
    var html = "";
        html = "<iframe frameborder=0 marginwidth=0 marginheight=0 width=700 height=300 scrolling=no src=/www/restaurant/food/?id=#0#&pk1=#1#&pk2=#2#&pk3=#3#></iframe>";
        html = html.replace("#0#", u2Empty(arguments[0]));
        html = html.replace("#1#", u2Empty(arguments[1]));
        html = html.replace("#2#", u2Empty(arguments[2]));
        html = html.replace("#3#", u2Empty(arguments[3]));
        onLightbox(html, 700, 300);
}

function showChat(){
    var html = "";
        html = "<iframe frameborder=0 marginwidth=0 marginheight=0 width=293 height=450 scrolling=no src=http://www.smartinternetmerchants.com/scripts/live></iframe>";
        onLightbox(html, 300, 450, "no");
}

function showInquiry(){
    var html = "";
        html = "<iframe frameborder=0 marginwidth=0 marginheight=0 width=350 height=200 scrolling=no src=/www/restaurant/inquiry/?id=#0#></iframe>";
        html = html.replace("#0#", u2Empty(arguments[0]));
        onLightbox(html, 350, 200);
}
//@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
function selectLocation(){
    try{
        getObject("LI","li_"+arguments[0]).className = "selected";
    }catch(e){}
}

function changeFood(){
	getObject("DIV",      "divheader").innerHTML = "<h2>" + getObject("DIV", "divHxdr" + arguments[1]).innerHTML + "</h2>";
	getObject("DIV",      "divprice").innerHTML  = ""     + getObject("DIV", "divPrce" + arguments[1]).innerHTML + "&nbsp;";
	getObject("TEXTAREA", "txtscrpt").innerHTML  = ""     + getObject("DIV", "divDesc" + arguments[1]).innerHTML + "&nbsp;";
    

    getObject("INPUT", "pk1").value = arguments[0];
    getObject("INPUT", "pk2").value = arguments[1];

    document.getElementsByTagName("IMG")[0].className = "foodBig " + arguments[0] + " " + arguments[1];
    loadImages("delivery.ph");
}

function keywordPost(){
documentPost("/www/home/?q=" + arguments[0]);
}

//@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
function orderComplete(){
try{
    parent.document.location = ("/www/news/?id=7");
    parent.offlightbox();
}catch(e){}
}

function continueBasket(){
parent.offlightbox();
}

//@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
function clearBasket(){
try { parent.getObject("DIV","divLoadbox").className = "lightboxL"; }catch(e){}

documentPost("/www/restaurant/basket/?clearBasket=");
}

function delLine(){
try { parent.getObject("DIV","divLoadbox").className = "lightboxL"; }catch(e){}

documentPost("/www/restaurant/basket/?clearBasket=&pk3=" + arguments[0]);
}

function loadBasket(){
try { parent.getObject("DIV","divLoadbox").className = "lightboxL"; }catch(e){}

documentPost("/www/restaurant/basket");
}

function formPost(sURL){
try { parent.getObject("DIV","divLoadbox").className = "lightboxL"; }catch(e){}

document.forms[0].submit();
}