﻿var StoryCounter = 0;

function flip(id)
{
    hideStories();
    obj = document.getElementById('story' + id);
    curStyle = obj.style.display;
    if (curStyle == "" || curStyle == "none")
    {
    //alert(id)
        obj.style.display = "block";
        obj = document.getElementById('storyBox' + id);
        obj.src = "graphics/design/minus.gif";
    }
//    else
//    {
//        obj.style.display = "none";
//        obj = document.getElementById('storyBox' + id);
//        obj.src = "graphics/design/plus.gif";
//    }
    return false;
}

function flipinternal(id)
{
    //hideStories();
    obj = document.getElementById('story' + id);
    curStyle = obj.style.display;
    if (curStyle == "" || curStyle == "none")
    {
    //alert(id)
        obj.style.display = "block";
        obj = document.getElementById('storyBox' + id);
        obj.src = "graphics/design/minus.gif";
    }
    else
    {
        obj.style.display = "none";
        obj = document.getElementById('storyBox' + id);
        obj.src = "graphics/design/plus.gif";
    }
    return false;
}

function hideStories()
{
    for(j=1;j<=StoryCounter;j++)
    {
        if (eval("document.getElementById('story" + j + "')"))
        {
            obj = document.getElementById('story' + j);
            obj.style.display = "none";
            obj = document.getElementById('storyBox' + j);
            obj.src = "graphics/design/plus.gif";
        }
    }
}

function FontResize()
{
	// setDefaults arguments: size unit, default size, minimum, maximum
	// optional array of elements or selectors to apply these defaults to
	dw_fontSizerDX.setDefaults('px', 11, 8, 22, ['#hola'],'fontSize_bjc');
//	dw_fontSizerDX.setDefaults('px', 14, 10, 18, ['body', 'td', 'div', 'p', 'a', 'li', 'font', 'span'],'fontSize_bjc');
//	dw_fontSizerDX.setDefaults('px', 11, 7, 15, ['#content .CallOutBox TD','#content .CallOutBox P','#content .CallOutBox LI','#content .CallOutBoxTitle A','#content .Call-Out P','#content .Call-OutBoxTitle A'],'fontSize_bjc');
	//dw_fontSizerDX.set(14, 14, 14, ['div#sizer'] );
	dw_fontSizerDX.set(12, 10, 22, ['#maincopy', '#maincopy TD','font','#mainnavcopy']);
	dw_fontSizerDX.set(16, 14, 28, ['h1']);
	dw_fontSizerDX.init();
	//setTextIcon();
}