var fast_nd_title = document.getElementById("fast_nd_content").getElementsByTagName("A");
	var fast_nd_title_aa = 1;
	for (var fast_nd_title_y=0; fast_nd_title_y<fast_nd_title.length; fast_nd_title_y++) {
		if (fast_nd_title[fast_nd_title_y].className == "fast_nd_title") {
			fast_nd_title[fast_nd_title_y].id="fast_nd_title_" + fast_nd_title_aa;
			fast_nd_title_aa = fast_nd_title_aa + 1;
		}
	}
	
var fast_nd_text = document.getElementById("fast_nd_content").getElementsByTagName("SPAN");
	var fast_nd_text_aa = 1;
	for (var fast_nd_text_y=0; fast_nd_text_y<fast_nd_text.length; fast_nd_text_y++) {
		if (fast_nd_text[fast_nd_text_y].className == "fast_nd_introtext") {
			fast_nd_text[fast_nd_text_y].id="fast_nd_text_" + fast_nd_text_aa;
			fast_nd_text_aa = fast_nd_text_aa + 1;
		}
	}
	
	
var fast_nd_image = document.getElementById("fast_nd_content").getElementsByTagName("SPAN");
	var fast_nd_image_aa = 1;
	for (var fast_nd_image_y=0; fast_nd_image_y<fast_nd_image.length; fast_nd_image_y++) {
		if (fast_nd_image[fast_nd_image_y].className == "fast_nd_image") {
			fast_nd_image[fast_nd_image_y].id="fast_nd_image_" + fast_nd_image_aa;
			fast_nd_image_aa = fast_nd_image_aa + 1;
		}
	}
	
	
var is_ie_fast_nd/*@cc_on = {
  // quirksmode : (document.compatMode=="BackCompat"),
  version : parseFloat(navigator.appVersion.match(/MSIE (.+?);/)[1])
}@*/;

function opacity_fast_nd(id_fast_nd, opacStart_fast_nd, opacEnd_fast_nd, millisec_fast_nd) {
	//speed for each frame
	var speed_fast_nd = Math.round(millisec_fast_nd / 100);
	var timer_fast_nd = 0;
	//determine the direction for the blending, if start and end are the same nothing happens
	if(opacStart_fast_nd > opacEnd_fast_nd) {
		for(i = opacStart_fast_nd; i >= opacEnd_fast_nd; i--) {
			setTimeout("changeOpac_fast_nd(" + i + ",'" + id_fast_nd + "')",(timer_fast_nd * speed_fast_nd));
			timer_fast_nd++;
		}
	} else if(opacStart_fast_nd < opacEnd_fast_nd) {
		for(i = opacStart_fast_nd; i <= opacEnd_fast_nd; i++)
			{
			setTimeout("changeOpac_fast_nd(" + i + ",'" + id_fast_nd + "')",(timer_fast_nd * speed_fast_nd));
			timer_fast_nd++;
		}
	}
}

//change the opacity for different browsers
function changeOpac_fast_nd(opacity_fast_nd, id_fast_nd) {
	var object_fast_nd = document.getElementById(id_fast_nd).style; 
	object_fast_nd.opacity = (opacity_fast_nd / 100);
	object_fast_nd.MozOpacity = (opacity_fast_nd / 100);
	object_fast_nd.KhtmlOpacity = (opacity_fast_nd / 100);
    object_fast_nd.filter = "alpha(opacity=" + opacity_fast_nd + ")";
}

function blendimage_fast_nd(divid_fast_nd, imageid_fast_nd, imagefile_fast_nd, millisec_fast_nd) {
	var speed_fast_nd = Math.round(millisec_fast_nd / 100);
	var timer_fast_nd = 0;
	
	//set the current image as background
	document.getElementById(divid_fast_nd).style.backgroundImage = "url(" + document.getElementById(imageid_fast_nd).src + ")";
	
	//make image transparent
	changeOpac_fast_nd(0, imageid_fast_nd);
	
	//make new image
	document.getElementById(imageid_fast_nd).src = imagefile_fast_nd;

	//fade in image
	for(i = 0; i <= 100; i++) {
		setTimeout("changeOpac_fast_nd(" + i + ",'" + imageid_fast_nd + "')",(timer_fast_nd * speed_fast_nd));
		timer_fast_nd++;
	}
}

function currentOpac_fast_nd(id_fast_nd, opacEnd_fast_nd, millisec_fast_nd) {
	//standard opacity is 100
	var currentOpac_fast_nd = 100;
	
	//if the element has an opacity set, get it
	if(document.getElementById(id_fast_nd).style.opacity < 100) {
		currentOpac_fast_nd = document.getElementById(id_fast_nd).style.opacity * 100;
	}

	//call for the function that changes the opacity
	opacity_fast_nd(id_fast_nd, currentOpac_fast_nd, opacEnd_fast_nd, millisec_fast_nd)
}


