// To be called during onmouseout
function hideLayer(strActiveLayer,strLine)
{   
	//document.getElementById(strActiveLayer).style.visibility = 'hidden';
    //document.getElementById(strLine).style.visibility = 'hidden';
}

// To be called during onmouseover
function showLayer(strActiveLayer,strLine)
{
	//alert(strLine);
	setLayerPosition();
    document.getElementById('divAboutLayer').style.visibility = 'visible';
    //document.getElementById(strLine).style.visibility = 'visible';
}

// Function to set the layer position on the screen
function setLayerPosition()
{
	var intScreenWidth = 0;
    var tmpValue;
    var intPlusWidth = 215;
    var intPosition;
    var strPositionArray;
    
	var test1;
	
    intPosition = String(findPos(document.getElementById('imgAboutUs')));
    strPositionArray = intPosition.split(",")
	
	document.getElementById('divAboutLayer').style.left = Number(strPositionArray[0]) + intPlusWidth;
    document.getElementById('divAboutLayer').style.top = Number(strPositionArray[1]) + 5;
}

// Function to get the position of an element on the screen
function findPos(obj)
{
	var curleft = curtop = 0;
    if (obj.offsetParent)
    {
        curleft = obj.offsetLeft;
        curtop = obj.offsetTop;
        while (obj = obj.offsetParent)
        {
            curleft += obj.offsetLeft;
            curtop += obj.offsetTop;
        }
    }

    return [curleft,curtop];
}

function DisableDivTags()
{
	
	
		document.getElementById('divAboutLayer').style.visibility='hidden';
}

function MakeDisable(TagToShow)
{
	//alert(TagToShow);
	//document.documentElement.style.cursor = 'wait';
	//TagToHide.style.visibility = "hidden";
		
	TagToShow.style.visibility = "";
    return false;
}

// Slideshow preferrences - speed & fade duration
var slideShowSpeed = 4000 // (milliseconds)
var crossFadeDuration = 3 // (seconds)

// Specify the image files to add more images, just continue the pattern, adding to the array below
var Pic = new Array()
Pic[0] = 'http://www.gabnet.org/Images/toppageimage2.jpg'
Pic[1] = 'http://www.gabnet.org/Images/toppageimage1.jpg'
//Pic[2] = 'http://www.gabnet.org/Images/Main3.jpg'
//Pic[3] = 'http://www.gabnet.org/Images/Main4.jpg'

var Pic2 = new Array()
Pic2[0] = 'http://www.gabnet.org/Images/toppageimage3.jpg'
Pic2[1] = 'http://www.gabnet.org/Images/toppageimage4.jpg'
//Pic2[2] = 'http://www.gabnet.org/Images/TaglineUnder3.jpg'
//Pic2[3] = 'http://www.gabnet.org/Images/TaglineUnder4.jpg'


var Pic3 = new Array()
Pic3[0] = 'http://www.gabnet.org/Images/toppageimage5.jpg'
Pic3[1] = 'http://www.gabnet.org/Images/toppageimage6.jpg'

var Pic4 = new Array()
Pic4[0] = 'http://www.gabnet.org/Images/toppageimage7.jpg'
Pic4[1] = 'http://www.gabnet.org/Images/toppageimage8.jpg'
// =======================================
// do not edit anything below this line
// =======================================
var timer
var j = 0
var k = 0
var l = 0
var m = 0
var pictureCount = Pic.length
var pictureCount2 = Pic2.length
var pictureCount3 = Pic3.length
var pictureCount4 = Pic4.length

var preLoad = new Array()
for (i = 0; i < pictureCount; i++)
{
	preLoad[i] = new Image()
	preLoad[i].src = Pic[i]
}

var preLoad2 = new Array()
for (m = 0; m < pictureCount2; m++)
{
	preLoad2[m] = new Image()
	preLoad2[m].src = Pic2[m]
}

var preLoad3 = new Array()
for (n = 0; n < pictureCount3; n++)
{
	preLoad3[n] = new Image()
	preLoad3[n].src = Pic3[n]
}

var preLoad4 = new Array()
for (p = 0; p < pictureCount4; p++)
{
	preLoad4[p] = new Image()
	preLoad4[p].src = Pic4[p]
}

function SlideShow()
{
	if (document.all)
	{
		document.images.imgSisterhood.style.filter="blendTrans(duration=1000)"
		document.images.imgSisterhood.style.filter="blendTrans(duration=crossFadeDuration)"
		document.images.imgSisterhood.filters.blendTrans.Apply()
		
		document.images.imgTogether.style.filter="blendTrans(duration=1)"
		document.images.imgTogether.style.filter="blendTrans(duration=2)"
		document.images.imgTogether.filters.blendTrans.Apply()
		
		document.images.imgRally.style.filter="blendTrans(duration=6000)"
		document.images.imgRally.style.filter="blendTrans(duration=crossFadeDuration)"
		document.images.imgRally.filters.blendTrans.Apply()
		
		document.images.imgProtest.style.filter="blendTrans(duration=3000)"
		document.images.imgProtest.style.filter="blendTrans(duration=crossFadeDuration)"
		document.images.imgProtest.filters.blendTrans.Apply()
	}
	document.images.imgSisterhood.src = preLoad[j].src
	document.images.imgTogether.src = preLoad2[k].src
	document.images.imgRally.src = preLoad3[l].src
	document.images.imgProtest.src = preLoad4[l].src
	if (document.all)
	{
		document.images.imgSisterhood.filters.blendTrans.Play()
		document.images.imgTogether.filters.blendTrans.Play()
		document.images.imgRally.filters.blendTrans.Play()
		document.images.imgProtest.filters.blendTrans.Play()
	}
	
	j += 1
	if (j > (pictureCount-1)) j=0
	//timer = setTimeout('runSlideShow2()', slideShowSpeed)
	
	k +=1
	if (k > (pictureCount2-1)) k=0
	
	l +=1
	if (l > (pictureCount3-1)) l=0
	
	m +=1
	if (l > (pictureCount4-1)) l=0
	timer = setTimeout('SlideShow()', slideShowSpeed)
}