

	//set ids to the unordered lists
	var cm_fm_ul = document.getElementById("cm_navv").getElementsByTagName("UL");
	var aa = 0;
	for (var y=0; y<cm_fm_ul.length; y++) {
		cm_fm_ul[y].id="cm_fm_ul" + aa;
		aa = aa + 1;
	}
	
	//set ids to list child nodes of above ul's
	var cm_fm_li = document.getElementById("cm_navv").getElementsByTagName("LI");
	var z;
	var cc = 1;
	for (var z=0; z<cm_fm_li.length; z++) {
	if (cm_fm_li[z].childNodes[2]) {
		cm_fm_li[z].id="cm_fm_li" + cc;
		cc = cc + 1;
		}
	}
	
	//set active links for level 0
	var cm_fm_li2 = document.getElementById("cm_navv").getElementsByTagName("LI");
	var z2;
	var cc2 = 1;
	for (var z2=0; z2<cm_fm_li2.length; z2++) {
		if (cm_fm_li2[z2].className == "active") {
			cm_fm_li2[z2].parentNode.parentNode.className = "active";
			cm_fm_li2[z2].parentNode.parentNode.parentNode.parentNode.className = "active";
		}
	}
	
	//set ids to a's 
	var cm_fm_a = document.getElementById("cm_navv").getElementsByTagName("A");
	var x;
	var bb = 1;
	for (var x=0; x<cm_fm_a.length; x++) {

	if (cm_fm_a[x].parentNode.parentNode.parentNode.id) {
		cm_fm_a[x].id="cm_fm_aa" + bb;
		bb = bb + 1;
		}

	}
	
var id_cm_fm;

