<!-- // Begin Header portion of the script
// CodeAve.com JavaScript SlideShow
// Created from the JavaScript SlideShow ScriptWriter
// http://www.codeave.com
//var mydom = "http://Unique-SouthAmerica-Travel-Experience.com/image-files/"
var mydom = "../image-files/"
var pictures = new Array
// List all the pictures in the slideshow here
(
mydom+"323-copia.jpg",
mydom+"327c-copia.jpg",
mydom+"327a-copia.jpg.jpg",
mydom+"460a-copia.jpg"
);
var pictures2 = new Array
// List all the pictures in the slideshow here
(
mydom+"323-copia-wf.jpg",
mydom+"327c-copia-wf.jpg",
mydom+"327a-copia-wf.jpg.jpg",
mydom+"460a-copia-wf.jpg"
);
var picture_num = 0;
var current_picture = new Image();
current_picture.src = pictures[picture_num];
function start_show()
{
// Time is in seconds X 1000
setInterval("slideshow()", 4000);
}
function slideshow()
{
picture_num++;
if (picture_num == pictures.length)
{
picture_num = 0;
}
current_picture.src = pictures[picture_num];
document["rotating_picture"].src = current_picture.src;
}
function start_show2()
{
// Time is in seconds X 1000
setInterval("slideshow2()", 4000);
}
function slideshow2()
{
	picture_num++;
	if (picture_num == pictures.length)
		{
		picture_num = 0;
		}
	current_picture.src = pictures2[picture_num];
	document["rotating_picture"].src = current_picture.src;
}

/* 
  ================================================
  PVII Uberlink Script
  Copyright (c) 2006 Project Seven Development
  www.projectseven.com
  Version: 1.0.0
  ================================================
*/
function p7_uberlink(cl,d){
	var i,ob,tA,h=document.location.href;
	if(document.getElementById){
	ob=(d)?document.getElementById(d):document;
	if(ob){
	tA=ob.getElementsByTagName('A');
	for(i=0;i<tA.length;i++){
	if(tA[i].href==h){
	tA[i].className=cl;
}}}}}

/*
  ================================================
  Function INIT to call all Java Scripts onLoad
  ================================================ */
function init() {
	p7_uberlink('uberlink','navcontainer');
}

// Gallery script.
// With image cross fade effect for those browsers that support it.
// Script copyright (C) 2004 www.cryer.co.uk.
// Script is free to use provided this copyright header is included.
function LoadGallery(pictureName,imageFile,titleCaption,captionText)
{
if (document.all)
{
document.getElementById(pictureName).style.filter="blendTrans(duration=1)";
document.getElementById(pictureName).filters.blendTrans.Apply();
}
document.getElementById(pictureName).src = imageFile;
if (document.all)
{
document.getElementById(pictureName).filters.blendTrans.Play();
}
document.getElementById(titleCaption).innerHTML=captionText;
}

//Functions From Here are Used for the Picture Gallery
function buildArray(lgt) {// build an array with lgt elements
    for (var i=1; i<=lgt; i++) this[i]=0;
		this.length = lgt;
    return this;
};

function buildTnPic(fullPic) { // build object
    this.pic=fullPic;
    this.length=1;
    return this;
};

browserOk = false;
if ( (parseInt(navigator.appVersion)>=4 )
  || ( navigator.appName == "Netscape"  ) )
  browserOk = true;

function setpic(n) { // udskift det store billede
    if ( browserOk )
		if (document.all)
			{
				eval("self.document.images.wpic.style.filter='blendTrans(duration=1)'");
				eval("self.document.images.wpic.filters.blendTrans.Apply()");
			}
	eval("self.document.images.wpic.src= img[n].pic")
	if (document.all)
		{
		eval("self.document.images.wpic.filters.blendTrans.Play()");
		}
}

function show_txt(n){
	document.getElementById("display_txt").innerHTML=description[n]
}
<!--
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

function openindex()
      {
OpenWindow=window.open("", "newwin", "height=250, width=250,toolbar=no,scrollbars="+scroll+",menubar=no");
OpenWindow.document.write("<TITLE>Title Goes Here</TITLE>")
OpenWindow.document.write("<BODY BGCOLOR=pink>")
OpenWindow.document.write("<h1>Hello!</h1>")
OpenWindow.document.write("This text will appear in the window!")
OpenWindow.document.write("</BODY>")
OpenWindow.document.write("</HTML>")

OpenWindow.document.close()
self.name="main"
     }


// -------------------------------- 2nd Try with Code ---------------------------------------------
// Script Source: CodeLifter.com
// Copyright 2003
// Do not remove this notice.

// SETUPS:
// ===============================

// Set the horizontal and vertical position for the popup

PositionX = 50;
PositionY = 50;

// Set these value approximately 20 pixels greater than the
// size of the largest image to be used (needed for Netscape)

defaultWidth  = 500;
defaultHeight = 500;

// Set autoclose true to have the window close automatically
// Set autoclose false to allow multiple popup windows

var AutoClose = true;

// Do not edit below this line...
// ================================
if (parseInt(navigator.appVersion.charAt(0))>=4){
var isNN=(navigator.appName=="Netscape")?1:0;
var isIE=(navigator.appName.indexOf("Microsoft")!=-1)?1:0;}
var optNN='scrollbars=no,width='+defaultWidth+',height='+defaultHeight+',left='+PositionX+',top='+PositionY;
var optIE='scrollbars=no,width=150,height=100,left='+PositionX+',top='+PositionY;
function popImage(imageURL,imageTitle){
if (isNN){imgWin=window.open('about:blank','',optNN);}
if (isIE){imgWin=window.open('about:blank','',optIE);}
with (imgWin.document){
writeln('<html><head><title>Loading...</title><style>body{margin:0px;}</style>');writeln('<sc'+'ript>');
writeln('var isNN,isIE;');writeln('if (parseInt(navigator.appVersion.charAt(0))>=4){');
writeln('isNN=(navigator.appName=="Netscape")?1:0;');writeln('isIE=(navigator.appName.indexOf("Microsoft")!=-1)?1:0;}');
writeln('function reSizeToImage(){');writeln('if (isIE){');writeln('window.resizeTo(300,300);');
writeln('width=300-(document.body.clientWidth-document.images[0].width);');
writeln('height=300-(document.body.clientHeight-document.images[0].height);');
writeln('window.resizeTo(width,height);}');writeln('if (isNN){');       
writeln('window.innerWidth=document.images["George"].width;');writeln('window.innerHeight=document.images["George"].height;}}');
writeln('function doTitle(){document.title="'+imageTitle+'";}');writeln('</sc'+'ript>');
if (!AutoClose) writeln('</head><body bgcolor=000000 scroll="no" onload="reSizeToImage();doTitle();self.focus()">')
else writeln('</head><body bgcolor=000000 scroll="no" onload="reSizeToImage();doTitle();self.focus()" onblur="self.close()">');
writeln('<img name="George" src='+imageURL+' style="display:block"></body></html>');
close();		
}}
