// Made by geeeet@ghtml.com
// Keep these two lines and you're free to use this code

var upH = 11; // Height of up-arrow
var upW = 11; // Width of up-arrow
var downH = 11; // Height of down-arrow
var downW = 11; // Width of down-arrow
var dragH = 30; // Height of scrollbar
var dragW = 11; // Width of scrollbar
var scrollH = 199; // Height of scrollbar
var speed = 4; // Scroll speed

// Browser detection
var dom = document.getElementById ? true:false;
var nn4 = document.layers ? true:false;
var ie4 = document.all ? true:false;

var mouseY; // Mouse Y position onclick
var mouseX; // Mouse X position onclick

var clickUp = false; // If click on up-arrow
var clickDown = false; // If click on down-arrow
var clickDrag = false; // If click on scrollbar
var clickAbove = false; // If click above scrollbar
var clickBelow = false; // If click below scrollbar

var timer = setTimeout("",500); // Repeat variable
var upL; // Up-arrow X
var upT; // Up-arrow Y
var downL; // Down-arrow X
var downT; // Down-arrow Y
var dragL; // Scrollbar X
var dragT; // Scrollbar Y
var rulerL; // Ruler X
var rulerT; // Ruler Y
var contentT; // Content layer Y;
var contentH; // Content height
var contentClipH; // Content clip height
var scrollLength; // Number of pixels scrollbar should move
var startY; // Keeps track of offset between mouse and span

// Copyright Notice
var copyrightmsg = "Copyright(c) 2005 - Veronica Ruiz De Velasco. All Rights Reserved.";
var imgWindow = null;
var imgWindow_closed = false;
		
// Mousedown
function down(e){
	if((document.layers && e.which!=1) || (document.all && event.button!=1)){ 	
	//alert(copyrightmsg);
	return false;} // Enables the right mousebutton
	getMouse(e);
	startY = (mouseY - dragT);
	
	// If click on up-arrow
	if(mouseX >= upL && (mouseX <= (upL + upW)) && mouseY >= upT && (mouseY <= (upT + upH))){
		clickUp = true;
		return scrollUp();
	}	
	// Else if click on down-arrow
	else if(mouseX >= downL && (mouseX <= (downL + downW)) && mouseY >= downT && (mouseY <= (downT + downH))){
		clickDown = true;
		return scrollDown();
	}
	// Else if click on scrollbar
	else if(mouseX >= dragL && (mouseX <= (dragL + dragW)) && mouseY >= dragT && (mouseY <= (dragT + dragH))){
		clickDrag = true;
		return false;
	}
	else if(mouseX >= dragL && (mouseX <= (dragL + dragW)) && mouseY >= rulerT && (mouseY <= (rulerT + scrollH))){
		// If click above drag
		if(mouseY < dragT){
			clickAbove = true;
			clickUp = true;
			return scrollUp();
		}
		// Else click below drag
		else{
			clickBelow = true;
			clickDown = true;
			return scrollDown();
		}
	}
	// If no scrolling is to take place
	else{
		return true;
	}
}

// Drag function
function move(e){
	if(clickDrag && contentH > contentClipH){
		getMouse(e);
		dragT = (mouseY - startY);
		
		if(dragT < (rulerT))
			dragT = rulerT;		
		if(dragT > (rulerT + scrollH - dragH))
			dragT = (rulerT + scrollH - dragH);
		
		contentT = ((dragT - rulerT)*(1/scrollLength));
		contentT = eval('-' + contentT);

		moveTo();
		
		// So ie-pc doesn't select gifs
		if(ie4)
			return false;
	}
}

function up(){
	clearTimeout(timer);
	// Resetting variables
	clickUp = false;
	clickDown = false;
	clickDrag = false;
	clickAbove = false;
	clickBelow = false;
	return true;
}

// Reads content layer top
function getT(){
	if(ie4)
		contentT = document.all.content.style.pixelTop;
	else if(nn4)
		contentT = document.contentClip.document.content.top;
	else if(dom)
		contentT = parseInt(document.getElementById("content").style.top);
}