var cm_height1 = 0;
var cm_width1 = 0;
var cm_height2 = 0;
var cm_width2 = 0;
var cm_height3 = 0;
var cm_width3 = 0;
var cm_height4 = 0;
var cm_width4 = 0;
var cm_height5 = 0;
var cm_width5 = 0;
var cm_height6 = 0;
var cm_width6 = 0;
var cm_height7 = 0;
var cm_width7 = 0;
var cm_height8 = 0;
var cm_width8 = 0;
var cm_height9 = 0;
var cm_width9 = 0;
var cm_height10 = 0;
var cm_width10 = 0;
var cm_height11 = 0;
var cm_width11 = 0;
var cm_height12 = 0;
var cm_width12 = 0;
var cm_height13 = 0;
var cm_width13 = 0;
var cm_height14 = 0;
var cm_width14 = 0;
var cm_height15 = 0;
var cm_width15 = 0;
var cm_height16 = 0;
var cm_width16 = 0;
var cm_height17 = 0;
var cm_width17 = 0;
var cm_height18 = 0;
var cm_width18 = 0;
var cm_height19 = 0;
var cm_width19 = 0;
var cm_height20 = 0;
var cm_width20 = 0;
var cm_height21 = 0;
var cm_width21 = 0;
var cm_height22 = 0;
var cm_width22 = 0;
var cm_height23 = 0;
var cm_width23 = 0;
var cm_height24 = 0;
var cm_width24 = 0;
var cm_height25 = 0;
var cm_width25 = 0;
var cm_height26 = 0;
var cm_width26 = 0;
var cm_height27 = 0;
var cm_width27 = 0;
var cm_height28 = 0;
var cm_width28 = 0;
var cm_height29 = 0;
var cm_width29 = 0;
var cm_height30 = 0;
var cm_width30 = 0;
var cm_height31 = 0;
var cm_width31 = 0;
var cm_height32 = 0;
var cm_width32 = 0;
var cm_height33 = 0;
var cm_width33 = 0;
var cm_height34 = 0;
var cm_width34 = 0;
var cm_height35 = 0;
var cm_width35 = 0;
var cm_height36 = 0;
var cm_width36 = 0;
var cm_height37 = 0;
var cm_width37 = 0;
var cm_height38 = 0;
var cm_width38 = 0;
var cm_height39 = 0;
var cm_width39 = 0;
var cm_height40 = 0;
var cm_width40 = 0;
var cm_height41 = 0;
var cm_width41 = 0;
var cm_height42 = 0;
var cm_width42 = 0;
var cm_height43 = 0;
var cm_width43 = 0;
var cm_height44 = 0;
var cm_width44 = 0;
var cm_height45 = 0;
var cm_width45 = 0;
var cm_height46 = 0;
var cm_width46 = 0;
var cm_height47 = 0;
var cm_width47 = 0;
var cm_height48 = 0;
var cm_width48 = 0;
var cm_height49 = 0;
var cm_width49 = 0;
var cm_height50 = 0;
var cm_width50 = 0;
var cm_height51 = 0;
var cm_width51 = 0;
var cm_height52 = 0;
var cm_width52 = 0;
var cm_height53 = 0;
var cm_width53 = 0;
var cm_height54 = 0;
var cm_width54 = 0;
var cm_height55 = 0;
var cm_width55 = 0;
var cm_height56 = 0;
var cm_width56 = 0;
var cm_height57 = 0;
var cm_width57 = 0;
var cm_height58 = 0;
var cm_width58 = 0;
var cm_height59 = 0;
var cm_width59 = 0;
var cm_height60 = 0;
var cm_width60 = 0;
var cm_height61 = 0;
var cm_width61 = 0;
var cm_height62 = 0;
var cm_width62 = 0;
var cm_height63 = 0;
var cm_width63 = 0;
var cm_height64 = 0;
var cm_width64 = 0;
var cm_height65 = 0;
var cm_width65 = 0;
var cm_height66 = 0;
var cm_width66 = 0;
var cm_height67 = 0;
var cm_width67 = 0;
var cm_height68 = 0;
var cm_width68 = 0;
var cm_height69 = 0;
var cm_width69 = 0;
var cm_height70 = 0;
var cm_width70 = 0;
var cm_height71 = 0;
var cm_width71 = 0;
var cm_height72 = 0;
var cm_width72 = 0;
var cm_height73 = 0;
var cm_width73 = 0;
var cm_height74 = 0;
var cm_width74 = 0;
var cm_height75 = 0;
var cm_width75 = 0;
var cm_height76 = 0;
var cm_width76 = 0;
var cm_height77 = 0;
var cm_width77 = 0;
var cm_height78 = 0;
var cm_width78 = 0;
var cm_height79 = 0;
var cm_width79 = 0;
var cm_height80 = 0;
var cm_width80 = 0;
var cm_height81 = 0;
var cm_width81 = 0;
var cm_height82 = 0;
var cm_width82 = 0;
var cm_height83 = 0;
var cm_width83 = 0;
var cm_height84 = 0;
var cm_width84 = 0;
var cm_height85 = 0;
var cm_width85 = 0;
var cm_height86 = 0;
var cm_width86 = 0;
var cm_height87 = 0;
var cm_width87 = 0;
var cm_height88 = 0;
var cm_width88 = 0;
var cm_height89 = 0;
var cm_width89 = 0;
var cm_height90 = 0;
var cm_width90 = 0;
var cm_height91 = 0;
var cm_width91 = 0;
var cm_height92 = 0;
var cm_width92 = 0;
var cm_height93 = 0;
var cm_width93 = 0;
var cm_height94 = 0;
var cm_width94 = 0;
var cm_height95 = 0;
var cm_width95 = 0;
var cm_height96 = 0;
var cm_width96 = 0;
var cm_height97 = 0;
var cm_width97 = 0;
var cm_height98 = 0;
var cm_width98 = 0;
var cm_height99 = 0;
var cm_width99 = 0;
var cm_height100 = 0;
var cm_width100 = 0;

	// stores all offsetheights and offsetwidths of ul's
	var cm_fm_ul_store = document.getElementById("cm_navv").getElementsByTagName("UL");	
	for (var f=0; f<cm_fm_ul_store.length; f++) {
		if (cm_fm_ul_store.length >= 1) {
		if (f==1) {
		cm_height1 = cm_fm_ul_store[f].offsetHeight;
		cm_width1 = cm_fm_ul_store[f].offsetWidth;
		}
		if (cm_fm_ul_store.length >= 2) {
		if (f==2) {
		cm_height2 = cm_fm_ul_store[f].offsetHeight;
		cm_width2 = cm_fm_ul_store[f].offsetWidth;
		}
		if (cm_fm_ul_store.length >= 3) {
		if (f==3) {
		cm_height3 = cm_fm_ul_store[f].offsetHeight;
		cm_width3 = cm_fm_ul_store[f].offsetWidth;
		}
		if (cm_fm_ul_store.length >= 4) {
		if (f==4) {
		cm_height4 = cm_fm_ul_store[f].offsetHeight;
		cm_width4 = cm_fm_ul_store[f].offsetWidth;
		}
		if (cm_fm_ul_store.length >= 5) {
		if (f==5) {
		cm_height5 = cm_fm_ul_store[f].offsetHeight;
		cm_width5 = cm_fm_ul_store[f].offsetWidth;
		}
		if (cm_fm_ul_store.length >= 6) {
		if (f==6) {
		cm_height6 = cm_fm_ul_store[f].offsetHeight;
		cm_width6 = cm_fm_ul_store[f].offsetWidth;
		}
		if (cm_fm_ul_store.length >= 7) {
		if (f==7) {
		cm_height7 = cm_fm_ul_store[f].offsetHeight;
		cm_width7 = cm_fm_ul_store[f].offsetWidth;
		}
		if (cm_fm_ul_store.length >= 8) {
		if (f==8) {
		cm_height8 = cm_fm_ul_store[f].offsetHeight;
		cm_width8 = cm_fm_ul_store[f].offsetWidth;
		}
		if (cm_fm_ul_store.length >= 9) {
		if (f==9) {
		cm_height9 = cm_fm_ul_store[f].offsetHeight;
		cm_width9 = cm_fm_ul_store[f].offsetWidth;
		}
		if (cm_fm_ul_store.length >= 10) {
		if (f==10) {
		cm_height10 = cm_fm_ul_store[f].offsetHeight;
		cm_width10 = cm_fm_ul_store[f].offsetWidth;
		}
		if (cm_fm_ul_store.length >= 11) {
		if (f==11) {
		cm_height11 = cm_fm_ul_store[f].offsetHeight;
		cm_width11 = cm_fm_ul_store[f].offsetWidth;
		}
		if (cm_fm_ul_store.length >= 12) {
		if (f==12) {
		cm_height12 = cm_fm_ul_store[f].offsetHeight;
		cm_width12 = cm_fm_ul_store[f].offsetWidth;
		}
		if (cm_fm_ul_store.length >= 13) {
		if (f==13) {
		cm_height13 = cm_fm_ul_store[f].offsetHeight;
		cm_width13 = cm_fm_ul_store[f].offsetWidth;
		}
		if (cm_fm_ul_store.length >= 14) {
		if (f==14) {
		cm_height14 = cm_fm_ul_store[f].offsetHeight;
		cm_width14 = cm_fm_ul_store[f].offsetWidth;
		}
		if (cm_fm_ul_store.length >= 15) {
		if (f==15) {
		cm_height15 = cm_fm_ul_store[f].offsetHeight;
		cm_width15 = cm_fm_ul_store[f].offsetWidth;
		}
		if (cm_fm_ul_store.length >= 16) {
		if (f==16) {
		cm_height16 = cm_fm_ul_store[f].offsetHeight;
		cm_width16 = cm_fm_ul_store[f].offsetWidth;
		}
		if (cm_fm_ul_store.length >= 17) {
		if (f==17) {
		cm_height17 = cm_fm_ul_store[f].offsetHeight;
		cm_width17 = cm_fm_ul_store[f].offsetWidth;
		}
		if (cm_fm_ul_store.length >= 18) {
		if (f==18) {
		cm_height18 = cm_fm_ul_store[f].offsetHeight;
		cm_width18 = cm_fm_ul_store[f].offsetWidth;
		}
		if (cm_fm_ul_store.length >= 19) {
		if (f==19) {
		cm_height19 = cm_fm_ul_store[f].offsetHeight;
		cm_width19 = cm_fm_ul_store[f].offsetWidth;
		}
		if (cm_fm_ul_store.length >= 20) {
		if (f==20) {
		cm_height20 = cm_fm_ul_store[f].offsetHeight;
		cm_width20 = cm_fm_ul_store[f].offsetWidth;
		}
		if (f==21) {
		cm_height21 = cm_fm_ul_store[f].offsetHeight;
		cm_width21 = cm_fm_ul_store[f].offsetWidth;
		}
		if (f==22) {
		cm_height22 = cm_fm_ul_store[f].offsetHeight;
		cm_width22 = cm_fm_ul_store[f].offsetWidth;
		}
		if (f==23) {
		cm_height23 = cm_fm_ul_store[f].offsetHeight;
		cm_width23 = cm_fm_ul_store[f].offsetWidth;
		}
		if (f==24) {
		cm_height24 = cm_fm_ul_store[f].offsetHeight;
		cm_width24 = cm_fm_ul_store[f].offsetWidth;
		}
		if (cm_fm_ul_store.length >= 25) {
		if (f==25) {
		cm_height25 = cm_fm_ul_store[f].offsetHeight;
		cm_width25 = cm_fm_ul_store[f].offsetWidth;
		}
		if (f==26) {
		cm_height26 = cm_fm_ul_store[f].offsetHeight;
		cm_width26 = cm_fm_ul_store[f].offsetWidth;
		}
		if (f==27) {
		cm_height27 = cm_fm_ul_store[f].offsetHeight;
		cm_width27 = cm_fm_ul_store[f].offsetWidth;
		}
		if (f==28) {
		cm_height28 = cm_fm_ul_store[f].offsetHeight;
		cm_width28 = cm_fm_ul_store[f].offsetWidth;
		}
		if (f==29) {
		cm_height29 = cm_fm_ul_store[f].offsetHeight;
		cm_width29 = cm_fm_ul_store[f].offsetWidth;
		}
		if (cm_fm_ul_store.length >= 30) {
		if (f==30) {
		cm_height30 = cm_fm_ul_store[f].offsetHeight;
		cm_width30 = cm_fm_ul_store[f].offsetWidth;
		}
		if (f==31) {
		cm_height31 = cm_fm_ul_store[f].offsetHeight;
		cm_width31 = cm_fm_ul_store[f].offsetWidth;
		}
		if (f==32) {
		cm_height32 = cm_fm_ul_store[f].offsetHeight;
		cm_width32 = cm_fm_ul_store[f].offsetWidth;
		}
		if (f==33) {
		cm_height33 = cm_fm_ul_store[f].offsetHeight;
		cm_width33 = cm_fm_ul_store[f].offsetWidth;
		}
		if (f==34) {
		cm_height34 = cm_fm_ul_store[f].offsetHeight;
		cm_width34 = cm_fm_ul_store[f].offsetWidth;
		}
		if (cm_fm_ul_store.length >= 35) {
		if (f==35) {
		cm_height35 = cm_fm_ul_store[f].offsetHeight;
		cm_width35 = cm_fm_ul_store[f].offsetWidth;
		}
		if (f==36) {
		cm_height36 = cm_fm_ul_store[f].offsetHeight;
		cm_width36 = cm_fm_ul_store[f].offsetWidth;
		}
		if (f==37) {
		cm_height37 = cm_fm_ul_store[f].offsetHeight;
		cm_width37 = cm_fm_ul_store[f].offsetWidth;
		}
		if (f==38) {
		cm_height38 = cm_fm_ul_store[f].offsetHeight;
		cm_width38 = cm_fm_ul_store[f].offsetWidth;
		}
		if (f==39) {
		cm_height39 = cm_fm_ul_store[f].offsetHeight;
		cm_width39 = cm_fm_ul_store[f].offsetWidth;
		}
		if (cm_fm_ul_store.length >= 40) {
		if (f==40) {
		cm_height40 = cm_fm_ul_store[f].offsetHeight;
		cm_width40 = cm_fm_ul_store[f].offsetWidth;
		}
		if (f==41) {
		cm_height41 = cm_fm_ul_store[f].offsetHeight;
		cm_width41 = cm_fm_ul_store[f].offsetWidth;
		}
		if (f==42) {
		cm_height42 = cm_fm_ul_store[f].offsetHeight;
		cm_width42 = cm_fm_ul_store[f].offsetWidth;
		}
		if (f==43) {
		cm_height43 = cm_fm_ul_store[f].offsetHeight;
		cm_width43 = cm_fm_ul_store[f].offsetWidth;
		}
		if (f==44) {
		cm_height44 = cm_fm_ul_store[f].offsetHeight;
		cm_width44 = cm_fm_ul_store[f].offsetWidth;
		}
		if (cm_fm_ul_store.length >= 45) {
		if (f==45) {
		cm_height45 = cm_fm_ul_store[f].offsetHeight;
		cm_width45 = cm_fm_ul_store[f].offsetWidth;
		}
		if (f==46) {
		cm_height46 = cm_fm_ul_store[f].offsetHeight;
		cm_width46 = cm_fm_ul_store[f].offsetWidth;
		}
		if (f==47) {
		cm_height47 = cm_fm_ul_store[f].offsetHeight;
		cm_width47 = cm_fm_ul_store[f].offsetWidth;
		}
		if (f==48) {
		cm_height48 = cm_fm_ul_store[f].offsetHeight;
		cm_width48 = cm_fm_ul_store[f].offsetWidth;
		}
		if (f==49) {
		cm_height49 = cm_fm_ul_store[f].offsetHeight;
		cm_width49 = cm_fm_ul_store[f].offsetWidth;
		}
		if (cm_fm_ul_store.length >= 50) {
		if (f==50) {
		cm_height50 = cm_fm_ul_store[f].offsetHeight;
		cm_width50 = cm_fm_ul_store[f].offsetWidth;
		}
		if (f==51) {
		cm_height51 = cm_fm_ul_store[f].offsetHeight;
		cm_width51 = cm_fm_ul_store[f].offsetWidth;
		}
		if (f==52) {
		cm_height52 = cm_fm_ul_store[f].offsetHeight;
		cm_width52 = cm_fm_ul_store[f].offsetWidth;
		}
		if (f==53) {
		cm_height53 = cm_fm_ul_store[f].offsetHeight;
		cm_width53 = cm_fm_ul_store[f].offsetWidth;
		}
		if (f==54) {
		cm_height54 = cm_fm_ul_store[f].offsetHeight;
		cm_width54 = cm_fm_ul_store[f].offsetWidth;
		}
		if (cm_fm_ul_store.length >= 55) {
		if (f==55) {
		cm_height55 = cm_fm_ul_store[f].offsetHeight;
		cm_width55 = cm_fm_ul_store[f].offsetWidth;
		}
		if (f==56) {
		cm_height56 = cm_fm_ul_store[f].offsetHeight;
		cm_width56 = cm_fm_ul_store[f].offsetWidth;
		}
		if (f==57) {
		cm_height57 = cm_fm_ul_store[f].offsetHeight;
		cm_width57 = cm_fm_ul_store[f].offsetWidth;
		}
		if (f==58) {
		cm_height58 = cm_fm_ul_store[f].offsetHeight;
		cm_width58 = cm_fm_ul_store[f].offsetWidth;
		}
		if (f==59) {
		cm_height59 = cm_fm_ul_store[f].offsetHeight;
		cm_width59 = cm_fm_ul_store[f].offsetWidth;
		}
		if (cm_fm_ul_store.length >= 60) {
		if (f==60) {
		cm_height60 = cm_fm_ul_store[f].offsetHeight;
		cm_width60 = cm_fm_ul_store[f].offsetWidth;
		}
		if (f==61) {
		cm_height61 = cm_fm_ul_store[f].offsetHeight;
		cm_width61 = cm_fm_ul_store[f].offsetWidth;
		}
		if (f==62) {
		cm_height62 = cm_fm_ul_store[f].offsetHeight;
		cm_width62 = cm_fm_ul_store[f].offsetWidth;
		}
		if (f==63) {
		cm_height63 = cm_fm_ul_store[f].offsetHeight;
		cm_width63 = cm_fm_ul_store[f].offsetWidth;
		}
		if (f==64) {
		cm_height64 = cm_fm_ul_store[f].offsetHeight;
		cm_width64 = cm_fm_ul_store[f].offsetWidth;
		}
		if (cm_fm_ul_store.length >= 65) {
		if (f==65) {
		cm_height65 = cm_fm_ul_store[f].offsetHeight;
		cm_width65 = cm_fm_ul_store[f].offsetWidth;
		}
		if (f==66) {
		cm_height66 = cm_fm_ul_store[f].offsetHeight;
		cm_width66 = cm_fm_ul_store[f].offsetWidth;
		}
		if (f==67) {
		cm_height67 = cm_fm_ul_store[f].offsetHeight;
		cm_width67 = cm_fm_ul_store[f].offsetWidth;
		}
		if (f==68) {
		cm_height68 = cm_fm_ul_store[f].offsetHeight;
		cm_width68 = cm_fm_ul_store[f].offsetWidth;
		}
		if (f==69) {
		cm_height69 = cm_fm_ul_store[f].offsetHeight;
		cm_width69 = cm_fm_ul_store[f].offsetWidth;
		}
		if (cm_fm_ul_store.length >= 70) {
		if (f==70) {
		cm_height70 = cm_fm_ul_store[f].offsetHeight;
		cm_width70 = cm_fm_ul_store[f].offsetWidth;
		}
		if (f==71) {
		cm_height71 = cm_fm_ul_store[f].offsetHeight;
		cm_width71 = cm_fm_ul_store[f].offsetWidth;
		}
		if (f==72) {
		cm_height72 = cm_fm_ul_store[f].offsetHeight;
		cm_width72 = cm_fm_ul_store[f].offsetWidth;
		}
		if (f==73) {
		cm_height73 = cm_fm_ul_store[f].offsetHeight;
		cm_width73 = cm_fm_ul_store[f].offsetWidth;
		}
		if (f==74) {
		cm_height74 = cm_fm_ul_store[f].offsetHeight;
		cm_width74 = cm_fm_ul_store[f].offsetWidth;
		}
		if (cm_fm_ul_store.length >= 75) {
		if (f==75) {
		cm_height75 = cm_fm_ul_store[f].offsetHeight;
		cm_width75 = cm_fm_ul_store[f].offsetWidth;
		}
		if (f==76) {
		cm_height76 = cm_fm_ul_store[f].offsetHeight;
		cm_width76 = cm_fm_ul_store[f].offsetWidth;
		}
		if (f==77) {
		cm_height77 = cm_fm_ul_store[f].offsetHeight;
		cm_width77 = cm_fm_ul_store[f].offsetWidth;
		}
		if (f==78) {
		cm_height78 = cm_fm_ul_store[f].offsetHeight;
		cm_width78 = cm_fm_ul_store[f].offsetWidth;
		}
		if (f==79) {
		cm_height79 = cm_fm_ul_store[f].offsetHeight;
		cm_width79 = cm_fm_ul_store[f].offsetWidth;
		}
		if (cm_fm_ul_store.length >= 80) {
		if (f==80) {
		cm_height80 = cm_fm_ul_store[f].offsetHeight;
		cm_width80 = cm_fm_ul_store[f].offsetWidth;
		}
		if (f==81) {
		cm_height81 = cm_fm_ul_store[f].offsetHeight;
		cm_width81 = cm_fm_ul_store[f].offsetWidth;
		}
		if (f==82) {
		cm_height82 = cm_fm_ul_store[f].offsetHeight;
		cm_width82 = cm_fm_ul_store[f].offsetWidth;
		}
		if (f==83) {
		cm_height83 = cm_fm_ul_store[f].offsetHeight;
		cm_width83 = cm_fm_ul_store[f].offsetWidth;
		}
		if (f==84) {
		cm_height84 = cm_fm_ul_store[f].offsetHeight;
		cm_width84 = cm_fm_ul_store[f].offsetWidth;
		}
		if (cm_fm_ul_store.length >= 85) {
		if (f==85) {
		cm_height85 = cm_fm_ul_store[f].offsetHeight;
		cm_width85 = cm_fm_ul_store[f].offsetWidth;
		}
		if (f==86) {
		cm_height86 = cm_fm_ul_store[f].offsetHeight;
		cm_width86 = cm_fm_ul_store[f].offsetWidth;
		}
		if (f==87) {
		cm_height87 = cm_fm_ul_store[f].offsetHeight;
		cm_width87 = cm_fm_ul_store[f].offsetWidth;
		}
		if (f==88) {
		cm_height88 = cm_fm_ul_store[f].offsetHeight;
		cm_width88 = cm_fm_ul_store[f].offsetWidth;
		}
		if (f==89) {
		cm_height89 = cm_fm_ul_store[f].offsetHeight;
		cm_width89 = cm_fm_ul_store[f].offsetWidth;
		}
		if (cm_fm_ul_store.length >= 90) {
		if (f==90) {
		cm_height90 = cm_fm_ul_store[f].offsetHeight;
		cm_width90 = cm_fm_ul_store[f].offsetWidth;
		}
		if (f==91) {
		cm_height91 = cm_fm_ul_store[f].offsetHeight;
		cm_width91 = cm_fm_ul_store[f].offsetWidth;
		}
		if (f==92) {
		cm_height92 = cm_fm_ul_store[f].offsetHeight;
		cm_width92 = cm_fm_ul_store[f].offsetWidth;
		}
		if (f==93) {
		cm_height93 = cm_fm_ul_store[f].offsetHeight;
		cm_width93 = cm_fm_ul_store[f].offsetWidth;
		}
		if (f==94) {
		cm_height94 = cm_fm_ul_store[f].offsetHeight;
		cm_width94 = cm_fm_ul_store[f].offsetWidth;
		}
		if (cm_fm_ul_store.length >= 95) {
		if (f==95) {
		cm_height95 = cm_fm_ul_store[f].offsetHeight;
		cm_width95 = cm_fm_ul_store[f].offsetWidth;
		}
		if (f==96) {
		cm_height96 = cm_fm_ul_store[f].offsetHeight;
		cm_width96 = cm_fm_ul_store[f].offsetWidth;
		}
		if (f==97) {
		cm_height97 = cm_fm_ul_store[f].offsetHeight;
		cm_width97 = cm_fm_ul_store[f].offsetWidth;
		}
		if (f==98) {
		cm_height98 = cm_fm_ul_store[f].offsetHeight;
		cm_width98 = cm_fm_ul_store[f].offsetWidth;
		}
		if (f==99) {
		cm_height99 = cm_fm_ul_store[f].offsetHeight;
		cm_width99 = cm_fm_ul_store[f].offsetWidth;
		}
		if (f==100) {
		cm_height100 = cm_fm_ul_store[f].offsetHeight;
		cm_width100 = cm_fm_ul_store[f].offsetWidth;
		}
		}
		}
		}
		}
		}
		}
		}
		}
		}
		}
		}
		}
		}
		}
		}
		}
		}
		}
		}
		}
		}
		}
		}
		}
		}
		}
		}
		}
		}
		}
		}
		}
		}
		}
		}
	}
	
	var nn_global;
	var nn_holder_global;
	
	// resets all off-screen ul's
	function cm_fader_menu_set_none() {
	var cm_fm_ul2 = document.getElementById("cm_navv").getElementsByTagName("UL");
	var nn = 0;
	for (var n =0; n<cm_fm_ul2.length; n++) {
		id_cm_fm = cm_fm_ul2[n].id;
		cm_fm_ul2[n].style.filter = "none";
		if (id_cm_fm.charAt(8) != "0") {
			if (cm_fm_ul2[n].offsetLeft < 0) {
			
					var cm_opacc = 0; 
					document.getElementById(id_cm_fm).style.opacity = (cm_opacc / 100);
					document.getElementById(id_cm_fm).style.MozOpacity = (cm_opacc / 100);
					document.getElementById(id_cm_fm).style.KhtmlOpacity = (cm_opacc / 100);
					document.getElementById(id_cm_fm).style.filter = "alpha(opacity=" + cm_opacc + ")";
	
					if (cm_fm_ul2.length >= 1) {
					if (n==1) {
					cm_fm_ul2[n].style.height = (cm_height1 - 2) + "px";
					cm_fm_ul2[n].style.width = (cm_width1 - 2) + "px";
					}
					if (cm_fm_ul2.length >= 2) {
					if (n==2) {
					cm_fm_ul2[n].style.height = (cm_height2 - 2) + "px";
					cm_fm_ul2[n].style.width = (cm_width2 - 2) + "px";
					}
					if (cm_fm_ul2.length >= 3) {
					if (n==3) {
					cm_fm_ul2[n].style.height = (cm_height3 - 2) + "px";
					cm_fm_ul2[n].style.width = (cm_width3 - 2) + "px";
					}
					if (cm_fm_ul2.length >= 4) {
					if (n==4) {
					cm_fm_ul2[n].style.height = (cm_height4 - 3) + "px";
					cm_fm_ul2[n].style.width = (cm_width4 - 2) + "px";
					}
					if (cm_fm_ul2.length >= 5) {
					if (n==5) {
					cm_fm_ul2[n].style.height = (cm_height5 - 3) + "px";
					cm_fm_ul2[n].style.width = (cm_width5 - 2) + "px";
					}
					if (cm_fm_ul2.length >= 6) {
					if (n==6) {
					cm_fm_ul2[n].style.height = (cm_height6 - 2) + "px";
					cm_fm_ul2[n].style.width = (cm_width6 - 2) + "px";
					}
					if (cm_fm_ul2.length >= 7) {
					if (n==7) {
					cm_fm_ul2[n].style.height = (cm_height7 - 2) + "px";
					cm_fm_ul2[n].style.width = (cm_width7 - 2) + "px";
					}
					if (cm_fm_ul2.length >= 8) {
					if (n==8) {
					cm_fm_ul2[n].style.height = (cm_height8 - 2) + "px";
					cm_fm_ul2[n].style.width = (cm_width8 - 2) + "px";
					}
					if (cm_fm_ul2.length >= 9) {
					if (n==9) {
					cm_fm_ul2[n].style.height = (cm_height9 - 2) + "px";
					cm_fm_ul2[n].style.width = (cm_width9 - 2) + "px";
					}
					if (cm_fm_ul2.length >= 10) {
					if (n==10) {
					cm_fm_ul2[n].style.height = (cm_height10 - 2) + "px";
					cm_fm_ul2[n].style.width = (cm_width10 - 2) + "px";
					}
					if (cm_fm_ul2.length >= 11) {
					if (n==11) {
					cm_fm_ul2[n].style.height = (cm_height11 - 2) + "px";
					cm_fm_ul2[n].style.width = (cm_width11 - 2) + "px";
					}
					if (cm_fm_ul2.length >= 12) {
					if (n==12) {
					cm_fm_ul2[n].style.height = (cm_height12 - 2) + "px";
					cm_fm_ul2[n].style.width = (cm_width12 - 2) + "px";
					}
					if (cm_fm_ul2.length >= 13) {
					if (n==13) {
					cm_fm_ul2[n].style.height = (cm_height13 - 2) + "px";
					cm_fm_ul2[n].style.width = (cm_width13 - 2) + "px";
					}
					if (cm_fm_ul2.length >= 14) {
					if (n==14) {
					cm_fm_ul2[n].style.height = (cm_height14 - 2) + "px";
					cm_fm_ul2[n].style.width = (cm_width14 - 2) + "px";
					}
					if (cm_fm_ul2.length >= 15) {
					if (n==15) {
					cm_fm_ul2[n].style.height = (cm_height15 - 2) + "px";
					cm_fm_ul2[n].style.width = (cm_width15 - 2) + "px";
					}
					if (cm_fm_ul2.length >= 16) {
					if (n==16) {
					cm_fm_ul2[n].style.height = (cm_height16 - 2) + "px";
					cm_fm_ul2[n].style.width = (cm_width16 - 2) + "px";
					}
					if (cm_fm_ul2.length >= 17) {
					if (n==17) {
					cm_fm_ul2[n].style.height = (cm_height17 - 2) + "px";
					cm_fm_ul2[n].style.width = (cm_width17 - 2) + "px";
					}
					if (cm_fm_ul2.length >= 18) {
					if (n==18) {
					cm_fm_ul2[n].style.height = (cm_height18 - 2) + "px";
					cm_fm_ul2[n].style.width = (cm_width18 - 2) + "px";
					}
					if (cm_fm_ul2.length >= 19) {
					if (n==19) {
					cm_fm_ul2[n].style.height = (cm_height19 - 2) + "px";
					cm_fm_ul2[n].style.width = (cm_width19 - 2) + "px";
					}
					if (cm_fm_ul2.length >= 20) {
					if (n==20) {
					cm_fm_ul2[n].style.height = (cm_height20 - 2) + "px";
					cm_fm_ul2[n].style.width = (cm_width20 - 2) + "px";
					}
					if (n==21) {
					cm_fm_ul2[n].style.height = (cm_height21 - 2) + "px";
					cm_fm_ul2[n].style.width = (cm_width21 - 2) + "px";
					}
					if (n==22) {
					cm_fm_ul2[n].style.height = (cm_height22 - 2) + "px";
					cm_fm_ul2[n].style.width = (cm_width22 - 2) + "px";
					}
					if (n==23) {
					cm_fm_ul2[n].style.height = (cm_height23 - 2) + "px";
					cm_fm_ul2[n].style.width = (cm_width23 - 2) + "px";
					}
					if (n==24) {
					cm_fm_ul2[n].style.height = (cm_height24 - 2) + "px";
					cm_fm_ul2[n].style.width = (cm_width24 - 2) + "px";
					}
					if (cm_fm_ul2.length >= 25) {
					if (n==25) {
					cm_fm_ul2[n].style.height = (cm_height25 - 2) + "px";
					cm_fm_ul2[n].style.width = (cm_width25 - 2) + "px";
					}
					if (n==26) {
					cm_fm_ul2[n].style.height = (cm_height26 - 2) + "px";
					cm_fm_ul2[n].style.width = (cm_width26 - 2) + "px";
					}
					if (n==27) {
					cm_fm_ul2[n].style.height = (cm_height27 - 2) + "px";
					cm_fm_ul2[n].style.width = (cm_width27 - 2) + "px";
					}
					if (n==28) {
					cm_fm_ul2[n].style.height = (cm_height28 - 2) + "px";
					cm_fm_ul2[n].style.width = (cm_width28 - 2) + "px";
					}
					if (n==29) {
					cm_fm_ul2[n].style.height = (cm_height29 - 2) + "px";
					cm_fm_ul2[n].style.width = (cm_width29 - 2) + "px";
					}
					if (cm_fm_ul2.length >= 30) {
					if (n==30) {
					cm_fm_ul2[n].style.height = (cm_height30 - 2) + "px";
					cm_fm_ul2[n].style.width = (cm_width30 - 2) + "px";
					}
					if (n==31) {
					cm_fm_ul2[n].style.height = (cm_height31 - 2) + "px";
					cm_fm_ul2[n].style.width = (cm_width31 - 2) + "px";
					}
					if (n==32) {
					cm_fm_ul2[n].style.height = (cm_height32 - 2) + "px";
					cm_fm_ul2[n].style.width = (cm_width32 - 2) + "px";
					}
					if (n==33) {
					cm_fm_ul2[n].style.height = (cm_height33 - 2) + "px";
					cm_fm_ul2[n].style.width = (cm_width33 - 2) + "px";
					}
					if (n==34) {
					cm_fm_ul2[n].style.height = (cm_height34 - 2) + "px";
					cm_fm_ul2[n].style.width = (cm_width34 - 2) + "px";
					}
					if (cm_fm_ul2.length >= 35) {
					if (n==35) {
					cm_fm_ul2[n].style.height = (cm_height35 - 2) + "px";
					cm_fm_ul2[n].style.width = (cm_width35 - 2) + "px";
					}
					if (n==36) {
					cm_fm_ul2[n].style.height = (cm_height36 - 2) + "px";
					cm_fm_ul2[n].style.width = (cm_width36 - 2) + "px";
					}
					if (n==37) {
					cm_fm_ul2[n].style.height = (cm_height37 - 2) + "px";
					cm_fm_ul2[n].style.width = (cm_width37 - 2) + "px";
					}
					if (n==38) {
					cm_fm_ul2[n].style.height = (cm_height38 - 2) + "px";
					cm_fm_ul2[n].style.width = (cm_width38 - 2) + "px";
					}
					if (n==39) {
					cm_fm_ul2[n].style.height = (cm_height39 - 2) + "px";
					cm_fm_ul2[n].style.width = (cm_width39 - 2) + "px";
					}
					if (cm_fm_ul2.length >= 40) {
					if (n==40) {
					cm_fm_ul2[n].style.height = (cm_height40 - 2) + "px";
					cm_fm_ul2[n].style.width = (cm_width40 - 2) + "px";
					}
					if (n==41) {
					cm_fm_ul2[n].style.height = (cm_height41 - 2) + "px";
					cm_fm_ul2[n].style.width = (cm_width41 - 2) + "px";
					}
					if (n==42) {
					cm_fm_ul2[n].style.height = (cm_height42 - 2) + "px";
					cm_fm_ul2[n].style.width = (cm_width42 - 2) + "px";
					}
					if (n==43) {
					cm_fm_ul2[n].style.height = (cm_height43 - 2) + "px";
					cm_fm_ul2[n].style.width = (cm_width43 - 2) + "px";
					}
					if (n==44) {
					cm_fm_ul2[n].style.height = (cm_height44 - 2) + "px";
					cm_fm_ul2[n].style.width = (cm_width44 - 2) + "px";
					}
					if (cm_fm_ul2.length >= 45) {
					if (n==45) {
					cm_fm_ul2[n].style.height = (cm_height45 - 2) + "px";
					cm_fm_ul2[n].style.width = (cm_width45 - 2) + "px";
					}
					if (n==46) {
					cm_fm_ul2[n].style.height = (cm_height46 - 2) + "px";
					cm_fm_ul2[n].style.width = (cm_width46 - 2) + "px";
					}
					if (n==47) {
					cm_fm_ul2[n].style.height = (cm_height47 - 2) + "px";
					cm_fm_ul2[n].style.width = (cm_width47 - 2) + "px";
					}
					if (n==48) {
					cm_fm_ul2[n].style.height = (cm_height48 - 2) + "px";
					cm_fm_ul2[n].style.width = (cm_width48 - 2) + "px";
					}
					if (n==49) {
					cm_fm_ul2[n].style.height = (cm_height49 - 2) + "px";
					cm_fm_ul2[n].style.width = (cm_width49 - 2) + "px";
					}
					if (cm_fm_ul2.length >= 50) {
					if (n==50) {
					cm_fm_ul2[n].style.height = (cm_height50 - 2) + "px";
					cm_fm_ul2[n].style.width = (cm_width50 - 2) + "px";
					}
					if (n==51) {
					cm_fm_ul2[n].style.height = (cm_height51 - 2) + "px";
					cm_fm_ul2[n].style.width = (cm_width51 - 2) + "px";
					}
					if (n==52) {
					cm_fm_ul2[n].style.height = (cm_height52 - 2) + "px";
					cm_fm_ul2[n].style.width = (cm_width52 - 2) + "px";
					}
					if (n==53) {
					cm_fm_ul2[n].style.height = (cm_height53 - 2) + "px";
					cm_fm_ul2[n].style.width = (cm_width53 - 2) + "px";
					}
					if (n==54) {
					cm_fm_ul2[n].style.height = (cm_height54 - 2) + "px";
					cm_fm_ul2[n].style.width = (cm_width54 - 2) + "px";
					}
					if (cm_fm_ul2.length >= 55) {
					if (n==55) {
					cm_fm_ul2[n].style.height = (cm_height55 - 2) + "px";
					cm_fm_ul2[n].style.width = (cm_width55 - 2) + "px";
					}
					if (n==56) {
					cm_fm_ul2[n].style.height = (cm_height56 - 2) + "px";
					cm_fm_ul2[n].style.width = (cm_width56 - 2) + "px";
					}
					if (n==57) {
					cm_fm_ul2[n].style.height = (cm_height57 - 2) + "px";
					cm_fm_ul2[n].style.width = (cm_width57 - 2) + "px";
					}
					if (n==58) {
					cm_fm_ul2[n].style.height = (cm_height58 - 2) + "px";
					cm_fm_ul2[n].style.width = (cm_width58 - 2) + "px";
					}
					if (n==59) {
					cm_fm_ul2[n].style.height = (cm_height59 - 2) + "px";
					cm_fm_ul2[n].style.width = (cm_width59 - 2) + "px";
					}
					if (cm_fm_ul2.length >= 60) {
					if (n==60) {
					cm_fm_ul2[n].style.height = (cm_height60 - 2) + "px";
					cm_fm_ul2[n].style.width = (cm_width60 - 2) + "px";
					}
					if (n==61) {
					cm_fm_ul2[n].style.height = (cm_height61 - 2) + "px";
					cm_fm_ul2[n].style.width = (cm_width61 - 2) + "px";
					}
					if (n==62) {
					cm_fm_ul2[n].style.height = (cm_height62 - 2) + "px";
					cm_fm_ul2[n].style.width = (cm_width62 - 2) + "px";
					}
					if (n==63) {
					cm_fm_ul2[n].style.height = (cm_height63 - 2) + "px";
					cm_fm_ul2[n].style.width = (cm_width63 - 2) + "px";
					}
					if (n==64) {
					cm_fm_ul2[n].style.height = (cm_height64 - 2) + "px";
					cm_fm_ul2[n].style.width = (cm_width64 - 2) + "px";
					}
					if (cm_fm_ul2.length >= 65) {
					if (n==65) {
					cm_fm_ul2[n].style.height = (cm_height65 - 2) + "px";
					cm_fm_ul2[n].style.width = (cm_width65 - 2) + "px";
					}
					if (n==66) {
					cm_fm_ul2[n].style.height = (cm_height66 - 2) + "px";
					cm_fm_ul2[n].style.width = (cm_width66 - 2) + "px";
					}
					if (n==67) {
					cm_fm_ul2[n].style.height = (cm_height67 - 2) + "px";
					cm_fm_ul2[n].style.width = (cm_width67 - 2) + "px";
					}
					if (n==68) {
					cm_fm_ul2[n].style.height = (cm_height68 - 2) + "px";
					cm_fm_ul2[n].style.width = (cm_width68 - 2) + "px";
					}
					if (n==69) {
					cm_fm_ul2[n].style.height = (cm_height69 - 2) + "px";
					cm_fm_ul2[n].style.width = (cm_width69 - 2) + "px";
					}
					if (cm_fm_ul2.length >= 70) {
					if (n==70) {
					cm_fm_ul2[n].style.height = (cm_height70 - 2) + "px";
					cm_fm_ul2[n].style.width = (cm_width70 - 2) + "px";
					}
					if (n==71) {
					cm_fm_ul2[n].style.height = (cm_height71 - 2) + "px";
					cm_fm_ul2[n].style.width = (cm_width71 - 2) + "px";
					}
					if (n==72) {
					cm_fm_ul2[n].style.height = (cm_height72 - 2) + "px";
					cm_fm_ul2[n].style.width = (cm_width72 - 2) + "px";
					}
					if (n==73) {
					cm_fm_ul2[n].style.height = (cm_height73 - 2) + "px";
					cm_fm_ul2[n].style.width = (cm_width73 - 2) + "px";
					}
					if (n==74) {
					cm_fm_ul2[n].style.height = (cm_height74 - 2) + "px";
					cm_fm_ul2[n].style.width = (cm_width74 - 2) + "px";
					}
					if (cm_fm_ul2.length >= 75) {
					if (n==75) {
					cm_fm_ul2[n].style.height = (cm_height75 - 2) + "px";
					cm_fm_ul2[n].style.width = (cm_width75 - 2) + "px";
					}
					if (n==76) {
					cm_fm_ul2[n].style.height = (cm_height76 - 2) + "px";
					cm_fm_ul2[n].style.width = (cm_width76 - 2) + "px";
					}
					if (n==77) {
					cm_fm_ul2[n].style.height = (cm_height77 - 2) + "px";
					cm_fm_ul2[n].style.width = (cm_width77 - 2) + "px";
					}
					if (n==78) {
					cm_fm_ul2[n].style.height = (cm_height78 - 2) + "px";
					cm_fm_ul2[n].style.width = (cm_width78 - 2) + "px";
					}
					if (n==79) {
					cm_fm_ul2[n].style.height = (cm_height79 - 2) + "px";
					cm_fm_ul2[n].style.width = (cm_width79 - 2) + "px";
					}
					if (cm_fm_ul2.length >= 80) {
					if (n==80) {
					cm_fm_ul2[n].style.height = (cm_height80 - 2) + "px";
					cm_fm_ul2[n].style.width = (cm_width80 - 2) + "px";
					}
					if (n==81) {
					cm_fm_ul2[n].style.height = (cm_height81 - 2) + "px";
					cm_fm_ul2[n].style.width = (cm_width81 - 2) + "px";
					}
					if (n==82) {
					cm_fm_ul2[n].style.height = (cm_height82 - 2) + "px";
					cm_fm_ul2[n].style.width = (cm_width82 - 2) + "px";
					}
					if (n==83) {
					cm_fm_ul2[n].style.height = (cm_height83 - 2) + "px";
					cm_fm_ul2[n].style.width = (cm_width83 - 2) + "px";
					}
					if (n==84) {
					cm_fm_ul2[n].style.height = (cm_height84 - 2) + "px";
					cm_fm_ul2[n].style.width = (cm_width84 - 2) + "px";
					}
					if (cm_fm_ul2.length >= 85) {
					if (n==85) {
					cm_fm_ul2[n].style.height = (cm_height85 - 2) + "px";
					cm_fm_ul2[n].style.width = (cm_width85 - 2) + "px";
					}
					if (n==86) {
					cm_fm_ul2[n].style.height = (cm_height86 - 2) + "px";
					cm_fm_ul2[n].style.width = (cm_width86 - 2) + "px";
					}
					if (n==87) {
					cm_fm_ul2[n].style.height = (cm_height87 - 2) + "px";
					cm_fm_ul2[n].style.width = (cm_width87 - 2) + "px";
					}
					if (n==88) {
					cm_fm_ul2[n].style.height = (cm_height88 - 2) + "px";
					cm_fm_ul2[n].style.width = (cm_width88 - 2) + "px";
					}
					if (n==89) {
					cm_fm_ul2[n].style.height = (cm_height89 - 2) + "px";
					cm_fm_ul2[n].style.width = (cm_width89 - 2) + "px";
					}
					if (cm_fm_ul2.length >= 90) {
					if (n==90) {
					cm_fm_ul2[n].style.height = (cm_height90 - 2) + "px";
					cm_fm_ul2[n].style.width = (cm_width90 - 2) + "px";
					}
					if (n==91) {
					cm_fm_ul2[n].style.height = (cm_height91 - 2) + "px";
					cm_fm_ul2[n].style.width = (cm_width91 - 2) + "px";
					}
					if (n==92) {
					cm_fm_ul2[n].style.height = (cm_height92 - 2) + "px";
					cm_fm_ul2[n].style.width = (cm_width92 - 2) + "px";
					}
					if (n==93) {
					cm_fm_ul2[n].style.height = (cm_height93 - 2) + "px";
					cm_fm_ul2[n].style.width = (cm_width93 - 2) + "px";
					}
					if (n==94) {
					cm_fm_ul2[n].style.height = (cm_height94 - 2) + "px";
					cm_fm_ul2[n].style.width = (cm_width94 - 2) + "px";
					}
					if (cm_fm_ul2.length >= 95) {
					if (n==95) {
					cm_fm_ul2[n].style.height = (cm_height95 - 2) + "px";
					cm_fm_ul2[n].style.width = (cm_width95 - 2) + "px";
					}
					if (n==96) {
					cm_fm_ul2[n].style.height = (cm_height96 - 2) + "px";
					cm_fm_ul2[n].style.width = (cm_width96 - 2) + "px";
					}
					if (n==97) {
					cm_fm_ul2[n].style.height = (cm_height97 - 2) + "px";
					cm_fm_ul2[n].style.width = (cm_width97 - 2) + "px";
					}
					if (n==98) {
					cm_fm_ul2[n].style.height = (cm_height98 - 2) + "px";
					cm_fm_ul2[n].style.width = (cm_width98 - 2) + "px";
					}
					if (n==99) {
					cm_fm_ul2[n].style.height = (cm_height99 - 2) + "px";
					cm_fm_ul2[n].style.width = (cm_width99 - 2) + "px";
					}
					if (n==100) {
					cm_fm_ul2[n].style.height = (cm_height100 - 2) + "px";
					cm_fm_ul2[n].style.width = (cm_width100 - 2) + "px";
					}
					}
					}
					}
					}
					}
					}
					}
					}
					}
					}
					}
					}
					}
					}
					}
					}
					}
					}
					}
					}
					}
					}
					}
					}
					}
					}
					}
					}
					}
					}
					}
					}
					}
					}
					}
					
				cm_fm_ul2[n].style.display = "none";
				cm_fm_ul2[n].style.visibility = "hidden";
			}
		}
		nn = nn + 1;
	}

	}
	
	cm_fader_menu_set_none();
	var myInter_cm;
	myInter_cm = window.setInterval("cm_fader_menu_set_none()",600);
	
