

/*
Interactive Image slideshow with text description
By Christian Carlessi Salvadó (cocolinks@c.net.gt). Keep this notice intact.
Visit http://www.dynamicdrive.com for script
*/


g_fPlayMode = 0;
g_iimg = -1;
g_imax = 0;
g_ImageTable = new Array();

function ChangeImage(fFwd)
{
if (fFwd)
{
if (++g_iimg==g_imax)
g_iimg=0;
}
else
{
if (g_iimg==0)
g_iimg=g_imax;
g_iimg--;
}
Update();
}

function getobject(obj){
if (document.getElementById)
return document.getElementById(obj)
else if (document.all)
return document.all[obj]
}

function Update(){
getobject("_Ath_Slide").src = g_ImageTable[g_iimg][0];
getobject("_Ath_FileName").innerHTML = g_ImageTable[g_iimg][1];
getobject("_Ath_Img_X").innerHTML = g_iimg + 1;
getobject("_Ath_Img_N").innerHTML = g_imax;
}


function Play()
{
g_fPlayMode = !g_fPlayMode;
if (g_fPlayMode)
{
getobject("btnPrev").disabled = getobject("btnNext").disabled = false;
Next();
}
else 
{
getobject("btnPrev").disabled = getobject("btnNext").disabled = false;

}
}
function OnImgLoad()
{

}
function Prev()
{
ChangeImage(false);
}
function Next()
{
ChangeImage(true);
}


////configure below variables/////////////////////////////