// Reads mouse X and Y coordinates
function getMouse(e){
	if(ie4){
		mouseY = event.clientY + document.body.scrollTop;
		mouseX = event.clientX + document.body.scrollLeft;
	}
	else if(nn4 || dom){
		mouseY = e.pageY;
		mouseX = e.pageX;
	}
}

// Moves the layer
function moveTo(){
	if(ie4){
		document.all.content.style.top = contentT;
		document.all.ruler.style.top = dragT;
		document.all.drag.style.top = dragT;
	}
	else if(nn4){
		document.contentClip.document.content.top = contentT;
		document.ruler.top = dragT;
		document.drag.top = dragT;
	}
	else if(dom){
		document.getElementById("content").style.top = contentT + "px";
		document.getElementById("drag").style.top = dragT + "px";
		document.getElementById("ruler").style.top = dragT + "px";
	}
}

// Scrolls up
function scrollUp(){
	getT();
	
	if(clickAbove){
		if(dragT <= (mouseY-(dragH/2)))
			return up();
	}
	
	if(clickUp){
		if(contentT < 0){		
			dragT = dragT - (speed*scrollLength);
			
			if(dragT < (rulerT))
				dragT = rulerT;
				
			contentT = contentT + speed;
			if(contentT > 0)
				contentT = 0;
			
			moveTo();
			timer = setTimeout("scrollUp()",25);
		}
	}
	return false;
}

// Scrolls down
function scrollDown(){
	getT();
	
	if(clickBelow){
		if(dragT >= (mouseY-(dragH/2)))
			return up();
	}

	if(clickDown){
		if(contentT > -(contentH - contentClipH)){			
			dragT = dragT + (speed*scrollLength);
			if(dragT > (rulerT + scrollH - dragH))
				dragT = (rulerT + scrollH - dragH);
			
			contentT = contentT - speed;
			if(contentT < -(contentH - contentClipH))
				contentT = -(contentH - contentClipH);
			
			moveTo();
			timer = setTimeout("scrollDown()",25);
		}
	}
	return false;
}

// reloads page to position the layers again
function reloadPage(){
	location.reload();
}

// Preload
function eventLoader(){
	if(ie4){
		// Up-arrow X and Y variables
		upL = document.all.up.style.pixelLeft;
		upT = document.all.up.style.pixelTop;		
		// Down-arrow X and Y variables
		downL = document.all.down.style.pixelLeft;
		downT = document.all.down.style.pixelTop;
		// Scrollbar X and Y variables
		dragL = document.all.drag.style.pixelLeft;
		dragT = document.all.drag.style.pixelTop;		
		// Ruler Y variable
		rulerT = document.all.ruler.style.pixelTop;		
		// Height of content layer and clip layer
		contentH = parseInt(document.all.content.scrollHeight);
		contentClipH = parseInt(document.all.contentClip.style.height);
	}
	else if(nn4){
		// Up-arrow X and Y variables
		upL = document.up.left;
		upT = document.up.top;		
		// Down-arrow X and Y variables
		downL = document.down.left;
		downT = document.down.top;		
		// Scrollbar X and Y variables
		dragL = document.drag.left;
		dragT = document.drag.top;		
		// Ruler Y variable
		rulerT = document.ruler.top;
		// Height of content layer and clip layer
		contentH = document.contentClip.document.content.clip.bottom;
		contentClipH = document.contentClip.clip.bottom;
	}
	else if(dom){
		// Up-arrow X and Y variables
		upL = parseInt(document.getElementById("up").style.left);
		upT = parseInt(document.getElementById("up").style.top);
		// Down-arrow X and Y variables
		downL = parseInt(document.getElementById("down").style.left);
		downT = parseInt(document.getElementById("down").style.top);
		// Scrollbar X and Y variables
		dragL = parseInt(document.getElementById("drag").style.left);
		dragT = parseInt(document.getElementById("drag").style.top);
		// Ruler Y variable
		rulerT = parseInt(document.getElementById("ruler").style.top);
		// Height of content layer and clip layer
		contentH = parseInt(document.getElementById("content").offsetHeight);
		contentClipH = parseInt(document.getElementById("contentClip").offsetHeight);
		document.getElementById("content").style.top = 0 + "px";
		
	}
	// Number of pixels scrollbar should move
	scrollLength = ((scrollH-dragH)/(contentH-contentClipH));
	// Initializes event capturing
	if(nn4){
		document.captureEvents(Event.MOUSEDOWN | Event.MOUSEMOVE | Event.MOUSEUP);
		window.onresize = reloadPage;
	}
	document.onmousedown = down;
	document.onmousemove = move;
	document.onmouseup = up;
}

