<!--
var big_images = new Array();
big_images[1] = 'images/home.jpg';
big_images[0] = 'images/blog.jpg';

var big_links = new Array();
big_links[1] = 'index.php';
big_links[0] = 'wordpress/index.php';

var big_words = new Array();
big_words[1] = 'We are a non-profit organisation registered under the Registry of Society in Singapore. Over here, we housed over 200 dogs and 500 cats!';
big_words[0] = 'Check out our blog!';

var small_images = new Array();
small_images[0] = 'images/calendarSmall.jpg';
small_images[1] = 'images/auntylucy_small.jpg';
small_images[2] = 'images/home_small.jpg';
small_images[3] = 'images/all_for_love_small.jpg';
small_images[4] = 'images/online_shop_small.jpg';
small_images[5] = 'images/sponsor_me_small.jpg';
small_images[6] = 'images/blog_small.jpg';


var small_link = new Array();
small_link[0] = 'wordpress/?p=383';
small_link[1] = 'wordpress/?p=363';
small_link[2] = 'index.php';
small_link[3] = 'wordpress/?p=304';
small_link[4] = "http://www.animalloversleague.com/merchandise.php";
small_link[5] = "wordpress/?cat=11";
small_link[6] = 'wordpress/index.php';

var small_index = 0;

function increment_small_image(){
	small_index = small_index + 1;
	if(small_index > (big_images.length - 1)){
		small_index = 0;
	}
	document.getElementById("small_image").src = small_images[small_index];
}

function decrement_small_image(){
	small_index = small_index - 1;
	if(small_index < 0){
		small_index = big_images.length - 1;
	}
	document.getElementById("small_image").src = small_images[small_index];
}


var big_index = 0;

function increment_big_image(){
	big_index = big_index + 1;
	if(big_index > (big_images.length - 1)){
		big_index = 0;
	}
	
	if(big_index == 0){
		document.getElementById("big_image").alt = "home";
	}else{
		document.getElementById("big_image").alt = "null";
	}
	
	document.getElementById("big_image").src = big_images[big_index];
	document.getElementById("big_link").href = big_links[big_index];
	document.getElementById("big_word").innerHTML = big_words[big_index];
}

function decrement_big_image(){
	big_index = big_index - 1;
	if(big_index < 0){
		big_index = big_images.length - 1;
	}
	
	if(big_index == 0){
		document.getElementById("big_image").alt = "home";
	}else{
		document.getElementById("big_image").alt = "null";
	}
	
	document.getElementById("big_image").src = big_images[big_index];
	document.getElementById("big_link").href = big_links[big_index];
	document.getElementById("big_word").innerHTML = big_words[big_index];
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function showCredits(){
	if(document.getElementById("big_image").alt == "home"){
		document.getElementById("credit_div").style.visibility = "visible";
	}else{
		document.getElementById("credit_div").style.visibility = "hidden";
	}
}

function hideCredits(){
	document.getElementById("credit_div").style.visibility = "hidden";
}

//-->