//configure the below images and description to your own. 
g_ImageTable[g_imax++] = new Array ("/images_mra/VicesSlideshow/TwoBeers_250.jpg", "<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr><td class=\"shSubhead\">Giving up the brew</td></tr><tr><td height=\"5\"></td></tr><tr><td class=\"verdanaBlk10\">A little tippling can be good for the old cardiovascular system -- in moderation. How much would a two-beer-a-day habit cost your household over time? Here's the breakdown, assuming a cost of $4 for a bottle of domestic beer with tip:<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr colspan=2><td height=\"5\"></td></tr><tr><td width=\"10\" valign=\"top\"><img src=\"/images_MRA/Autos/smltbluebox_5x5.gif\" vspace=\"4\" width=\"5\" height=\"5\"></td><td class=\"verdanaBlk10\"><span class=\"verdanaBlue10\">Weekly:</span> $56</td></tr><tr><td width=\"10\" valign=\"top\"><img src=\"/images_MRA/Autos/smltbluebox_5x5.gif\" vspace=\"4\" width=\"5\" height=\"5\"></td><td class=\"verdanaBlk10\"><span class=\"verdanaBlue10\">Monthly:</span> $240</td></tr><tr><td width=\"10\" valign=\"top\"><img src=\"/images_MRA/Autos/smltbluebox_5x5.gif\" vspace=\"4\" width=\"5\" height=\"5\"></td><td class=\"verdanaBlk10\"><span class=\"verdanaBlue10\">Annually:</span> $2,920</td></tr><tr colspan=2><td height=\"5\"></td></tr></table>If you were to put your bar tab into a tax-deferred 529 college savings plan earning 7 percent for your newborn, you could accumulate $99,277 in 18 years before taxes.</td></tr></table>");
g_ImageTable[g_imax++] = new Array ("/images_mra/VicesSlideshow/TwoCocktails_250.jpg", "<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr><td class=\"shSubhead\">The booze blues</td></tr><tr><td height=\"5\"></td></tr><tr><td class=\"verdanaBlk10\">If you prefer a couple of call drinks at your local watering hole -- say, margaritas with Jose Cuervo tequila or Absolut ginger martinis -- your daily tab for two drinks would be $12 including tip, according to Bankrate's three-city survey.  Well drinks may run you less. Here's the breakdown over time:<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr colspan=2><td height=\"5\"></td></tr><tr><td width=\"10\" valign=\"top\"><img src=\"/images_MRA/Autos/smltbluebox_5x5.gif\" vspace=\"4\" width=\"5\" height=\"5\"></td><td class=\"verdanaBlk10\"><span class=\"verdanaBlue10\">Weekly:</span> $84</td></tr><tr><td width=\"10\" valign=\"top\"><img src=\"/images_MRA/Autos/smltbluebox_5x5.gif\" vspace=\"4\" width=\"5\" height=\"5\"></td><td class=\"verdanaBlk10\"><span class=\"verdanaBlue10\">Monthly:</span> $360</td></tr><tr><td width=\"10\" valign=\"top\"><img src=\"/images_MRA/Autos/smltbluebox_5x5.gif\" vspace=\"4\" width=\"5\" height=\"5\"></td><td class=\"verdanaBlk10\"><span class=\"verdanaBlue10\">Annually:</span> $4,380</td></tr><tr colspan=2><td height=\"5\"></td></tr></table>What would this add up to in a 529 plan earning 7 percent over 18 years? A sizable sum that might see junior through a respectable four-year state university in 2024: $148,916.</td></tr></table>");
g_ImageTable[g_imax++] = new Array ("/images_mra/VicesSlideshow/Ashtray_250.jpg", "<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr><td class=\"shSubhead\">Surrendering cigs</td></tr><tr><td height=\"5\"></td></tr><tr><td class=\"verdanaBlk10\">Why would anyone deliberately inhale toxic fumes? We don't know, but shareholders of cigarette companies have made tons of money. You'll save if you kick the habit, not only on smokes but health-care costs. Here's what a smoker pays out for a pack a day, which Bankrate prices at $5:<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr colspan=2><td height=\"5\"></td></tr><tr><td width=\"10\" valign=\"top\"><img src=\"/images_MRA/Autos/smltbluebox_5x5.gif\" vspace=\"4\" width=\"5\" height=\"5\"></td><td class=\"verdanaBlk10\"><span class=\"verdanaBlue10\">Weekly:</span> $35</td></tr><tr><td width=\"10\" valign=\"top\"><img src=\"/images_MRA/Autos/smltbluebox_5x5.gif\" vspace=\"4\" width=\"5\" height=\"5\"></td><td class=\"verdanaBlk10\"><span class=\"verdanaBlue10\">Monthly:</span> $150</td></tr><tr><td width=\"10\" valign=\"top\"><img src=\"/images_MRA/Autos/smltbluebox_5x5.gif\" vspace=\"4\" width=\"5\" height=\"5\"></td><td class=\"verdanaBlk10\"><span class=\"verdanaBlue10\">Annually:</span> $1,825</td></tr><tr colspan=2><td height=\"5\"></td></tr></table>Put that into a tax-deferred 529 college savings plan earning 7 percent for your newborn and in 18 years, you'll have stashed away $62,048 before taxes.</td></tr></table>");
g_ImageTable[g_imax++] = new Array ("/images_mra/VicesSlideshow/SLatte_250.jpg", "<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr><td class=\"shSubhead\">The daily grind</td></tr><tr><td height=\"5\"></td></tr><tr><td class=\"verdanaBlk10\">A Starbucks double tall latte can't be faulted on health grounds, but the coffee grounds can be pricey. Still, studies suggest that caffeine actually makes you smarter and enhances libido among female laboratory rats. But you want to know the breakdown:<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr colspan=2><td height=\"5\"></td></tr><tr><td width=\"10\" valign=\"top\"><img src=\"/images_MRA/Autos/smltbluebox_5x5.gif\" vspace=\"4\" width=\"5\" height=\"5\"></td><td class=\"verdanaBlk10\"><span class=\"verdanaBlue10\">Weekly:</span> $28</td></tr><tr><td width=\"10\" valign=\"top\"><img src=\"/images_MRA/Autos/smltbluebox_5x5.gif\" vspace=\"4\" width=\"5\" height=\"5\"></td><td class=\"verdanaBlk10\"><span class=\"verdanaBlue10\">Monthly:</span> $120</td></tr><tr><td width=\"10\" valign=\"top\"><img src=\"/images_MRA/Autos/smltbluebox_5x5.gif\" vspace=\"4\" width=\"5\" height=\"5\"></td><td class=\"verdanaBlk10\"><span class=\"verdanaBlue10\">Annually:</span> $1,460</td></tr><tr colspan=2><td height=\"5\"></td></tr></table>How much would you save in a tax-deferred 529 plan? Oh -- you figure it out. After all, the beverage is probably helping your productivity, which may translate to a big raise, which would cover the cost of a daily cup of joe.</td></tr></table>");



//extend the above list as desired
g_dwTimeOutSec=2

////End configuration/////////////////////////////

if (document.getElementById||document.all)
window.onload=Play