function WM_preloadImages() {
  if (document.images){
    if (typeof(document.WM) == 'undefined'){
      document.WM = new Object();}
    document.WM.loadedImages = new Array();
    // Loop through all the arguments.
    var argLength = WM_preloadImages.arguments.length;
    for(arg=0;arg<argLength;arg++) {
      // For each arg, create a new image.
      document.WM.loadedImages[arg] = new Image();
      // Then set the source of that image to the current argument.
      document.WM.loadedImages[arg].src = WM_preloadImages.arguments[arg];}
  }
}

function statusBar(){
	window.status=copyrightmsg;
	//window.setTimeout("statusBar()",10);
}

function WM_imageSwap(daImage, daSrc){
  var objStr,obj;
  if(document.images){
    if (typeof(daImage) == 'string') {
      objStr = 'document.' + daImage;
      obj = eval(objStr);
      obj.src = daSrc;} 
	else if ((typeof(daImage) == 'object') && daImage && daImage.src) {
      daImage.src = daSrc;
    }
  }
}

function WM_linkSwap(daLink, daSrc){
  var objStr,obj;
  if(document.href){
    if (typeof(daLink) == 'string') {
      objStr = 'document.' + daLink;
      obj = eval(objStr);
      obj.href = daSrc;} 
    else if ((typeof(daLink) == 'object') && daLink && daLink.href) {
      daLink.href= daSrc;
    }
  }
}


function xcacheNavigationUp(){
	WM_preloadImages('./_img/nav/top/art.jpg','./_img/nav/top/art_down.jpg','./_img/nav/top/art_over.jpg',
	 './_img/nav/top/biography.jpg','./_img/nav/top/biography_down.jpg','./_img/nav/top/biography_over.jpg',
	 './_img/nav/top/exhibitions.jpg','./_img/nav/top/exhibitions_down.jpg','./_img/nav/top/exhibitions_over.jpg',
	 './_img/nav/top/extras.jpg','./_img/nav/top/extras_down.jpg','./_img/nav/top/extras_over.jpg',
	 './_img/nav/top/news.jpg','./_img/nav/top/news_down.jpg','./_img/nav/top/news_over.jpg',
	 './_img/nav/top/photos.jpg','./_img/nav/top/photos_down.jpg','./_img/nav/top/photos_over.jpg',
	 './_img/nav/top/press.jpg','./_img/nav/top/press_down.jpg','./_img/nav/top/press_over.jpg',
	 './_img/nav/top/weblinks.jpg','./_img/nav/top/weblinks_down.jpg','./_img/nav/top/weblinks_over.jpg',
	 './_img/copyright/copyright.jpg','./_img/copyright/veronicaruizdevelasco.jpg',
	 './_img/copyright/Official.jpg');
}

function xcacheNavigationDown(){
	WM_preloadImages('./_img/nav/bottom/contact.jpg','./_img/nav/bottom/contact_over.jpg',
	 './_img/nav/bottom/digital.jpg','./_img/nav/bottom/digital_over.jpg',
	 './_img/nav/bottom/giclee.jpg','./_img/nav/bottom/giclee_over.jpg',
	 './_img/nav/bottom/mailinglist.jpg','./_img/nav/bottom/mailinglist_over.jpg',
	 './_img/nav/bottom/video.jpg','./_img/nav/bottom/video_over.jpg');
}

