// fading_no_moo_menu.js is copyrighted material by weefer.co.id 2007 - current

// Title: weefer Fading No-Moo Menu - Joomla 1.5
// URL: http://www.weefer.co.id
// Date: 11/07/2007
// Notes: This script is copyrighted material of weefer.co.id and may not be redistributed or resold by any means.

	//set ids to the unordered lists
	var fm_ul = document.getElementById("navv").getElementsByTagName("UL");
	var aa = 0;
	for (var y=0; y<fm_ul.length; y++) {
		fm_ul[y].id="fm_ul" + aa;
		aa = aa + 1;
	}
	
	//set ids to list child nodes of above ul's
	var fm_li = document.getElementById("navv").getElementsByTagName("LI");
	var z;
	var cc = 1;
	for (var z=0; z<fm_li.length; z++) {
	if (fm_li[z].childNodes[2]) {
		fm_li[z].id="fm_li" + cc;
		cc = cc + 1;
		}
	}
	
	//set active links for level 0
	var fm_li2 = document.getElementById("navv").getElementsByTagName("LI");
	var z2;
	var cc2 = 1;
	for (var z2=0; z2<fm_li2.length; z2++) {
		if (fm_li2[z2].className == "active") {
			fm_li2[z2].parentNode.parentNode.className = "active";
			fm_li2[z2].parentNode.parentNode.parentNode.parentNode.className = "active";
		}
	}
	
	//set ids to a's 
	var fm_a = document.getElementById("navv").getElementsByTagName("A");
	var x;
	var bb = 1;
	for (var x=0; x<fm_a.length; x++) {

	if (fm_a[x].parentNode.parentNode.parentNode.id) {
		fm_a[x].id="fm_aa" + bb;
		bb = bb + 1;
		}

	}
	
var id_fm;

