/*
@version 1.0: mod_s5_imagefader1 Javascript
Author: Shape 5 - Professional Template Community
Available for download at www.shape5.com
Copyright Shape 5 LLC
*/

var s5_thumbchangeon_if1 = 0;
var s5_rotate_if1 = 0;


function next_if_11() {
s5_thumbchangeon_if1 = 1;
picture11('picture11');
s5_rotate_if1 = 11;
window.setTimeout('next_thumb_sa1()',display_time1);
}

function next_if_12() {
s5_thumbchangeon_if1 = 1;
picture12('picture12');
s5_rotate_if1 = 12;
window.setTimeout('next_thumb_sa1()',display_time1);
}

function next_if_13() {
s5_thumbchangeon_if1 = 1;
picture13('picture13');
s5_rotate_if1 = 13;
window.setTimeout('next_thumb_sa1()',display_time1);
}

function next_if_14() {
s5_thumbchangeon_if1 = 1;
picture14('picture14');
s5_rotate_if1 = 14;
window.setTimeout('next_thumb_sa1()',display_time1);
}

function next_if_15() {
s5_thumbchangeon_if1 = 1;
picture15('picture15');
s5_rotate_if1 = 15;
window.setTimeout('next_thumb_sa1()',display_time1);
}

function next_if_16() {
s5_thumbchangeon_if1 = 1;
picture16('picture16');
s5_rotate_if1 = 16;
window.setTimeout('next_thumb_sa1()',display_time1);
}

function next_if_17() {
s5_thumbchangeon_if1 = 1;
picture17('picture17');
s5_rotate_if1 = 17;
window.setTimeout('next_thumb_sa1()',display_time1);
}

function next_if_18() {
s5_thumbchangeon_if1 = 1;
picture18('picture18');
s5_rotate_if1 = 18;
window.setTimeout('next_thumb_sa1()',display_time1);
}

function next_if_19() {
s5_thumbchangeon_if1 = 1;
picture19('picture19');
s5_rotate_if1 = 19;
window.setTimeout('next_thumb_sa1()',display_time1);
}

function next_if_20() {
s5_thumbchangeon_if1 = 1;
picture20('picture20');
s5_rotate_if1 = 20;
window.setTimeout('next_thumb_sa1()',display_time1);
}


function next_thumb_sa1() {
	s5_thumbchangeon_if1 = 0;
	if (s5_rotate_if1 == 11) { picture11(picture11);}	
	if (s5_rotate_if1 == 12) { picture12(picture12);}
	if (s5_rotate_if1 == 13) { picture13(picture13);}
	if (s5_rotate_if1 == 14) { picture14(picture14);}
	if (s5_rotate_if1 == 15) { picture15(picture15);}
	if (s5_rotate_if1 == 16) { picture16(picture16);}
	if (s5_rotate_if1 == 17) { picture17(picture17);}
	if (s5_rotate_if1 == 18) { picture18(picture18);}
	if (s5_rotate_if1 == 19) { picture19(picture19);}
	if (s5_rotate_if1 == 10) { picture20(picture20);}}	



function picture11(id) {
	s5_rotate_if1 = 11;
	sa_picture11_if_display();
	blendimage('blenddiv','blendimage1', s5_picture11_if, tween_time1)
    window.setTimeout('if_picture11_display_yes()',display_time1);}
	function if_picture11_display_yes() {
		if (s5_rotate_if1 == 11) {picture11_next();}}
		
		
function picture12(id) {
	s5_rotate_if1 = 12;
	sa_picture12_if_display();
	blendimage('blenddiv','blendimage1', s5_picture12_if, tween_time1)
    window.setTimeout('if_picture12_display_yes()',display_time1);}
	function if_picture12_display_yes() {
		if (s5_rotate_if1 == 12) {picture12_next();}}

function picture13(id) {
	s5_rotate_if1 = 13;
	sa_picture13_if_display();
	blendimage('blenddiv','blendimage1', s5_picture13_if, tween_time1)
    window.setTimeout('if_picture13_display_yes()',display_time1);}
	function if_picture13_display_yes() {
		if (s5_rotate_if1 == 13) {picture13_next();}}
		
function picture14(id) {
	s5_rotate_if1 = 14;
	sa_picture14_if_display();
	blendimage('blenddiv','blendimage1', s5_picture14_if, tween_time1)
    window.setTimeout('if_picture14_display_yes()',display_time1);}
	function if_picture14_display_yes() {
		if (s5_rotate_if1 == 14) {picture14_next();}}		
		