function cm_fader_menu_hide() {
	opacity_cm_fm(id_cm_fm, 100, 0, 1);
}

var cm_fm_height;
var cm_fm_width;

function cm_fader_menu_show() {
	opacity_cm_fm(id_cm_fm, 0, 100, 600);
	cm_fader_menu_show_block();
}

var cm_n;

// show the ul's
function cm_fader_menu_show_block() {
	document.getElementById(cm_ul).style.overflow = "hidden";
	document.getElementById(cm_ul).style.visibility = "hidden";
	document.getElementById(cm_ul).style.display = "block";
	cm_fm_height = document.getElementById(cm_ul).offsetHeight;
	cm_fm_width = document.getElementById(cm_ul).offsetWidth;
	document.getElementById(cm_ul).style.height = "0px";
	document.getElementById(cm_ul).style.width = "0px";
			var cm_id_num1 = cm_ul.charAt(8);
			var cm_id_num2 = 0;
			var cm_id_num3 = 0;
			cm_id_num2 = theId.charAt(9);
			cm_id_num3 = theId.charAt(10);
			cm_n = cm_id_num1 + cm_id_num2 + cm_id_num3;
			document.getElementById(cm_ul).style.visibility = "visible";
			document.getElementById(cm_ul).style.filter = "none";
			
	checkVersion_cm();
	cm_fader_menu_effect_loader();
}

