
function startupLoad()
{
	getArkedStory(currentArked);
	getArkerStory(currentArker);
	document.getElementById('arkedCounter').innerHTML = arkedCount + arkerCount;

}

// Load Video into iframe
function showVideo(number)
{
    window.frames.frameVid.location.href = "showVid.php?vid=arked" + number;
}

// Load ARKED story into iframe 
function getArkedStory(pos)
{
    window.frames.storyFrameArked.location.href = "showStory.php?q=" + pos + "&t=arked";
}

// Load ARKER story into iframe 
function getArkerStory(pos)
{
    window.frames.storyFrameArker.location.href = "showStory.php?q=" + pos + "&t=arker";
}

// ARKED
function storyForwardArked()
{
	if (currentArked <= 1)
	{
		currentArked = arkedCount;
	}
	else
	{
		currentArked--;
	}
	getArkedStory(currentArked);
	//$('story').fade();
}

function storyBackArked()
{
	if (currentArked >= arkedCount)
	{
		currentArked = 1;
	}
	else
	{
		currentArked++;
	}
	getArkedStory(currentArked);
	//$('story').fade();
}

// ARKER
function storyForwardArker()
{
	if (currentArker <= 1)
	{
		currentArker = arkerCount;
	}
	else
	{
		currentArker--;
	}
	getArkerStory(currentArker);
	//$('story').fade();
}

function storyBackArker()
{
	if (currentArker >= arkerCount)
	{
		currentArker = 1;
	}
	else
	{
		currentArker++;
	}
	getArkerStory(currentArker);
	//$('story').fade();
}