function fast_nd_fadefirst() {
document.getElementById("fast_nd_title").innerHTML = document.getElementById("fast_nd_title_1").innerHTML;
document.getElementById("fast_nd_text").innerHTML = document.getElementById("fast_nd_text_1").innerHTML;
document.getElementById("fast_nd_title").onclick = fast_nd_click1;
document.getElementById("blendimage_fast_nd").onclick = fast_nd_click1;
if (document.getElementById("fast_nd_hyperlink")) { document.getElementById("fast_nd_hyperlink").onclick = fast_nd_click1; }
opacity_fast_nd('fast_nd_inner', 0, 100, 500);
opacity_fast_nd('fast_nd_content_window_bg', 0, 60, 500);
}

function fast_nd_click1() {
	if (document.getElementById("fast_nd_title_1")) {
		location.href = document.getElementById("fast_nd_title_1").href;
	}
}

function fast_nd_click2() {
	if (document.getElementById("fast_nd_title_2")) {
		location.href = document.getElementById("fast_nd_title_2").href;
	}
}

function fast_nd_click3() {
	if (document.getElementById("fast_nd_title_3")) {
		location.href = document.getElementById("fast_nd_title_3").href;
	}
}

function fast_nd_click4() {
	if (document.getElementById("fast_nd_title_4")) {
		location.href = document.getElementById("fast_nd_title_4").href;
	}
}

function fast_nd_click5() {
	if (document.getElementById("fast_nd_title_5")) {
		location.href = document.getElementById("fast_nd_title_5").href;
	}
}

function fast_nd_click6() {
	if (document.getElementById("fast_nd_title_6")) {
		location.href = document.getElementById("fast_nd_title_6").href;
	}
}

function fast_nd_click7() {
	if (document.getElementById("fast_nd_title_7")) {
		location.href = document.getElementById("fast_nd_title_7").href;
	}
}

function fast_nd_click8() {
	if (document.getElementById("fast_nd_title_8")) {
		location.href = document.getElementById("fast_nd_title_8").href;
	}
}

function fast_nd_click9() {
	if (document.getElementById("fast_nd_title_9")) {
		location.href = document.getElementById("fast_nd_title_9").href;
	}
}

function fast_nd_click10() {
	if (document.getElementById("fast_nd_title_10")) {
		location.href = document.getElementById("fast_nd_title_10").href;
	}
}

var fast_nd_current = 1;
var fast_nd_playing = 0;
var fast_nd_timer1 = 0;
var fast_nd_timer2 = 0;
var fast_nd_timer3 = 0;
var fast_nd_timer4 = 0;
var fast_nd_timer5 = 0;
var fast_nd_timer6 = 0;
var fast_nd_timer7 = 0;
var fast_nd_timer8 = 0;
var fast_nd_timer9 = 0;
var fast_nd_timer10 = 0;
var fast_nd_timer11 = 0;

function fast_nd_stop() {
	fast_nd_playing = 1;
}

function fast_nd_start() {
	fast_nd_playing = 0;
}

function fast_nd_play() {
	
	fast_nd_playing = 0;
	if (fast_nd_current == "1") {
		fast_nd_play1();
		return false;
	}
	if (fast_nd_current == "2") {
		fast_nd_play2();
		return false;
	}
	if (fast_nd_current == "3") {
		fast_nd_play3();
		return false;
	}
	if (fast_nd_current == "4") {
		fast_nd_play4();
		return false;
	}
	if (fast_nd_current == "5") {
		fast_nd_play5();
		return false;
	}
	if (fast_nd_current == "6") {
		fast_nd_play6();
		return false;
	}
	if (fast_nd_current == "7") {
		fast_nd_play7();
		return false;
	}
	if (fast_nd_current == "8") {
		fast_nd_play8();
		return false;
	}
	if (fast_nd_current == "9") {
		fast_nd_play9();
		return false;
	}
	if (fast_nd_current == "10") {
		fast_nd_play10();
		return false;
	}
}



var myInterval_fast_nd = window.setInterval("fast_nd_check_pause()",50);

function fast_nd_check_pause() {
	if (fast_nd_playing == "1") {
	clearTimeout(fast_nd_timer1);
	clearTimeout(fast_nd_timer2);
	clearTimeout(fast_nd_timer3);
	clearTimeout(fast_nd_timer4);
	clearTimeout(fast_nd_timer5);
	clearTimeout(fast_nd_timer6);
	clearTimeout(fast_nd_timer7);
	clearTimeout(fast_nd_timer8);
	clearTimeout(fast_nd_timer9);
	clearTimeout(fast_nd_timer10);
	clearTimeout(fast_nd_timer11);
	}
}


function fast_nd_ie_fix() {
	document.getElementById("fast_nd_content_window").style.filter = "none";
}