// detect IE
var cm_browser_detect_fader = 0;

function getInternetExplorerVersion_cm() {
  var rv = -1; // Return value assumes failure.
  if (navigator.appName == 'Microsoft Internet Explorer')
  {
  cm_browser_detect_fader = 1;
    var ua = navigator.userAgent;
    var re  = new RegExp("MSIE ([0-9]{1,}[\.0-9]{0,})");
    if (re.exec(ua) != null)
      rv = parseFloat( RegExp.$1 );
  }
  return rv;
}

function checkVersion_cm() {
  var ver = getInternetExplorerVersion_cm();
}

var myInterval_cm = 0;

function cm_fader_menu_effect_loader() {
if (cm_browser_detect_fader == "1") {
clearInterval(myInterval_cm);
myInterval_cm = 0;
myInterval_cm = window.setInterval("cm_fader_menu_effect()",30);
}
else {
clearInterval(myInterval_cm);
myInterval_cm = 0;
myInterval_cm = window.setInterval("cm_fader_menu_effect()",30);
}
}

var cm_browser = navigator.appVersion;
var cm_ie_old;

if (cm_browser.indexOf('MSIE 6.0') > 0 || cm_browser.indexOf('MSIE 7.0') > 0) {
cm_ie_old = 1;
}


// drop in effect
function cm_fader_menu_effect() {
			
			if (document.getElementById(cm_ul).offsetHeight < ((cm_fm_height)-1)) {

			if (document.getElementById(cm_ul).offsetHeight > (cm_fm_height*.75)) {
				if (cm_ie_old == "1") {
					document.getElementById(cm_ul).style.filter = "none";
				}
			}
					document.getElementById(cm_ul).style.height = document.getElementById(cm_ul).offsetHeight + (cm_fm_height * 1) -4 + "px";
					document.getElementById(cm_ul).style.width = document.getElementById(cm_ul).offsetWidth + (cm_fm_width * 1) + "px";
			}
			
			else {
			
			window.clearInterval(myInterval_cm);
			myInterval_cm = 0;
			
					if (cm_n=="1") {
					document.getElementById(cm_ul).style.height = (cm_height1 - 2) + "px";
					document.getElementById(cm_ul).style.width = (cm_width1 - 2) + "px";
					}
					if (cm_n=="2") {
					document.getElementById(cm_ul).style.height = (cm_height2 - 2) + "px";
					document.getElementById(cm_ul).style.width = (cm_width2 - 2) + "px";
					}
					if (cm_n=="3") {
					document.getElementById(cm_ul).style.height = (cm_height3 - 2) + "px";
					document.getElementById(cm_ul).style.width = (cm_width3 - 2) + "px";
					}
					if (cm_n=="4") {
					document.getElementById(cm_ul).style.height = (cm_height4 - 2) + "px";
					document.getElementById(cm_ul).style.width = (cm_width4 - 2) + "px";
					}
					if (cm_n=="5") {
					document.getElementById(cm_ul).style.height = (cm_height5 - 2) + "px";
					document.getElementById(cm_ul).style.width = (cm_width5 - 2) + "px";
					}
					if (cm_n=="6") {
					document.getElementById(cm_ul).style.height = (cm_height6 - 2) + "px";
					document.getElementById(cm_ul).style.width = (cm_width6 - 2) + "px";
					}
					if (cm_n=="7") {
					document.getElementById(cm_ul).style.height = (cm_height7 - 2) + "px";
					document.getElementById(cm_ul).style.width = (cm_width7 - 2) + "px";
					}
					if (cm_n=="8") {
					document.getElementById(cm_ul).style.height = (cm_height8 - 2) + "px";
					document.getElementById(cm_ul).style.width = (cm_width8 - 2) + "px";
					}
					if (cm_n=="9") {
					document.getElementById(cm_ul).style.height = (cm_height9 - 2) + "px";
					document.getElementById(cm_ul).style.width = (cm_width9 - 2) + "px";
					}
					if (cm_n=="10") {
					document.getElementById(cm_ul).style.height = (cm_height10 - 2) + "px";
					document.getElementById(cm_ul).style.width = (cm_width10 - 2) + "px";
					}
					if (cm_n=="11") {
					document.getElementById(cm_ul).style.height = (cm_height11 - 2) + "px";
					document.getElementById(cm_ul).style.width = (cm_width11 - 2) + "px";
					}
					if (cm_n=="12") {
					document.getElementById(cm_ul).style.height = (cm_height12 - 2) + "px";
					document.getElementById(cm_ul).style.width = (cm_width12 - 2) + "px";
					}
					if (cm_n=="13") {
					document.getElementById(cm_ul).style.height = (cm_height13 - 2) + "px";
					document.getElementById(cm_ul).style.width = (cm_width13 - 2) + "px";
					}
					if (cm_n=="14") {
					document.getElementById(cm_ul).style.height = (cm_height14 - 2) + "px";
					document.getElementById(cm_ul).style.width = (cm_width14 - 2) + "px";
					}
					if (cm_n=="15") {
					document.getElementById(cm_ul).style.height = (cm_height15 - 2) + "px";
					document.getElementById(cm_ul).style.width = (cm_width15 - 2) + "px";
					}
					if (cm_n=="16") {
					document.getElementById(cm_ul).style.height = (cm_height16 - 2) + "px";
					document.getElementById(cm_ul).style.width = (cm_width16 - 2) + "px";
					}
					if (cm_n=="17") {
					document.getElementById(cm_ul).style.height = (cm_height17 - 2) + "px";
					document.getElementById(cm_ul).style.width = (cm_width17 - 2) + "px";
					}
					if (cm_n=="18") {
					document.getElementById(cm_ul).style.height = (cm_height18 - 2) + "px";
					document.getElementById(cm_ul).style.width = (cm_width18 - 2) + "px";
					}
					if (cm_n=="19") {
					document.getElementById(cm_ul).style.height = (cm_height19 - 2) + "px";
					document.getElementById(cm_ul).style.width = (cm_width19 - 2) + "px";
					}
					if (cm_n=="20") {
					document.getElementById(cm_ul).style.height = (cm_height20 - 2) + "px";
					document.getElementById(cm_ul).style.width = (cm_width20 - 2) + "px";
					}
					if (cm_n=="21") {
					document.getElementById(cm_ul).style.height = (cm_height21 - 2) + "px";
					document.getElementById(cm_ul).style.width = (cm_width21 - 2) + "px";
					}
					if (cm_n=="22") {
					document.getElementById(cm_ul).style.height = (cm_height22 - 2) + "px";
					document.getElementById(cm_ul).style.width = (cm_width22 - 2) + "px";
					}
					if (cm_n=="23") {
					document.getElementById(cm_ul).style.height = (cm_height23 - 2) + "px";
					document.getElementById(cm_ul).style.width = (cm_width23 - 2) + "px";
					}
					if (cm_n=="24") {
					document.getElementById(cm_ul).style.height = (cm_height24 - 2) + "px";
					document.getElementById(cm_ul).style.width = (cm_width24 - 2) + "px";
					}
					if (cm_n=="25") {
					document.getElementById(cm_ul).style.height = (cm_height25 - 2) + "px";
					document.getElementById(cm_ul).style.width = (cm_width25 - 2) + "px";
					}
					if (cm_n=="26") {
					document.getElementById(cm_ul).style.height = (cm_height26 - 2) + "px";
					document.getElementById(cm_ul).style.width = (cm_width26 - 2) + "px";
					}
					if (cm_n=="27") {
					document.getElementById(cm_ul).style.height = (cm_height27 - 2) + "px";
					document.getElementById(cm_ul).style.width = (cm_width27 - 2) + "px";
					}
					if (cm_n=="28") {
					document.getElementById(cm_ul).style.height = (cm_height28 - 2) + "px";
					document.getElementById(cm_ul).style.width = (cm_width28 - 2) + "px";
					}
					if (cm_n=="29") {
					document.getElementById(cm_ul).style.height = (cm_height29 - 2) + "px";
					document.getElementById(cm_ul).style.width = (cm_width29 - 2) + "px";
					}
					if (cm_n=="30") {
					document.getElementById(cm_ul).style.height = (cm_height30 - 2) + "px";
					document.getElementById(cm_ul).style.width = (cm_width30 - 2) + "px";
					}
					if (cm_n=="31") {
					document.getElementById(cm_ul).style.height = (cm_height31 - 2) + "px";
					document.getElementById(cm_ul).style.width = (cm_width31 - 2) + "px";
					}
					if (cm_n=="32") {
					document.getElementById(cm_ul).style.height = (cm_height32 - 2) + "px";
					document.getElementById(cm_ul).style.width = (cm_width32 - 2) + "px";
					}
					if (cm_n=="33") {
					document.getElementById(cm_ul).style.height = (cm_height33 - 2) + "px";
					document.getElementById(cm_ul).style.width = (cm_width33 - 2) + "px";
					}
					if (cm_n=="34") {
					document.getElementById(cm_ul).style.height = (cm_height34 - 2) + "px";
					document.getElementById(cm_ul).style.width = (cm_width34 - 2) + "px";
					}
					if (cm_n=="35") {
					document.getElementById(cm_ul).style.height = (cm_height35 - 2) + "px";
					document.getElementById(cm_ul).style.width = (cm_width35 - 2) + "px";
					}
					if (cm_n=="36") {
					document.getElementById(cm_ul).style.height = (cm_height36 - 2) + "px";
					document.getElementById(cm_ul).style.width = (cm_width36 - 2) + "px";
					}
					if (cm_n=="37") {
					document.getElementById(cm_ul).style.height = (cm_height37 - 2) + "px";
					document.getElementById(cm_ul).style.width = (cm_width37 - 2) + "px";
					}
					if (cm_n=="38") {
					document.getElementById(cm_ul).style.height = (cm_height38 - 2) + "px";
					document.getElementById(cm_ul).style.width = (cm_width38 - 2) + "px";
					}
					if (cm_n=="39") {
					document.getElementById(cm_ul).style.height = (cm_height39 - 2) + "px";
					document.getElementById(cm_ul).style.width = (cm_width39 - 2) + "px";
					}
					if (cm_n=="40") {
					document.getElementById(cm_ul).style.height = (cm_height40 - 2) + "px";
					document.getElementById(cm_ul).style.width = (cm_width40 - 2) + "px";
					}
					if (cm_n=="41") {
					document.getElementById(cm_ul).style.height = (cm_height41 - 2) + "px";
					document.getElementById(cm_ul).style.width = (cm_width41 - 2) + "px";
					}
					if (cm_n=="42") {
					document.getElementById(cm_ul).style.height = (cm_height42 - 2) + "px";
					document.getElementById(cm_ul).style.width = (cm_width42 - 2) + "px";
					}
					if (cm_n=="43") {
					document.getElementById(cm_ul).style.height = (cm_height43 - 2) + "px";
					document.getElementById(cm_ul).style.width = (cm_width43 - 2) + "px";
					}
					if (cm_n=="44") {
					document.getElementById(cm_ul).style.height = (cm_height44 - 2) + "px";
					document.getElementById(cm_ul).style.width = (cm_width44 - 2) + "px";
					}
					if (cm_n=="45") {
					document.getElementById(cm_ul).style.height = (cm_height45 - 2) + "px";
					document.getElementById(cm_ul).style.width = (cm_width45 - 2) + "px";
					}
					if (cm_n=="46") {
					document.getElementById(cm_ul).style.height = (cm_height46 - 2) + "px";
					document.getElementById(cm_ul).style.width = (cm_width46 - 2) + "px";
					}
					if (cm_n=="47") {
					document.getElementById(cm_ul).style.height = (cm_height47 - 2) + "px";
					document.getElementById(cm_ul).style.width = (cm_width47 - 2) + "px";
					}
					if (cm_n=="48") {
					document.getElementById(cm_ul).style.height = (cm_height48 - 2) + "px";
					document.getElementById(cm_ul).style.width = (cm_width48 - 2) + "px";
					}
					if (cm_n=="49") {
					document.getElementById(cm_ul).style.height = (cm_height49 - 2) + "px";
					document.getElementById(cm_ul).style.width = (cm_width49 - 2) + "px";
					}
					if (cm_n=="50") {
					document.getElementById(cm_ul).style.height = (cm_height50 - 2) + "px";
					document.getElementById(cm_ul).style.width = (cm_width50 - 2) + "px";
					}
					if (cm_n=="51") {
					document.getElementById(cm_ul).style.height = (cm_height51 - 2) + "px";
					document.getElementById(cm_ul).style.width = (cm_width51 - 2) + "px";
					}
					if (cm_n=="52") {
					document.getElementById(cm_ul).style.height = (cm_height52 - 2) + "px";
					document.getElementById(cm_ul).style.width = (cm_width52 - 2) + "px";
					}
					if (cm_n=="53") {
					document.getElementById(cm_ul).style.height = (cm_height53 - 2) + "px";
					document.getElementById(cm_ul).style.width = (cm_width53 - 2) + "px";
					}
					if (cm_n=="54") {
					document.getElementById(cm_ul).style.height = (cm_height54 - 2) + "px";
					document.getElementById(cm_ul).style.width = (cm_width54 - 2) + "px";
					}
					if (cm_n=="55") {
					document.getElementById(cm_ul).style.height = (cm_height55 - 2) + "px";
					document.getElementById(cm_ul).style.width = (cm_width55 - 2) + "px";
					}
					if (cm_n=="56") {
					document.getElementById(cm_ul).style.height = (cm_height56 - 2) + "px";
					document.getElementById(cm_ul).style.width = (cm_width56 - 2) + "px";
					}
					if (cm_n=="57") {
					document.getElementById(cm_ul).style.height = (cm_height57 - 2) + "px";
					document.getElementById(cm_ul).style.width = (cm_width57 - 2) + "px";
					}
					if (cm_n=="58") {
					document.getElementById(cm_ul).style.height = (cm_height58 - 2) + "px";
					document.getElementById(cm_ul).style.width = (cm_width58 - 2) + "px";
					}
					if (cm_n=="59") {
					document.getElementById(cm_ul).style.height = (cm_height59 - 2) + "px";
					document.getElementById(cm_ul).style.width = (cm_width59 - 2) + "px";
					}
					if (cm_n=="60") {
					document.getElementById(cm_ul).style.height = (cm_height60 - 2) + "px";
					document.getElementById(cm_ul).style.width = (cm_width60 - 2) + "px";
					}
					if (cm_n=="61") {
					document.getElementById(cm_ul).style.height = (cm_height61 - 2) + "px";
					document.getElementById(cm_ul).style.width = (cm_width61 - 2) + "px";
					}
					if (cm_n=="62") {
					document.getElementById(cm_ul).style.height = (cm_height62 - 2) + "px";
					document.getElementById(cm_ul).style.width = (cm_width62 - 2) + "px";
					}
					if (cm_n=="63") {
					document.getElementById(cm_ul).style.height = (cm_height63 - 2) + "px";
					document.getElementById(cm_ul).style.width = (cm_width63 - 2) + "px";
					}
					if (cm_n=="64") {
					document.getElementById(cm_ul).style.height = (cm_height64 - 2) + "px";
					document.getElementById(cm_ul).style.width = (cm_width64 - 2) + "px";
					}
					if (cm_n=="65") {
					document.getElementById(cm_ul).style.height = (cm_height65 - 2) + "px";
					document.getElementById(cm_ul).style.width = (cm_width65 - 2) + "px";
					}
					if (cm_n=="66") {
					document.getElementById(cm_ul).style.height = (cm_height66 - 2) + "px";
					document.getElementById(cm_ul).style.width = (cm_width66 - 2) + "px";
					}
					if (cm_n=="67") {
					document.getElementById(cm_ul).style.height = (cm_height67 - 2) + "px";
					document.getElementById(cm_ul).style.width = (cm_width67 - 2) + "px";
					}
					if (cm_n=="68") {
					document.getElementById(cm_ul).style.height = (cm_height68 - 2) + "px";
					document.getElementById(cm_ul).style.width = (cm_width68 - 2) + "px";
					}
					if (cm_n=="69") {
					document.getElementById(cm_ul).style.height = (cm_height69 - 2) + "px";
					document.getElementById(cm_ul).style.width = (cm_width69 - 2) + "px";
					}
					if (cm_n=="70") {
					document.getElementById(cm_ul).style.height = (cm_height70 - 2) + "px";
					document.getElementById(cm_ul).style.width = (cm_width70 - 2) + "px";
					}
					if (cm_n=="71") {
					document.getElementById(cm_ul).style.height = (cm_height71 - 2) + "px";
					document.getElementById(cm_ul).style.width = (cm_width71 - 2) + "px";
					}
					if (cm_n=="72") {
					document.getElementById(cm_ul).style.height = (cm_height72 - 2) + "px";
					document.getElementById(cm_ul).style.width = (cm_width72 - 2) + "px";
					}
					if (cm_n=="73") {
					document.getElementById(cm_ul).style.height = (cm_height73 - 2) + "px";
					document.getElementById(cm_ul).style.width = (cm_width73 - 2) + "px";
					}
					if (cm_n=="74") {
					document.getElementById(cm_ul).style.height = (cm_height74 - 2) + "px";
					document.getElementById(cm_ul).style.width = (cm_width74 - 2) + "px";
					}
					if (cm_n=="75") {
					document.getElementById(cm_ul).style.height = (cm_height75 - 2) + "px";
					document.getElementById(cm_ul).style.width = (cm_width75 - 2) + "px";
					}
					if (cm_n=="76") {
					document.getElementById(cm_ul).style.height = (cm_height76 - 2) + "px";
					document.getElementById(cm_ul).style.width = (cm_width76 - 2) + "px";
					}
					if (cm_n=="77") {
					document.getElementById(cm_ul).style.height = (cm_height77 - 2) + "px";
					document.getElementById(cm_ul).style.width = (cm_width77 - 2) + "px";
					}
					if (cm_n=="78") {
					document.getElementById(cm_ul).style.height = (cm_height78 - 2) + "px";
					document.getElementById(cm_ul).style.width = (cm_width78 - 2) + "px";
					}
					if (cm_n=="79") {
					document.getElementById(cm_ul).style.height = (cm_height79 - 2) + "px";
					document.getElementById(cm_ul).style.width = (cm_width79 - 2) + "px";
					}
					if (cm_n=="80") {
					document.getElementById(cm_ul).style.height = (cm_height80 - 2) + "px";
					document.getElementById(cm_ul).style.width = (cm_width80 - 2) + "px";
					}
					if (cm_n=="81") {
					document.getElementById(cm_ul).style.height = (cm_height81 - 2) + "px";
					document.getElementById(cm_ul).style.width = (cm_width81 - 2) + "px";
					}
					if (cm_n=="82") {
					document.getElementById(cm_ul).style.height = (cm_height82 - 2) + "px";
					document.getElementById(cm_ul).style.width = (cm_width82 - 2) + "px";
					}
					if (cm_n=="83") {
					document.getElementById(cm_ul).style.height = (cm_height83 - 2) + "px";
					document.getElementById(cm_ul).style.width = (cm_width83 - 2) + "px";
					}
					if (cm_n=="84") {
					document.getElementById(cm_ul).style.height = (cm_height84 - 2) + "px";
					document.getElementById(cm_ul).style.width = (cm_width84 - 2) + "px";
					}
					if (cm_n=="85") {
					document.getElementById(cm_ul).style.height = (cm_height85 - 2) + "px";
					document.getElementById(cm_ul).style.width = (cm_width85 - 2) + "px";
					}
					if (cm_n=="86") {
					document.getElementById(cm_ul).style.height = (cm_height86 - 2) + "px";
					document.getElementById(cm_ul).style.width = (cm_width86 - 2) + "px";
					}
					if (cm_n=="87") {
					document.getElementById(cm_ul).style.height = (cm_height87 - 2) + "px";
					document.getElementById(cm_ul).style.width = (cm_width87 - 2) + "px";
					}
					if (cm_n=="88") {
					document.getElementById(cm_ul).style.height = (cm_height88 - 2) + "px";
					document.getElementById(cm_ul).style.width = (cm_width88 - 2) + "px";
					}
					if (cm_n=="89") {
					document.getElementById(cm_ul).style.height = (cm_height89 - 2) + "px";
					document.getElementById(cm_ul).style.width = (cm_width89 - 2) + "px";
					}
					if (cm_n=="90") {
					document.getElementById(cm_ul).style.height = (cm_height90 - 2) + "px";
					document.getElementById(cm_ul).style.width = (cm_width90 - 2) + "px";
					}
					if (cm_n=="91") {
					document.getElementById(cm_ul).style.height = (cm_height91 - 2) + "px";
					document.getElementById(cm_ul).style.width = (cm_width91 - 2) + "px";
					}
					if (cm_n=="92") {
					document.getElementById(cm_ul).style.height = (cm_height92 - 2) + "px";
					document.getElementById(cm_ul).style.width = (cm_width92 - 2) + "px";
					}
					if (cm_n=="93") {
					document.getElementById(cm_ul).style.height = (cm_height93 - 2) + "px";
					document.getElementById(cm_ul).style.width = (cm_width93 - 2) + "px";
					}
					if (cm_n=="94") {
					document.getElementById(cm_ul).style.height = (cm_height94 - 2) + "px";
					document.getElementById(cm_ul).style.width = (cm_width94 - 2) + "px";
					}
					if (cm_n=="95") {
					document.getElementById(cm_ul).style.height = (cm_height95 - 2) + "px";
					document.getElementById(cm_ul).style.width = (cm_width95 - 2) + "px";
					}
					if (cm_n=="96") {
					document.getElementById(cm_ul).style.height = (cm_height96 - 2) + "px";
					document.getElementById(cm_ul).style.width = (cm_width96 - 2) + "px";
					}
					if (cm_n=="97") {
					document.getElementById(cm_ul).style.height = (cm_height97 - 2) + "px";
					document.getElementById(cm_ul).style.width = (cm_width97 - 2) + "px";
					}
					if (cm_n=="98") {
					document.getElementById(cm_ul).style.height = (cm_height98 - 2) + "px";
					document.getElementById(cm_ul).style.width = (cm_width98 - 2) + "px";
					}
					if (cm_n=="99") {
					document.getElementById(cm_ul).style.height = (cm_height99 - 2) + "px";
					document.getElementById(cm_ul).style.width = (cm_width99 - 2) + "px";
					}
					if (cm_n=="100") {
					document.getElementById(cm_ul).style.height = (cm_height100 - 2) + "px";
					document.getElementById(cm_ul).style.width = (cm_width100 - 2) + "px";
					}
					
					document.getElementById(cm_ul).style.overflow = "visible";
	
					}
}