function cacheNavigationUp(){
	WM_preloadImages('../_img/nav/top/art.jpg','../_img/nav/top/art_down.jpg','../_img/nav/top/art_over.jpg',
	 '../_img/nav/top/biography.jpg','../_img/nav/top/biography_down.jpg','../_img/nav/top/biography_over.jpg',
	 '../_img/nav/top/exhibitions.jpg','../_img/nav/top/exhibitions_down.jpg','../_img/nav/top/exhibitions_over.jpg',
	 '../_img/nav/top/extras.jpg','../_img/nav/top/extras_down.jpg','../_img/nav/top/extras_over.jpg',
	 '../_img/nav/top/news.jpg','../_img/nav/top/news_down.jpg','../_img/nav/top/news_over.jpg',
	 '../_img/nav/top/photos.jpg','../_img/nav/top/photos_down.jpg','../_img/nav/top/photos_over.jpg',
	 '../_img/nav/top/press.jpg','../_img/nav/top/press_down.jpg','../_img/nav/top/press_over.jpg',
	 '../_img/nav/top/weblinks.jpg','../_img/nav/top/weblinks_down.jpg','../_img/nav/top/weblinks_over.jpg',
	 '../_img/copyright/copyright.jpg','../_img/copyright/veronicaruizdevelasco.jpg');
}

function cacheNavigationDown(){
	WM_preloadImages('../_img/nav/bottom/contact.jpg','../_img/nav/bottom/contact_over.jpg',
	 '../_img/nav/bottom/digital.jpg','../_img/nav/bottom/digital_over.jpg',
	 '../_img/nav/bottom/giclee.jpg','../_img/nav/bottom/giclee_over.jpg',
	 '../_img/nav/bottom/mailinglist.jpg','../_img/nav/bottom/mailinglist_over.jpg',
	 '../_img/nav/bottom/video.jpg','../_img/nav/bottom/video_over.jpg');
}

function mlist(){
/***********************************************
* Encrypt Email script- Please keep notice intact.
* Tool URL: http://www.dynamicdrive.com/emailriddler/
* **********************************************/

//var emailarray5289= new Array(109,97,105,108,105,110,103,108,105,115,116,64,118,101,114,111,110,105,99,97,114,117,105,122,100,101,118,101,108,97,115,99,111,46,99,111,109)
//var postemail5289=''
//for (i=0;i<emailarray5289.length;i++)
//postemail5289+=String.fromCharCode(emailarray5289[i])
//document.write('<a href="mailto:'+postemail5289+'?subject=Mailing List">Please add me to Veronica\'s Exclusive Mailing List.</a>')

var emailarray0318= new Array(77,97,105,108,105,110,103,76,105,115,116,64,118,101,114,111,97,114,116,46,99,111,109)
var postemail0318=''
for (i=0;i<emailarray0318.length;i++)
postemail0318+=String.fromCharCode(emailarray0318[i])

document.write('<a href="mailto:'+postemail0318+'?subject=Mailing List">Please add me to the mailing list.</a>')
}

function salesInformation(){
/***********************************************
* Encrypt Email script- Please keep notice intact.
* Tool URL: http://www.dynamicdrive.com/emailriddler/
* **********************************************/

//var emailarray5289= new Array(109,97,105,108,105,110,103,108,105,115,116,64,118,101,114,111,110,105,99,97,114,117,105,122,100,101,118,101,108,97,115,99,111,46,99,111,109)
//var postemail5289=''
//for (i=0;i<emailarray5289.length;i++)
//postemail5289+=String.fromCharCode(emailarray5289[i])
//document.write('<a href="mailto:'+postemail5289+'?subject=Sales Information">Please provide me information to contact the sales office.</a>')

var emailarray8230= new Array(83,97,108,101,115,64,118,101,114,111,97,114,116,46,99,111,109)
var postemail8230=''
for (i=0;i<emailarray8230.length;i++)
postemail8230+=String.fromCharCode(emailarray8230[i])

document.write('<a href="mailto:'+postemail8230+'?subject=Sales Contact">Please provide me information to contact you.</a>')

}


function gicleeInformation(){
/***********************************************
* Encrypt Email script- Please keep notice intact.
* Tool URL: http://www.dynamicdrive.com/emailriddler/
* **********************************************/

//var emailarray5289= new Array(109,97,105,108,105,110,103,108,105,115,116,64,118,101,114,111,110,105,99,97,114,117,105,122,100,101,118,101,108,97,115,99,111,46,99,111,109)
//var postemail5289=''
//for (i=0;i<emailarray5289.length;i++)
//postemail5289+=String.fromCharCode(emailarray5289[i])
//document.write('<a href="mailto:'+postemail5289+'?subject=Information to purchase a Giclee">Please provide me information to purchase a giclee.  I will provide the name of the art in the body of the email.</a>')

var emailarray9646= new Array(71,105,99,108,101,101,64,118,101,114,111,97,114,116,46,99,111,109)
var postemail9646=''
for (i=0;i<emailarray9646.length;i++)
postemail9646+=String.fromCharCode(emailarray9646[i])

document.write('<a href="mailto:'+postemail9646+'?subject=Giclee Information">I am intersted in a giclee.  Please contact me.</a>')
}

