
// Ties a set of tabs and content id's together, and switches between them
// <div id='tab_1'> and <div id="content_1"> for example
// Usage: tabswitch('1', 4, 'tab', 'panel') would switch on tab_1 and panel_1

function tabswitch(active, number, tab_prefix, content_prefix) {
	
	for (var i=1; i < number+1; i++) {
	  document.getElementById(content_prefix+'_'+i.toString()).style.display = 'none';
	  document.getElementById(tab_prefix+'_'+i.toString()).className = 'off';
	}
	document.getElementById(content_prefix+'_'+active).style.display = 'block';
	document.getElementById(tab_prefix+'_'+active).className = 'active';	
	
}


img2 = new Image()

var maxNum=4;
seconds = "3";
var max2Num=6;


function agtsi(i)
{
if(i<=maxNum)
    {
    document.myimg.src = 'images/agtsi-img'+i+'.jpg';
    i++;
    setTimeout("agtsi("+i+")",seconds*1000);
	
    }
else
    {
	agtsi(1);
}}

function ajpdsi(i)
{
if(i<=maxNum)
    {
    document.myimg.src = 'images/ajpdsi-img'+i+'.jpg';
    i++;
    setTimeout("ajpdsi("+i+")",seconds*1000);
	
    }
else
    {
	ajpdsi(1);
}}


function victoria(i)
{
if(i<=maxNum)
    {
    document.myimg.src = 'images/victoriaimg'+i+'.jpg';
    i++;
    setTimeout("victoria("+i+")",seconds*1000);

    }
else
    {
    
	 victoria(1);
}}

function neocom(i)
{
if(i<=maxNum)
    {
    document.myimg.src = 'images/neocomimg'+i+'.jpg';
    i++;
    setTimeout("neocom("+i+")",seconds*1000);
    }
else
    {
	neocom(1);
}}

function majestic(i)
{
if(i<=maxNum)
    {
    document.myimg.src = 'images/majestic-img'+i+'.jpg';
    i++;
    setTimeout("majestic("+i+")",seconds*1000);
    }
else
    {
	majestic(1);
}}

function ensco(i)
{
if(i<=max2Num)
    { 
    document.myimg.src = 'images/ensco-img'+i+'.jpg';
    i++;
    setTimeout("ensco("+i+")",seconds*1000);
    }
else
    {
	ensco(1);
}}

function pdsi(i)
{
if(i<=maxNum)
    {
    document.myimg.src = 'images/pdsi-img'+i+'.jpg';
    i++;
    setTimeout("pdsi("+i+")",seconds*1000);
    }
else
    {
	pdsi(1);
}}