var height1 = 0;
var width1 = 0;
var height2 = 0;
var width2 = 0;
var height3 = 0;
var width3 = 0;
var height4 = 0;
var width4 = 0;
var height5 = 0;
var width5 = 0;
var height6 = 0;
var width6 = 0;
var height7 = 0;
var width7 = 0;
var height8 = 0;
var width8 = 0;
var height9 = 0;
var width9 = 0;
var height10 = 0;
var width10 = 0;
var height11 = 0;
var width11 = 0;
var height12 = 0;
var width12 = 0;
var height13 = 0;
var width13 = 0;
var height14 = 0;
var width14 = 0;
var height15 = 0;
var width15 = 0;
var height16 = 0;
var width16 = 0;
var height17 = 0;
var width17 = 0;
var height18 = 0;
var width18 = 0;
var height19 = 0;
var width19 = 0;
var height20 = 0;
var width20 = 0;
var height21 = 0;
var width21 = 0;
var height22 = 0;
var width22 = 0;
var height23 = 0;
var width23 = 0;
var height24 = 0;
var width24 = 0;
var height25 = 0;
var width25 = 0;
var height26 = 0;
var width26 = 0;
var height27 = 0;
var width27 = 0;
var height28 = 0;
var width28 = 0;
var height29 = 0;
var width29 = 0;
var height30 = 0;
var width30 = 0;
var height31 = 0;
var width31 = 0;
var height32 = 0;
var width32 = 0;
var height33 = 0;
var width33 = 0;
var height34 = 0;
var width34 = 0;
var height35 = 0;
var width35 = 0;
var height36 = 0;
var width36 = 0;
var height37 = 0;
var width37 = 0;
var height38 = 0;
var width38 = 0;
var height39 = 0;
var width39 = 0;
var height40 = 0;
var width40 = 0;
var height41 = 0;
var width41 = 0;
var height42 = 0;
var width42 = 0;
var height43 = 0;
var width43 = 0;
var height44 = 0;
var width44 = 0;
var height45 = 0;
var width45 = 0;
var height46 = 0;
var width46 = 0;
var height47 = 0;
var width47 = 0;
var height48 = 0;
var width48 = 0;
var height49 = 0;
var width49 = 0;
var height50 = 0;
var width50 = 0;
var height51 = 0;
var width51 = 0;
var height52 = 0;
var width52 = 0;
var height53 = 0;
var width53 = 0;
var height54 = 0;
var width54 = 0;
var height55 = 0;
var width55 = 0;
var height56 = 0;
var width56 = 0;
var height57 = 0;
var width57 = 0;
var height58 = 0;
var width58 = 0;
var height59 = 0;
var width59 = 0;
var height60 = 0;
var width60 = 0;
var height61 = 0;
var width61 = 0;
var height62 = 0;
var width62 = 0;
var height63 = 0;
var width63 = 0;
var height64 = 0;
var width64 = 0;
var height65 = 0;
var width65 = 0;
var height66 = 0;
var width66 = 0;
var height67 = 0;
var width67 = 0;
var height68 = 0;
var width68 = 0;
var height69 = 0;
var width69 = 0;
var height70 = 0;
var width70 = 0;
var height71 = 0;
var width71 = 0;
var height72 = 0;
var width72 = 0;
var height73 = 0;
var width73 = 0;
var height74 = 0;
var width74 = 0;
var height75 = 0;
var width75 = 0;
var height76 = 0;
var width76 = 0;
var height77 = 0;
var width77 = 0;
var height78 = 0;
var width78 = 0;
var height79 = 0;
var width79 = 0;
var height80 = 0;
var width80 = 0;
var height81 = 0;
var width81 = 0;
var height82 = 0;
var width82 = 0;
var height83 = 0;
var width83 = 0;
var height84 = 0;
var width84 = 0;
var height85 = 0;
var width85 = 0;
var height86 = 0;
var width86 = 0;
var height87 = 0;
var width87 = 0;
var height88 = 0;
var width88 = 0;
var height89 = 0;
var width89 = 0;
var height90 = 0;
var width90 = 0;
var height91 = 0;
var width91 = 0;
var height92 = 0;
var width92 = 0;
var height93 = 0;
var width93 = 0;
var height94 = 0;
var width94 = 0;
var height95 = 0;
var width95 = 0;
var height96 = 0;
var width96 = 0;
var height97 = 0;
var width97 = 0;
var height98 = 0;
var width98 = 0;
var height99 = 0;
var width99 = 0;
var height100 = 0;
var width100 = 0;

	// stores all offsetheights and offsetwidths of ul's
	var fm_ul_store = document.getElementById("navv").getElementsByTagName("UL");	
	for (var f=0; f<fm_ul_store.length; f++) {
		if (fm_ul_store.length >= 1) {
		if (f==1) {
		height1 = fm_ul_store[f].offsetHeight;
		width1 = fm_ul_store[f].offsetWidth;
		}
		if (fm_ul_store.length >= 2) {
		if (f==2) {
		height2 = fm_ul_store[f].offsetHeight;
		width2 = fm_ul_store[f].offsetWidth;
		}
		if (fm_ul_store.length >= 3) {
		if (f==3) {
		height3 = fm_ul_store[f].offsetHeight;
		width3 = fm_ul_store[f].offsetWidth;
		}
		if (fm_ul_store.length >= 4) {
		if (f==4) {
		height4 = fm_ul_store[f].offsetHeight;
		width4 = fm_ul_store[f].offsetWidth;
		}
		if (fm_ul_store.length >= 5) {
		if (f==5) {
		height5 = fm_ul_store[f].offsetHeight;
		width5 = fm_ul_store[f].offsetWidth;
		}
		if (fm_ul_store.length >= 6) {
		if (f==6) {
		height6 = fm_ul_store[f].offsetHeight;
		width6 = fm_ul_store[f].offsetWidth;
		}
		if (fm_ul_store.length >= 7) {
		if (f==7) {
		height7 = fm_ul_store[f].offsetHeight;
		width7 = fm_ul_store[f].offsetWidth;
		}
		if (fm_ul_store.length >= 8) {
		if (f==8) {
		height8 = fm_ul_store[f].offsetHeight;
		width8 = fm_ul_store[f].offsetWidth;
		}
		if (fm_ul_store.length >= 9) {
		if (f==9) {
		height9 = fm_ul_store[f].offsetHeight;
		width9 = fm_ul_store[f].offsetWidth;
		}
		if (fm_ul_store.length >= 10) {
		if (f==10) {
		height10 = fm_ul_store[f].offsetHeight;
		width10 = fm_ul_store[f].offsetWidth;
		}
		if (fm_ul_store.length >= 11) {
		if (f==11) {
		height11 = fm_ul_store[f].offsetHeight;
		width11 = fm_ul_store[f].offsetWidth;
		}
		if (fm_ul_store.length >= 12) {
		if (f==12) {
		height12 = fm_ul_store[f].offsetHeight;
		width12 = fm_ul_store[f].offsetWidth;
		}
		if (fm_ul_store.length >= 13) {
		if (f==13) {
		height13 = fm_ul_store[f].offsetHeight;
		width13 = fm_ul_store[f].offsetWidth;
		}
		if (fm_ul_store.length >= 14) {
		if (f==14) {
		height14 = fm_ul_store[f].offsetHeight;
		width14 = fm_ul_store[f].offsetWidth;
		}
		if (fm_ul_store.length >= 15) {
		if (f==15) {
		height15 = fm_ul_store[f].offsetHeight;
		width15 = fm_ul_store[f].offsetWidth;
		}
		if (fm_ul_store.length >= 16) {
		if (f==16) {
		height16 = fm_ul_store[f].offsetHeight;
		width16 = fm_ul_store[f].offsetWidth;
		}
		if (fm_ul_store.length >= 17) {
		if (f==17) {
		height17 = fm_ul_store[f].offsetHeight;
		width17 = fm_ul_store[f].offsetWidth;
		}
		if (fm_ul_store.length >= 18) {
		if (f==18) {
		height18 = fm_ul_store[f].offsetHeight;
		width18 = fm_ul_store[f].offsetWidth;
		}
		if (fm_ul_store.length >= 19) {
		if (f==19) {
		height19 = fm_ul_store[f].offsetHeight;
		width19 = fm_ul_store[f].offsetWidth;
		}
		if (fm_ul_store.length >= 20) {
		if (f==20) {
		height20 = fm_ul_store[f].offsetHeight;
		width20 = fm_ul_store[f].offsetWidth;
		}
		if (f==21) {
		height21 = fm_ul_store[f].offsetHeight;
		width21 = fm_ul_store[f].offsetWidth;
		}
		if (f==22) {
		height22 = fm_ul_store[f].offsetHeight;
		width22 = fm_ul_store[f].offsetWidth;
		}
		if (f==23) {
		height23 = fm_ul_store[f].offsetHeight;
		width23 = fm_ul_store[f].offsetWidth;
		}
		if (f==24) {
		height24 = fm_ul_store[f].offsetHeight;
		width24 = fm_ul_store[f].offsetWidth;
		}
		if (fm_ul_store.length >= 25) {
		if (f==25) {
		height25 = fm_ul_store[f].offsetHeight;
		width25 = fm_ul_store[f].offsetWidth;
		}
		if (f==26) {
		height26 = fm_ul_store[f].offsetHeight;
		width26 = fm_ul_store[f].offsetWidth;
		}
		if (f==27) {
		height27 = fm_ul_store[f].offsetHeight;
		width27 = fm_ul_store[f].offsetWidth;
		}
		if (f==28) {
		height28 = fm_ul_store[f].offsetHeight;
		width28 = fm_ul_store[f].offsetWidth;
		}
		if (f==29) {
		height29 = fm_ul_store[f].offsetHeight;
		width29 = fm_ul_store[f].offsetWidth;
		}
		if (fm_ul_store.length >= 30) {
		if (f==30) {
		height30 = fm_ul_store[f].offsetHeight;
		width30 = fm_ul_store[f].offsetWidth;
		}
		if (f==31) {
		height31 = fm_ul_store[f].offsetHeight;
		width31 = fm_ul_store[f].offsetWidth;
		}
		if (f==32) {
		height32 = fm_ul_store[f].offsetHeight;
		width32 = fm_ul_store[f].offsetWidth;
		}
		if (f==33) {
		height33 = fm_ul_store[f].offsetHeight;
		width33 = fm_ul_store[f].offsetWidth;
		}
		if (f==34) {
		height34 = fm_ul_store[f].offsetHeight;
		width34 = fm_ul_store[f].offsetWidth;
		}
		if (fm_ul_store.length >= 35) {
		if (f==35) {
		height35 = fm_ul_store[f].offsetHeight;
		width35 = fm_ul_store[f].offsetWidth;
		}
		if (f==36) {
		height36 = fm_ul_store[f].offsetHeight;
		width36 = fm_ul_store[f].offsetWidth;
		}
		if (f==37) {
		height37 = fm_ul_store[f].offsetHeight;
		width37 = fm_ul_store[f].offsetWidth;
		}
		if (f==38) {
		height38 = fm_ul_store[f].offsetHeight;
		width38 = fm_ul_store[f].offsetWidth;
		}
		if (f==39) {
		height39 = fm_ul_store[f].offsetHeight;
		width39 = fm_ul_store[f].offsetWidth;
		}
		if (fm_ul_store.length >= 40) {
		if (f==40) {
		height40 = fm_ul_store[f].offsetHeight;
		width40 = fm_ul_store[f].offsetWidth;
		}
		if (f==41) {
		height41 = fm_ul_store[f].offsetHeight;
		width41 = fm_ul_store[f].offsetWidth;
		}
		if (f==42) {
		height42 = fm_ul_store[f].offsetHeight;
		width42 = fm_ul_store[f].offsetWidth;
		}
		if (f==43) {
		height43 = fm_ul_store[f].offsetHeight;
		width43 = fm_ul_store[f].offsetWidth;
		}
		if (f==44) {
		height44 = fm_ul_store[f].offsetHeight;
		width44 = fm_ul_store[f].offsetWidth;
		}
		if (fm_ul_store.length >= 45) {
		if (f==45) {
		height45 = fm_ul_store[f].offsetHeight;
		width45 = fm_ul_store[f].offsetWidth;
		}
		if (f==46) {
		height46 = fm_ul_store[f].offsetHeight;
		width46 = fm_ul_store[f].offsetWidth;
		}
		if (f==47) {
		height47 = fm_ul_store[f].offsetHeight;
		width47 = fm_ul_store[f].offsetWidth;
		}
		if (f==48) {
		height48 = fm_ul_store[f].offsetHeight;
		width48 = fm_ul_store[f].offsetWidth;
		}
		if (f==49) {
		height49 = fm_ul_store[f].offsetHeight;
		width49 = fm_ul_store[f].offsetWidth;
		}
		if (fm_ul_store.length >= 50) {
		if (f==50) {
		height50 = fm_ul_store[f].offsetHeight;
		width50 = fm_ul_store[f].offsetWidth;
		}
		if (f==51) {
		height51 = fm_ul_store[f].offsetHeight;
		width51 = fm_ul_store[f].offsetWidth;
		}
		if (f==52) {
		height52 = fm_ul_store[f].offsetHeight;
		width52 = fm_ul_store[f].offsetWidth;
		}
		if (f==53) {
		height53 = fm_ul_store[f].offsetHeight;
		width53 = fm_ul_store[f].offsetWidth;
		}
		if (f==54) {
		height54 = fm_ul_store[f].offsetHeight;
		width54 = fm_ul_store[f].offsetWidth;
		}
		if (fm_ul_store.length >= 55) {
		if (f==55) {
		height55 = fm_ul_store[f].offsetHeight;
		width55 = fm_ul_store[f].offsetWidth;
		}
		if (f==56) {
		height56 = fm_ul_store[f].offsetHeight;
		width56 = fm_ul_store[f].offsetWidth;
		}
		if (f==57) {
		height57 = fm_ul_store[f].offsetHeight;
		width57 = fm_ul_store[f].offsetWidth;
		}
		if (f==58) {
		height58 = fm_ul_store[f].offsetHeight;
		width58 = fm_ul_store[f].offsetWidth;
		}
		if (f==59) {
		height59 = fm_ul_store[f].offsetHeight;
		width59 = fm_ul_store[f].offsetWidth;
		}
		if (fm_ul_store.length >= 60) {
		if (f==60) {
		height60 = fm_ul_store[f].offsetHeight;
		width60 = fm_ul_store[f].offsetWidth;
		}
		if (f==61) {
		height61 = fm_ul_store[f].offsetHeight;
		width61 = fm_ul_store[f].offsetWidth;
		}
		if (f==62) {
		height62 = fm_ul_store[f].offsetHeight;
		width62 = fm_ul_store[f].offsetWidth;
		}
		if (f==63) {
		height63 = fm_ul_store[f].offsetHeight;
		width63 = fm_ul_store[f].offsetWidth;
		}
		if (f==64) {
		height64 = fm_ul_store[f].offsetHeight;
		width64 = fm_ul_store[f].offsetWidth;
		}
		if (fm_ul_store.length >= 65) {
		if (f==65) {
		height65 = fm_ul_store[f].offsetHeight;
		width65 = fm_ul_store[f].offsetWidth;
		}
		if (f==66) {
		height66 = fm_ul_store[f].offsetHeight;
		width66 = fm_ul_store[f].offsetWidth;
		}
		if (f==67) {
		height67 = fm_ul_store[f].offsetHeight;
		width67 = fm_ul_store[f].offsetWidth;
		}
		if (f==68) {
		height68 = fm_ul_store[f].offsetHeight;
		width68 = fm_ul_store[f].offsetWidth;
		}
		if (f==69) {
		height69 = fm_ul_store[f].offsetHeight;
		width69 = fm_ul_store[f].offsetWidth;
		}
		if (fm_ul_store.length >= 70) {
		if (f==70) {
		height70 = fm_ul_store[f].offsetHeight;
		width70 = fm_ul_store[f].offsetWidth;
		}
		if (f==71) {
		height71 = fm_ul_store[f].offsetHeight;
		width71 = fm_ul_store[f].offsetWidth;
		}
		if (f==72) {
		height72 = fm_ul_store[f].offsetHeight;
		width72 = fm_ul_store[f].offsetWidth;
		}
		if (f==73) {
		height73 = fm_ul_store[f].offsetHeight;
		width73 = fm_ul_store[f].offsetWidth;
		}
		if (f==74) {
		height74 = fm_ul_store[f].offsetHeight;
		width74 = fm_ul_store[f].offsetWidth;
		}
		if (fm_ul_store.length >= 75) {
		if (f==75) {
		height75 = fm_ul_store[f].offsetHeight;
		width75 = fm_ul_store[f].offsetWidth;
		}
		if (f==76) {
		height76 = fm_ul_store[f].offsetHeight;
		width76 = fm_ul_store[f].offsetWidth;
		}
		if (f==77) {
		height77 = fm_ul_store[f].offsetHeight;
		width77 = fm_ul_store[f].offsetWidth;
		}
		if (f==78) {
		height78 = fm_ul_store[f].offsetHeight;
		width78 = fm_ul_store[f].offsetWidth;
		}
		if (f==79) {
		height79 = fm_ul_store[f].offsetHeight;
		width79 = fm_ul_store[f].offsetWidth;
		}
		if (fm_ul_store.length >= 80) {
		if (f==80) {
		height80 = fm_ul_store[f].offsetHeight;
		width80 = fm_ul_store[f].offsetWidth;
		}
		if (f==81) {
		height81 = fm_ul_store[f].offsetHeight;
		width81 = fm_ul_store[f].offsetWidth;
		}
		if (f==82) {
		height82 = fm_ul_store[f].offsetHeight;
		width82 = fm_ul_store[f].offsetWidth;
		}
		if (f==83) {
		height83 = fm_ul_store[f].offsetHeight;
		width83 = fm_ul_store[f].offsetWidth;
		}
		if (f==84) {
		height84 = fm_ul_store[f].offsetHeight;
		width84 = fm_ul_store[f].offsetWidth;
		}
		if (fm_ul_store.length >= 85) {
		if (f==85) {
		height85 = fm_ul_store[f].offsetHeight;
		width85 = fm_ul_store[f].offsetWidth;
		}
		if (f==86) {
		height86 = fm_ul_store[f].offsetHeight;
		width86 = fm_ul_store[f].offsetWidth;
		}
		if (f==87) {
		height87 = fm_ul_store[f].offsetHeight;
		width87 = fm_ul_store[f].offsetWidth;
		}
		if (f==88) {
		height88 = fm_ul_store[f].offsetHeight;
		width88 = fm_ul_store[f].offsetWidth;
		}
		if (f==89) {
		height89 = fm_ul_store[f].offsetHeight;
		width89 = fm_ul_store[f].offsetWidth;
		}
		if (fm_ul_store.length >= 90) {
		if (f==90) {
		height90 = fm_ul_store[f].offsetHeight;
		width90 = fm_ul_store[f].offsetWidth;
		}
		if (f==91) {
		height91 = fm_ul_store[f].offsetHeight;
		width91 = fm_ul_store[f].offsetWidth;
		}
		if (f==92) {
		height92 = fm_ul_store[f].offsetHeight;
		width92 = fm_ul_store[f].offsetWidth;
		}
		if (f==93) {
		height93 = fm_ul_store[f].offsetHeight;
		width93 = fm_ul_store[f].offsetWidth;
		}
		if (f==94) {
		height94 = fm_ul_store[f].offsetHeight;
		width94 = fm_ul_store[f].offsetWidth;
		}
		if (fm_ul_store.length >= 95) {
		if (f==95) {
		height95 = fm_ul_store[f].offsetHeight;
		width95 = fm_ul_store[f].offsetWidth;
		}
		if (f==96) {
		height96 = fm_ul_store[f].offsetHeight;
		width96 = fm_ul_store[f].offsetWidth;
		}
		if (f==97) {
		height97 = fm_ul_store[f].offsetHeight;
		width97 = fm_ul_store[f].offsetWidth;
		}
		if (f==98) {
		height98 = fm_ul_store[f].offsetHeight;
		width98 = fm_ul_store[f].offsetWidth;
		}
		if (f==99) {
		height99 = fm_ul_store[f].offsetHeight;
		width99 = fm_ul_store[f].offsetWidth;
		}
		if (f==100) {
		height100 = fm_ul_store[f].offsetHeight;
		width100 = fm_ul_store[f].offsetWidth;
		}
		}
		}
		}
		}
		}
		}
		}
		}
		}
		}
		}
		}
		}
		}
		}
		}
		}
		}
		}
		}
		}
		}
		}
		}
		}
		}
		}
		}
		}
		}
		}
		}
		}
		}
		}
	}
	
	var nn_global;
	var nn_holder_global;
	
	// resets all off-screen ul's
	function fader_menu_set_none() {
	var fm_ul2 = document.getElementById("navv").getElementsByTagName("UL");
	var nn = 0;
	for (var n =0; n<fm_ul2.length; n++) {
		id_fm = fm_ul2[n].id;
		fm_ul2[n].style.filter = "none";
		if (id_fm.charAt(8) != "0") {
			if (fm_ul2[n].offsetLeft < 0) {
			
					var opacc = 0; 
					document.getElementById(id_fm).style.opacity = (opacc / 100);
					document.getElementById(id_fm).style.MozOpacity = (opacc / 100);
					document.getElementById(id_fm).style.KhtmlOpacity = (opacc / 100);
					document.getElementById(id_fm).style.filter = "alpha(opacity=" + opacc + ")";
	
					if (fm_ul2.length >= 1) {
					if (n==1) {
					fm_ul2[n].style.height = (height1 - 2) + "px";
					fm_ul2[n].style.width = (width1 - 2) + "px";
					}
					if (fm_ul2.length >= 2) {
					if (n==2) {
					fm_ul2[n].style.height = (height2 - 2) + "px";
					fm_ul2[n].style.width = (width2 - 2) + "px";
					}
					if (fm_ul2.length >= 3) {
					if (n==3) {
					fm_ul2[n].style.height = (height3 - 2) + "px";
					fm_ul2[n].style.width = (width3 - 2) + "px";
					}
					if (fm_ul2.length >= 4) {
					if (n==4) {
					fm_ul2[n].style.height = (height4 - 3) + "px";
					fm_ul2[n].style.width = (width4 - 2) + "px";
					}
					if (fm_ul2.length >= 5) {
					if (n==5) {
					fm_ul2[n].style.height = (height5 - 3) + "px";
					fm_ul2[n].style.width = (width5 - 2) + "px";
					}
					if (fm_ul2.length >= 6) {
					if (n==6) {
					fm_ul2[n].style.height = (height6 - 2) + "px";
					fm_ul2[n].style.width = (width6 - 2) + "px";
					}
					if (fm_ul2.length >= 7) {
					if (n==7) {
					fm_ul2[n].style.height = (height7 - 2) + "px";
					fm_ul2[n].style.width = (width7 - 2) + "px";
					}
					if (fm_ul2.length >= 8) {
					if (n==8) {
					fm_ul2[n].style.height = (height8 - 2) + "px";
					fm_ul2[n].style.width = (width8 - 2) + "px";
					}
					if (fm_ul2.length >= 9) {
					if (n==9) {
					fm_ul2[n].style.height = (height9 - 2) + "px";
					fm_ul2[n].style.width = (width9 - 2) + "px";
					}
					if (fm_ul2.length >= 10) {
					if (n==10) {
					fm_ul2[n].style.height = (height10 - 2) + "px";
					fm_ul2[n].style.width = (width10 - 2) + "px";
					}
					if (fm_ul2.length >= 11) {
					if (n==11) {
					fm_ul2[n].style.height = (height11 - 2) + "px";
					fm_ul2[n].style.width = (width11 - 2) + "px";
					}
					if (fm_ul2.length >= 12) {
					if (n==12) {
					fm_ul2[n].style.height = (height12 - 2) + "px";
					fm_ul2[n].style.width = (width12 - 2) + "px";
					}
					if (fm_ul2.length >= 13) {
					if (n==13) {
					fm_ul2[n].style.height = (height13 - 2) + "px";
					fm_ul2[n].style.width = (width13 - 2) + "px";
					}
					if (fm_ul2.length >= 14) {
					if (n==14) {
					fm_ul2[n].style.height = (height14 - 2) + "px";
					fm_ul2[n].style.width = (width14 - 2) + "px";
					}
					if (fm_ul2.length >= 15) {
					if (n==15) {
					fm_ul2[n].style.height = (height15 - 2) + "px";
					fm_ul2[n].style.width = (width15 - 2) + "px";
					}
					if (fm_ul2.length >= 16) {
					if (n==16) {
					fm_ul2[n].style.height = (height16 - 2) + "px";
					fm_ul2[n].style.width = (width16 - 2) + "px";
					}
					if (fm_ul2.length >= 17) {
					if (n==17) {
					fm_ul2[n].style.height = (height17 - 2) + "px";
					fm_ul2[n].style.width = (width17 - 2) + "px";
					}
					if (fm_ul2.length >= 18) {
					if (n==18) {
					fm_ul2[n].style.height = (height18 - 2) + "px";
					fm_ul2[n].style.width = (width18 - 2) + "px";
					}
					if (fm_ul2.length >= 19) {
					if (n==19) {
					fm_ul2[n].style.height = (height19 - 2) + "px";
					fm_ul2[n].style.width = (width19 - 2) + "px";
					}
					if (fm_ul2.length >= 20) {
					if (n==20) {
					fm_ul2[n].style.height = (height20 - 2) + "px";
					fm_ul2[n].style.width = (width20 - 2) + "px";
					}
					if (n==21) {
					fm_ul2[n].style.height = (height21 - 2) + "px";
					fm_ul2[n].style.width = (width21 - 2) + "px";
					}
					if (n==22) {
					fm_ul2[n].style.height = (height22 - 2) + "px";
					fm_ul2[n].style.width = (width22 - 2) + "px";
					}
					if (n==23) {
					fm_ul2[n].style.height = (height23 - 2) + "px";
					fm_ul2[n].style.width = (width23 - 2) + "px";
					}
					if (n==24) {
					fm_ul2[n].style.height = (height24 - 2) + "px";
					fm_ul2[n].style.width = (width24 - 2) + "px";
					}
					if (fm_ul2.length >= 25) {
					if (n==25) {
					fm_ul2[n].style.height = (height25 - 2) + "px";
					fm_ul2[n].style.width = (width25 - 2) + "px";
					}
					if (n==26) {
					fm_ul2[n].style.height = (height26 - 2) + "px";
					fm_ul2[n].style.width = (width26 - 2) + "px";
					}
					if (n==27) {
					fm_ul2[n].style.height = (height27 - 2) + "px";
					fm_ul2[n].style.width = (width27 - 2) + "px";
					}
					if (n==28) {
					fm_ul2[n].style.height = (height28 - 2) + "px";
					fm_ul2[n].style.width = (width28 - 2) + "px";
					}
					if (n==29) {
					fm_ul2[n].style.height = (height29 - 2) + "px";
					fm_ul2[n].style.width = (width29 - 2) + "px";
					}
					if (fm_ul2.length >= 30) {
					if (n==30) {
					fm_ul2[n].style.height = (height30 - 2) + "px";
					fm_ul2[n].style.width = (width30 - 2) + "px";
					}
					if (n==31) {
					fm_ul2[n].style.height = (height31 - 2) + "px";
					fm_ul2[n].style.width = (width31 - 2) + "px";
					}
					if (n==32) {
					fm_ul2[n].style.height = (height32 - 2) + "px";
					fm_ul2[n].style.width = (width32 - 2) + "px";
					}
					if (n==33) {
					fm_ul2[n].style.height = (height33 - 2) + "px";
					fm_ul2[n].style.width = (width33 - 2) + "px";
					}
					if (n==34) {
					fm_ul2[n].style.height = (height34 - 2) + "px";
					fm_ul2[n].style.width = (width34 - 2) + "px";
					}
					if (fm_ul2.length >= 35) {
					if (n==35) {
					fm_ul2[n].style.height = (height35 - 2) + "px";
					fm_ul2[n].style.width = (width35 - 2) + "px";
					}
					if (n==36) {
					fm_ul2[n].style.height = (height36 - 2) + "px";
					fm_ul2[n].style.width = (width36 - 2) + "px";
					}
					if (n==37) {
					fm_ul2[n].style.height = (height37 - 2) + "px";
					fm_ul2[n].style.width = (width37 - 2) + "px";
					}
					if (n==38) {
					fm_ul2[n].style.height = (height38 - 2) + "px";
					fm_ul2[n].style.width = (width38 - 2) + "px";
					}
					if (n==39) {
					fm_ul2[n].style.height = (height39 - 2) + "px";
					fm_ul2[n].style.width = (width39 - 2) + "px";
					}
					if (fm_ul2.length >= 40) {
					if (n==40) {
					fm_ul2[n].style.height = (height40 - 2) + "px";
					fm_ul2[n].style.width = (width40 - 2) + "px";
					}
					if (n==41) {
					fm_ul2[n].style.height = (height41 - 2) + "px";
					fm_ul2[n].style.width = (width41 - 2) + "px";
					}
					if (n==42) {
					fm_ul2[n].style.height = (height42 - 2) + "px";
					fm_ul2[n].style.width = (width42 - 2) + "px";
					}
					if (n==43) {
					fm_ul2[n].style.height = (height43 - 2) + "px";
					fm_ul2[n].style.width = (width43 - 2) + "px";
					}
					if (n==44) {
					fm_ul2[n].style.height = (height44 - 2) + "px";
					fm_ul2[n].style.width = (width44 - 2) + "px";
					}
					if (fm_ul2.length >= 45) {
					if (n==45) {
					fm_ul2[n].style.height = (height45 - 2) + "px";
					fm_ul2[n].style.width = (width45 - 2) + "px";
					}
					if (n==46) {
					fm_ul2[n].style.height = (height46 - 2) + "px";
					fm_ul2[n].style.width = (width46 - 2) + "px";
					}
					if (n==47) {
					fm_ul2[n].style.height = (height47 - 2) + "px";
					fm_ul2[n].style.width = (width47 - 2) + "px";
					}
					if (n==48) {
					fm_ul2[n].style.height = (height48 - 2) + "px";
					fm_ul2[n].style.width = (width48 - 2) + "px";
					}
					if (n==49) {
					fm_ul2[n].style.height = (height49 - 2) + "px";
					fm_ul2[n].style.width = (width49 - 2) + "px";
					}
					if (fm_ul2.length >= 50) {
					if (n==50) {
					fm_ul2[n].style.height = (height50 - 2) + "px";
					fm_ul2[n].style.width = (width50 - 2) + "px";
					}
					if (n==51) {
					fm_ul2[n].style.height = (height51 - 2) + "px";
					fm_ul2[n].style.width = (width51 - 2) + "px";
					}
					if (n==52) {
					fm_ul2[n].style.height = (height52 - 2) + "px";
					fm_ul2[n].style.width = (width52 - 2) + "px";
					}
					if (n==53) {
					fm_ul2[n].style.height = (height53 - 2) + "px";
					fm_ul2[n].style.width = (width53 - 2) + "px";
					}
					if (n==54) {
					fm_ul2[n].style.height = (height54 - 2) + "px";
					fm_ul2[n].style.width = (width54 - 2) + "px";
					}
					if (fm_ul2.length >= 55) {
					if (n==55) {
					fm_ul2[n].style.height = (height55 - 2) + "px";
					fm_ul2[n].style.width = (width55 - 2) + "px";
					}
					if (n==56) {
					fm_ul2[n].style.height = (height56 - 2) + "px";
					fm_ul2[n].style.width = (width56 - 2) + "px";
					}
					if (n==57) {
					fm_ul2[n].style.height = (height57 - 2) + "px";
					fm_ul2[n].style.width = (width57 - 2) + "px";
					}
					if (n==58) {
					fm_ul2[n].style.height = (height58 - 2) + "px";
					fm_ul2[n].style.width = (width58 - 2) + "px";
					}
					if (n==59) {
					fm_ul2[n].style.height = (height59 - 2) + "px";
					fm_ul2[n].style.width = (width59 - 2) + "px";
					}
					if (fm_ul2.length >= 60) {
					if (n==60) {
					fm_ul2[n].style.height = (height60 - 2) + "px";
					fm_ul2[n].style.width = (width60 - 2) + "px";
					}
					if (n==61) {
					fm_ul2[n].style.height = (height61 - 2) + "px";
					fm_ul2[n].style.width = (width61 - 2) + "px";
					}
					if (n==62) {
					fm_ul2[n].style.height = (height62 - 2) + "px";
					fm_ul2[n].style.width = (width62 - 2) + "px";
					}
					if (n==63) {
					fm_ul2[n].style.height = (height63 - 2) + "px";
					fm_ul2[n].style.width = (width63 - 2) + "px";
					}
					if (n==64) {
					fm_ul2[n].style.height = (height64 - 2) + "px";
					fm_ul2[n].style.width = (width64 - 2) + "px";
					}
					if (fm_ul2.length >= 65) {
					if (n==65) {
					fm_ul2[n].style.height = (height65 - 2) + "px";
					fm_ul2[n].style.width = (width65 - 2) + "px";
					}
					if (n==66) {
					fm_ul2[n].style.height = (height66 - 2) + "px";
					fm_ul2[n].style.width = (width66 - 2) + "px";
					}
					if (n==67) {
					fm_ul2[n].style.height = (height67 - 2) + "px";
					fm_ul2[n].style.width = (width67 - 2) + "px";
					}
					if (n==68) {
					fm_ul2[n].style.height = (height68 - 2) + "px";
					fm_ul2[n].style.width = (width68 - 2) + "px";
					}
					if (n==69) {
					fm_ul2[n].style.height = (height69 - 2) + "px";
					fm_ul2[n].style.width = (width69 - 2) + "px";
					}
					if (fm_ul2.length >= 70) {
					if (n==70) {
					fm_ul2[n].style.height = (height70 - 2) + "px";
					fm_ul2[n].style.width = (width70 - 2) + "px";
					}
					if (n==71) {
					fm_ul2[n].style.height = (height71 - 2) + "px";
					fm_ul2[n].style.width = (width71 - 2) + "px";
					}
					if (n==72) {
					fm_ul2[n].style.height = (height72 - 2) + "px";
					fm_ul2[n].style.width = (width72 - 2) + "px";
					}
					if (n==73) {
					fm_ul2[n].style.height = (height73 - 2) + "px";
					fm_ul2[n].style.width = (width73 - 2) + "px";
					}
					if (n==74) {
					fm_ul2[n].style.height = (height74 - 2) + "px";
					fm_ul2[n].style.width = (width74 - 2) + "px";
					}
					if (fm_ul2.length >= 75) {
					if (n==75) {
					fm_ul2[n].style.height = (height75 - 2) + "px";
					fm_ul2[n].style.width = (width75 - 2) + "px";
					}
					if (n==76) {
					fm_ul2[n].style.height = (height76 - 2) + "px";
					fm_ul2[n].style.width = (width76 - 2) + "px";
					}
					if (n==77) {
					fm_ul2[n].style.height = (height77 - 2) + "px";
					fm_ul2[n].style.width = (width77 - 2) + "px";
					}
					if (n==78) {
					fm_ul2[n].style.height = (height78 - 2) + "px";
					fm_ul2[n].style.width = (width78 - 2) + "px";
					}
					if (n==79) {
					fm_ul2[n].style.height = (height79 - 2) + "px";
					fm_ul2[n].style.width = (width79 - 2) + "px";
					}
					if (fm_ul2.length >= 80) {
					if (n==80) {
					fm_ul2[n].style.height = (height80 - 2) + "px";
					fm_ul2[n].style.width = (width80 - 2) + "px";
					}
					if (n==81) {
					fm_ul2[n].style.height = (height81 - 2) + "px";
					fm_ul2[n].style.width = (width81 - 2) + "px";
					}
					if (n==82) {
					fm_ul2[n].style.height = (height82 - 2) + "px";
					fm_ul2[n].style.width = (width82 - 2) + "px";
					}
					if (n==83) {
					fm_ul2[n].style.height = (height83 - 2) + "px";
					fm_ul2[n].style.width = (width83 - 2) + "px";
					}
					if (n==84) {
					fm_ul2[n].style.height = (height84 - 2) + "px";
					fm_ul2[n].style.width = (width84 - 2) + "px";
					}
					if (fm_ul2.length >= 85) {
					if (n==85) {
					fm_ul2[n].style.height = (height85 - 2) + "px";
					fm_ul2[n].style.width = (width85 - 2) + "px";
					}
					if (n==86) {
					fm_ul2[n].style.height = (height86 - 2) + "px";
					fm_ul2[n].style.width = (width86 - 2) + "px";
					}
					if (n==87) {
					fm_ul2[n].style.height = (height87 - 2) + "px";
					fm_ul2[n].style.width = (width87 - 2) + "px";
					}
					if (n==88) {
					fm_ul2[n].style.height = (height88 - 2) + "px";
					fm_ul2[n].style.width = (width88 - 2) + "px";
					}
					if (n==89) {
					fm_ul2[n].style.height = (height89 - 2) + "px";
					fm_ul2[n].style.width = (width89 - 2) + "px";
					}
					if (fm_ul2.length >= 90) {
					if (n==90) {
					fm_ul2[n].style.height = (height90 - 2) + "px";
					fm_ul2[n].style.width = (width90 - 2) + "px";
					}
					if (n==91) {
					fm_ul2[n].style.height = (height91 - 2) + "px";
					fm_ul2[n].style.width = (width91 - 2) + "px";
					}
					if (n==92) {
					fm_ul2[n].style.height = (height92 - 2) + "px";
					fm_ul2[n].style.width = (width92 - 2) + "px";
					}
					if (n==93) {
					fm_ul2[n].style.height = (height93 - 2) + "px";
					fm_ul2[n].style.width = (width93 - 2) + "px";
					}
					if (n==94) {
					fm_ul2[n].style.height = (height94 - 2) + "px";
					fm_ul2[n].style.width = (width94 - 2) + "px";
					}
					if (fm_ul2.length >= 95) {
					if (n==95) {
					fm_ul2[n].style.height = (height95 - 2) + "px";
					fm_ul2[n].style.width = (width95 - 2) + "px";
					}
					if (n==96) {
					fm_ul2[n].style.height = (height96 - 2) + "px";
					fm_ul2[n].style.width = (width96 - 2) + "px";
					}
					if (n==97) {
					fm_ul2[n].style.height = (height97 - 2) + "px";
					fm_ul2[n].style.width = (width97 - 2) + "px";
					}
					if (n==98) {
					fm_ul2[n].style.height = (height98 - 2) + "px";
					fm_ul2[n].style.width = (width98 - 2) + "px";
					}
					if (n==99) {
					fm_ul2[n].style.height = (height99 - 2) + "px";
					fm_ul2[n].style.width = (width99 - 2) + "px";
					}
					if (n==100) {
					fm_ul2[n].style.height = (height100 - 2) + "px";
					fm_ul2[n].style.width = (width100 - 2) + "px";
					}
					}
					}
					}
					}
					}
					}
					}
					}
					}
					}
					}
					}
					}
					}
					}
					}
					}
					}
					}
					}
					}
					}
					}
					}
					}
					}
					}
					}
					}
					}
					}
					}
					}
					}
					}
					
				fm_ul2[n].style.display = "none";
				fm_ul2[n].style.visibility = "hidden";
			}
		}
		nn = nn + 1;
	}

	}
	
	fader_menu_set_none();
	var myInter;
	myInter = window.setInterval("fader_menu_set_none()",600);
	