function digitalphotoInformation(){
/***********************************************
* Encrypt Email script- Please keep notice intact.
* Tool URL: http://www.dynamicdrive.com/emailriddler/
* **********************************************/

//var emailarray5289= new Array(109,97,105,108,105,110,103,108,105,115,116,64,118,101,114,111,110,105,99,97,114,117,105,122,100,101,118,101,108,97,115,99,111,46,99,111,109)
//var postemail5289=''
//for (i=0;i<emailarray5289.length;i++)
//postemail5289+=String.fromCharCode(emailarray5289[i])
//document.write('<a href="mailto:'+postemail5289+'?subject=Information to purchase a digital photograph">Please provide me information to purchase a digital photograph.  I will provide the name of the art in the body of the email..</a>')

var emailarray9859= new Array(68,105,103,105,116,97,108,80,104,111,116,111,64,118,101,114,111,97,114,116,46,99,111,109)
var postemail9859=''
for (i=0;i<emailarray9859.length;i++)
postemail9859+=String.fromCharCode(emailarray9859[i])

document.write('<a href="mailto:'+postemail9859+'?subject=Digital Photograph">I am intersted in a digital photograph.  Please contact me.</a>')
}

function originalInformation(){
/***********************************************
* Encrypt Email script- Please keep notice intact.
* Tool URL: http://www.dynamicdrive.com/emailriddler/
* **********************************************/
//var emailarray5289= new Array(109,97,105,108,105,110,103,108,105,115,116,64,118,101,114,111,110,105,99,97,114,117,105,122,100,101,118,101,108,97,115,99,111,46,99,111,109)
//var postemail5289=''
//for (i=0;i<emailarray5289.length;i++)
//postemail5289+=String.fromCharCode(emailarray5289[i])
//document.write('<a href="mailto:'+postemail5289+'?subject=Information to purchase an original painting">Please provide me information to purchase an original painting.  I will provide the name of the art in the body of the email..</a>')

var emailarray7846= new Array(79,114,105,103,105,110,97,108,64,118,101,114,111,97,114,116,46,99,111,109)
var postemail7846=''
for (i=0;i<emailarray7846.length;i++)
postemail7846+=String.fromCharCode(emailarray7846[i])

document.write('<a href="mailto:'+postemail7846+'?subject=Original Oil Painting">Please contact me. I would like to inquire about an original from Veronica.</a>')
}	
		

function photowin(pfile, x, y) {
	yy = y + 20;
	xx = x + 20;
	args = "height=" + yy + ",width=" + xx + ",toolbar=no,";
	newWin = window.open(pfile,'Photos',args);
	newWin.focus();
}

