<!-- Component "" "tcm:97-34674" --><!-- Component Template "ct GEN Code" "tcm:97-1739-32" --><!-- UKSA JavaScript Home Code --><!-- UKSA JavaScript Home Code -->


$(function() {


		$('#boxarrow1').fadeIn(1); 


 			$('#s1').cycle({timeout:6000});

				if(document.getElementById("nextarrow").style.cssText == undefined){ 	

 				document.getElementById("backarrow").setAttribute("style", "display:inline;");

				document.getElementById("nextarrow").setAttribute("style", "display:inline;");

				document.getElementById("pauseon").setAttribute("style", "display:inline;");

				document.getElementById("pauseoff").setAttribute("style", "display:inline;");

				document.getElementById("controlBoxes").setAttribute("style", "display:inline;");

				document.getElementById("morenews").setAttribute("style", "display:inline;");

				}else{ 	

    			document.getElementById("nextarrow").style.cssText = "display:inline;";

    			document.getElementById("backarrow").style.cssText = "display:inline;";

    			document.getElementById("pauseoff").style.cssText = "display:inline;";

    			document.getElementById("playon").style.cssText = "display:inline;";

    			document.getElementById("controlBoxes").style.cssText = "display:inline;";

    			document.getElementById("morenews").style.cssText = "display:inline;";

				} 


		$('#resumeButton').click(function() {

			if(document.getElementById("playon").style.cssText == undefined){ 	

 				document.getElementById("playon").setAttribute("style", "display:inline;");

				document.getElementById("playoff").setAttribute("style", "display:none;");

			}else{ 	

    			document.getElementById("playoff").style.cssText = "display:none;";

				document.getElementById("playon").style.cssText = "display:inline;";

			}

			$('#pauseon').fadeOut(500); 

			$('#pauseoff').fadeIn(500);

			$('#s1').cycle('resume');

		});




		$('#pauseButton').click(function() {

			if(document.getElementById("pauseon").style.cssText == undefined){ 	

 				document.getElementById("pauseoff").setAttribute("style", "display:none;");

				document.getElementById("pauseon").setAttribute("style", "display:inline;");

			}else{ 	

    			document.getElementById("pauseon").style.cssText = "display:inline;";

				document.getElementById("pauseoff").style.cssText = "display:none;";

			}

   			$('#playon').fadeOut(500); 

			$('#playoff').fadeIn(500); 

			$('#s1').cycle('pause');


		});


		$('#next').click(function() {

   			 $('#s1').cycle('next');

			 if(document.getElementById("pauseon").style.cssText == undefined){ 	

 				document.getElementById("pauseoff").setAttribute("style", "display:none;");

				document.getElementById("pauseon").setAttribute("style", "display:inline;");

			}else{ 	

    			document.getElementById("pauseon").style.cssText = "display:inline;";

				document.getElementById("pauseoff").style.cssText = "display:none;";

			}

   			$('#playon').fadeOut(500); 

			$('#playoff').fadeIn(500); 

		});


		$('#previous').click(function() {

   			 $('#s1').cycle('prev');

			 if(document.getElementById("pauseon").style.cssText == undefined){ 	

 				document.getElementById("pauseoff").setAttribute("style", "display:none;");

				document.getElementById("pauseon").setAttribute("style", "display:inline;");

			}else{ 	

    			document.getElementById("pauseon").style.cssText = "display:inline;";

				document.getElementById("pauseoff").style.cssText = "display:none;";

			}

   			$('#playon').fadeOut(500); 

			$('#playoff').fadeIn(500); 

		});


		$('#box1').hover(function() {

			if ($(this).css('background-color').indexOf("rgb(60,99,126)") != -1 || $(this).css('background-color') == '#3c637e' || $(this).css('background-color').indexOf("rgb(60, 99, 126)") != -1)

			{

			$(this).css('background-color', '#768fa1'); 

			}

			}, function() {

			if ($(this).css('background-color').indexOf("rgb(118,143,161)") != -1 || $(this).css('background-color') == '#768fa1' || $(this).css('background-color').indexOf("rgb(118, 143, 161)") != -1)

			{

			$(this).css('background-color', '#3c637e');

			}

		 }); 


		 $('#box2').hover(function() {

		 	if ($(this).css('background-color').indexOf("rgb(60,99,126)") != -1 || $(this).css('background-color') == '#3c637e' || $(this).css('background-color').indexOf("rgb(60, 99, 126)") != -1)

			{

			$(this).css('background-color', '#768fa1');

			}

			}, function() {

			if ($(this).css('background-color').indexOf("rgb(118,143,161)") != -1 || $(this).css('background-color') == '#768fa1' || $(this).css('background-color').indexOf("rgb(118, 143, 161)") != -1)

			{

			$(this).css('background-color', '#3c637e'); 

			}

		 }); 


		 $('#box3').hover(function() {

		 	if ($(this).css('background-color').indexOf("rgb(60,99,126)") != -1 || $(this).css('background-color') == '#3c637e' || $(this).css('background-color').indexOf("rgb(60, 99, 126)") != -1)

			{

			$(this).css('background-color', '#768fa1'); 

			}

			}, function() {

			//alert($(this).css('background-color'));

			if ($(this).css('background-color').indexOf("rgb(118,143,161)") != -1 || $(this).css('background-color') == '#768fa1' || $(this).css('background-color').indexOf("rgb(118, 143, 161)") != -1)

			{

			$(this).css('background-color', '#3c637e'); 

			}

		 });  


		  $('#next').hover(function() {


		  		$('#s1').cycle('pause');

		  		if(document.getElementById("nextarrow").style.cssText == undefined){ 	

 				document.getElementById("nextarrow").setAttribute("style", "display:none;");

				document.getElementById("nextarrowhover").setAttribute("style", "display:inline;");

				}else{ 	

    			document.getElementById("nextarrowhover").style.cssText = "display:inline;";

				document.getElementById("nextarrow").style.cssText = "display:none;";

				}


		  	//	$('img.nextarrowhover').css('display', 'inline');

			//	$('img.nextarrow').css('display', 'hidden');

		    }, function() {

				if(document.getElementById("nextarrow").style.cssText == undefined){ 	

 				document.getElementById("nextarrowhover").setAttribute("style", "display:none;");

				document.getElementById("nextarrow").setAttribute("style", "display:inline;");

				}else{ 	

    			document.getElementById("nextarrow").style.cssText = "display:inline;";

				document.getElementById("nextarrowhover").style.cssText = "display:none;";

				} 

		 }); 


		 $('#previous').hover(function() {

		 		$('#s1').cycle('pause');

				if(document.getElementById("backarrow").style.cssText == undefined){ 	

 				document.getElementById("backarrow").setAttribute("style", "display:none;");

				document.getElementById("backarrowhover").setAttribute("style", "display:inline;");

				}else{ 	

    			document.getElementById("backarrowhover").style.cssText = "display:inline;";

				document.getElementById("backarrow").style.cssText = "display:none;";

				}

		    //	$('img.backarrowhover').css('display', 'inline');

			//	$('img.backarrow').css('display', 'hidden');

		  }, function() {

				if(document.getElementById("backarrow").style.cssText == undefined){ 	

 				document.getElementById("backarrowhover").setAttribute("style", "display:none;");

				document.getElementById("backarrow").setAttribute("style", "display:inline;");

				}else{ 	

    			document.getElementById("backarrow").style.cssText = "display:inline;";

				document.getElementById("backarrowhover").style.cssText = "display:none;";

				}

		 });



		 $('#box1').click(function() {


			$('#s1').cycle('pause');

			$('#s1').cycle(0);


			 if(document.getElementById("pauseon").style.cssText == undefined){ 	

 				document.getElementById("pauseoff").setAttribute("style", "display:none;");

				document.getElementById("pauseon").setAttribute("style", "display:inline;");

			}else{ 	

    			document.getElementById("pauseon").style.cssText = "display:inline;";

				document.getElementById("pauseoff").style.cssText = "display:none;";

			}

   			$('#playon').fadeOut(300); 

			$('#playoff').fadeIn(300); 


   		 }); 


		 $('#box2').click(function() {


			$('#s1').cycle('pause');

			$('#s1').cycle(1);

			if(document.getElementById("pauseon").style.cssText == undefined){ 	

 				document.getElementById("pauseoff").setAttribute("style", "display:none;");

				document.getElementById("pauseon").setAttribute("style", "display:inline;");

			}else{ 	

    			document.getElementById("pauseon").style.cssText = "display:inline;";

				document.getElementById("pauseoff").style.cssText = "display:none;";

			}

   			$('#playon').fadeOut(300); 

			$('#playoff').fadeIn(300); 

   		 }); 


		 $('#box3').click(function() {


			$('#s1').cycle('pause');

			$('#s1').cycle(2);

			if(document.getElementById("pauseon").style.cssText == undefined){ 	

 				document.getElementById("pauseoff").setAttribute("style", "display:none;");

				document.getElementById("pauseon").setAttribute("style", "display:inline;");

			}else{ 	

    			document.getElementById("pauseon").style.cssText = "display:inline;";

				document.getElementById("pauseoff").style.cssText = "display:none;";

			}

   			$('#playon').fadeOut(300); 

			$('#playoff').fadeIn(300); 

   		 }); 


});