function picture15(id) {
	s5_rotate_if1 = 15;
	sa_picture15_if_display();
	blendimage('blenddiv','blendimage1', s5_picture15_if, tween_time1)
    window.setTimeout('if_picture15_display_yes()',display_time1);}
	function if_picture15_display_yes() {
		if (s5_rotate_if1 == 15) {picture15_next();}}		
	
function picture16(id) {
	s5_rotate_if1 = 16;
	sa_picture16_if_display();
	blendimage('blenddiv','blendimage1', s5_picture16_if, tween_time1)
    window.setTimeout('if_picture16_display_yes()',display_time1);}
	function if_picture16_display_yes() {
		if (s5_rotate_if1 == 16) {picture16_next();}}
		
function picture17(id) {
	s5_rotate_if1 = 17;
	sa_picture17_if_display();
	blendimage('blenddiv','blendimage1', s5_picture17_if, tween_time1)
    window.setTimeout('if_picture17_display_yes()',display_time1);}
	function if_picture17_display_yes() {
		if (s5_rotate_if1 == 17) {picture17_next();}}

function picture18(id) {
	s5_rotate_if1 = 18;
	sa_picture18_if_display();
	blendimage('blenddiv','blendimage1', s5_picture18_if, tween_time1)
    window.setTimeout('if_picture18_display_yes()',display_time1);}
	function if_picture18_display_yes() {
	if (s5_rotate_if1 == 18) {picture18_next();}}
	
function picture19(id) {
	s5_rotate_if1 = 19;
	sa_picture19_if_display();
	blendimage('blenddiv','blendimage1', s5_picture19_if, tween_time1)
    window.setTimeout('if_picture19_display_yes()',display_time1);}
	function if_picture19_display_yes() {
	if (s5_rotate_if1 == 19) {picture19_next();}}

function picture20(id) {
	s5_rotate_if1 = 20;
	sa_picture20_if_display();
	blendimage('blenddiv','blendimage1', s5_picture20_if, tween_time1)
    window.setTimeout('if_picture20_display_yes()',display_time1);}
	function if_picture20_display_yes() {
	if (s5_rotate_if1 == 20) {picture20_next();}}
	
function picture20_next(id) {
if (s5_thumbchangeon_if1 == 0) {
picture11('picture11');}}	
	
var is_ie/*@cc_on = {
  // quirksmode : (document.compatMode=="BackCompat"),
  version : parseFloat(navigator.appVersion.match(/MSIE (.+?);/)[1])
}@*/;

function opacity(id, opacStart, opacEnd, millisec) {
	//speed for each frame
	var speed = Math.round(millisec / 100);
	var timer = 0;
	//determine the direction for the blending, if start and end are the same nothing happens
	if(opacStart > opacEnd) {
		for(i = opacStart; i >= opacEnd; i--) {
			setTimeout("changeOpac(" + i + ",'" + id + "')",(timer * speed));
			timer++;
		}
	} else if(opacStart < opacEnd) {
		for(i = opacStart; i <= opacEnd; i++)
			{
			setTimeout("changeOpac(" + i + ",'" + id + "')",(timer * speed));
			timer++;
		}
	}
}

//change the opacity for different browsers
function changeOpac(opacity, id) {
	var object = document.getElementById(id).style; 
	object.opacity = (opacity / 100);
	object.MozOpacity = (opacity / 100);
	object.KhtmlOpacity = (opacity / 100);
	object.filter = "alpha(opacity=" + opacity + ")";
}

function blendimage(divid, imageid, imagefile, millisec) {
	var speed = Math.round(millisec / 100);
	var timer = 0;
	
	//set the current image as background
	//document.getElementById(divid).style.backgroundImage = "url(" + document.getElementById(imageid).src + ")";
	
	//make image transparent
	changeOpac(0, imageid);
	
	//make new image
	document.getElementById(imageid).src = imagefile;

	//fade in image
	for(i = 0; i <= 100; i++) {
		setTimeout("changeOpac(" + i + ",'" + imageid + "')",(timer * speed));
		timer++;
	}
}