// grabs the id of element hover overed
var theId;
function grabID_cm_fm(e) {
var targ;
if (!e) var e = window.event;
if (e.target) targ = e.target;
else if (e.srcElement) targ = e.srcElement;
if (targ.nodeType == 3)
targ = targ.parentNode;
theId=targ.id
check_id_second();
}

function check_id_timer() {
window.setTimeout('check_id()',1);
}

function check_id() {
if (myInterval_cm != "0") {
document.getElementById(cm_ul).style.overflow = "hidden";
cm_fader_menu_effect_loader();
}
else {
document.getElementById("cm_navv").onmouseover=grabID_cm_fm;
}
}

function check_id_second() {
document.getElementById("cm_navv").onmouseover=grabID_cm_fm;
if (theId) {

if (theId.charAt(6) == "a" || theId.charAt(6) == "l" || theId.charAt(6) == "u" &&  theId.charAt(8) != "0") {

			var cm_id_text = "cm_fm_ul";
			var cm_id_num1 = theId.charAt(8);
			var cm_id_num2 = 0;
			var cm_id_num3 = 0;
			cm_id_num2 = theId.charAt(9);
			cm_id_num3 = theId.charAt(10);
			cm_ul = cm_id_text + cm_id_num1 + cm_id_num2 + cm_id_num3;
			id_cm_fm = cm_ul;

			if (document.getElementById(cm_ul).style.display != "block") {
				cm_fader_menu_hide();
				cm_fader_menu_show();
			}

	}
}
}