function fader_menu_hide() {
	opacity_fm(id_fm, 100, 0, 1);
}

var fm_height;
var fm_width;

function fader_menu_show() {
	opacity_fm(id_fm, 0, 100, 600);
	fader_menu_show_block();
}

var n;

// show the ul's
function fader_menu_show_block() {
	document.getElementById(ul).style.overflow = "hidden";
	document.getElementById(ul).style.visibility = "hidden";
	document.getElementById(ul).style.display = "block";
	fm_height = document.getElementById(ul).offsetHeight;
	fm_width = document.getElementById(ul).offsetWidth;
	document.getElementById(ul).style.height = "0px";
	document.getElementById(ul).style.width = "0px";
			var id_num1 = ul.charAt(8);
			var id_num2 = 0;
			var id_num3 = 0;
			id_num2 = theId.charAt(9);
			id_num3 = theId.charAt(10);
			n = id_num1 + id_num2 + id_num3;
			document.getElementById(ul).style.visibility = "visible";
			document.getElementById(ul).style.filter = "none";
			
	checkVersion();
	fader_menu_effect_loader();
}

// detect IE
var browser_detect_fader = 0;

function getInternetExplorerVersion() {
  var rv = -1; // Return value assumes failure.
  if (navigator.appName == 'Microsoft Internet Explorer')
  {
  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() {
  var ver = getInternetExplorerVersion();
}

var myInterval = 0;

function fader_menu_effect_loader() {
if (browser_detect_fader == "1") {
clearInterval(myInterval);
myInterval = 0;
myInterval = window.setInterval("fader_menu_effect()",30);
}
else {
clearInterval(myInterval);
myInterval = 0;
myInterval = window.setInterval("fader_menu_effect()",30);
}
}

var browser = navigator.appVersion;
var ie_old;

if (browser.indexOf('MSIE 6.0') > 0 || browser.indexOf('MSIE 7.0') > 0) {
ie_old = 1;
}


// drop in effect
function fader_menu_effect() {
			
			if (document.getElementById(ul).offsetHeight < ((fm_height)-1)) {

			if (document.getElementById(ul).offsetHeight > (fm_height*.75)) {
				if (ie_old == "1") {
					document.getElementById(ul).style.filter = "none";
				}
			}
					document.getElementById(ul).style.height = document.getElementById(ul).offsetHeight + (fm_height * 1) -4 + "px";
					document.getElementById(ul).style.width = document.getElementById(ul).offsetWidth + (fm_width * 1) + "px";
			}
			
			else {
			
			window.clearInterval(myInterval);
			myInterval = 0;
			
					if (n=="1") {
					document.getElementById(ul).style.height = (height1 - 2) + "px";
					document.getElementById(ul).style.width = (width1 - 2) + "px";
					}
					if (n=="2") {
					document.getElementById(ul).style.height = (height2 - 2) + "px";
					document.getElementById(ul).style.width = (width2 - 2) + "px";
					}
					if (n=="3") {
					document.getElementById(ul).style.height = (height3 - 2) + "px";
					document.getElementById(ul).style.width = (width3 - 2) + "px";
					}
					if (n=="4") {
					document.getElementById(ul).style.height = (height4 - 2) + "px";
					document.getElementById(ul).style.width = (width4 - 2) + "px";
					}
					if (n=="5") {
					document.getElementById(ul).style.height = (height5 - 2) + "px";
					document.getElementById(ul).style.width = (width5 - 2) + "px";
					}
					if (n=="6") {
					document.getElementById(ul).style.height = (height6 - 2) + "px";
					document.getElementById(ul).style.width = (width6 - 2) + "px";
					}
					if (n=="7") {
					document.getElementById(ul).style.height = (height7 - 2) + "px";
					document.getElementById(ul).style.width = (width7 - 2) + "px";
					}
					if (n=="8") {
					document.getElementById(ul).style.height = (height8 - 2) + "px";
					document.getElementById(ul).style.width = (width8 - 2) + "px";
					}
					if (n=="9") {
					document.getElementById(ul).style.height = (height9 - 2) + "px";
					document.getElementById(ul).style.width = (width9 - 2) + "px";
					}
					if (n=="10") {
					document.getElementById(ul).style.height = (height10 - 2) + "px";
					document.getElementById(ul).style.width = (width10 - 2) + "px";
					}
					if (n=="11") {
					document.getElementById(ul).style.height = (height11 - 2) + "px";
					document.getElementById(ul).style.width = (width11 - 2) + "px";
					}
					if (n=="12") {
					document.getElementById(ul).style.height = (height12 - 2) + "px";
					document.getElementById(ul).style.width = (width12 - 2) + "px";
					}
					if (n=="13") {
					document.getElementById(ul).style.height = (height13 - 2) + "px";
					document.getElementById(ul).style.width = (width13 - 2) + "px";
					}
					if (n=="14") {
					document.getElementById(ul).style.height = (height14 - 2) + "px";
					document.getElementById(ul).style.width = (width14 - 2) + "px";
					}
					if (n=="15") {
					document.getElementById(ul).style.height = (height15 - 2) + "px";
					document.getElementById(ul).style.width = (width15 - 2) + "px";
					}
					if (n=="16") {
					document.getElementById(ul).style.height = (height16 - 2) + "px";
					document.getElementById(ul).style.width = (width16 - 2) + "px";
					}
					if (n=="17") {
					document.getElementById(ul).style.height = (height17 - 2) + "px";
					document.getElementById(ul).style.width = (width17 - 2) + "px";
					}
					if (n=="18") {
					document.getElementById(ul).style.height = (height18 - 2) + "px";
					document.getElementById(ul).style.width = (width18 - 2) + "px";
					}
					if (n=="19") {
					document.getElementById(ul).style.height = (height19 - 2) + "px";
					document.getElementById(ul).style.width = (width19 - 2) + "px";
					}
					if (n=="20") {
					document.getElementById(ul).style.height = (height20 - 2) + "px";
					document.getElementById(ul).style.width = (width20 - 2) + "px";
					}
					if (n=="21") {
					document.getElementById(ul).style.height = (height21 - 2) + "px";
					document.getElementById(ul).style.width = (width21 - 2) + "px";
					}
					if (n=="22") {
					document.getElementById(ul).style.height = (height22 - 2) + "px";
					document.getElementById(ul).style.width = (width22 - 2) + "px";
					}
					if (n=="23") {
					document.getElementById(ul).style.height = (height23 - 2) + "px";
					document.getElementById(ul).style.width = (width23 - 2) + "px";
					}
					if (n=="24") {
					document.getElementById(ul).style.height = (height24 - 2) + "px";
					document.getElementById(ul).style.width = (width24 - 2) + "px";
					}
					if (n=="25") {
					document.getElementById(ul).style.height = (height25 - 2) + "px";
					document.getElementById(ul).style.width = (width25 - 2) + "px";
					}
					if (n=="26") {
					document.getElementById(ul).style.height = (height26 - 2) + "px";
					document.getElementById(ul).style.width = (width26 - 2) + "px";
					}
					if (n=="27") {
					document.getElementById(ul).style.height = (height27 - 2) + "px";
					document.getElementById(ul).style.width = (width27 - 2) + "px";
					}
					if (n=="28") {
					document.getElementById(ul).style.height = (height28 - 2) + "px";
					document.getElementById(ul).style.width = (width28 - 2) + "px";
					}
					if (n=="29") {
					document.getElementById(ul).style.height = (height29 - 2) + "px";
					document.getElementById(ul).style.width = (width29 - 2) + "px";
					}
					if (n=="30") {
					document.getElementById(ul).style.height = (height30 - 2) + "px";
					document.getElementById(ul).style.width = (width30 - 2) + "px";
					}
					if (n=="31") {
					document.getElementById(ul).style.height = (height31 - 2) + "px";
					document.getElementById(ul).style.width = (width31 - 2) + "px";
					}
					if (n=="32") {
					document.getElementById(ul).style.height = (height32 - 2) + "px";
					document.getElementById(ul).style.width = (width32 - 2) + "px";
					}
					if (n=="33") {
					document.getElementById(ul).style.height = (height33 - 2) + "px";
					document.getElementById(ul).style.width = (width33 - 2) + "px";
					}
					if (n=="34") {
					document.getElementById(ul).style.height = (height34 - 2) + "px";
					document.getElementById(ul).style.width = (width34 - 2) + "px";
					}
					if (n=="35") {
					document.getElementById(ul).style.height = (height35 - 2) + "px";
					document.getElementById(ul).style.width = (width35 - 2) + "px";
					}
					if (n=="36") {
					document.getElementById(ul).style.height = (height36 - 2) + "px";
					document.getElementById(ul).style.width = (width36 - 2) + "px";
					}
					if (n=="37") {
					document.getElementById(ul).style.height = (height37 - 2) + "px";
					document.getElementById(ul).style.width = (width37 - 2) + "px";
					}
					if (n=="38") {
					document.getElementById(ul).style.height = (height38 - 2) + "px";
					document.getElementById(ul).style.width = (width38 - 2) + "px";
					}
					if (n=="39") {
					document.getElementById(ul).style.height = (height39 - 2) + "px";
					document.getElementById(ul).style.width = (width39 - 2) + "px";
					}
					if (n=="40") {
					document.getElementById(ul).style.height = (height40 - 2) + "px";
					document.getElementById(ul).style.width = (width40 - 2) + "px";
					}
					if (n=="41") {
					document.getElementById(ul).style.height = (height41 - 2) + "px";
					document.getElementById(ul).style.width = (width41 - 2) + "px";
					}
					if (n=="42") {
					document.getElementById(ul).style.height = (height42 - 2) + "px";
					document.getElementById(ul).style.width = (width42 - 2) + "px";
					}
					if (n=="43") {
					document.getElementById(ul).style.height = (height43 - 2) + "px";
					document.getElementById(ul).style.width = (width43 - 2) + "px";
					}
					if (n=="44") {
					document.getElementById(ul).style.height = (height44 - 2) + "px";
					document.getElementById(ul).style.width = (width44 - 2) + "px";
					}
					if (n=="45") {
					document.getElementById(ul).style.height = (height45 - 2) + "px";
					document.getElementById(ul).style.width = (width45 - 2) + "px";
					}
					if (n=="46") {
					document.getElementById(ul).style.height = (height46 - 2) + "px";
					document.getElementById(ul).style.width = (width46 - 2) + "px";
					}
					if (n=="47") {
					document.getElementById(ul).style.height = (height47 - 2) + "px";
					document.getElementById(ul).style.width = (width47 - 2) + "px";
					}
					if (n=="48") {
					document.getElementById(ul).style.height = (height48 - 2) + "px";
					document.getElementById(ul).style.width = (width48 - 2) + "px";
					}
					if (n=="49") {
					document.getElementById(ul).style.height = (height49 - 2) + "px";
					document.getElementById(ul).style.width = (width49 - 2) + "px";
					}
					if (n=="50") {
					document.getElementById(ul).style.height = (height50 - 2) + "px";
					document.getElementById(ul).style.width = (width50 - 2) + "px";
					}
					if (n=="51") {
					document.getElementById(ul).style.height = (height51 - 2) + "px";
					document.getElementById(ul).style.width = (width51 - 2) + "px";
					}
					if (n=="52") {
					document.getElementById(ul).style.height = (height52 - 2) + "px";
					document.getElementById(ul).style.width = (width52 - 2) + "px";
					}
					if (n=="53") {
					document.getElementById(ul).style.height = (height53 - 2) + "px";
					document.getElementById(ul).style.width = (width53 - 2) + "px";
					}
					if (n=="54") {
					document.getElementById(ul).style.height = (height54 - 2) + "px";
					document.getElementById(ul).style.width = (width54 - 2) + "px";
					}
					if (n=="55") {
					document.getElementById(ul).style.height = (height55 - 2) + "px";
					document.getElementById(ul).style.width = (width55 - 2) + "px";
					}
					if (n=="56") {
					document.getElementById(ul).style.height = (height56 - 2) + "px";
					document.getElementById(ul).style.width = (width56 - 2) + "px";
					}
					if (n=="57") {
					document.getElementById(ul).style.height = (height57 - 2) + "px";
					document.getElementById(ul).style.width = (width57 - 2) + "px";
					}
					if (n=="58") {
					document.getElementById(ul).style.height = (height58 - 2) + "px";
					document.getElementById(ul).style.width = (width58 - 2) + "px";
					}
					if (n=="59") {
					document.getElementById(ul).style.height = (height59 - 2) + "px";
					document.getElementById(ul).style.width = (width59 - 2) + "px";
					}
					if (n=="60") {
					document.getElementById(ul).style.height = (height60 - 2) + "px";
					document.getElementById(ul).style.width = (width60 - 2) + "px";
					}
					if (n=="61") {
					document.getElementById(ul).style.height = (height61 - 2) + "px";
					document.getElementById(ul).style.width = (width61 - 2) + "px";
					}
					if (n=="62") {
					document.getElementById(ul).style.height = (height62 - 2) + "px";
					document.getElementById(ul).style.width = (width62 - 2) + "px";
					}
					if (n=="63") {
					document.getElementById(ul).style.height = (height63 - 2) + "px";
					document.getElementById(ul).style.width = (width63 - 2) + "px";
					}
					if (n=="64") {
					document.getElementById(ul).style.height = (height64 - 2) + "px";
					document.getElementById(ul).style.width = (width64 - 2) + "px";
					}
					if (n=="65") {
					document.getElementById(ul).style.height = (height65 - 2) + "px";
					document.getElementById(ul).style.width = (width65 - 2) + "px";
					}
					if (n=="66") {
					document.getElementById(ul).style.height = (height66 - 2) + "px";
					document.getElementById(ul).style.width = (width66 - 2) + "px";
					}
					if (n=="67") {
					document.getElementById(ul).style.height = (height67 - 2) + "px";
					document.getElementById(ul).style.width = (width67 - 2) + "px";
					}
					if (n=="68") {
					document.getElementById(ul).style.height = (height68 - 2) + "px";
					document.getElementById(ul).style.width = (width68 - 2) + "px";
					}
					if (n=="69") {
					document.getElementById(ul).style.height = (height69 - 2) + "px";
					document.getElementById(ul).style.width = (width69 - 2) + "px";
					}
					if (n=="70") {
					document.getElementById(ul).style.height = (height70 - 2) + "px";
					document.getElementById(ul).style.width = (width70 - 2) + "px";
					}
					if (n=="71") {
					document.getElementById(ul).style.height = (height71 - 2) + "px";
					document.getElementById(ul).style.width = (width71 - 2) + "px";
					}
					if (n=="72") {
					document.getElementById(ul).style.height = (height72 - 2) + "px";
					document.getElementById(ul).style.width = (width72 - 2) + "px";
					}
					if (n=="73") {
					document.getElementById(ul).style.height = (height73 - 2) + "px";
					document.getElementById(ul).style.width = (width73 - 2) + "px";
					}
					if (n=="74") {
					document.getElementById(ul).style.height = (height74 - 2) + "px";
					document.getElementById(ul).style.width = (width74 - 2) + "px";
					}
					if (n=="75") {
					document.getElementById(ul).style.height = (height75 - 2) + "px";
					document.getElementById(ul).style.width = (width75 - 2) + "px";
					}
					if (n=="76") {
					document.getElementById(ul).style.height = (height76 - 2) + "px";
					document.getElementById(ul).style.width = (width76 - 2) + "px";
					}
					if (n=="77") {
					document.getElementById(ul).style.height = (height77 - 2) + "px";
					document.getElementById(ul).style.width = (width77 - 2) + "px";
					}
					if (n=="78") {
					document.getElementById(ul).style.height = (height78 - 2) + "px";
					document.getElementById(ul).style.width = (width78 - 2) + "px";
					}
					if (n=="79") {
					document.getElementById(ul).style.height = (height79 - 2) + "px";
					document.getElementById(ul).style.width = (width79 - 2) + "px";
					}
					if (n=="80") {
					document.getElementById(ul).style.height = (height80 - 2) + "px";
					document.getElementById(ul).style.width = (width80 - 2) + "px";
					}
					if (n=="81") {
					document.getElementById(ul).style.height = (height81 - 2) + "px";
					document.getElementById(ul).style.width = (width81 - 2) + "px";
					}
					if (n=="82") {
					document.getElementById(ul).style.height = (height82 - 2) + "px";
					document.getElementById(ul).style.width = (width82 - 2) + "px";
					}
					if (n=="83") {
					document.getElementById(ul).style.height = (height83 - 2) + "px";
					document.getElementById(ul).style.width = (width83 - 2) + "px";
					}
					if (n=="84") {
					document.getElementById(ul).style.height = (height84 - 2) + "px";
					document.getElementById(ul).style.width = (width84 - 2) + "px";
					}
					if (n=="85") {
					document.getElementById(ul).style.height = (height85 - 2) + "px";
					document.getElementById(ul).style.width = (width85 - 2) + "px";
					}
					if (n=="86") {
					document.getElementById(ul).style.height = (height86 - 2) + "px";
					document.getElementById(ul).style.width = (width86 - 2) + "px";
					}
					if (n=="87") {
					document.getElementById(ul).style.height = (height87 - 2) + "px";
					document.getElementById(ul).style.width = (width87 - 2) + "px";
					}
					if (n=="88") {
					document.getElementById(ul).style.height = (height88 - 2) + "px";
					document.getElementById(ul).style.width = (width88 - 2) + "px";
					}
					if (n=="89") {
					document.getElementById(ul).style.height = (height89 - 2) + "px";
					document.getElementById(ul).style.width = (width89 - 2) + "px";
					}
					if (n=="90") {
					document.getElementById(ul).style.height = (height90 - 2) + "px";
					document.getElementById(ul).style.width = (width90 - 2) + "px";
					}
					if (n=="91") {
					document.getElementById(ul).style.height = (height91 - 2) + "px";
					document.getElementById(ul).style.width = (width91 - 2) + "px";
					}
					if (n=="92") {
					document.getElementById(ul).style.height = (height92 - 2) + "px";
					document.getElementById(ul).style.width = (width92 - 2) + "px";
					}
					if (n=="93") {
					document.getElementById(ul).style.height = (height93 - 2) + "px";
					document.getElementById(ul).style.width = (width93 - 2) + "px";
					}
					if (n=="94") {
					document.getElementById(ul).style.height = (height94 - 2) + "px";
					document.getElementById(ul).style.width = (width94 - 2) + "px";
					}
					if (n=="95") {
					document.getElementById(ul).style.height = (height95 - 2) + "px";
					document.getElementById(ul).style.width = (width95 - 2) + "px";
					}
					if (n=="96") {
					document.getElementById(ul).style.height = (height96 - 2) + "px";
					document.getElementById(ul).style.width = (width96 - 2) + "px";
					}
					if (n=="97") {
					document.getElementById(ul).style.height = (height97 - 2) + "px";
					document.getElementById(ul).style.width = (width97 - 2) + "px";
					}
					if (n=="98") {
					document.getElementById(ul).style.height = (height98 - 2) + "px";
					document.getElementById(ul).style.width = (width98 - 2) + "px";
					}
					if (n=="99") {
					document.getElementById(ul).style.height = (height99 - 2) + "px";
					document.getElementById(ul).style.width = (width99 - 2) + "px";
					}
					if (n=="100") {
					document.getElementById(ul).style.height = (height100 - 2) + "px";
					document.getElementById(ul).style.width = (width100 - 2) + "px";
					}
					
					document.getElementById(ul).style.overflow = "visible";
	
					}
}

// grabs the id of element hover overed
var theId;
function grabID_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 != "0") {
document.getElementById(ul).style.overflow = "hidden";
fader_menu_effect_loader();
}
else {
document.getElementById("navv").onmouseover=grabID_fm;
}
}

