/* <![CDATA[ */


/* COPYRIGHTS BLACKTOWER.NL
   MAINTAIN COPYRIGHTS PLEASE */

css=getarray();

function splitBrowsers() {
	if (document.styleSheets[0].cssRules) {
		return document.styleSheets[0].cssRules;
	} else {
		return document.styleSheets[0].rules;
	}
}
function getthenum(id) {
	var theRules = splitBrowsers();
	for(i=0;i < theRules.length;i++) {
		if(theRules[i].selectorText == id) { 
			return i; 
		}
	}
}
function thisObject2(id){
	if(id.charAt(0) == "#") {
		yo = "";
		for(o=0;o < id.length;o++) {
			if(o != 0) { yo = yo + id.charAt(o); }
		}

		if (document.getElementById) {
			return(document.getElementById(yo));
		} else if (document.all) {
			return(document.all[yo]);
		} 
	} else if(id.charAt(0) == ".") {
		k = getthenum(id);
		var theRules = splitBrowsers();
		return theRules[k];
	} else {
		if (document.getElementById) {
			return(document.getElementById('preview2'));
		} else if (document.all) {
			return(document.all['preview2']);
		} 
	}
}
function thisObject(id){
	// current standard for IE5+ Mozilla/NS6+
	if (document.getElementById) {
		return(document.getElementById(id));
	
	// IE 4 compatible
	} else if (document.all) {
		return(document.all[id]);
	} 
}
function adjust(how) {
	where = thisObject("current").innerHTML;
	if(where == "nothing selected") {
		alert("Please select an element first");
	}

	//ELEMENT
	if(how == "height") {
		that = thisObject("height").value;
		if(Number(that)) {  thisObject("height").value = that+'px'; that=that+'px'; }
		thisObject2(where).style.height = that;	
	}
	if(how == "width") {
		that = thisObject("width").value;
		if(Number(that)) {  thisObject("width").value = that+'px'; that=that+'px'; }
		thisObject2(where).style.width = that;	
	}
	if(how == "opacity") {
		that = document.mainform.opacity.options[document.mainform.opacity.selectedIndex].value;
		thisObject2(where).style.opacity = that/100;
		thisObject2(where).style.filter = 'alpha(opacity=' + that + ')';
	}
	if(how == "cursor") {
		that1 = document.mainform.cursor.options[document.mainform.cursor.selectedIndex].value;
		that2 = thisObject("c-url").value;
		if(!that2) {
			that = that1;
		} else {
			that = 'url('+that2+')';
		}
		thisObject2(where).style.cursor = that;
	}
	if(how == "padding") {
		that1 = thisObject("p-top").value;
		that2 = thisObject("p-rig").value;
		that3 = thisObject("p-bot").value;
		that4 = thisObject("p-lef").value;
		if(Number(that1)) { thisObject("p-top").value = that1+'px'; that1 = that1+'px'; }
		if(Number(that2)) { thisObject("p-rig").value = that2+'px'; that2 = that2+'px'; }
		if(Number(that3)) { thisObject("p-bot").value = that3+'px'; that3 = that3+'px'; }
		if(Number(that4)) { thisObject("p-lef").value = that4+'px'; that4 = that4+'px'; }
		thisObject2(where).style.padding = that1 + ' ' + that2 + ' ' + that3 + ' ' + that4;
	}
	if(how == "margin") {
		that1 = thisObject("m-top").value;
		that2 = thisObject("m-rig").value;
		that3 = thisObject("m-bot").value;
		that4 = thisObject("m-lef").value;
		if(Number(that1)) { thisObject("m-top").value = that1+'px'; that1 = that1+'px'; }
		if(Number(that2)) { thisObject("m-rig").value = that2+'px'; that2 = that2+'px'; }
		if(Number(that3)) { thisObject("m-bot").value = that3+'px'; that3 = that3+'px'; }
		if(Number(that4)) { thisObject("m-lef").value = that4+'px'; that4 = that4+'px'; }
		thisObject2(where).style.margin = that1 + ' ' + that2 + ' ' + that3 + ' ' + that4;
	}

	//BACKGROUND
	if(how == "bg") {
		that1 = thisObject("i-url").value;
		if(that1 != "") {
			that1 = 'url('+that1+')'
		}
		that2 = document.mainform.bgatt.options[document.mainform.bgatt.selectedIndex].value;
		that3 = thisObject("pos-y").value;
		that4 = thisObject("pos-x").value;
		that5 = thisObject("bgcolor").value;
		that6 = document.mainform.bgrep.options[document.mainform.bgrep.selectedIndex].value;
		thisObject2(where).style.backgroundColor = that5;
		thisObject2(where).style.backgroundImage = that1;
		thisObject2(where).style.backgroundRepeat = that6;
		thisObject2(where).style.backgroundAttachment = that2;
		thisObject2(where).style.backgroundPosition = that3 + ' ' + that4;
	}

	//TYPOGRPAH
	if(how == "font") {
		that = document.mainform.font.options[document.mainform.font.selectedIndex].value;
		thisObject2(where).style.fontFamily = that;
	}
	if(how == "fontsize") {
		that = document.mainform.fontsize.options[document.mainform.fontsize.selectedIndex].value;
		thisObject2(where).style.fontSize = that;
	}
	if(how == "textdecoration") {
		that = document.mainform.textdecoration.options[document.mainform.textdecoration.selectedIndex].value;
		thisObject2(where).style.textDecoration = that;
	}
	if(how == "wordspacing") {
		that = document.mainform.wordspacing.options[document.mainform.wordspacing.selectedIndex].value;
		thisObject2(where).style.wordSpacing = that;
	}
	if(how == "lineheight") {
		that = document.mainform.lineheight.options[document.mainform.lineheight.selectedIndex].value;
		thisObject2(where).style.lineHeight = that;
	}
	if(how == "letterspacing") {
		that = document.mainform.letterspacing.options[document.mainform.letterspacing.selectedIndex].value;
		thisObject2(where).style.letterSpacing = that;
	}
	if(how == "textalign") {
		that = document.mainform.textalign.options[document.mainform.textalign.selectedIndex].value;
		thisObject2(where).style.textAlign = that;
	}
	if(how == "color") {
		that = thisObject("color").value;
		thisObject2(where).style.color = that;
	}
	if(how == "texttrans") {
		that = document.mainform.texttrans.options[document.mainform.texttrans.selectedIndex].value;
		thisObject2(where).style.textTransform = that;
	}
	if(how == "fontvaria") {
		that = document.mainform.fontvariant.options[document.mainform.fontvariant.selectedIndex].value;
		thisObject2(where).style.fontVariant = that;	
	}

	// BORDERS
	if(how == "bordertop") {
		that1 = document.mainform.bordertopstyle.options[document.mainform.bordertopstyle.selectedIndex].value;
		that2 = document.mainform.bordertopsize.options[document.mainform.bordertopsize.selectedIndex].value;
		that3 = thisObject("b-top-c").value;
		thisObject2(where).style.borderTopWidth = that2;
		thisObject2(where).style.borderTopStyle = that1;
		thisObject2(where).style.borderTopColor = that3;
	}
	if(how == "borderrig") {
		that1 = document.mainform.borderrigstyle.options[document.mainform.borderrigstyle.selectedIndex].value;
		that2 = document.mainform.borderrigsize.options[document.mainform.borderrigsize.selectedIndex].value;
		that3 = thisObject("b-rig-c").value;
		thisObject2(where).style.borderRightWidth = that2;
		thisObject2(where).style.borderRightStyle = that1;
		thisObject2(where).style.borderRightColor = that3;
	}
	if(how == "borderbot") {
		that1 = document.mainform.borderbotstyle.options[document.mainform.borderbotstyle.selectedIndex].value;
		that2 = document.mainform.borderbotsize.options[document.mainform.borderbotsize.selectedIndex].value;
		that3 = thisObject("b-bot-c").value;
		thisObject2(where).style.borderBottomWidth = that2;
		thisObject2(where).style.borderBottomStyle = that1;
		thisObject2(where).style.borderBottomColor = that3;
	}
	if(how == "borderlef") {
		that1 = document.mainform.borderlefstyle.options[document.mainform.borderlefstyle.selectedIndex].value;
		that2 = document.mainform.borderlefsize.options[document.mainform.borderlefsize.selectedIndex].value;
		that3 = thisObject("b-lef-c").value;
		thisObject2(where).style.borderLeftWidth = that2;
		thisObject2(where).style.borderLeftStyle = that1;
		thisObject2(where).style.borderLeftColor = that3;
	}

	//POSITION
	if(how == "position") {
		that = document.mainform.position.options[document.mainform.position.selectedIndex].value;
		thisObject2(where).style.position = that;	
	}
	if(how == "pos-top") {
		that = thisObject("pos-top").value;
		thisObject2(where).style.top = that;	
	}
	if(how == "pos-rig") {
		that = thisObject("pos-rig").value;
		thisObject2(where).style.right = that;	
	}
	if(how == "pos-bot") {
		that = thisObject("pos-bot").value;
		thisObject2(where).style.bottom = that;	
	}
	if(how == "pos-lef") {
		that = thisObject("pos-lef").value;
		thisObject2(where).style.left = that;	
	}
	saveut();
}