function currentOpac(id, opacEnd, millisec) {
	//standard opacity is 100
	var currentOpac = 100;
	
	//if the element has an opacity set, get it
	if(document.getElementById(id).style.opacity < 100) {
		currentOpac = document.getElementById(id).style.opacity * 100;
	}

	//call for the function that changes the opacity
	opacity(id, currentOpac, opacEnd, millisec)
}



/* Hide and Show Descriptions */
	
		function sa_picture11_click() {
		if (picture11target == "_top") {
				window.location.href=picture11link;
				}
			else {
				window.open(picture11link);
			}
		}

		function sa_picture11_if_display() {
		s5_currentslide_if = 11;
		if (picture11link == "") {
			document.getElementById("blendimage1").style.cursor = "default";
			document.getElementById("blendimage1").onclick = "";
		}
		if (picture11link != "") {
			document.getElementById("blendimage1").style.cursor = "pointer";
			document.getElementById("blendimage1").onclick = sa_picture11_click;
		}
		if (s5_ifvisible_if1 >= 11) {
		document.getElementById("picture11_if").style.backgroundImage = 'url(modules/mod_s5_imagefader1/s5_imagefader1/nonactive.png)';}
		if (s5_ifvisible_if1 >= 12) {
		document.getElementById("picture12_if").style.backgroundImage = 'url(modules/mod_s5_imagefader1/s5_imagefader1/nonactive.png)';}
		if (s5_ifvisible_if1 >= 13) {
		document.getElementById("picture13_if").style.backgroundImage = 'url(modules/mod_s5_imagefader1/s5_imagefader1/nonactive.png)';}
		if (s5_ifvisible_if1 >= 14) {
		document.getElementById("picture14_if").style.backgroundImage = 'url(modules/mod_s5_imagefader1/s5_imagefader1/nonactive.png)';}
		if (s5_ifvisible_if1 >= 15) {
		document.getElementById("picture15_if").style.backgroundImage = 'url(modules/mod_s5_imagefader1/s5_imagefader1/nonactive.png)';}
		if (s5_ifvisible_if1 >= 16) {
		document.getElementById("picture16_if").style.backgroundImage = 'url(modules/mod_s5_imagefader1/s5_imagefader1/nonactive.png)';}
		if (s5_ifvisible_if1 >= 17) {
		document.getElementById("picture17_if").style.backgroundImage = 'url(modules/mod_s5_imagefader1/s5_imagefader1/nonactive.png)';}
		if (s5_ifvisible_if1 >= 18) {
		document.getElementById("picture18_if").style.backgroundImage = 'url(modules/mod_s5_imagefader1/s5_imagefader1/nonactive.png)';}
		if (s5_ifvisible_if1 >= 19) {
		document.getElementById("picture19_if").style.backgroundImage = 'url(modules/mod_s5_imagefader1/s5_imagefader1/nonactive.png)';}
		
		document.getElementById("picture").style.backgroundImage = 'url(modules/mod_s5_imagefader1/s5_imagefader1/active.png)';

		}
		
		function sa_picture12_click() {
		if (picture12target == "_top") {
				window.location.href=picture12link;
				}
			else {
				window.open(picture12link);
			}
		}

		function sa_picture12_if_display() {
		s5_currentslide_if = 12;
		if (picture12link == "") {
			document.getElementById("blendimage1").style.cursor = "default";
			document.getElementById("blendimage1").onclick = "";
		}
		if (picture12link != "") {
			document.getElementById("blendimage1").style.cursor = "pointer";
			document.getElementById("blendimage1").onclick = sa_picture12_click;
		}
		if (s5_ifvisible_if1 >= 0) {
		document.getElementById("picture").style.backgroundImage = 'url(modules/mod_s5_imagefader1/s5_imagefader1/nonactive.png)';}
		if (s5_ifvisible_if1 >= 12) {
		document.getElementById("picture12_if").style.backgroundImage = 'url(modules/mod_s5_imagefader1/s5_imagefader1/nonactive.png)';}
		if (s5_ifvisible_if1 >= 13) {
		document.getElementById("picture13_if").style.backgroundImage = 'url(modules/mod_s5_imagefader1/s5_imagefader1/nonactive.png)';}
		if (s5_ifvisible_if1 >= 14) {
		document.getElementById("picture14_if").style.backgroundImage = 'url(modules/mod_s5_imagefader1/s5_imagefader1/nonactive.png)';}
		if (s5_ifvisible_if1 >= 15) {
		document.getElementById("picture15_if").style.backgroundImage = 'url(modules/mod_s5_imagefader1/s5_imagefader1/nonactive.png)';}
		if (s5_ifvisible_if1 >= 16) {
		document.getElementById("picture16_if").style.backgroundImage = 'url(modules/mod_s5_imagefader1/s5_imagefader1/nonactive.png)';}
		if (s5_ifvisible_if1 >= 17) {
		document.getElementById("picture17_if").style.backgroundImage = 'url(modules/mod_s5_imagefader1/s5_imagefader1/nonactive.png)';}
		if (s5_ifvisible_if1 >= 18) {
		document.getElementById("picture18_if").style.backgroundImage = 'url(modules/mod_s5_imagefader1/s5_imagefader1/nonactive.png)';}
		if (s5_ifvisible_if1 >= 19) {
		document.getElementById("picture19_if").style.backgroundImage = 'url(modules/mod_s5_imagefader1/s5_imagefader1/nonactive.png)';}

		document.getElementById("picture11_if").style.backgroundImage = 'url(modules/mod_s5_imagefader1/s5_imagefader1/active.png)';

		}
		
		function sa_picture13_click() {
		if (picture3target == "_top") {
				window.location.href=picture13link;
				}
			else {
				window.open(picture13link);
			}
		}
		
		function sa_picture13_if_display() {
		s5_currentslide_if = 13;
		if (picture13link == "") {
			document.getElementById("blendimage1").style.cursor = "default";
			document.getElementById("blendimage1").onclick = "";
		}
		if (picture13link != "") {
			document.getElementById("blendimage1").style.cursor = "pointer";
			document.getElementById("blendimage1").onclick = sa_picture13_click;
		}
		if (s5_ifvisible_if1 >= 0) {
		document.getElementById("picture").style.backgroundImage = 'url(modules/mod_s5_imagefader1/s5_imagefader1/nonactive.png)';}
		if (s5_ifvisible_if1 >= 11) {
		document.getElementById("picture11_if").style.backgroundImage = 'url(modules/mod_s5_imagefader1/s5_imagefader1/nonactive.png)';}
		if (s5_ifvisible_if1 >= 13) {
		document.getElementById("picture13_if").style.backgroundImage = 'url(modules/mod_s5_imagefader1/s5_imagefader1/nonactive.png)';}
		if (s5_ifvisible_if1 >= 14) {
		document.getElementById("picture14_if").style.backgroundImage = 'url(modules/mod_s5_imagefader1/s5_imagefader1/nonactive.png)';}
		if (s5_ifvisible_if1 >= 15) {
		document.getElementById("picture15_if").style.backgroundImage = 'url(modules/mod_s5_imagefader1/s5_imagefader1/nonactive.png)';}
		if (s5_ifvisible_if1 >= 16) {
		document.getElementById("picture16_if").style.backgroundImage = 'url(modules/mod_s5_imagefader1/s5_imagefader1/nonactive.png)';}
		if (s5_ifvisible_if1 >= 17) {
		document.getElementById("picture17_if").style.backgroundImage = 'url(modules/mod_s5_imagefader1/s5_imagefader1/nonactive.png)';}
		if (s5_ifvisible_if1 >= 18) {
		document.getElementById("picture18_if").style.backgroundImage = 'url(modules/mod_s5_imagefader1/s5_imagefader1/nonactive.png)';}
		if (s5_ifvisible_if1 >= 19) {
		document.getElementById("picture19_if").style.backgroundImage = 'url(modules/mod_s5_imagefader1/s5_imagefader1/nonactive.png)';}
		
		document.getElementById("picture12_if").style.backgroundImage = 'url(modules/mod_s5_imagefader1/s5_imagefader1/active.png)';

		}
		
		function sa_picture14_click() {
		if (picture14target == "_top") {
				window.location.href=picture14link;
				}
			else {
				window.open(picture14link);
			}
		}
		
		function sa_picture14_if_display() {
		s5_currentslide_if = 14;
		if (picture14link == "") {
			document.getElementById("blendimage1").style.cursor = "default";
			document.getElementById("blendimage1").onclick = "";
		}
		if (picture14link != "") {
			document.getElementById("blendimage1").style.cursor = "pointer";
			document.getElementById("blendimage1").onclick = sa_picture14_click;
		}
		if (s5_ifvisible_if1 >= 11) {
		document.getElementById("picture11_if").style.backgroundImage = 'url(modules/mod_s5_imagefader1/s5_imagefader1/nonactive.png)';}
		if (s5_ifvisible_if1 >= 12) {
		document.getElementById("picture12_if").style.backgroundImage = 'url(modules/mod_s5_imagefader1/s5_imagefader1/nonactive.png)';}
		if (s5_ifvisible_if1 >= 0) {
		document.getElementById("picture").style.backgroundImage = 'url(modules/mod_s5_imagefader1/s5_imagefader1/nonactive.png)';}
		if (s5_ifvisible_if1 >= 14) {
		document.getElementById("picture14_if").style.backgroundImage = 'url(modules/mod_s5_imagefader1/s5_imagefader1/nonactive.png)';}
		if (s5_ifvisible_if1 >= 15) {
		document.getElementById("picture15_if").style.backgroundImage = 'url(modules/mod_s5_imagefader1/s5_imagefader1/nonactive.png)';}
		if (s5_ifvisible_if1 >= 16) {
		document.getElementById("picture16_if").style.backgroundImage = 'url(modules/mod_s5_imagefader1/s5_imagefader1/nonactive.png)';}
		if (s5_ifvisible_if1 >= 17) {
		document.getElementById("picture17_if").style.backgroundImage = 'url(modules/mod_s5_imagefader1/s5_imagefader1/nonactive.png)';}
		if (s5_ifvisible_if1 >= 18) {
		document.getElementById("picture18_if").style.backgroundImage = 'url(modules/mod_s5_imagefader1/s5_imagefader1/nonactive.png)';}
		if (s5_ifvisible_if1 >= 19) {
		document.getElementById("picture19_if").style.backgroundImage = 'url(modules/mod_s5_imagefader1/s5_imagefader1/nonactive.png)';}

		document.getElementById("picture13_if").style.backgroundImage = 'url(modules/mod_s5_imagefader1/s5_imagefader1/active.png)';

		}
		
		function sa_picture15_click() {
		if (picture15target == "_top") {
				window.location.href=picture15link;
				}
			else {
				window.open(picture15link);
			}
		}
		
			
		function sa_picture15_if_display() {
		s5_currentslide_if = 15;
		if (picture15link == "") {
			document.getElementById("blendimage1").style.cursor = "default";
			document.getElementById("blendimage1").onclick = "";
		}
		if (picture15link != "") {
			document.getElementById("blendimage1").style.cursor = "pointer";
			document.getElementById("blendimage1").onclick = sa_picture15_click;
		}
		if (s5_ifvisible_if1 >= 11) {
		document.getElementById("picture11_if").style.backgroundImage = 'url(modules/mod_s5_imagefader1/s5_imagefader1/nonactive.png)';}
		if (s5_ifvisible_if1 >= 12) {
		document.getElementById("picture12_if").style.backgroundImage = 'url(modules/mod_s5_imagefader1/s5_imagefader1/nonactive.png)';}
		if (s5_ifvisible_if1 >= 13) {
		document.getElementById("picture13_if").style.backgroundImage = 'url(modules/mod_s5_imagefader1/s5_imagefader1/nonactive.png)';}
		if (s5_ifvisible_if1 >= 0) {
		document.getElementById("picture").style.backgroundImage = 'url(modules/mod_s5_imagefader1/s5_imagefader1/nonactive.png)';}
		if (s5_ifvisible_if1 >= 15) {
		document.getElementById("picture15_if").style.backgroundImage = 'url(modules/mod_s5_imagefader1/s5_imagefader1/nonactive.png)';}
		if (s5_ifvisible_if1 >= 16) {
		document.getElementById("picture16_if").style.backgroundImage = 'url(modules/mod_s5_imagefader1/s5_imagefader1/nonactive.png)';}
		if (s5_ifvisible_if1 >= 17) {
		document.getElementById("picture17_if").style.backgroundImage = 'url(modules/mod_s5_imagefader1/s5_imagefader1/nonactive.png)';}
		if (s5_ifvisible_if1 >= 18) {
		document.getElementById("picture18_if").style.backgroundImage = 'url(modules/mod_s5_imagefader1/s5_imagefader1/nonactive.png)';}
		if (s5_ifvisible_if1 >= 19) {
		document.getElementById("picture19_if").style.backgroundImage = 'url(modules/mod_s5_imagefader1/s5_imagefader1/nonactive.png)';}

		document.getElementById("picture14_if").style.backgroundImage = 'url(modules/mod_s5_imagefader1/s5_imagefader1/active.png)';

		}
		
		function sa_picture16_click() {
		if (picture16target == "_top") {
				window.location.href=picture16link;
				}
			else {
				window.open(picture16link);
			}
		}
		
		function sa_picture16_if_display() {
		s5_currentslide_if = 16;
		if (picture16link == "") {
			document.getElementById("blendimage1").style.cursor = "default";
			document.getElementById("blendimage1").onclick = "";
		}
		if (picture16link != "") {
			document.getElementById("blendimage1").style.cursor = "pointer";
			document.getElementById("blendimage1").onclick = sa_picture16_click;
		}
		if (s5_ifvisible_if1 >= 11) {
		document.getElementById("picture11_if").style.backgroundImage = 'url(modules/mod_s5_imagefader1/s5_imagefader1/nonactive.png)';}
		if (s5_ifvisible_if1 >= 12) {
		document.getElementById("picture12_if").style.backgroundImage = 'url(modules/mod_s5_imagefader1/s5_imagefader1/nonactive.png)';}
		if (s5_ifvisible_if1 >= 13) {
		document.getElementById("picture13_if").style.backgroundImage = 'url(modules/mod_s5_imagefader1/s5_imagefader1/nonactive.png)';}
		if (s5_ifvisible_if1 >= 14) {
		document.getElementById("picture14_if").style.backgroundImage = 'url(modules/mod_s5_imagefader1/s5_imagefader1/nonactive.png)';}
		if (s5_ifvisible_if1 >= 0) {
		document.getElementById("picture").style.backgroundImage = 'url(modules/mod_s5_imagefader1/s5_imagefader1/nonactive.png)';}
		if (s5_ifvisible_if1 >= 16) {
		document.getElementById("picture16_if").style.backgroundImage = 'url(modules/mod_s5_imagefader1/s5_imagefader1/nonactive.png)';}
		if (s5_ifvisible_if1 >= 17) {
		document.getElementById("picture17_if").style.backgroundImage = 'url(modules/mod_s5_imagefader1/s5_imagefader1/nonactive.png)';}
		if (s5_ifvisible_if1 >= 18) {
		document.getElementById("picture18_if").style.backgroundImage = 'url(modules/mod_s5_imagefader1/s5_imagefader1/nonactive.png)';}
		if (s5_ifvisible_if1 >= 19) {
		document.getElementById("picture19_if").style.backgroundImage = 'url(modules/mod_s5_imagefader1/s5_imagefader1/nonactive.png)';}

		document.getElementById("picture15_if").style.backgroundImage = 'url(modules/mod_s5_imagefader1/s5_imagefader1/active.png)';

		}
		
		function sa_picture17_click() {
		if (picture17target == "_top") {
				window.location.href=picture17link;
				}
			else {
				window.open(picture17link);
			}
		}
		
		function sa_picture17_if_display() {
		s5_currentslide_if = 17;
		if (picture17link == "") {
			document.getElementById("blendimage1").style.cursor = "default";
			document.getElementById("blendimage1").onclick = "";
		}
		if (picture17link != "") {
			document.getElementById("blendimage1").style.cursor = "pointer";
			document.getElementById("blendimage1").onclick = sa_picture17_click;
		}
		if (s5_ifvisible_if1 >= 11) {
		document.getElementById("picture11_if").style.backgroundImage = 'url(modules/mod_s5_imagefader1/s5_imagefader1/nonactive.png)';}
		if (s5_ifvisible_if1 >= 12) {
		document.getElementById("picture12_if").style.backgroundImage = 'url(modules/mod_s5_imagefader1/s5_imagefader1/nonactive.png)';}
		if (s5_ifvisible_if1 >= 13) {
		document.getElementById("picture13_if").style.backgroundImage = 'url(modules/mod_s5_imagefader1/s5_imagefader1/nonactive.png)';}
		if (s5_ifvisible_if1 >= 14) {
		document.getElementById("picture14_if").style.backgroundImage = 'url(modules/mod_s5_imagefader1/s5_imagefader1/nonactive.png)';}
		if (s5_ifvisible_if1 >= 15) {
		document.getElementById("picture15_if").style.backgroundImage = 'url(modules/mod_s5_imagefader1/s5_imagefader1/nonactive.png)';}
		if (s5_ifvisible_if1 >= 0) {
		document.getElementById("picture").style.backgroundImage = 'url(modules/mod_s5_imagefader1/s5_imagefader1/nonactive.png)';}
		if (s5_ifvisible_if1 >= 17) {
		document.getElementById("picture17_if").style.backgroundImage = 'url(modules/mod_s5_imagefader1/s5_imagefader1/nonactive.png)';}
		if (s5_ifvisible_if1 >= 18) {
		document.getElementById("picture18_if").style.backgroundImage = 'url(modules/mod_s5_imagefader1/s5_imagefader1/nonactive.png)';}
		if (s5_ifvisible_if1 >= 19) {
		document.getElementById("picture19_if").style.backgroundImage = 'url(modules/mod_s5_imagefader1/s5_imagefader1/nonactive.png)';}

		document.getElementById("picture16_if").style.backgroundImage = 'url(modules/mod_s5_imagefader1/s5_imagefader1/active.png)';

		}
		
		function sa_picture18_click() {
		if (picture8target == "_top") {
				window.location.href=picture18link;
				}
			else {
				window.open(picture18link);
			}
		}
		
		function sa_picture18_if_display() {
		s5_currentslide_if = 18;
		if (picture18link == "") {
			document.getElementById("blendimage1").style.cursor = "default";
			document.getElementById("blendimage1").onclick = "";
		}
		if (picture18link != "") {
			document.getElementById("blendimage1").style.cursor = "pointer";
			document.getElementById("blendimage1").onclick = sa_picture18_click;
		}
		if (s5_ifvisible_if1 >= 11) {
		document.getElementById("picture11_if").style.backgroundImage = 'url(modules/mod_s5_imagefader1/s5_imagefader1/nonactive.png)';}
		if (s5_ifvisible_if1 >= 12) {
		document.getElementById("picture12_if").style.backgroundImage = 'url(modules/mod_s5_imagefader1/s5_imagefader1/nonactive.png)';}
		if (s5_ifvisible_if1 >= 13) {
		document.getElementById("picture13_if").style.backgroundImage = 'url(modules/mod_s5_imagefader1/s5_imagefader1/nonactive.png)';}
		if (s5_ifvisible_if1 >= 14) {
		document.getElementById("picture14_if").style.backgroundImage = 'url(modules/mod_s5_imagefader1/s5_imagefader1/nonactive.png)';}
		if (s5_ifvisible_if1 >= 15) {
		document.getElementById("picture15_if").style.backgroundImage = 'url(modules/mod_s5_imagefader1/s5_imagefader1/nonactive.png)';}
		if (s5_ifvisible_if1 >= 16) {
		document.getElementById("picture16_if").style.backgroundImage = 'url(modules/mod_s5_imagefader1/s5_imagefader1/nonactive.png)';}
		if (s5_ifvisible_if1 >= 0) {
		document.getElementById("picture").style.backgroundImage = 'url(modules/mod_s5_imagefader1/s5_imagefader1/nonactive.png)';}
		if (s5_ifvisible_if1 >= 18) {
		document.getElementById("picture18_if").style.backgroundImage = 'url(modules/mod_s5_imagefader1/s5_imagefader1/nonactive.png)';}
		if (s5_ifvisible_if1 >= 19) {
		document.getElementById("picture19_if").style.backgroundImage = 'url(modules/mod_s5_imagefader1/s5_imagefader1/nonactive.png)';}
		
		document.getElementById("picture17_if").style.backgroundImage = 'url(modules/mod_s5_imagefader1/s5_imagefader1/active.png)';

		}
		
		function sa_picture19_click() {
		if (picture19target == "_top") {
				window.location.href=picture19link;
				}
			else {
				window.open(picture19link);
			}
		}
		
		function sa_picture19_if_display() {
		s5_currentslide_if = 19;
		if (picture19link == "") {
			document.getElementById("blendimage1").style.cursor = "default";
			document.getElementById("blendimage1").onclick = "";
		}
		if (picture19link != "") {
			document.getElementById("blendimage1").style.cursor = "pointer";
			document.getElementById("blendimage1").onclick = sa_picture19_click;
		}
		if (s5_ifvisible_if1 >= 11) {
		document.getElementById("picture11_if").style.backgroundImage = 'url(modules/mod_s5_imagefader1/s5_imagefader1/nonactive.png)';}
		if (s5_ifvisible_if1 >= 12) {
		document.getElementById("picture12_if").style.backgroundImage = 'url(modules/mod_s5_imagefader1/s5_imagefader1/nonactive.png)';}
		if (s5_ifvisible_if1 >= 13) {
		document.getElementById("picture13_if").style.backgroundImage = 'url(modules/mod_s5_imagefader1/s5_imagefader1/nonactive.png)';}
		if (s5_ifvisible_if1 >= 14) {
		document.getElementById("picture14_if").style.backgroundImage = 'url(modules/mod_s5_imagefader1/s5_imagefader1/nonactive.png)';}
		if (s5_ifvisible_if1 >= 15) {
		document.getElementById("picture15_if").style.backgroundImage = 'url(modules/mod_s5_imagefader1/s5_imagefader1/nonactive.png)';}
		if (s5_ifvisible_if1 >= 16) {
		document.getElementById("picture16_if").style.backgroundImage = 'url(modules/mod_s5_imagefader1/s5_imagefader1/nonactive.png)';}
		if (s5_ifvisible_if1 >= 17) {
		document.getElementById("picture17_if").style.backgroundImage = 'url(modules/mod_s5_imagefader1/s5_imagefader1/nonactive.png)';}
		if (s5_ifvisible_if1 >= 0) {
		document.getElementById("picture").style.backgroundImage = 'url(modules/mod_s5_imagefader1/s5_imagefader1/nonactive.png)';}
		if (s5_ifvisible_if1 >= 19) {
		document.getElementById("picture19_if").style.backgroundImage = 'url(modules/mod_s5_imagefader1/s5_imagefader1/nonactive.png)';}

		document.getElementById("picture18_if").style.backgroundImage = 'url(modules/mod_s5_imagefader1/s5_imagefader1/active.png)';

		}
		
		function sa_picture20_click() {
		if (picture20target == "_top") {
				window.location.href=picture20link;
				}
			else {
				window.open(picture20link);
			}
		}
		
		function sa_picture20_if_display() {
		s5_currentslide_if = 20;
		if (picture20link == "") {
			document.getElementById("blendimage1").style.cursor = "default";
			document.getElementById("blendimage1").onclick = "";
		}
		if (picture20link != "") {
			document.getElementById("blendimage1").style.cursor = "pointer";
			document.getElementById("blendimage1").onclick = sa_picture20_click;
		}
		if (s5_ifvisible_if1 >= 11) {
		document.getElementById("picture11_if").style.backgroundImage = 'url(modules/mod_s5_imagefader1/s5_imagefader1/nonactive.png)';}
		if (s5_ifvisible_if1 >= 12) {
		document.getElementById("picture12_if").style.backgroundImage = 'url(modules/mod_s5_imagefader1/s5_imagefader1/nonactive.png)';}
		if (s5_ifvisible_if1 >= 13) {
		document.getElementById("picture13_if").style.backgroundImage = 'url(modules/mod_s5_imagefader1/s5_imagefader1/nonactive.png)';}
		if (s5_ifvisible_if1 >= 14) {
		document.getElementById("picture14_if").style.backgroundImage = 'url(modules/mod_s5_imagefader1/s5_imagefader1/nonactive.png)';}
		if (s5_ifvisible_if1 >= 15) {
		document.getElementById("picture15_if").style.backgroundImage = 'url(modules/mod_s5_imagefader1/s5_imagefader1/nonactive.png)';}
		if (s5_ifvisible_if1 >= 16) {
		document.getElementById("picture16_if").style.backgroundImage = 'url(modules/mod_s5_imagefader1/s5_imagefader1/nonactive.png)';}
		if (s5_ifvisible_if1 >= 17) {
		document.getElementById("picture17_if").style.backgroundImage = 'url(modules/mod_s5_imagefader1/s5_imagefader1/nonactive.png)';}
		if (s5_ifvisible_if1 >= 18) {
		document.getElementById("picture18_if").style.backgroundImage = 'url(modules/mod_s5_imagefader1/s5_imagefader1/nonactive.png)';}
		if (s5_ifvisible_if1 >= 0) {
		document.getElementById("picture").style.backgroundImage = 'url(modules/mod_s5_imagefader1/s5_imagefader1/nonactive.png)';}

		document.getElementById("picture19_if").style.backgroundImage = 'url(modules/mod_s5_imagefader1/s5_imagefader1/active.png)';

		}