/*
Image Resolution redirection 
Copyright © 2004 Veronica Ruiz de Velasco, All Rights Reserved.
*/
function OLDScreenGoToURL(FOLDERNAME) 
{
var screen_height = screen.height;
var screen_width = screen.width;
var name = FOLDERNAME;
var buffer = (document.all || document.layers ||documentGetElementByID) ? 30 : 48;

	if (screen_height >= 1200){
		screen_width = 1600;
		screen_height = 1200;
		 var window_width = 1600-12;
		 var window_height = 1200-buffer;
		 var window_top = 0;
		 var window_left = 0;
		 var HTMLPAGE = "./Zoomify/" + name + "/1600x1200.html";
		 window.open(HTMLPAGE,'','resizable=no,status=yes,width=' + window_width + ',height=' + window_height + ',top=' + window_top + ',left=' + window_left + '');
	} 
	else if (screen_height >= 1050) {
		screen_width = 1400;
		screen_height = 1050;
		 var window_width = 1400-12;
		 var window_height = 1050-buffer;
		 var window_top = 0;
		 var window_left = 0;
		 var HTMLPAGE = "./Zoomify/" + name + "/1400x1050.html";
		 window.open(HTMLPAGE,'','resizable=no,status=yes,width=' + window_width + ',height=' + window_height + ',top=' + window_top + ',left=' + window_left + '');
	} 
	else if (screen_height >= 1024) {
		screen_width = 1280;
		screen_height = 1024;
		 var window_width = 1280-12;
		 var window_height = 1024-buffer;
		 var window_top = 0;
		 var window_left = 0;
		 var HTMLPAGE = "./Zoomify/" + name + "/1280x1024.html";
		 window.open(HTMLPAGE,'','resizable=no,status=yes,width=' + window_width + ',height=' + window_height + ',top=' + window_top + ',left=' + window_left + '');
	} 
	else if (screen_height >= 768) {
		screen_width = 1024;
		screen_height = 768;
		 var window_width = 1024-12;
		 var window_height = 768-buffer;
		 var window_top = 0;
		 var window_left = 0;
		 var HTMLPAGE = "./Zoomify/" + name + "/1024x768.html";
		 window.open(HTMLPAGE,'','resizable=no,status=yes,width=' + window_width + ',height=' + window_height + ',top=' + window_top + ',left=' + window_left + '');
	} 
	else if (screen_height >= 600) {
		screen_width = 800;
		screen_height = 600;
		 var window_width = 800-12;
		 var window_height = 600-buffer;
		 var window_top = 0;
		 var window_left = 0;
		 var HTMLPAGE = "./Zoomify/" + name + "/800x600.html";
		 window.open(HTMLPAGE,'','resizable=no,status=yes,width=' + window_width + ',height=' + window_height + ',top=' + window_top + ',left=' + window_left + '');
	} 
	else {
		screen_width = 640;
		screen_height = 480;
		var window_width =  640-12;
		var window_height = 480-buffer;
		var window_top = 0;
		var window_left = 0;
		var HTMLPAGE = "./Zoomify/" + name + "/640x480.html";
		window.open(HTMLPAGE,'','resizable=no,status=yes,width=' + window_width + ',height=' + window_height + ',top=' + window_top + ',left=' + window_left + '');
	}
}

/*
Image Resolution redirection 
Copyright © 2004 Veronica Ruiz de Velasco, All Rights Reserved.
*/
function ScreenGoToURL(FOLDERNAME) 
{
//var buffer = (document.all || document.layers ||documentGetElementByID) ? 30 : 48;
var buffer = (document.all || document.layers ||documentGetElementByID) ? 90 : 128;
var frame_width = screen.width;
var frame_height = screen.height;
var zoomify_width = screen.width-160;
var zoomify_height = screen.height-150;
var window_width = frame_width-12;
var window_height = frame_height-buffer;
var window_top = 0;
var window_left = 0;
var pathname = FOLDERNAME;
var HTMLNAME = "zoomify.html?width=" + zoomify_width + "&height=" + zoomify_height + "&name=" + pathname;
window.open(HTMLNAME,'','location=no, status=yes, width=' + window_width + ',height=' + window_height + ',top=' + window_top + ',left=' + window_left + '');
}

// Copyright 2004 (c) - Veronica Ruiz de Velasco.  All Rights Reserved.
function OpenWindowBig(FOLDERNAME) 
{
  var HTMLPAGE = "./Pictures/" + FOLDERNAME + "/pictures.html";
  window.open(HTMLPAGE,'','resizable=no,status=no,width=700,height=520,top=50,left=50');
}


// Copyright 2004 (c) - Veronica Ruiz de Velasco.  All Rights Reserved.
function OpenWindowSmall(FOLDERNAME) 
{
  var HTMLPAGE = "./Pictures/" + FOLDERNAME + "/pictures.html";
  window.open(HTMLPAGE,'','resizable=no,status=no,width=440,height=320,top=200,left=200');
}

// Copyright 2004 (c) - Veronica Ruiz de Velasco.  All Rights Reserved.
function OpenWindowVideo(FOLDERNAME) 
{
  var HTMLPAGE = "./Pictures/" + FOLDERNAME + "/Video.html";
  window.open(HTMLPAGE,'','resizable=no,status=no,width=440,height=420,top=200,left=200');
}