var is_ie_cm_fm/*@cc_on = {
  // quirksmode : (document.compatMode=="BackCompat"),
  version : parseFloat(navigator.appVersion.match(/MSIE (.+?);/)[1])
}@*/;

function opacity_cm_fm(id_cm_fm, opacStart_cm_fm, opacEnd_cm_fm, millisec_cm_fm) {
	//speed for each frame
	var speed_cm_fm = Math.round(millisec_cm_fm / 100);
	var timer_cm_fm = 0;
	//determine the direction for the blending, if start and end are the same nothing happens
	if(opacStart_cm_fm > opacEnd_cm_fm) {
		for(i = opacStart_cm_fm; i >= opacEnd_cm_fm; i--) {
			setTimeout("changeOpac_cm_fm(" + i + ",'" + id_cm_fm + "')",(timer_cm_fm * speed_cm_fm));
			timer_cm_fm++;
		}
	} else if(opacStart_cm_fm < opacEnd_cm_fm) {
		for(i = opacStart_cm_fm; i <= opacEnd_cm_fm; i++)
			{
			setTimeout("changeOpac_cm_fm(" + i + ",'" + id_cm_fm + "')",(timer_cm_fm * speed_cm_fm));
			timer_cm_fm++;
		}
	}
}

//change the opacity for different browsers
function changeOpac_cm_fm(opacity_cm_fm, id_cm_fm) {
	var object_cm_fm = document.getElementById(id_cm_fm).style; 
	object_cm_fm.opacity = (opacity_cm_fm / 100);
	object_cm_fm.MozOpacity = (opacity_cm_fm / 100);
	object_cm_fm.KhtmlOpacity = (opacity_cm_fm / 100);
    object_cm_fm.filter = "alpha(opacity=" + opacity_cm_fm + ")";
}