function check_id_second() {
document.getElementById("navv").onmouseover=grabID_fm;
if (theId) {

if (theId.charAt(6) == "a" || theId.charAt(6) == "l" || theId.charAt(6) == "u" &&  theId.charAt(8) != "0") {

			var id_text = "fm_ul";
			var id_num1 = theId.charAt(8);
			var id_num2 = 0;
			var id_num3 = 0;
			id_num2 = theId.charAt(9);
			id_num3 = theId.charAt(10);
			ul = id_text + id_num1 + id_num2 + id_num3;
			id_fm = ul;

			if (document.getElementById(ul).style.display != "block") {
				fader_menu_hide();
				fader_menu_show();
			}

	}
}
}

var is_ie_fm/*@cc_on = {
  // quirksmode : (document.compatMode=="BackCompat"),
  version : parseFloat(navigator.appVersion.match(/MSIE (.+?);/)[1])
}@*/;

function opacity_fm(id_fm, opacStart_fm, opacEnd_fm, millisec_fm) {
	//speed for each frame
	var speed_fm = Math.round(millisec_fm / 100);
	var timer_fm = 0;
	//determine the direction for the blending, if start and end are the same nothing happens
	if(opacStart_fm > opacEnd_fm) {
		for(i = opacStart_fm; i >= opacEnd_fm; i--) {
			setTimeout("changeOpac_fm(" + i + ",'" + id_fm + "')",(timer_fm * speed_fm));
			timer_fm++;
		}
	} else if(opacStart_fm < opacEnd_fm) {
		for(i = opacStart_fm; i <= opacEnd_fm; i++)
			{
			setTimeout("changeOpac_fm(" + i + ",'" + id_fm + "')",(timer_fm * speed_fm));
			timer_fm++;
		}
	}
}

