/* Javascript Item Catalog 0.1
* Creator: Aristotle A. Esguerra
* Date of creation: February 12, 2008
* aristotle@esguerra.info
* http://cantemusdomino.net/
* Permission to modify this script for any use is granted
* provided that full attribution is given to creator.
* -------------------------------------------------------
* Modified by: 
* Modification date: 
*/
items = new Array();

/*
* Use this first item as your template for additional items.
* Be sure to escape any stray apostrophes/quotation marks in your variables.
*/
items[0] = [                                                                      // array number: change for each new item
    'http://mises.org/store/Rothbard-Flask-P595.aspx', // book URL
    'http://mises.org/store/Assets/ProductImages/Thumbnails/M502_T.jpg',                         // item img URL
    '100',                                                                        // img width
    '149',                                                                        // img height
    '',                                                                           // img alt text
    'Enemy of the State Flask',                        // item name
    'Mises Institute',                        // item author/manufacturer/brand
];                                                                                // omit not this bracket

items[1] = [
    'http://mises.org/store/Human-Action-The-Scholars-Edition-P119.aspx',
    'http://mises.org/store/Assets/ProductImages/Thumbnails/B310_T.jpg',
    '',
    '',
    '',
    'Human Action, The Scholars Edition and Study Guide',
    'Mises'
];

items[2] = [
    'http://mises.org/store/Bastiat-Collection-P427C0.aspx',
    'http://mises.org/store5/bookcovers/BastiatCollection_T.png',
    '100',
    '150',
    '',
    'The Bastiat Collection',
    'Bastiat'
];

items[3] = [
    'http://mises.org/store/Austrian-Perspective-on-the-History-of-Economic-Thought-2-volume-set-P273C0.aspx',
    'http://mises.org/store5/images/EconThought_T.jpg',
    '100',
    '150',
    '',
    'The History of Economic Thought',
    'Rothbard'
];

items[4] = [
    'http://mises.org/store/Mises-Crest-Bow-Tie--P76.aspx',
    'http://mises.org/store/Assets/ProductImages/Thumbnails/M212_T.jpg',
    '',
    '',
    '',
    'Mises Crest Bow Tie',
    'Mises Institute'
];

items[5] = [
    'http://mises.org/store/Causes-of-the-Economic-Crisis-The-P323C0.aspx',
    'http://mises.org/store5/images/Causes_T.jpg',
    '100',
    '150',
    '',
    'Causes of the Economic Crisis',
    'Mises'
];

items[6] = [
    'http://mises.org/store/Prices-and-Production-P520.aspx',
    'http://mises.org/store/Assets/ProductImages/Thumbnails/B890_T.jpg',
    '100',
    '150',
    '',
    'Prices, Production, Other Works',
    'Hayek'
];

items[7] = [
    'http://mises.org/store/Man-Economy-and-State-Study-Guide-P304.aspx',
    'http://mises.org/store/Assets/ProductImages/SS328.jpg',
    '100',
    '150',
    '',
    'Study Guide to Rothbard Treatise',
    'Murphy'
];
/*
* do not modify
*/
index = Math.floor(Math.random() * items.length);
url = items[index][0];
img = items[index][1];
wid = items[index][2];
hgt = items[index][3];
alt = items[index][4];
ttl = items[index][5];
aut = items[index][6];

/*
* the HTML below was customized for Movable Type's sidebar widgets.
* Modify the items within single quotation marks
* to suit your particular situation.
*/

document.write('<div class="box featured">');
document.write('<h2>Featured Item</h2>');
document.write('<div class="bord-se"><div class="bord-ne"><div class="bord-s">');
document.write('<a href="'+url+'"><img src="'+img+'" width="'+wid+'" height="'+hgt+'" alt="'+alt+'" style="border:0px" /></a>');
document.write('</div></div></div>');
document.write('<h4><a href="'+url+'">'+ttl+'</a></h4>');
document.write('<p class="byline"><span>By: <a href="http://mises.org/store/search.aspx?Keywords='+aut+'">'+aut+'</a></span>');
document.write('<a class="more" href="http://mises.org/store/New-Products-C52.aspx">view all&hellip;</a></p>');
document.write('</div>');

/*
* that's all he wrote
*/

