﻿ddsmoothmenu.init({
    mainmenuid: "smoothmenu-ajax",
    orientation: 'h',
    classname: 'ddsmoothmenu',
    //customtheme: ["#1c5a80", "#18374a"], //override default menu CSS background values? Uncomment: ["normal_background", "hover_background"]
    contentsource: ["smoothcontainer", "/menu.htm"] //"markup" or ["container_id", "path_to_menu_file"]
})

ddsmoothmenu.init({
    mainmenuid: "smoothmenu-ajax-v",
    orientation: 'v',
    classname: 'ddsmoothmenu-v',
    //customtheme: ["#1c5a80", "#18374a"], //override default menu CSS background values? Uncomment: ["normal_background", "hover_background"]
    contentsource: ["smoothcontainer-v", "/menu-v.htm"] //"markup" or ["container_id", "path_to_menu_file"]
})

$(document).ready(function() {
    $('#priceTable').load("/GetPrices.aspx?ISBN=0470384611");
});

function googleads() {
    google_ad_client = "pub-6031944061835354";
    /* 160x600, created 8/20/09 */
    google_ad_slot = "3641306500";
    google_ad_width = 160;
    google_ad_height = 600;
}

function Search() {
    var searchType;
    var searchText;
    var searchUrl;
    if (document.getElementById("radISBN").checked == true) {
        searchText = document.getElementById("TextBox1").value;
        //searchUrl = "/../Book.aspx?IsbnInput=";
        //searchUrl = "Loading.aspx?IsbnInput=&destPage=Book.aspx?IsbnInput=047018759X";
        window.location = "/Loading.aspx?IsbnInput=" + searchText + "&destPage=Book.aspx?IsbnInput=" + searchText;
    }
    else if (document.getElementById("radTitle").checked == true) {
        searchType = "bookTitle";
        searchUrl = "/SearchCompare.aspx?searchType=bookTitle&searchInput=" + document.getElementById("TextBox1").value + "&sortBy=salesrank&pageNum=1";
        //window.location = searchUrl;
        document.write('<script language="javascript">window.location="' + searchUrl + '";</script>')
    }
    else if (document.getElementById("radAuthor").checked == true) {
        searchType = "bookAuthor";
        searchUrl = "/SearchCompare.aspx?searchType=bookAuthor&searchInput=" + document.getElementById("TextBox1").value + "&sortBy=salesrank&pageNum=1";
        //window.location = searchUrl;
        document.write('<script language="javascript">window.location="' + searchUrl + '";</script>')
    }
    else {
        searchType = "bookKeywords";
        searchUrl = "/SearchCompare.aspx?searchType=bookKeywords&searchInput=" + document.getElementById("TextBox1").value + "&sortBy=salesrank&pageNum=1";
        document.write('<script language="javascript">window.location="' + searchUrl + '";</script>')
        //window.location = searchUrl;
    }
    //window.location = "../Default.aspx";
}
function SearchCompare(url) {
    window.location = url;
}

function leftNav1()
{

}
function leftNav2() {

}
function leftNav3() {

}
function RightContent1() {
}
function RightContent2() {
}
function RightContent3() {
}
function RightContent4() {
}
function RightContent5() {
}
function Footer1() {
}
function Footer2() {
}