function saveut() {
	that1 = thisObject("height").value;
	that2 = thisObject("width").value;
	that3 = document.mainform.opacity.options[document.mainform.opacity.selectedIndex].value;
	that4 = document.mainform.cursor.options[document.mainform.cursor.selectedIndex].value;
	that5 = thisObject("c-url").value;
	that6 = thisObject("p-top").value;
	that7 = thisObject("p-rig").value;
	that8 = thisObject("p-bot").value;
	that9 = thisObject("p-lef").value;
	that10 = thisObject("m-top").value;
	that12 = thisObject("m-rig").value;
	that13 = thisObject("m-bot").value;
	that14 = thisObject("m-lef").value;
	that15 = thisObject("i-url").value;
	that16 = document.mainform.bgrep.options[document.mainform.bgrep.selectedIndex].value;
	that17 = document.mainform.bgatt.options[document.mainform.bgatt.selectedIndex].value;
	that18 = thisObject("pos-y").value;
	that19 = thisObject("pos-x").value;
	that20 = thisObject("bgcolor").value;
	that21 = document.mainform.font.options[document.mainform.font.selectedIndex].value;
	that22 = document.mainform.fontsize.options[document.mainform.fontsize.selectedIndex].value;
	that23 = document.mainform.textdecoration.options[document.mainform.textdecoration.selectedIndex].value;
	that24 = document.mainform.wordspacing.options[document.mainform.wordspacing.selectedIndex].value;
	that25 = document.mainform.lineheight.options[document.mainform.lineheight.selectedIndex].value;
	that26 = document.mainform.letterspacing.options[document.mainform.letterspacing.selectedIndex].value;
	that27 = document.mainform.textalign.options[document.mainform.textalign.selectedIndex].value;
	that28 = document.mainform.texttrans.options[document.mainform.texttrans.selectedIndex].value;
	that29 = document.mainform.fontvariant.options[document.mainform.fontvariant.selectedIndex].value;
	that30 = thisObject("color").value;
	that31 = thisObject("b-top-c").value;
	that32 = document.mainform.bordertopstyle.options[document.mainform.bordertopstyle.selectedIndex].value;
	that33 = document.mainform.bordertopsize.options[document.mainform.bordertopsize.selectedIndex].value;
	that34 = thisObject("b-rig-c").value;
	that35 = document.mainform.borderrigstyle.options[document.mainform.borderrigstyle.selectedIndex].value;
	that36 = document.mainform.borderrigsize.options[document.mainform.borderrigsize.selectedIndex].value;
	that37 = thisObject("b-bot-c").value;
	that38 = document.mainform.borderbotstyle.options[document.mainform.borderbotstyle.selectedIndex].value;
	that39 = document.mainform.borderbotsize.options[document.mainform.borderbotsize.selectedIndex].value;
	that40 = thisObject("b-lef-c").value;
	that41 = document.mainform.borderlefstyle.options[document.mainform.borderlefstyle.selectedIndex].value;
	that42 = document.mainform.borderlefsize.options[document.mainform.borderlefsize.selectedIndex].value;
	that43 = document.mainform.position.options[document.mainform.position.selectedIndex].value;
	that44 = thisObject("pos-top").value;
	that45 = thisObject("pos-rig").value;
	that46 = thisObject("pos-bot").value;
	that47 = thisObject("pos-lef").value;

	where = thisObject("current").innerHTML;
	if(where == "body") {
		css[0]=new Array(that1,that2,that3,that4,that5,that6,that7,that8,that9,that10,that12,that13,that14,that15,that16,that17,that18,that19,that20,that21,that22,that23,that24,that25,that26,that27,that28,that29,that30,that31,that32,that33,that34,that35,that36,that37,that38,that39,that40,that41,that42,that43,that44,that45,that46,that47);
	}
	if(where == "#list_surround") {
		css[1]=new Array(that1,that2,that3,that4,that5,that6,that7,that8,that9,that10,that12,that13,that14,that15,that16,that17,that18,that19,that20,that21,that22,that23,that24,that25,that26,that27,that28,that29,that30,that31,that32,that33,that34,that35,that36,that37,that38,that39,that40,that41,that42,that43,that44,that45,that46,that47);
	}
	if(where == ".status_not_selected") {
		css[2]=new Array(that1,that2,that3,that4,that5,that6,that7,that8,that9,that10,that12,that13,that14,that15,that16,that17,that18,that19,that20,that21,that22,that23,that24,that25,that26,that27,that28,that29,that30,that31,that32,that33,that34,that35,that36,that37,that38,that39,that40,that41,that42,that43,that44,that45,that46,that47);
	}
	if(where == ".status_selected") {
		css[3]=new Array(that1,that2,that3,that4,that5,that6,that7,that8,that9,that10,that12,that13,that14,that15,that16,that17,that18,that19,that20,that21,that22,that23,that24,that25,that26,that27,that28,that29,that30,that31,that32,that33,that34,that35,that36,that37,that38,that39,that40,that41,that42,that43,that44,that45,that46,that47);
	}
	if(where == ".header_title") {
		css[4]=new Array(that1,that2,that3,that4,that5,that6,that7,that8,that9,that10,that12,that13,that14,that15,that16,that17,that18,that19,that20,that21,that22,that23,that24,that25,that26,that27,that28,that29,that30,that31,that32,that33,that34,that35,that36,that37,that38,that39,that40,that41,that42,that43,that44,that45,that46,that47);
	}
	if(where == ".table_header") {
		css[5]=new Array(that1,that2,that3,that4,that5,that6,that7,that8,that9,that10,that12,that13,that14,that15,that16,that17,that18,that19,that20,that21,that22,that23,that24,that25,that26,that27,that28,that29,that30,that31,that32,that33,that34,that35,that36,that37,that38,that39,that40,that41,that42,that43,that44,that45,that46,that47);
	}
	if(where == ".td1") {
		css[6]=new Array(that1,that2,that3,that4,that5,that6,that7,that8,that9,that10,that12,that13,that14,that15,that16,that17,that18,that19,that20,that21,that22,that23,that24,that25,that26,that27,that28,that29,that30,that31,that32,that33,that34,that35,that36,that37,that38,that39,that40,that41,that42,that43,that44,that45,that46,that47);
	}
	if(where == ".td2") {
		css[7]=new Array(that1,that2,that3,that4,that5,that6,that7,that8,that9,that10,that12,that13,that14,that15,that16,that17,that18,that19,that20,that21,that22,that23,that24,that25,that26,that27,that28,that29,that30,that31,that32,that33,that34,that35,that36,that37,that38,that39,that40,that41,that42,that43,that44,that45,that46,that47);
	}
	if(where == ".category_totals") {
		css[8]=new Array(that1,that2,that3,that4,that5,that6,that7,that8,that9,that10,that12,that13,that14,that15,that16,that17,that18,that19,that20,that21,that22,that23,that24,that25,that26,that27,that28,that29,that30,that31,that32,that33,that34,that35,that36,that37,that38,that39,that40,that41,that42,that43,that44,that45,that46,that47);
	}
	if(where == "#grand_totals") {
		css[9]=new Array(that1,that2,that3,that4,that5,that6,that7,that8,that9,that10,that12,that13,that14,that15,that16,that17,that18,that19,that20,that21,that22,that23,that24,that25,that26,that27,that28,that29,that30,that31,that32,that33,that34,that35,that36,that37,that38,that39,that40,that41,that42,that43,that44,that45,that46,that47);
	}
	if(where == "#copyright") {
		css[10]=new Array(that1,that2,that3,that4,that5,that6,that7,that8,that9,that10,that12,that13,that14,that15,that16,that17,that18,that19,that20,that21,that22,that23,that24,that25,that26,that27,that28,that29,that30,that31,that32,that33,that34,that35,that36,that37,that38,that39,that40,that41,that42,that43,that44,that45,that46,that47);
	}

	//headers
	if(where == ".header_cw") {
		css[11]=new Array(that1,that2,that3,that4,that5,that6,that7,that8,that9,that10,that12,that13,that14,that15,that16,that17,that18,that19,that20,that21,that22,that23,that24,that25,that26,that27,that28,that29,that30,that31,that32,that33,that34,that35,that36,that37,that38,that39,that40,that41,that42,that43,that44,that45,that46,that47);
	}
	if(where == ".header_drop") {
		css[12]=new Array(that1,that2,that3,that4,that5,that6,that7,that8,that9,that10,that12,that13,that14,that15,that16,that17,that18,that19,that20,that21,that22,that23,that24,that25,that26,that27,that28,that29,that30,that31,that32,that33,that34,that35,that36,that37,that38,that39,that40,that41,that42,that43,that44,that45,that46,that47);
	}
	if(where == ".header_completed") {
		css[13]=new Array(that1,that2,that3,that4,that5,that6,that7,that8,that9,that10,that12,that13,that14,that15,that16,that17,that18,that19,that20,that21,that22,that23,that24,that25,that26,that27,that28,that29,that30,that31,that32,that33,that34,that35,that36,that37,that38,that39,that40,that41,that42,that43,that44,that45,that46,that47);
	}
	if(where == ".header_onhold") {
		css[14]=new Array(that1,that2,that3,that4,that5,that6,that7,that8,that9,that10,that12,that13,that14,that15,that16,that17,that18,that19,that20,that21,that22,that23,that24,that25,that26,that27,that28,that29,that30,that31,that32,that33,that34,that35,that36,that37,that38,that39,that40,that41,that42,that43,that44,that45,that46,that47);
	}
	if(where == ".header_pwt") {
		css[15]=new Array(that1,that2,that3,that4,that5,that6,that7,that8,that9,that10,that12,that13,that14,that15,that16,that17,that18,that19,that20,that21,that22,that23,that24,that25,that26,that27,that28,that29,that30,that31,that32,that33,that34,that35,that36,that37,that38,that39,that40,that41,that42,that43,that44,that45,that46,that47);
	}

	//links
	if(where == ".status_not_selected a") {
		css[16]=new Array(that1,that2,that3,that4,that5,that6,that7,that8,that9,that10,that12,that13,that14,that15,that16,that17,that18,that19,that20,that21,that22,that23,that24,that25,that26,that27,that28,that29,that30,that31,that32,that33,that34,that35,that36,that37,that38,that39,that40,that41,that42,that43,that44,that45,that46,that47);
	}
	if(where == ".status_not_selected a:hover") {
		css[17]=new Array(that1,that2,that3,that4,that5,that6,that7,that8,that9,that10,that12,that13,that14,that15,that16,that17,that18,that19,that20,that21,that22,that23,that24,that25,that26,that27,that28,that29,that30,that31,that32,that33,that34,that35,that36,that37,that38,that39,that40,that41,that42,that43,that44,that45,that46,that47);
	}
	if(where == ".status_selected a") {
		css[18]=new Array(that1,that2,that3,that4,that5,that6,that7,that8,that9,that10,that12,that13,that14,that15,that16,that17,that18,that19,that20,that21,that22,that23,that24,that25,that26,that27,that28,that29,that30,that31,that32,that33,that34,that35,that36,that37,that38,that39,that40,that41,that42,that43,that44,that45,that46,that47);
	}
	if(where == ".status_selected a:hover") {
		css[19]=new Array(that1,that2,that3,that4,that5,that6,that7,that8,that9,that10,that12,that13,that14,that15,that16,that17,that18,that19,that20,that21,that22,that23,that24,that25,that26,that27,that28,that29,that30,that31,that32,that33,that34,that35,that36,that37,that38,that39,that40,that41,that42,that43,that44,that45,that46,that47);
	}
	if(where == ".table_headerLink") {
		css[20]=new Array(that1,that2,that3,that4,that5,that6,that7,that8,that9,that10,that12,that13,that14,that15,that16,that17,that18,that19,that20,that21,that22,that23,that24,that25,that26,that27,that28,that29,that30,that31,that32,that33,that34,that35,that36,that37,that38,that39,that40,that41,that42,that43,that44,that45,that46,that47);
	}
	if(where == ".table_headerLink:hover") {
		css[21]=new Array(that1,that2,that3,that4,that5,that6,that7,that8,that9,that10,that12,that13,that14,that15,that16,that17,that18,that19,that20,that21,that22,that23,that24,that25,that26,that27,that28,that29,that30,that31,that32,that33,that34,that35,that36,that37,that38,that39,that40,that41,that42,that43,that44,that45,that46,that47);
	}
	if(where == ".animetitle") {
		css[22]=new Array(that1,that2,that3,that4,that5,that6,that7,that8,that9,that10,that12,that13,that14,that15,that16,that17,that18,that19,that20,that21,that22,that23,that24,that25,that26,that27,that28,that29,that30,that31,that32,that33,that34,that35,that36,that37,that38,that39,that40,that41,that42,that43,that44,that45,that46,that47);
	}
	if(where == ".animetitle:hover") {
		css[23]=new Array(that1,that2,that3,that4,that5,that6,that7,that8,that9,that10,that12,that13,that14,that15,that16,that17,that18,that19,that20,that21,that22,that23,that24,that25,that26,that27,that28,that29,that30,that31,that32,that33,that34,that35,that36,that37,that38,that39,that40,that41,that42,that43,that44,that45,that46,that47);
	}
	savecookie_silent();

}
function helpus(arg) {
	if(arg == "height") {
		thisObject("duitleg").innerHTML = "";
		thisObject("duitleg").innerHTML = "In this field you can define your height in Pixels, Procents or in just set it to auto.<br><br><b>Auto:</b> This will make your element fit your content.<br><br><b>Pixels:</b> Here you can define the element in absolute height. Insert your number and end it with \'px\'.<br><br><b>Procents:</b> Here you can define the element in %. Insert your number and end it with \'%\'. Be aware that this will expand to your body viewbord, if you dont get the desired result then make sure your body is \'100%\' width and height.";
	}
	if(arg == "width") {
		thisObject("duitleg").innerHTML = "";
		thisObject("duitleg").innerHTML = "In this field you can define your width in Pixels, Procents or in just set it to auto.<br><br><b>Auto:</b> This will make your element fit your content.<br><br><b>Pixels:</b> Here you can define the element in absolute width. Insert your number and end it with \'px\'.<br><br><b>Procents:</b> Here you can define the element in %. Insert your number and end it with \'%\'. Be aware that this will expand to your body viewbord, if you dont get the desired result then make sure your body is \'100%\' width and height.";
	}
}
function change(id) {
	thisObject('current').innerHTML = id;
}
function dis(where,how) {
	if(how == 1) {
		thisObject(where).disabled=false;
	} else {
		thisObject(where).disabled=true;
		thisObject(where).value="";
	}
}
function select(){
	if (document.selection) {
		try {
			var r1 = document.body.createTextRange();
			r1.moveToElementText(document.getElementById('finaloutput'));
			r1.setEndPoint("EndToEnd", r1);
			r1.moveStart('character', 1);
			r1.moveEnd('character', 0);
			r1.select();
		} catch (e) { }
	} else {
		s = window.getSelection();
		var r1 = document.createRange();
		r1.setStartBefore(document.getElementById('finaloutput'));
		r1.setEndAfter(document.getElementById('finaloutput')) ;
		s.addRange(r1);
	}
}
var XMLHttpRequestObject = false;
	if (window.XMLHttpRequest) {
		XMLHttpRequestObject = new XMLHttpRequest();
	} else if (window.ActiveXObject) {
		XMLHttpRequestObject = new ActiveXObject("Microsoft.XMLHTTP");
	}