function blendimage_cm_fm(divid_cm_fm, imageid_cm_fm, imagefile_cm_fm, millisec_cm_fm) {
	var speed_cm_fm = Math.round(millisec_cm_fm / 100);
	var timer_cm_fm = 0;
	
	//set the current image as background
	document.getElementById(divid_cm_fm).style.backgroundImage = "url(" + document.getElementById(imageid_cm_fm).src + ")";
	
	//make image transparent
	changeOpac_cm_fm(0, imageid_cm_fm);
	
	//make new image
	document.getElementById(imageid_cm_fm).src = imagefile;

	//fade in image
	for(i = 0; i <= 100; i++) {
		setTimeout("changeOpac_cm_fm(" + i + ",'" + imageid_cm_fm + "')",(timer_cm_fm * speed_cm_fm));
		timer_cm_fm++;
	}
}

function currentOpac_cm_fm(id_cm_fm, opacEnd_cm_fm, millisec_cm_fm) {
	//standard opacity is 100
	var currentOpac_cm_fm = 100;
	
	//if the element has an opacity set, get it
	if(document.getElementById(id_cm_fm).style.opacity < 100) {
		currentOpac_cm_fm = document.getElementById(id_cm_fm).style.opacity * 100;
	}

	//call for the function that changes the opacity
	opacity_cm_fm(id_cm_fm, currentOpac_cm_fm, opacEnd_cm_fm, millisec_cm_fm)
}