//change the opacity for different browsers
function changeOpac_fm(opacity_fm, id_fm) {
	var object_fm = document.getElementById(id_fm).style; 
	object_fm.opacity = (opacity_fm / 100);
	object_fm.MozOpacity = (opacity_fm / 100);
	object_fm.KhtmlOpacity = (opacity_fm / 100);
    object_fm.filter = "alpha(opacity=" + opacity_fm + ")";
}

function blendimage_fm(divid_fm, imageid_fm, imagefile_fm, millisec_fm) {
	var speed_fm = Math.round(millisec_fm / 100);
	var timer_fm = 0;
	
	//set the current image as background
	document.getElementById(divid_fm).style.backgroundImage = "url(" + document.getElementById(imageid_fm).src + ")";
	
	//make image transparent
	changeOpac_fm(0, imageid_fm);
	
	//make new image
	document.getElementById(imageid_fm).src = imagefile;

	//fade in image
	for(i = 0; i <= 100; i++) {
		setTimeout("changeOpac_fm(" + i + ",'" + imageid_fm + "')",(timer_fm * speed_fm));
		timer_fm++;
	}
}

function currentOpac_fm(id_fm, opacEnd_fm, millisec_fm) {
	//standard opacity is 100
	var currentOpac_fm = 100;
	
	//if the element has an opacity set, get it
	if(document.getElementById(id_fm).style.opacity < 100) {
		currentOpac_fm = document.getElementById(id_fm).style.opacity * 100;
	}

	//call for the function that changes the opacity
	opacity_fm(id_fm, currentOpac_fm, opacEnd_fm, millisec_fm)
}