// Copyright 2004 (c) - Veronica Ruiz de Velasco.  All Rights Reserved.
function OpenWindowVideoStart(FOLDERNAME) 
{
  var HTMLPAGE = "./_html/Pictures/" + FOLDERNAME + "/Video.html";
  window.open(HTMLPAGE,'','resizable=no,status=no,width=440,height=420,top=200,left=200');
}

// Copyright 2004 (c) - Veronica Ruiz de Velasco.  All Rights Reserved.
function DisablePageCache()
{
  if(nn4)
    if ('Navigator'==nagivator.appName) document.forms[0].reset();
}


// Copyright 2004 (c) - Veronica Ruiz de Velasco.  All Rights Reserved.
function KillFrame()
{
  if (top != self) top.location.href = location.href;
}

function disableselect(e){
return false
}

function reEnable(){
return true
}

function DisableText(){

  //if IE4+
  document.onselectstart=new Function ("return false")

  //if NS6
  if (window.sidebar){
  document.onmousedown=disableselect
  document.onclick=reEnable
  }
}

var news_counter=0;

function ChangeBackground(){
 if (news_counter==0){
    WM_imageSwap(NewsBackground,'../_img/bgphotos/slideshow_1.jpg'); 
    news_counter+=1;
 }
 else if (news_counter==1){
    WM_imageSwap(NewsBackground,'../_img/bgphotos/slideshow_2.jpg'); 
    news_counter+=1;
 }
 else{
    WM_imageSwap(NewsBackground,'../_img/bgphotos/slideshow_3.jpg'); 
    news_counter=0;
 }

 window.setTimeout("ChangeBackground()",3000);
}

var index_counter=0;

function ChangeIndexBackground(){
 if (index_counter==0){
    WM_imageSwap(IndexBackground,'./_img/bgphotos/slideshow_1.jpg'); 
    index_counter+=1;
 }
 else if (index_counter==1){
    WM_imageSwap(IndexBackground,'./_img/bgphotos/slideshow_2.jpg'); 
    index_counter+=1;
 }
 else{
    WM_imageSwap(IndexBackground,'./_img/bgphotos/slideshow_3.jpg'); 
    index_counter=0;
 }

 window.setTimeout("ChangeIndexBackground()",3000);
}

var counter=0;