function getData(dataSource, divID) {
	if(XMLHttpRequestObject) {
		var obj = document.getElementById(divID);
		XMLHttpRequestObject.open("GET", dataSource);
		XMLHttpRequestObject.onreadystatechange = function()
			{
			if (XMLHttpRequestObject.readyState == 4 && XMLHttpRequestObject.status == 200) {
			obj.innerHTML = XMLHttpRequestObject.responseText;
			}
		}
	XMLHttpRequestObject.send(null);
	}
}
function loadut(num) {
	thisObject("height").value = css[num][0];
	thisObject("width").value = css[num][1];
	for(i=0;i < document.mainform.opacity.length;i++) {
		if(document.mainform.opacity.options[i].value == css[num][2]) {
			document.mainform.opacity.selectedIndex = i;
		}
	}
	for(i=0;i < document.mainform.cursor.length;i++) {
		if(document.mainform.cursor.options[i].value == css[num][3]) {
			document.mainform.cursor.selectedIndex = i;
		}
	}
	thisObject("c-url").value = css[num][4];
	thisObject("p-top").value = css[num][5];
	thisObject("p-rig").value = css[num][6];
	thisObject("p-bot").value = css[num][7];
	thisObject("p-lef").value = css[num][8];
	thisObject("m-top").value = css[num][9];
	thisObject("m-rig").value = css[num][10];
	thisObject("m-bot").value = css[num][11];
	thisObject("m-lef").value = css[num][12];
	thisObject("i-url").value = css[num][13];
	for(i=0;i < document.mainform.bgrep.length;i++) {
		if(document.mainform.bgrep.options[i].value == css[num][14]) {
			document.mainform.bgrep.selectedIndex = i;
		}
	}
	for(i=0;i < document.mainform.bgatt.length;i++) {
		if(document.mainform.bgatt.options[i].value == css[num][15]) {
			document.mainform.bgatt.selectedIndex = i;
		}
	}
	thisObject("pos-y").value = css[num][16];
	thisObject("pos-x").value = css[num][17];
	thisObject("bgcolor").value = css[num][18];
	for(i=0;i < document.mainform.font.length;i++) {
		if(document.mainform.font.options[i].value == css[num][19]) {
			document.mainform.font.selectedIndex = i;
		}
	}
	for(i=0;i < document.mainform.fontsize.length;i++) {
		if(document.mainform.fontsize.options[i].value == css[num][20]) {
			document.mainform.fontsize.selectedIndex = i;
		}
	}
	for(i=0;i < document.mainform.textdecoration.length;i++) {
		if(document.mainform.textdecoration.options[i].value == css[num][21]) {
			document.mainform.textdecoration.selectedIndex = i;
		}
	}
	for(i=0;i < document.mainform.wordspacing.length;i++) {
		if(document.mainform.wordspacing.options[i].value == css[num][22]) {
			document.mainform.wordspacing.selectedIndex = i;
		}
	}
	for(i=0;i < document.mainform.lineheight.length;i++) {
		if(document.mainform.lineheight.options[i].value == css[num][23]) {
			document.mainform.lineheight.selectedIndex = i;
		}
	}
	for(i=0;i < document.mainform.letterspacing.length;i++) {
		if(document.mainform.letterspacing.options[i].value == css[num][24]) {
			document.mainform.letterspacing.selectedIndex = i;
		}
	}
	for(i=0;i < document.mainform.textalign.length;i++) {
		if(document.mainform.textalign.options[i].value == css[num][25]) {
			document.mainform.textalign.selectedIndex = i;
		}
	}
	for(i=0;i < document.mainform.texttrans.length;i++) {
		if(document.mainform.texttrans.options[i].value == css[num][26]) {
			document.mainform.texttrans.selectedIndex = i;
		}
	}
	for(i=0;i < document.mainform.fontvariant.length;i++) {
		if(document.mainform.fontvariant.options[i].value == css[num][27]) {
			document.mainform.fontvariant.selectedIndex = i;
		}
	}
	thisObject("color").value = css[num][28];
	thisObject("b-top-c").value = css[num][29];
	for(i=0;i < document.mainform.bordertopstyle.length;i++) {
		if(document.mainform.bordertopstyle.options[i].value == css[num][30]) {
			document.mainform.bordertopstyle.selectedIndex = i;
		}
	}
	for(i=0;i < document.mainform.bordertopsize.length;i++) {
		if(document.mainform.bordertopsize.options[i].value == css[num][31]) {
			document.mainform.bordertopsize.selectedIndex = i;
		}
	}
	thisObject("b-rig-c").value = css[num][32];
	for(i=0;i < document.mainform.borderrigstyle.length;i++) {
		if(document.mainform.borderrigstyle.options[i].value == css[num][33]) {
			document.mainform.borderrigstyle.selectedIndex = i;
		}
	}
	for(i=0;i < document.mainform.borderrigsize.length;i++) {
		if(document.mainform.borderrigsize.options[i].value == css[num][34]) {
			document.mainform.borderrigsize.selectedIndex = i;
		}
	}
	thisObject("b-bot-c").value = css[num][35];
	for(i=0;i < document.mainform.borderbotstyle.length;i++) {
		if(document.mainform.borderbotstyle.options[i].value == css[num][36]) {
			document.mainform.borderbotstyle.selectedIndex = i;
		}
	}
	for(i=0;i < document.mainform.borderbotsize.length;i++) {
		if(document.mainform.borderbotsize.options[i].value == css[num][37]) {
			document.mainform.borderbotsize.selectedIndex = i;
		}
	}
	thisObject("b-lef-c").value = css[num][38];
	for(i=0;i < document.mainform.borderlefstyle.length;i++) {
		if(document.mainform.borderlefstyle.options[i].value == css[num][39]) {
			document.mainform.borderlefstyle.selectedIndex = i;
		}
	}
	for(i=0;i < document.mainform.borderlefsize.length;i++) {
		if(document.mainform.borderlefsize.options[i].value == css[num][40]) {
			document.mainform.borderlefsize.selectedIndex = i;
		}
	}
	for(i=0;i < document.mainform.position.length;i++) {
		if(document.mainform.position.options[i].value == css[num][41]) {
			document.mainform.position.selectedIndex = i;
		}
	}
	thisObject("pos-top").value = css[num][42];
	thisObject("pos-rig").value = css[num][43];
	thisObject("pos-bot").value = css[num][44];
	thisObject("pos-lef").value = css[num][45];
	updatecss();

}
function updatecss() {
	var howz = ["body","#list_surround",".status_not_selected",".status_selected",".header_title",".table_header",".td1",".td2",".category_totals","#grand_totals","#copyright",".header_cw",".header_drop",".header_completed",".header_onhold",".header_pwt",".status_not_selected a",".status_not_selected a:hover",".status_selected a",".status_selected a:hover",".table_headerLink",".table_headerLink:hover",".animetitle",".animetitle:hover"];
	for(ert=0;ert<24;ert++) {
		ia=0;
		while(ia<46) {
			that = css[ert][ia];
			where = howz[ert];
			if(that != "") {
				//ELEMENT
				if(ia == 0) {
					thisObject2(where).style.height = that;	
				}
				if(ia == 1) {
					thisObject2(where).style.width = that;	
				}
				if(ia == 2) {
					thisObject2(where).style.filter = 'alpha(opacity=' + that + ')';
				}
				if(ia == 3) {
					that1 = that;
					that2 = css[ert][ia+1];
					if(!that2) {
						that = that1;
					} else {
						that = 'url('+that2+')';
					}
					thisObject2(where).style.cursor = that;
				}
				if(ia == 5) {
					thisObject2(where).style.paddingTop = that;
				}
				if(ia == 6) {
					thisObject2(where).style.paddingRight = that;
				}
				if(ia == 7) {
					thisObject2(where).style.paddingBottom = that;
				}
				if(ia == 8) {
					thisObject2(where).style.paddingLeft = that;
				}
				if(ia == 9) {
					thisObject2(where).style.marginTop = that;
				}
				if(ia == 10) {
					thisObject2(where).style.marginRight = that;
				}
				if(ia == 11) {
					thisObject2(where).style.marginBottom = that;
				}
				if(ia == 12) {
					thisObject2(where).style.marginLeft = that;
				}

				//BACKGROUND
				if(ia == 13) {
					if(that != "") {
						that = 'url('+that+')'
					}
					thisObject2(where).style.backgroundImage = that;
				}
				if(ia == 14) {
					if(that != "") { thisObject2(where).style.backgroundRepeat = that; }
				}
				if(ia == 15) {
					if(that != "") { thisObject2(where).style.backgroundAttachment = that; }
				}
				if(ia == 16) {
					if(that != "" || css[ert][ia+1] != "") { thisObject2(where).style.backgroundPosition = that + ' ' + css[ert][ia+1]; }
				}
				if(ia == 18) {
					if(that != "") { thisObject2(where).style.backgroundColor = that; }
				}

				//TYPOGRPAH
				if(ia == 19) {
					thisObject2(where).style.fontFamily = that;
				}
				if(ia == 20) {
					thisObject2(where).style.fontSize = that;
				}
				if(ia == 21) {
					thisObject2(where).style.textDecoration = that;
				}
				if(ia == 22) {
					thisObject2(where).style.wordSpacing = that;
				}
				if(ia == 23) {
					thisObject2(where).style.lineHeight = that;
				}
				if(ia == 24) {
					thisObject2(where).style.letterSpacing = that;
				}
				if(ia == 25) {
					thisObject2(where).style.textAlign = that;
				}
				if(ia == 26) {
					thisObject2(where).style.color = that;
				}
				if(ia == 27) {
					thisObject2(where).style.textTransform = that;
				}
				if(ia == 28) {
					thisObject2(where).style.fontVariant = that;	
				}

				// BORDERS
				if(ia == 29) {
					thisObject2(where).style.borderTopColor = that;
				}
				if(ia == 30) {
					thisObject2(where).style.borderTopStyle = that;
				}
				if(ia == 31) {
					thisObject2(where).style.borderTopWidth = that;
				}
				if(ia == 32) {
					thisObject2(where).style.borderRightColor = that;
				}
				if(ia == 33) {
					thisObject2(where).style.borderRightStyle = that;
				}
				if(ia == 34) {
					thisObject2(where).style.borderRightWidth = that;
				}
				if(ia == 35) {
					thisObject2(where).style.borderBottomColor = that;
				}
				if(ia == 36) {
					thisObject2(where).style.borderBottomStyle = that;
				}
				if(ia == 37) {
					thisObject2(where).style.borderBottomWidth = that;
				}
				if(ia == 38) {
					thisObject2(where).style.borderLeftColor = that;
				}
				if(ia == 39) {
					thisObject2(where).style.borderLeftStyle = that;
				}
				if(ia == 40) {
					thisObject2(where).style.borderLeftWidth = that;
				}

				//POSITION
				if(ia == 41) {
					thisObject2(where).style.position = that;	
				}
				if(ia == 42) {
					thisObject2(where).style.top = that;	
				}
				if(ia == 43) {
					thisObject2(where).style.right = that;	
				}
				if(ia == 44) {
					thisObject2(where).style.bottom = that;	
				}
				if(ia == 45) {
					thisObject2(where).style.left = that;	
				}
			}
		ia = ia + 1;
		}
	}
}
function savecookie() {
	for(i=0;i<24;i++) {
		Cookie.set('malhelp'+i, css[i]);
	}
	alert('Your settings have been saved!');
}
function savecookie_silent() {
	for(i=0;i<24;i++) {
		Cookie.set('malhelp'+i, css[i]);
	}
}
function clearcookie() {
	var answer = confirm('Are you sure you want to reset your settings?');
	if (answer){
		for(i=0;i<24;i++) {
			Cookie.remove('malhelp'+i)
		}
		css = getarray();
		thisObject("current").innerHTML = "body";
		loadut(0);
	}
}
function getarray() {
	//Global Arrays
	if(Cookie.get('malhelp0') == "" || Cookie.get('malhelp0') == false) {
		var css=[["","","","","","","","","","","","","","","","","","","#FFFFFF","Verdana","11px","","","","","","","","#000000","","","","","","","","","","","","","","","","",""],
		["","960px","","","","","","","","0px","auto","0px","auto","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","",""],
		["","","","","","2px","2px","2px","2px","","","","","","","","","","#FFFFFF","","","","","","","","","","#000000","","","","#ABABAB","solid","1px","#ABABAB","solid","1px","","","","","","","",""],
		["","","","","","2px","2px","2px","2px","","","","","","","","","","#F1F1F1","","","","","","","","","","#000000","","","","#ABABAB","solid","1px","#ABABAB","solid","1px","","","","","","","",""],
		["","","","","","","","","","","","","","","","","","","","","14px","","","","","","","","","","","","","","","","","","","","","","","","",""],
		["","","","","","2px","2px","2px","2px","","","","","","","","","","#E7F1F7","","","","","","","","","","#000000","#ABABAB","solid","1px","#ABABAB","solid","1px","#ABABAB","solid","1px","","","","","","","",""],
		["","","","","","2px","2px","2px","2px","","","","","","","","","","#FFFFFF","","","","","","","","","","","","","","#ABABAB","solid","1px","#ABABAB","solid","1px","","","","","","","",""],
		["","","","","","2px","2px","2px","2px","","","","","","","","","","#F1F1F1","","","","","","","","","","","","","","#ABABAB","solid","1px","#ABABAB","solid","1px","","","","","","","",""],
		["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","",""],
		["","","","","","","","","","","","","","","","","","","","","","","","","","center","","","","","","","","","","","","","","","","","","","",""],
		["","","","","","6px","","","","0","auto","0","auto","","","","","","","","","","","","","center","","","","","","","","","","","","","","","","","","","",""], //Headers
		["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","",""],
		["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","",""],
		["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","",""],
		["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","",""],
		["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","",""], //Links
		["","","","","","","","","","","","","","","","","","","","","","none","","","","","","","#51819F","","","","","","","","","","","","","","","","",""],
		["","","","","","","","","","","","","","","","","","","","","","underline","","","","","","","#51819F","","","","","","","","","","","","","","","","",""],
		["","","","","","","","","","","","","","","","","","","","","","none","","","","","","","#51819F","","","","","","","","","","","","","","","","",""],
		["","","","","","","","","","","","","","","","","","","","","","underline","","","","","","","#51819F","","","","","","","","","","","","","","","","",""],
		["","","","","","","","","","","","","","","","","","","","","","none","","","","","","","#51819F","","","","","","","","","","","","","","","","",""],
		["","","","","","","","","","","","","","","","","","","","","","underline","","","","","","","#51819F","","","","","","","","","","","","","","","","",""],
		["","","","","","","","","","","","","","","","","","","","","","none","","","","","","","#51819F","","","","","","","","","","","","","","","","",""],
		["","","","","","","","","","","","","","","","","","","","","","underline","","","","","","","#51819F","","","","","","","","","","","","","","","","",""]];
	} else {
		var css=[];
		for(i=0;i<24;i++) {
			temp = Cookie.get('malhelp'+i);
			css[i] = temp.split(',');
		}
	}
	return css;
}


/* ]]> */
