///////////////////////// GENERAL VALUES

d = document;

iLoveUncaBill = 0;

Xplain = new Array();
FormTxt = new Array();

Loading		= new Image();
Loading.src = 'img/mimagez.gif';
Next		= new Image();
Next.src    = 'img/next_o.gif';
Prev		= new Image();
Prev.src    = 'img/prev_o.gif';
Dots1		= new Image();
Dots1.src    = 'img/dots_static.gif';
Dots2		= new Image();
Dots2.src    = 'img/dots_dark.gif';

if ((navigator.appName == 'Microsoft Internet Explorer') && (parseInt(navigator.appVersion) >= 4))
    {
iLoveUncaBill = 1;
    }

///////////////////////// SHOW VISITOR STATUS OF LOADING

function Initialize()
    {
d.getElementById('Loading').src = Loading.src;
    }

///////////////////////// READ VARIABLES FROM URL

function GetActivePage()
    {
SettingsURL     = parent.document.URL.indexOf('?');
TheSettings     = new Array();

if (SettingsURL != -1)
    {
AllSettings = parent.document.URL.substring(SettingsURL+1, parent.document.URL.length).split('&');

    for (i=0; i<AllSettings.length; i++)
        {
    OneSetting = AllSettings[i].split('=');
    TheSettings[OneSetting[0]] = OneSetting[1];
        }

    }
return TheSettings;
    }

GetActivePage();
TheActiveThumb = TheSettings['picture'];
TheMailAdress = TheSettings['mail'];

///////////////////////// INTERACTIVE BUTTS
function ColorIt(WhichColor,WhichImg)
    {
if((WhichColor == 1)&&(iLoveUncaBill == 1))WhichImg.style.filter = 'none';
if((WhichColor == 0)&&(iLoveUncaBill == 1))WhichImg.style.filter = 'gray';
    }

///////////////////////// INTERACTIVE BUTTS

function MoveButt(TheThumb,TheDirection,TheMovement)
    {

    if(TheThumb != TheActiveThumb)
        {
if(TheMovement == 0)if(TheDirection == 0)MoveUp = -5;else{MoveUp = 47;}
if(TheMovement == 1)if(TheDirection == 0)MoveUp = 0;else{MoveUp = 43;}

if(TheMovement == 0)d.getElementById('PicTitle').innerHTML = d.getElementById(TheThumb).title;
if(TheMovement == 1)d.getElementById('PicTitle').innerHTML = d.getElementById(TheActiveThumb).title;

d.getElementById(TheThumb).style.marginLeft = MoveUp;

if((TheMovement == 0)&&(iLoveUncaBill == 1))d.getElementById(TheThumb).style.filter = 'gray';
if((TheMovement == 1)&&(iLoveUncaBill == 1))d.getElementById(TheThumb).style.filter = 'none';

if(TheMovement == 0)d.getElementById(TheThumb).style.borderColor = '#FFFFFF';
if(TheMovement == 1)d.getElementById(TheThumb).style.borderColor = '#333333';
        }
    }

///////////////////////// HIGHLIGHT THE ACTIVE THUMB

function ShowActiveThumb()
    {
TheMargin = -5;
LeftRightThumb = '' + TheActiveThumb/2;
if(LeftRightThumb.indexOf('.') == -1)TheMargin = 47;

d.getElementById(TheActiveThumb).style.marginLeft = TheMargin;
d.getElementById(TheActiveThumb).style.borderColor = '#FFFFFF';
if(iLoveUncaBill == 1)d.getElementById(TheActiveThumb).style.filter = 'gray';
    }
    
///////////////////////// NEXT PREV MODULE

function NextPrev(TheMovement,TheButt)
    {

if (TheMovement == 0)
    {
OrgSrc = TheButt.src;
NewSrc = TheButt.id;
TheButt.src = eval(NewSrc + '.src');
if(NewSrc == 'Prev')TheOperator = '-';else{TheOperator = '+';}
d.getElementById('PicTitle').innerHTML = d.getElementById(eval(TheActiveThumb + TheOperator + '1')).title;
    }
else
    {
TheButt.src = OrgSrc;
d.getElementById('PicTitle').innerHTML = d.getElementById(TheActiveThumb).title;
    }

    }