function ExhibitionBackground(){
 if (counter==0){
    WM_imageSwap(Background,'../_img/bgphotos/exhibition_1.jpg'); 
    counter+=1;
 }
 else if (counter==1){
    WM_imageSwap(Background,'../_img/bgphotos/exhibition_2.jpg'); 
    counter+=1;
 }
 else if (counter==2){
    WM_imageSwap(Background,'../_img/bgphotos/exhibition_3.jpg'); 
    counter+=1;
 }
 else if (counter==3){
    WM_imageSwap(Background,'../_img/bgphotos/exhibition_4.jpg'); 
    counter+=1;
 }
 else if (counter==4){
    WM_imageSwap(Background,'../_img/bgphotos/exhibition_5.jpg'); 
    counter+=1;
 }
 else if (counter==5){
    WM_imageSwap(Background,'../_img/bgphotos/exhibition_6.jpg'); 
    counter+=1;
 }
 else if (counter==6){
    WM_imageSwap(Background,'../_img/bgphotos/exhibition_7.jpg'); 
    counter+=1;
 }
 else if (counter==7){
    WM_imageSwap(Background,'../_img/bgphotos/exhibition_8.jpg'); 
    counter+=1;
 }
 else if (counter==8){
    WM_imageSwap(Background,'../_img/bgphotos/exhibition_9.jpg'); 
    counter+=1;
 }
 else if (counter==9){
    WM_imageSwap(Background,'../_img/bgphotos/exhibition_10.jpg'); 
    counter+=1;
 }
 else if (counter==10){
    WM_imageSwap(Background,'../_img/bgphotos/exhibition_11.jpg'); 
    counter+=1;
 }
 else if (counter==11){
    WM_imageSwap(Background,'../_img/bgphotos/exhibition_12.jpg'); 
    counter+=1;
 }
 else if (counter==12){
    WM_imageSwap(Background,'../_img/bgphotos/exhibition_13.jpg'); 
    counter+=1;
 }
 else if (counter==13){
    WM_imageSwap(Background,'../_img/bgphotos/exhibition_14.jpg'); 
    counter+=1;
 }
 else if (counter==14){
    WM_imageSwap(Background,'../_img/bgphotos/exhibition_15.jpg'); 
    counter+=1;
 }
 else if (counter==15){
    WM_imageSwap(Background,'../_img/bgphotos/exhibition_16.jpg'); 
    counter+=1;
 }
 else if (counter==16){
    WM_imageSwap(Background,'../_img/bgphotos/exhibition_17.jpg'); 
    counter+=1;
 }
 else if (counter==17){
    WM_imageSwap(Background,'../_img/bgphotos/exhibition_18.jpg'); 
    counter+=1;
 }
 else if (counter==18){
    WM_imageSwap(Background,'../_img/bgphotos/exhibition_19.jpg'); 
    counter+=1;
 }
 else if (counter==19){
    WM_imageSwap(Background,'../_img/bgphotos/exhibition_20.jpg'); 
    counter+=1;
 }
 else if (counter==20){
    WM_imageSwap(Background,'../_img/bgphotos/exhibition_21.jpg'); 
    counter+=1;
 }
 else if (counter==21){
    WM_imageSwap(Background,'../_img/bgphotos/exhibition_22.jpg'); 
    counter+=1;
 }
 else if (counter==22){
    WM_imageSwap(Background,'../_img/bgphotos/exhibition_23.jpg'); 
    counter+=1;
 }
 else if (counter==23){
    WM_imageSwap(Background,'../_img/bgphotos/exhibition_24.jpg'); 
    counter+=1;
 }
 else if (counter==24){
    WM_imageSwap(Background,'../_img/bgphotos/exhibition_25.jpg'); 
    counter+=1;
 }
 else if (counter==25){
    WM_imageSwap(Background,'../_img/bgphotos/exhibition_26.jpg'); 
    counter+=1;
 }
 else if (counter==26){
    WM_imageSwap(Background,'../_img/bgphotos/exhibition_27.jpg'); 
    counter+=1;
 }
 else if (counter==27){
    WM_imageSwap(Background,'../_img/bgphotos/exhibition_28.jpg'); 
    counter+=1;
 }
 else if (counter==28){
    WM_imageSwap(Background,'../_img/bgphotos/exhibition_29.jpg'); 
    counter+=1;
 }
 else if (counter==29){
    WM_imageSwap(Background,'../_img/bgphotos/exhibition_30.jpg'); 
    counter+=1;
 }
 else if (counter==30){
    WM_imageSwap(Background,'../_img/bgphotos/exhibition_31.jpg'); 
    counter+=1;
 }
 else if (counter==31){
    WM_imageSwap(Background,'../_img/bgphotos/exhibition_32.jpg'); 
    counter+=1;
 }
 else if (counter==32){
    WM_imageSwap(Background,'../_img/bgphotos/exhibition_33.jpg'); 
    counter+=1;
 }
 else if (counter==33){
    WM_imageSwap(Background,'../_img/bgphotos/exhibition_34.jpg'); 
    counter+=1;
 }
 else if (counter==34){
    WM_imageSwap(Background,'../_img/bgphotos/exhibition_35.jpg'); 
    counter+=1;
 }
 else if (counter==35){
    WM_imageSwap(Background,'../_img/bgphotos/exhibition_36.jpg'); 
    counter+=1;
 }
 else if (counter==36){
    WM_imageSwap(Background,'../_img/bgphotos/exhibition_37.jpg'); 
    counter+=1;
 }
 else if (counter==37){
    WM_imageSwap(Background,'../_img/bgphotos/exhibition_38.jpg'); 
    counter+=1;
 }
 else if (counter==38){
    WM_imageSwap(Background,'../_img/bgphotos/exhibition_39.jpg'); 
    counter+=1;
 }
 else if (counter==39){
    WM_imageSwap(Background,'../_img/bgphotos/exhibition_40.jpg'); 
    counter+=1;
 }
 else{
    WM_imageSwap(Background,'../_img/bgphotos/exhibition_41.jpg'); 
    counter=0;
 }

 window.setTimeout("ExhibitionBackground()",3000);
}

