

var qmv = new Object();
if (!window.qmad) qmad = new Object();

qmv.addons_unlocked = '';
qmv.access_type = '';
qmv.login_user_name = '';
qmv.login_user_pass = '';
qmv.track = new Object();
qmv.preview_mode = true;
qmv.id = -1;
qmv.base_zindex = 999999;
qmv.texturl_state = "text";
qmv.addontoolpositioners = "";

//qmv.ms_hide_timer = 500;
//qmv.ms_hide_timer = new Object();
//qmv.ms_show_timer = 0;

qmv.ms_show_timer = new Object();

qmv.color_dispaly_type = "HEX";
qmv.color_apply_type = "HEX";
qmv.tree_collapse = false;
qmv.interface_hide_selected_box = false;
qmv.pointer = new Object();
qmv.skins = new Object();
qmv.cursor = "hand";
qmv.cursorfix = "";
qmv.is101 = false;
qmv.pure = true;
qmv.report = new Object();
qmv.report.tab = "all";
qmv.report.height = 100;
qmv.csshtml_padding_top = 15;
qmv.csshtml_padding_left = 10;
qmv.csshtml_padding_right = 10;
qmv.vdesign_tab = "design"
qmv.globaldividers_sub = true;
qmv.globaldividers_main = false;
qmv.globaldividers_above = false;
qmv.globaldividers_below = false;



qmv.base = "http://www.opencube.com/qmv7/";
qmv.base_ajax = "http://www.opencube.com/qmv7/qmajax/";
qmv.base_site = "http://www.opencube.com/";


qmv.tval = (window.location+"").toLowerCase();
if (qmv.tval.indexOf("opencube.com")+1 || qmv.tval.indexOf("http://jesse")+1) //run from opencube website
{
	

	//qmu = false;
	//qmv.unlock_type = "eval";

	qmv.base = "";
	qmv.base_ajax = "qmajax/"
	qmv.base_site = "http://www.opencube.com/"
	qmv.is_online = true;

	if (qmv.tval.indexOf("jesse")+1)
	{
		qmv.is_developer=1;
		qmv.base_site = "http://jesse/"
	}

}
else if ((parent && parent.is_chrome) || (qmv.tval.indexOf("visual quickmenu")+1) || (qmv.tval.indexOf("visual%20quickmenu")+1) || (qmv.tval.indexOf("qmv7")+1)) //run from install
{
	
	qmv.base = "";
	qmv.is_installed_version = true;

	qmv.addons_unlocked = 'superpack,';
	qmv.access_type = 'full';


	if (qmv.tval.indexOf("qmv7")+1)
	{
		qmv.is_developer=1;
		qmv.base_site = "http://jesse/"
	}

	if (parent && parent.is_chrome)
	{
		qmv.is_chrome = true;
		qmv.base = parent.base.replace(/\ /g,"%20");

		
		if (qmv.tval.indexOf("dlaessio")+1)
		{
			qmv.base_site = "http://jesse/";
			qmv.base_ajax = "http://jesse/qmv7/qmajax/";
		}
		

	}
	

}
else if (window.qmv_iisv)  //saved menu from installed version
{

	qmv.is_installed_version = true;
	qmv.addons_unlocked = 'superpack,';
	qmv.access_type = 'full';

}


/*
else if (qmv.tval.indexOf("c:/opencube/qmv7")+1)
{

	//opened from a save or published menu
	qmv.base = "http://jesse/qmv7/";
	qmv.base_ajax = "http://jesse/qmv7/qmajax/"
	qmv.base_site = "http://jesse/"
	qmv.is_developer=1;

}
*/



//if (window.qm_install || window.name == "qmeval" || window.qm_evalrun || window.qm_evalsave || qmv.is_installed_version)
	//qmv.no_login = true;





qmad.br_ie = window.showHelp;
qmad.br_navigator = navigator.userAgent.indexOf("Netscape")+1;
qmad.br_version = parseFloat(navigator.vendorSub);
qmad.br_oldnav = qmad.br_navigator && qmad.br_version<7.1;
qmad.br_strict = (dcm = document.compatMode) && dcm=="CSS1Compat";
qmad.br_fox = navigator.userAgent.indexOf("irefox")+1 || navigator.userAgent.indexOf("prism/")+1;
qmad.br_ie7 = navigator.userAgent.indexOf("MSIE 7")+1;
qmad.br_ie8 = navigator.userAgent.indexOf("MSIE 8")+1;
qmad.br_safari = navigator.userAgent.indexOf("afari")+1;
qmad.br_s3 = qmad.br_safari && navigator.userAgent.indexOf("ersion/3")+1;
qmad.br_s4 = qmad.br_safari && navigator.userAgent.indexOf("ersion/4")+1;
qmad.br_chrome = navigator.userAgent.indexOf("Chrome")+1;
qmad.br_shiratoko = navigator.userAgent.toLowerCase().indexOf("shiretoko")+1;
qmad.gecko = navigator.userAgent.indexOf("Gecko")+1;


if (qmad.br_chrome || qmad.br_shiratoko || qmad.gecko || qmad.br_s3 || qmad.br_s4) qmad.br_fox = true;

if (qmad.br_fox) qmv.cursor = "pointer";
if (qmad.br_fox)
	qmv.cursorfix = "overflow:auto;"


qmv.resize_off_css = "";
if (qmad.br_s3) qmv.resize_off_css = "resize:none;"



if ((qmad.gecko || qmad.br_ie || qmad.br_fox || qmad.br_ie8) && window.name!="qmvtemplateiframe")
{
	

	if (window.attachEvent)
		window.attachEvent("onload",qmv_load);
	else if (window.addEventListener)
		window.addEventListener("load",qmv_load,true);

	if (window.attachEvent)
		window.attachEvent("onresize",qmv_auto_size_interface_height);
	else if (window.addEventListener)
		window.addEventListener("resize",qmv_auto_size_interface_height,true);


	if (!qmad.br_ie && document.addEventListener)
		document.addEventListener("mousemove",qmv_evt_move_fixcapture,true);
	

	if (window.attachEvent)
		document.attachEvent("onmouseup",qmv_evt_fix_mouse_up);
	else if (window.addEventListener)
		document.addEventListener("mouseup",qmv_evt_fix_mouse_up,true);

	window.onerror = qmv_log_errors;
	qmv_init();


}
else
{

	

	qmv = null;

	if (window.name!="qmvtemplateiframe")
		alert("The visual interface is not compatible with this browser version.\r\n\r\nWhile your menu will work in this environment, you must use\r\n\Firefox (v2 and 3+), Internet Explorer (v6 and 7), or Safari (v3+)\r\nfor visual design.");
}

	


function qmv_init_unlock()
{
	
	qmv.unlock_orig = "";

	if (qmv.is_chrome)
	{
		qmv.unlock_type = parent.xqmv.settings.unlock_type;
		
		if (qmv.unlock_type)
		{

			qmv.unlock_orig = parent.xqmv.settings.unlock_orig;

			if (qmv.unlock_type=="unlimited")
				qmv.unlock_string = qmv.unlock_orig;	
			else
			{
				qmv.unlock_string = "qm_single='"+qmv.unlock_orig+"'";

				if (qmv.unlock_orig.length>1)
					qmv.unlock_orig = qmv.unlock_orig.substring(0,qmv.unlock_orig.length-1);

			}	
		}
	
	}
	else if (window.qmv7 && !qmv.is_online)
	{
		qmv.unlock_orig = "qmv7=true";
		qmv.unlock_string = qmv.unlock_orig;
		qmv.unlock_type = "unlimited";

	}
	else if (window.qm_single)
	{
		qmv.unlock_orig = qm_single;
		qmv.unlock_string = "qm_single='"+qm_single+"'";

		if (qmv.unlock_orig.length>1)
			qmv.unlock_orig = qmv.unlock_orig.substring(0,qmv.unlock_orig.length-1);

		
		qmv.unlock_type = "single";
	}


}



function qmv_init()
{
	
	var wt = "";
	
	qmv_init_unlock();
	qmv_init_addons();

	if (!qmad.bvis) qmad.bvis = "";
	if (!qmad.bhide) qmad.bhide = "";
	if (!qmad.bhover) qmad.bhover = "";
	if (!qmad.binit) qmad.binit = "";


	//save the initial hide timer setting
	//if (window.qm_th)
		//qmv.ms_hide_timer = qm_th;
	
	
	

	if (!window.qm_create)
	{
		wt += '<style type="text/css">';
		wt += qmv_pubgen_get_core_css();
		wt += '</style>';
		
		qmv.is_blank = true;
	}

	
	if (!qmv.is_installed_version || qmv.is_chrome)
	{
		
		wt += '<sc'+'ript type="text/javascript" src="'+qmv.base+'qmajax/ajax.js"></sc'+'ript>';
		wt += '<sc'+'ript type="text/javascript" src="'+qmv.base+'qmajax/login.js"></sc'+'ript>';
	}


	wt += '<sc'+'ript type="text/javascript">'+qmv_get_source_code_core_visual_iface()+'function qm_kille(e,skip_default){if (!e) e = event;e.cancelBubble = true;if (e.stopPropagation)e.stopPropagation();if (!skip_default){if (e.preventDefault)e.preventDefault();e.returnValue = false;}}</scr'+'ipt>';
	//wt += '<sc'+'ript type="text/javascript" src="qm.js"></scr'+'ipt>';


	wt += '<style type="text/css">.qmvistreestyles{}</style>';
	wt += '<style type="text/css">.qmvisscrollstyles{}</style>';
	wt += '<style type="text/css">.qmvibcssstyles{}</style>';
	wt += '<style type="text/css">.qmfv{visibility:inherit !important;}.qmfh{visibility:hidden !important;}';


	//these settings are in case a user is using old core css
	wt += '.qmmc a{position:relative;z-index:1;}'
	wt += '.qmmc .qmdivider{position:relative;z-index:1;}'
	wt += '.qmmc .qmtitle{position:relative;z-index:1;}'

	wt += '.qmvi-report-tabs {font-size:11px;color:#111111;text-align:center;padding:2px 0px 0px 0px;}';
	wt += '.qmvi-report-lines {font-size:12px;color:#222222;text-align:left;padding:1px 7px 2px 6px;}';

	wt += '.qmvi-dialog-container {z-index:'+(qmv.base_zindex+100)+';background-color:#eeeeee;visibility:hidden;position:absolute;font-size:13px;border-width:1px;border-style:solid;border-color:#828EA2;}';
	wt += '.qmvi-dialog-content-container {padding:10px;color:#222222;}';
	wt += '.qmvi-dialog-button {margin-left:5px;font-size:12px;padding:0px 6px 0px 6px;}';
	wt += '.qmvi-dialog-input-title {font-size:12px;color:#222222;}';
	
	wt += '.qmvi-container {z-index:'+qmv.base_zindex+';background-color:#FBFBFF;visibility:hidden;position:absolute;font-size:13px;border-width:1px;border-style:solid;border-color:#828EA2;}';
	wt += '.qmvi-common {font-family:Arial;text-decoration:none;}';
	
	wt += '.qmvi-title {color:#ffffff;background-image:url('+qmv.base+'images/title_bg.gif);cursor:default;font-size:1em;font-weight:normal;padding:4px 0px 4px 4px;background-color:#3e4d67;border-width:0px 0px 1px 0px;border-style:solid;border-color:#828EA2}';
	wt += '.qmvi-menu {font-size:1em;padding:1px 0px 1px 2px;background-color:#DFE7EF;border-width:0px 0px 1px 0px;border-style:solid;border-color:#828EA2}';
	wt += '.qmvi-menu-item {font-size:.9em;padding:1px 4px 1px 3px;display:inline;color:#333333;border-color:#DFE7EF;border-style:solid;border-width:1px 1px 1px 1px;}';
	wt += '.qmvi-menu-item:hover {border-color:#999999;border-top-color:#ffffff;border-left-color:#ffffff;background-color:#DaE1Eb;color:#111111;}';
	wt += '.qmvi-buttons {font-size:.9em;padding:6px 0px 0px 4px;background-color:transparent;border-width:0px 0px 0px 0px;border-style:solid;border-color:#828EA2}';
	wt += '.qmvi-texturl {font-size:.9em;padding:4px 0px 6px 4px;background-color:transparent;border-width:0px 0px 0px 0px;border-style:solid;border-color:#828EA2}';
	wt += '.qmvi-colordialog-border {border-width:1px;border-color:#888888;border-style:solid;}';
	wt += '.qmvi-colordialog-inputs {border-width:1px;border-color:#888888;border-style:solid;font-size:12px;text-align:right;padding-right:4px;}';
	wt += '.qmvi-colordialog-titles {font-size:12px;color:#222222;}';
	wt += '.qmvi-colordialog-brightbar-parts {height:11px;font-size:1px;}';
	wt += '.qmvi-publish-title {padding-bottom:3px;color:#222222;font-size:13px;border-color:#888888;border-width:0px 0px 1px 0px;border-style:solid;}';
	wt += '.qmvi-no-focus:focus {outline:none;}';	

	wt += '#qm99, #qm98 div {background-color:#f6f6f6;border-color:#828EA2;border-style:solid;border-width:1px;padding:5px 0px 5px 0px;}';
	wt += '#qm99 a, #qm98 div a {font-family:Arial;font-size:12px;color:#333333;text-decoration:none;padding:2px 30px 2px 5px;margin:0px 5px 0px 5px;}';
	wt += '#qm99 a:hover, #qm98 div a:hover {background-color:#828EA2;color:#ffffff;}';


	wt += '#qm98 {}';
	wt += '#qm98 a {text-decoration:none;font-size:12px;padding:3px 6px 3px 5px;color:#333333;border-style:none;}';
	wt += '#qm98 a:hover {background-color:#828EA2;color:#ffffff}';
	wt += 'body #qm98 .qmactive {background-color:#828EA2;color:#ffffff}';
	wt += '#qm98 div a{border-style:none;padding-left:14px;}';
	wt += '#qm98 div .qmparent{background-image:url('+qmv.base+'images/arrow_4.gif);background-repeat:no-repeat;background-position:95% 50%;}';
	wt += '#qm98 div .qmactive{background-image:url('+qmv.base+'images/arrow_5.gif);}';




	wt += '#qm98 div{}';
	wt += '#qm98 a:hover.qmdisabled,#qm99 a:hover.qmdisabled{background-color:transparent;color:#888888;}';
	wt += '#qm98 a.qmdisabled,#qm99 a.qmdisabled{color:#888888;font-style:italic;}';

	wt += '.qmvi-tree-container {font-size:1em;padding:0px;background-color:transparent;}';
		

	wt += '#qmvtree {width:auto !important;height:auto !important;background-color:#eeeeee;border-width:0px 1px 1px 0px;border-style:solid;border-color:#828EA2;}';
	wt += '#qmvtree a {background-repeat:repeat-x;background-position:bottom;background-image:url('+qmv.base+'images/tree_bg.gif);border-width:1px 0px 0px 0px;border-style:solid;border-color:#828EA2;color:#333333;padding:5px 0px 5px 4px;font-size:1em;text-decoration:none;}';
	wt += '#qmvtree a:hover {color:#dd3300;}';

	wt += '#qmvtree a {position:static;}';	
	wt += '#qmvtree div a {background-image:none;border-style:none;padding:0px 0px 0px 0px;margin-left:5px;}';
	wt += '#qmvtree .qmactive {background-image:url('+qmv.base+'images/tree_bg_hl.gif);text-decoration:none;}';
	wt += '#qmvtree div .qmactive {background-image:none;}';
	

	wt += '#qmvt2 {width:auto !important;height:auto !important;background-color:#f6f6f6;padding:10px 0px 0px 20px;}';
	wt += '#qmvt2 a {outline:none;font-family:Arial;background-repeat:repeat-x;background-position:bottom;color:#333333;padding:1px 0px 1px 0px;font-size:13px;text-decoration:none;}';
	wt += '#qmvt2 a:hover {color:#dd3300;}';
	wt += '#qmvt2 div {padding-left:8px;}';

	wt += '#qmvt2 a {position:static;}';	
	wt += '#qmvt2 div a {border-style:none;padding:1px 0px 1px 0px;color:#333333;}';
	wt += '#qmvt2 .qmactive {text-decoration:none;}';
	wt += 'body #qmvt2 .qmcur {color:#0033dd;}';
	wt += '#qmvt2 .qmttcheck {margin-right:5px;}';
	wt += '#qmvt2 .ttinputdesc {color:#50597D;}';
	wt += '#qmvt2 .ttinputtitle {color:#50597D;text-decoration:underline;}';

	wt += '#qmsetbox {margin-left:10px;}';
	wt += '#qmsetbox a {color:#222222;font-size:1em;text-decoration:none;position:static;}';

	wt += '.qmvtree-col1 {font-size:12px;color:#00224A;text-align:right;white-space:nowrap;width:90px;}';
	wt += '.qmvtree-col2 {}';
	wt += '.qmvtree-col3 {color:#888888;font-weight:bold;}';
	wt += '.qmvtree-col4 {padding-right:5px;}';

	var tv2 = "width:100%;";
	var tv1 = "display:block;";
	if (qmad.br_ie && !qmad.br_ie8) tv1 = "position:absolute;"
	if (qmad.br_ie7) tv2 = "width:95%;";



	if (qmad.br_ie)
	{
		wt += '.qmvtree-radio{margin-bottom:-1px;}';	
		wt += '.qmvtree-checkbox{margin-bottom:0px;}';	
	}
	else
	{
		wt += '.qmvtree-radio{margin-bottom:-2px;margin-left:4px;margin-right:4px;}';
		wt += '.qmvtree-checkbox{margin-bottom:1px;margin-left:4px;margin-right:4px;}';
	}
	
	
	wt += '.qmvtree-style-name{cursor:help;}';
	wt += '.qmvtree-custlegend{border-width:1px 1px 1px 1px;border-style:solid;border-color:#999999;font-size:12px;display:block;position:absolute;padding:0px 4px 1px 4px;background-color:#ffffff;color:#003366;margin-top:-23px;margin-left:0px;width:60px;}';
	wt += '.qmvtree-custfieldset{border-width:1px 0px 0px 0px;border-style:solid;border-color:#999999;padding:13px 5px 5px 5px;}';


	wt += '.qmvtree-input {'+tv1+tv2+'font-family:Arial;padding:0px;margin:0px;border-width:0px;background-color:transparent;font-size:12px;'+qmv.resize_off_css+'}';
	wt += '.qmvtree-input-dialog{position:relative;width:100%;}';
	wt += '.qmvtree-input-container-dialog {'+qmv.cursorfix+'display:block;position:relative;padding:3px;border-width:1px;border-color:#888888;border-style:solid;background-color:#ffffff;}';
	wt += '.qmvtree-input-container {'+qmv.cursorfix+'margin-bottom:0px;height:15px;display:block;position:relative;padding:1px 0px 1px 3px;border-width:1px;border-color:#888888;border-style:solid;background-color:#ffffff;}';



	if (qmad.br_ie && !qmad.br_strict)
	{
		
		wt += '.qmvtree-input-container-dialog {height:24px !important;}';
		wt += '.qmvtree-input-container {height:18px !important;}';
	}

	wt += '.qmvtree-colon{color:#888888;font-weight:bold;}';
	wt += '.qmvtree-button{cursor:default;display:block;text-align:center;background-color:#e6e6e6;color:#222222;font-family:Arial;font-size:13px;font-weight:normal;border-width:1px; border-color:#888888; border-top-color:#cccccc;border-left-color:#cccccc;border-style:solid; width:16px; height:16px;}';
	wt += '.qmvtree-button-apply{display:block;margin-left:10px;font-size:11px;width:60px;text-align:center;line-height:16px;}';
	
	if (!qmad.br_ie)
	{	
		var tipos = "3px 2px";
		var bipos = "3px 1px";
		wt += '.qmvtree-button-up{height:8px;font-size:1px;display:block;background-image:url('+qmv.base+'images/spinner_up.gif);background-position:'+tipos+';background-repeat:no-repeat;border-bottom-width:0px;}';
		wt += '.qmvtree-button-down{height:8px;font-size:1px;display:block;background-image:url('+qmv.base+'images/spinner_down.gif);background-position:'+bipos+';background-repeat:no-repeat;border-top-width:0px;}';
	}
	else
	{
		wt += '.qmvtree-button-up{height:8px;font-size:1px;display:block;border-bottom-width:0px;}';
		wt += '.qmvtree-button-up img{margin-left:1px;margin-top:2px;}';
		wt += '.qmvtree-button-down{height:8px;font-size:1px;display:block;border-top-width:0px;}';
		wt += '.qmvtree-button-down img{margin-left:1px;margin-top:1px;}';
	}

	wt += '.qmvtree-bracket{display:block;margin-left:-10px;color:#888888;}';
	wt += '.qmvtree-rule{color:#888888;}';
	wt += '.qmvtree-close-show{margin-bottom:10px;}';
	wt += '.qmv-icon-buttons{border-width:1px;border-color:#888888;border-style:solid;margin-left:1px;display:block;}';

	wt += '</style>';

	

	//add the add on code
	
	wt += '<scr'+'ipt type="text/javascript">';
	wt +=  qmv_get_add_on_code("all");
	wt += '</scr'+'ipt>';

		
	/*													
	wt += '<scr'+'ipt type="text/javascript" src="qm_keyboard_access.js">';
	wt += '</scr'+'ipt>';
	
	wt += '<scr'+'ipt type="text/javascript" src="qm_images.js">';
	wt += '</scr'+'ipt>';

	wt += '<scr'+'ipt type="text/javascript" src="qm_tree_menu.js">';
	wt += '</scr'+'ipt>';

	wt += '<scr'+'ipt type="text/javascript" src="qm_scroll.js">';
	wt += '</scr'+'ipt>';

	wt += '<scr'+'ipt type="text/javascript" src="qm_slide_effect.js">';
	wt += '</scr'+'ipt>';

	wt += '<scr'+'ipt type="text/javascript" src="qm_bump_effect.js">';
	wt += '</scr'+'ipt>';

	wt += '<scr'+'ipt type="text/javascript" src="qm_merge_effect.js">';
	wt += '</scr'+'ipt>';

	wt += '<scr'+'ipt type="text/javascript" src="qm_drop_shadow.js">';
	wt += '</scr'+'ipt>';

	wt += '<scr'+'ipt type="text/javascript" src="qm_round_corners.js">';
	wt += '</scr'+'ipt>';

	wt += '<scr'+'ipt type="text/javascript" src="qm_sub_opacity.js">';
	wt += '</scr'+'ipt>';

	wt += '<scr'+'ipt type="text/javascript" src="qm_match_widths.js">';
	wt += '</scr'+'ipt>';

	wt += '<scr'+'ipt type="text/javascript" src="qm_tabs.js">';
	wt += '</scr'+'ipt>';

	wt += '<scr'+'ipt type="text/javascript" src="qm_tabs_css.js">';
	wt += '</scr'+'ipt>';
	
	wt += '<scr'+'ipt type="text/javascript" src="qm_item_bullets.js">';
	wt += '</scr'+'ipt>';

	wt += '<scr'+'ipt type="text/javascript" src="qm_item_bullets_css.js">';
	wt += '</scr'+'ipt>';
	
	wt += '<scr'+'ipt type="text/javascript" src="qm_over_select.js">';
	wt += '</scr'+'ipt>';
	
	wt += '<scr'+'ipt type="text/javascript" src="qm_auto_position_subs.js">';
	wt += '</scr'+'ipt>';
	
	wt += '<scr'+'ipt type="text/javascript" src="qm_pointer.js">';
	wt += '</scr'+'ipt>';
	
	wt += '<scr'+'ipt type="text/javascript" src="qm_box_effect.js">';
	wt += '</scr'+'ipt>';
	
	wt += '<scr'+'ipt type="text/javascript" src="qm_round_items.js">';
	wt += '</scr'+'ipt>';

	wt += '<scr'+'ipt type="text/javascript" src="qm_hover_fill.js">';
	wt += '</scr'+'ipt>';
	*/		

	
	qmad.qmsetbox = new Object();	
	qmad.qmsetbox.tree_hide_focus_box = true;
	qmad.qmsetbox.tree_auto_collapse = true;			
	qmad.qmsetbox.tree_expand_step_size = 15;
	qmad.qmsetbox.tree_collapse_step_size = 20;
	qmad.qmsetbox.tree_expand_animation = 0
	qmad.qmsetbox.tree_collapse_animation = 0
	qmad.qmsetbox.tree_width = "100%";
	qmad.qmsetbox.tree_sub_indent = 10; 
	qmad.qmsetbox.tree_sub_top_padding = 5;
	qmad.qmsetbox.tree_sub_bottom_padding = 5;

	qmad.qmsetbox.ibullets_main_image = qmv.base+"images/sub_plus.gif";
	qmad.qmsetbox.ibullets_main_image_active = qmv.base+"images/sub_plus_active.gif";
	qmad.qmsetbox.ibullets_main_image_hover = qmv.base+"images/sub_plus_hover.gif";
	qmad.qmsetbox.ibullets_main_image_width_height = "5,5";
	qmad.qmsetbox.ibullets_main_image_margin = "0px 20px 0px 0px";	//top, right, bottom, left
	qmad.qmsetbox.ibullets_main_position = "-8,5";			//left, top

	qmad.qmsetbox.ibullets_sub_image = qmv.base+"images/sub_plus.gif";
	qmad.qmsetbox.ibullets_sub_image_active = qmv.base+"images/sub_plus_active.gif";
	qmad.qmsetbox.ibullets_sub_image_hover = qmv.base+"images/sub_plus_hover.gif";
	qmad.qmsetbox.ibullets_sub_image_width_height = "5,5";
	qmad.qmsetbox.ibullets_sub_image_margin = "0px 20px 0px 0px";	//top, right, bottom, left
	qmad.qmsetbox.ibullets_sub_position = "-8,5";			//left, top

	

	//visual tree menu settings
	qmad.qmvtree = new Object();	
	qmad.qmvtree.tree_hide_focus_box = true;
	qmad.qmvtree.tree_auto_collapse = true;			
	qmad.qmvtree.tree_expand_step_size = 15;
	qmad.qmvtree.tree_collapse_step_size = 20;
	qmad.qmvtree.tree_expand_animation = 0
	qmad.qmvtree.tree_collapse_animation = 0
	qmad.qmvtree.tree_width = "100%";
	qmad.qmvtree.tree_sub_indent = 10; 
	qmad.qmvtree.tree_sub_top_padding = 5;
	qmad.qmvtree.tree_sub_bottom_padding = 5;

	qmad.qmvtree.ibullets_apply_to = "parent"  //parent, non-parent, all

	qmad.qmvtree.ibullets_main_image = qmv.base+"images/main_plus.gif";
	qmad.qmvtree.ibullets_main_image_active = qmv.base+"images/main_plus_active.gif";
	qmad.qmvtree.ibullets_main_image_hover = qmv.base+"images/main_plus_hover.gif";
	qmad.qmvtree.ibullets_main_image_width_height = "13,13";
	qmad.qmvtree.ibullets_main_image_margin = "0px 5px 0px 0px";	//top, right, bottom, left
	qmad.qmvtree.ibullets_main_position = "-12,7"; 			//left, top

	if (qmad.br_ie)
		qmad.qmvtree.ibullets_main_right = "90%";
	else
		qmad.qmvtree.ibullets_main_right = "92%";

	qmad.qmvtree.ibullets_sub_image = qmv.base+"images/sub_plus.gif";
	qmad.qmvtree.ibullets_sub_image_active = qmv.base+"images/sub_plus_active.gif";
	qmad.qmvtree.ibullets_sub_image_hover = qmv.base+"images/sub_plus_hover.gif";
	qmad.qmvtree.ibullets_sub_image_width_height = "5,5";
	qmad.qmvtree.ibullets_sub_image_margin = "0px 20px 0px 0px";	//top, right, bottom, left
	qmad.qmvtree.ibullets_sub_position = "-8,5";			//left, top
	
	
	qmad.qmvt2 = new Object();
	for (i in qmad.qmvtree)
		qmad.qmvt2[i] = qmad.qmvtree[i];

	qmad.qmvt2.tree_auto_collapse = true;
	qmad.qmvt2.tree_sub_top_padding = 0;
	qmad.qmvt2.tree_sub_bottom_padding = 0;
	qmad.qmvt2.ibullets_main_right = "-10px";
	qmad.qmvt2.ibullets_main_image = qmv.base+"images/sub_plus.gif";
	qmad.qmvt2.ibullets_main_image_active = qmv.base+"images/sub_plus_active.gif";
	qmad.qmvt2.ibullets_main_image_hover = qmv.base+"images/sub_plus_hover.gif";
	qmad.qmvt2.ibullets_main_image_width_height = "5,5";
	qmad.qmvt2.ibullets_main_position = "0,7";

	
	
	document.write(wt);
	
	//this could be combined by setting a similar class name on the main tree, setbox and template tree
	qm_vtree_init_styles();
	qm_vtree_init_styles(true);
	qm_vtree_init_styles(false,true);


	
	
}


function qmvi_kill_select(e)
{
	
	if (qmad.br_fox)
		return;	

	e = e || window.event;
	var targ = e.srcElement || e.target;

	if (targ.tagName=="INPUT" || targ.tagName=="TEXTAREA")
		return;

	qm_kille(e);
	return false;
	

}


function qmv_init_context()
{

	var wt = "";

	var fil = "filter:alpha(opacity=50);"
	if (!qmad.br_ie) fil = "opacity:.5;";

	wt += '<div id="qmvi_context" style="z-index:'+(qmv.base_zindex+200)+';position:absolute;visibility:hidden;top:10px;left:10px;">'
	wt += '<div id="qmvi_context_shadow" style="background-color:#555555;position:absolute;'+fil+'"></div>';
	wt += '<table cellpadding=0 cellspacing=0><tr><td><div id="qm99" class="qmmc">';
	wt += '</div></table></tr></td></div>';


	return wt;

}


function qmv_init_interface()
{


	var wt = "";

	var dbl = "";
	if (qmad.br_ie) dbl = 'ondblclick="this.click()"';

	wt += '<input type="text" id="qmvi_kb_focus_menu" onkeydown="qmvi_design_view_keypress_event(event)" style="position:absolute;left:-1000px;width:10px;top:0px;"></input>';
	wt += '<div id="qmvi" onselectstart="qmvi_kill_select(event)" onclick="qmv_hide_context();qmv_evt_kill_click(event)" class="qmvi-container" style="width:286px;background-color:#dddddd;">'
	

		

		var dn = "";
		if (qmv.is_chrome)
			dn = "display:none;";
		

		wt += '<div id="qmvi_title" class="qmvi-common qmvi-title" oncontextmenu="qm_kille(event)" onmouseup="qmv_evt_title_mouseup(event,this)" onmousemove="qmv_evt_title_mousemove(event,this)" onmousedown="qmv_evt_title_mousedown(event,this)" style="'+dn+'">Visual CSS QuickMenu</div>'

		wt += '<div class="qmvi-common qmvi-menu" style="">'
			wt += '<div id="qm98" class="qmmc" oncontextmenu="qm_kille(event)">';

			wt += '<a href="javascript:void(0);"  onclick="qmv_hide_context();qmv_update_all_main_checks();qmv.context_clicked=true;qmc_oo(event,this)">File</a>';


				wt += '<div>';
				wt += '<a href="javascript:void(0)" onclick="qmv_evt_menu_item_click(\'new\')" onfocus="this.blur()">New</a>';



				if (qmv.is_chrome)
				{

					wt += qmv_show_context_build_divider();
					wt += '<a onclick="qmv_evt_menu_item_click(\'open chrome\')" onfocus="this.blur()" href="javascript:void(0);">Open</a>';
					wt += '<a onclick="qmv_evt_menu_item_click(\'save chrome\')" onfocus="this.blur()" href="javascript:void(0);">Save</a>';
					wt += '<a onclick="qmv_evt_menu_item_click(\'save chrome as\')" onfocus="this.blur()" href="javascript:void(0);">Save As</a>';
					wt += qmv_show_context_build_divider();

					wt += '<a onclick="qmv_evt_menu_item_click(\'publish_auto\')" onfocus="this.blur()" href="javascript:void(0);">Publish (auto)</a>';
					wt += '<a href="javascript:void(0)" onclick="qm_kille(event)" onfocus="this.blur()">Publish (manual)</a>';
						wt += '<div>';
						wt += '<a onclick="qmv_evt_menu_item_click(\'publish\')" onfocus="this.blur()" href="javascript:void(0);">Custom Publish</a>';
						wt += '<a onclick="qmv_evt_menu_item_click(\'quick_publish_inline\')" onfocus="this.blur()" href="javascript:void(0);">Quick Publish (inline)</a>';
						wt += '<a onclick="qmv_evt_menu_item_click(\'quick_publish\')" onfocus="this.blur()" href="javascript:void(0);">Quick Publish (external)</a>';
						//wt += '<a onclick="qmv_evt_menu_item_click(\'save_images\')" onfocus="this.blur()" href="javascript:void(0);">Publish Images</a>';
						wt += '<a onclick="qmv_evt_menu_item_click(\'create_component\')" onfocus="this.blur()" href="javascript:void(0);">Create Component</a>';
						wt += '</div>';	

					wt += qmv_show_context_build_divider();
					wt += '<a onclick="qmv_evt_menu_item_click(\'save\')" onfocus="this.blur()" href="javascript:void(0);">Save (manual)</a>';
					//wt += qmv_show_context_build_divider();
					//wt += '<a onclick="qmv_evt_menu_item_click(\'open\')" onfocus="this.blur()" href="javascript:void(0);">Open (remote)</a>';
					wt += '<a href="javascript:void(0)" onclick="qmv_context_cmd(event,\'import\');">Import Structure</a>';
								

					wt += qmv_show_context_build_divider();
					wt += '<a href="javascript:void(0)" onclick="qmv_context_cmd(event,\'add menu\')">Add Menu</a>';
					wt += '<a href="javascript:void(0)" onclick="qmv_context_cmd(event,\'delete menu\')">Remove Menu</a>';


				}
				else
				{

					if (qmv.is_installed_version)
					{
						wt += '<a onclick="qmv_evt_menu_item_click(\'open\')" onfocus="this.blur()" href="javascript:void(0);">Open</a>';
						wt += '<a onclick="qmv_evt_menu_item_click(\'save\')" onfocus="this.blur()" href="javascript:void(0);">Save</a>';

					}
					else
					{
				
						wt += '<a href="javascript:void(0)" onclick="qm_kille(event)" onfocus="this.blur()">Open</a>';
							wt += '<div>';
							wt += '<a id="qmvmm_quicksave_open" onclick="qmv_evt_menu_item_click(\'open_account_quick\',this,event)" onfocus="this.blur()" href="javascript:void(0);">Quick Saved Menu (my account)</a>';
							wt += '<a id="qmvmm_open_account" onclick="qmv_evt_menu_item_click(\'open_account\',this,event)" onfocus="this.blur()" href="javascript:void(0);">Saved Menu (my account)</a>';
							wt += qmv_show_context_build_divider();
							wt += '<a onclick="qmv_evt_menu_item_click(\'open\')" onfocus="this.blur()" href="javascript:void(0);">From Live Web Page</a>';
							wt += '</div>';	

	
						wt += '<a href="javascript:void(0)" onclick="qm_kille(event)" onfocus="this.blur()">Save</a>';
							wt += '<div>';
							wt += '<a id="qmvmm_quicksave"  onclick="qmv_evt_menu_item_click(\'save_account_quick\',this,event)" onfocus="this.blur()" href="javascript:void(0);">Quick Save Menu to My Account</a>';
							wt += '<a id="qmvmm_save_account"  onclick="qmv_evt_menu_item_click(\'save_account\',this,event)" onfocus="this.blur()" href="javascript:void(0);">Save Menu to My Account</a>';
							wt += qmv_show_context_build_divider();
							wt += '<a onclick="qmv_evt_menu_item_click(\'save\')" onfocus="this.blur()" href="javascript:void(0);">Save to New HTML Document</a>';
							wt += '</div>';

					}

					wt += qmv_show_context_build_divider();
					wt += '<a href="javascript:void(0)" onclick="qmv_context_cmd(event,\'add menu\')">Add Menu</a>';
					wt += '<a href="javascript:void(0)" onclick="qmv_context_cmd(event,\'delete menu\')">Remove Menu</a>';
					wt += qmv_show_context_build_divider();
					wt += '<a href="javascript:void(0)" onclick="qmv_context_cmd(event,\'import\');">Import Structure</a>';
					wt += qmv_show_context_build_divider();
					wt += '<a onclick="qmv_evt_menu_item_click(\'publish\')" onfocus="this.blur()" href="javascript:void(0);">Custom Publish</a>';
					wt += '<a onclick="qmv_evt_menu_item_click(\'quick_publish_inline\')" onfocus="this.blur()" href="javascript:void(0);">Quick Publish (inline)</a>';
					wt += '<a onclick="qmv_evt_menu_item_click(\'quick_publish\')" onfocus="this.blur()" href="javascript:void(0);">Quick Publish (external)</a>';

					if (!qmv.is_installed_version)
					{
						wt += '<a onclick="qmv_evt_menu_item_click(\'dreamweaver_extension\')" onfocus="this.blur()" href="javascript:void(0);">Dreamweaver Extension</a>';
						wt += qmv_show_context_build_divider();
					}

					wt += '<a onclick="qmv_evt_menu_item_click(\'save_images\')" onfocus="this.blur()" href="javascript:void(0);">Publish Images</a>';
					wt += qmv_show_context_build_divider();
					wt += '<a onclick="qmv_evt_menu_item_click(\'create_component\')" onfocus="this.blur()" href="javascript:void(0);">Create Component</a>';


				}
				


				if (qmv.is_developer)
				{
					wt += qmv_show_context_build_divider();
					wt += '<a onclick="qmv_evt_menu_item_click(\'dev_tplate_css\')" onfocus="this.blur()" href="javascript:void(0);">Pub Template CSS</a>';
					//wt += '<a onclick="qmv_evt_menu_item_click(\'dev_save_src_to_db\')" onfocus="this.blur()" href="javascript:void(0);">Save Source to DB</a>';
				}


				wt += '</div>';

			wt += '<a href="javascript:void(0);"  onclick="qmv_hide_context();qmv_update_all_main_checks();qmv.context_clicked=true;qmc_oo(event,this)">View</a>';


				wt += '<div ischecks=1>';
				wt += '<a onclick="qmv_evt_menu_item_click(\'preview\')" onfocus="this.blur()" href="javascript:void(0);">Preview in Window</a>';
				wt += '<a onclick="qmv_evt_menu_item_click(\'html_page\')" onfocus="this.blur()" href="javascript:void(0);">Preview in HTML Page</a>';
				wt += qmv_show_context_build_divider();
				wt += '<a href="javascript:void(0)" onclick="qmv_context_cmd(event,\'specs\');">Menu Specs</a>';
				wt += qmv_show_context_build_divider();
				wt += '<a ctype="view" ccat="full" onclick="qmv_evt_menu_item_click(\'iface_switch_full\')" onfocus="this.blur()" href="javascript:void(0);">Full Interface</a>';
				wt += '<a ctype="view" ccat="inpage" onclick="qmv_evt_menu_item_click(\'iface_switch_inpage\')" onfocus="this.blur()" href="javascript:void(0);">In-Page Design</a>';
				wt += '</div>';


			wt += '<a href="javascript:void(0);"  onclick="qmv_hide_context();qmv_update_all_main_checks();qmv.context_clicked=true;qmc_oo(event,this)">Modify</a>';


				wt += '<div>';
				wt += '<a id="qmvmm_undo" onfocus="this.blur()" class="qmdisabled" href="javascript:void(0)" onclick="qmv_context_cmd(event,\'undo\',this);">Undo</a>';
				wt += '<a id="qmvmm_redo" onfocus="this.blur()" class="qmdisabled" href="javascript:void(0)" onclick="qmv_context_cmd(event,\'redo\',this);">Redo</a>';
				wt += qmv_show_context_build_divider();
				wt += '<a href="javascript:void(0)" onclick="qmv_context_cmd(event,\'edit texturl\');">Edit Text / URL</a>';
				wt += '<a href="javascript:void(0)" onclick="qmv_context_cmd(event,\'item_image\');">Item Images</a>';
				wt += qmv_show_context_build_divider();
				wt += '<a href="javascript:void(0)" onclick="qmv_context_cmd(event,\'create_rule\')">Create Rule</a>';
				wt += '<a href="javascript:void(0)" onclick="qmv_context_cmd(event,\'apply_custom_class\')">Custom Classes</a>';
				wt += qmv_show_context_build_divider();
				wt += '<a href="javascript:void(0)" onclick="qmv_context_cmd(event,\'add item\')">Add Item</a>';
				wt += '<a href="javascript:void(0)" onclick="qmv_context_cmd(event,\'insert item\')">Insert Item</a>';
				wt += '<a href="javascript:void(0)" onclick="qmv_context_cmd(event,\'delete item\')">Delete Item</a>';
				wt += qmv_show_context_build_divider();
				wt += '<a href="javascript:void(0)" onclick="qmv_context_cmd(event,\'add sub menu\')">Add Sub Menu</a>';
				wt += qmv_show_context_build_divider();
				wt += '<a href="javascript:void(0)" onclick="qmv_context_cmd(event,\'copy item\')">Copy Item</a>';
				wt += '<a href="javascript:void(0)" onclick="qmv_context_cmd(event,\'paste item\')">Paste Item</a>';
				wt += qmv_show_context_build_divider();
				wt += '<a href="javascript:void(0)" onclick="qmv_context_cmd(event,\'move up\')">Move Item Up</a>';
				wt += '<a href="javascript:void(0)" onclick="qmv_context_cmd(event,\'move down\')">Move Item Down</a>';
				wt += qmv_show_context_build_divider();
				wt += '<a href="javascript:void(0)" onclick="qmv_context_cmd(event,\'add menu\')">Add Menu</a>';
				wt += '<a href="javascript:void(0)" onclick="qmv_context_cmd(event,\'delete menu\')">Remove Menu</a>';
				wt += '</div>';


			wt += '<a href="javascript:void(0);"  onclick="qmv_hide_context();qmv_update_all_main_checks();qmv.context_clicked=true;qmc_oo(event,this);">Add-Ons</a>';
		

				wt += '<div ischecks=1>';
				wt += '<a href="javascript:void(0)" ctype="addon" ccat="box_effect" onclick="qmv_context_cmd(event,\'addon_box_effect\');">Box Animation</a>';
				wt += '<a href="javascript:void(0)" ctype="addon" ccat="fade" onclick="qmv_context_cmd(event,\'addon_fade\');">Fade Effect</a>';
				wt += '<a href="javascript:void(0)" ctype="addon" ccat="bump_effect" onclick="qmv_context_cmd(event,\'addon_bump_effect\');">Bump Effect</a>';
				wt += '<a href="javascript:void(0)" ctype="addon" ccat="slide_effect" onclick="qmv_context_cmd(event,\'addon_slide_effect\');">Slide Effect</a>';
				wt += '<a href="javascript:void(0)" ctype="addon" ccat="merge_effect" onclick="qmv_context_cmd(event,\'addon_merge_effect\');">Merge Effect</a>';
				wt += '<a href="javascript:void(0)" ctype="addon" ccat="hoverfill" onclick="qmv_context_cmd(event,\'addon_hoverfill\');">Hover Fill</a>';
				wt += qmv_show_context_build_divider();
				wt += '<a href="javascript:void(0)" ctype="addon" ccat="ibcss" onclick="qmv_context_cmd(event,\'addon_ibcss\');">Item Bullets (CSS)</a>';
				wt += '<a href="javascript:void(0)" ctype="addon" ccat="tabscss" onclick="qmv_context_cmd(event,\'addon_tabscss\');">Main Tabs (CSS)</a>';
				wt += '<a href="javascript:void(0)" ctype="addon" ccat="round_corners" onclick="qmv_context_cmd(event,\'addon_round_corners\');">Rounded Subs</a>';
				wt += '<a href="javascript:void(0)" ctype="addon" ccat="ritem" onclick="qmv_context_cmd(event,\'addon_ritem\');">Rounded Items</a>';
				wt += '<a href="javascript:void(0)" ctype="addon" ccat="drop_shadow" onclick="qmv_context_cmd(event,\'addon_drop_shadow\');">Drop Shadows</a>';
				wt += '<a href="javascript:void(0)" ctype="addon" ccat="sopacity" onclick="qmv_context_cmd(event,\'addon_sopacity\');">Sub Opacity</a>';
				wt += '<a href="javascript:void(0)" ctype="addon" ccat="match_widths" onclick="qmv_context_cmd(event,\'addon_match_widths\');">Match Widths</a>';
				wt += qmv_show_context_build_divider();
				wt += '<a href="javascript:void(0)" ctype="addon" ccat="item_bullets" onclick="qmv_context_cmd(event,\'addon_item_bullets\');">Item Bullets (images)</a>';
				wt += '<a href="javascript:void(0)" ctype="addon" ccat="tabs" onclick="qmv_context_cmd(event,\'addon_tabs\');">Main Tabs (images)</a>';
				wt += '<a href="javascript:void(0)" ctype="addon" ccat="pointer" onclick="qmv_context_cmd(event,\'addon_pointer\');">Pointer (images)</a>';
				wt += qmv_show_context_build_divider();
				wt += '<a href="javascript:void(0)" ctype="addon" ccat="tree_menu" onclick="qmv_context_cmd(event,\'addon_tree_menu\');">Tree Style</a>';
				wt += '<a href="javascript:void(0)" ctype="addon" ccat="apsubs" onclick="qmv_context_cmd(event,\'addon_apsubs\');">Keep Subs in Window</a>';
				wt += '<a href="javascript:void(0)" ctype="addon" ccat="sopen_auto" onclick="qmv_context_cmd(event,\'addon_sopen_auto\');">Persistent State</a>';
				wt += '<a href="javascript:void(0)" ctype="addon" ccat="keyboard" onclick="qmv_context_cmd(event,\'addon_keyboard\');">Keyboard Control</a>';
				wt += '<a href="javascript:void(0)" ctype="addon" ccat="sopen" onclick="qmv_context_cmd(event,\'addon_sopen\');">Show Subs Onload</a>';
				wt += qmv_show_context_build_divider();
				wt += '<a href="javascript:void(0)" ctype="addon" ccat="scroll" onclick="qmv_context_cmd(event,\'addon_scroll\');">Scroller</a>';
				wt += qmv_show_context_build_divider();
				wt += '<a href="javascript:void(0)" ctype="addon" ccat="over_select" onclick="qmv_context_cmd(event,\'addon_over_select\');">Select Tag Fix (IE)</a>';
				wt += '</div>';


			wt += '<a href="javascript:void(0);"  onclick="qmv_hide_context();qmv_update_all_main_checks();qmv.context_clicked=true;qmc_oo(event,this)">Settings</a>';

				wt += '<div ischecks=1>';
				wt += '<a href="javascript:void(0)" onclick="qmv_context_cmd(event,\'options\');">Options</a>';
				wt += '<a href="javascript:void(0)" onclick="qmv_context_cmd(event,\'structure\');">HTML Structure</a>';
				wt += qmv_show_context_build_divider();


				wt += '<a href="javascript:void(0)" onclick="qm_kille(event)" onfocus="this.blur()">Titles</a>';
					wt += '<div>';
					wt += '<a href="javascript:void(0)" onclick="qmv_context_cmd(event,\'title_styles\');">Properties...</a>';
					wt += qmv_show_context_build_divider();
					wt += '<a href="javascript:void(0)" onclick="qmv_context_cmd(event,\'insert_title_before\');">Insert Before Item</a>';
					wt += '<a href="javascript:void(0)" onclick="qmv_context_cmd(event,\'insert_title_after\');">Insert After Item</a>';
					wt += qmv_show_context_build_divider();
					wt += '<a href="javascript:void(0)" onclick="qmv_context_cmd(event,\'delete_all_titles\');">Remove All...</a>';
					wt += '</div>';	


				wt += '<a href="javascript:void(0)" onclick="qm_kille(event)" onfocus="this.blur()">Dividers</a>';
					wt += '<div>';
					wt += '<a href="javascript:void(0)" onclick="qmv_context_cmd(event,\'divider_styles\');">Properties...</a>';
					wt += qmv_show_context_build_divider();
					wt += '<a href="javascript:void(0)" onclick="qmv_context_cmd(event,\'insert_divider_before\');">Insert Before Item</a>';
					wt += '<a href="javascript:void(0)" onclick="qmv_context_cmd(event,\'insert_divider_after\');">Insert After Item</a>';
					wt += qmv_show_context_build_divider();
					wt += '<a href="javascript:void(0)" onclick="qmv_context_cmd(event,\'global_dividers\');">Apply / Remove Globally</a>';
					wt += qmv_show_context_build_divider();
					wt += '<a href="javascript:void(0)" onclick="qmv_context_cmd(event,\'delete_all_dividers\');">Remove All...</a>';
					wt += '</div>';	


				wt += '<a href="javascript:void(0)" onclick="qm_kille(event)" onfocus="this.blur()">Content Boxes</a>';
					wt += '<div>';
					wt += '<a href="javascript:void(0)" onclick="qmv_context_cmd(event,\'cbox_styles\');">Properties...</a>';
					wt += qmv_show_context_build_divider();
					wt += '<a href="javascript:void(0)" onclick="qmv_context_cmd(event,\'insert_cbox_before\');">Insert Before Item</a>';
					wt += '<a href="javascript:void(0)" onclick="qmv_context_cmd(event,\'insert_cbox_after\');">Insert After Item</a>';
					wt += qmv_show_context_build_divider();
					wt += '<a href="javascript:void(0)" onclick="qmv_context_cmd(event,\'delete_all_cbox\');">Remove All...</a>';
					wt += '</div>';	



				wt += '<a href="javascript:void(0)" onclick="qm_kille(event)" onfocus="this.blur()">Striping</a>';
					wt += '<div>';
					wt += '<a href="javascript:void(0)" onclick="qmv_context_cmd(event,\'stripe_styles\');">Properties...</a>';
					wt += qmv_show_context_build_divider();
					wt += '<a href="javascript:void(0)" onclick="qmv_context_cmd(event,\'global_stripes\');">Apply globally</a>';
					wt += '<a href="javascript:void(0)" onclick="qmv_context_cmd(event,\'apply_stripe_current_item\');">Apply to Item</a>';
					wt += '<a href="javascript:void(0)" onclick="qmv_context_cmd(event,\'remove_stripe_current_item\');">Remove from Item</a>';
					wt += qmv_show_context_build_divider();
					wt += '<a href="javascript:void(0)" onclick="qmv_context_cmd(event,\'delete_all_striping\');">Remove All...</a>';
					wt += '</div>';	





				wt += qmv_show_context_build_divider();
				wt += '<a href="javascript:void(0)" onclick="qmv_context_cmd(event,\'quick_color_edits\');">Quick Color Edits</a>';
				wt += '<a href="javascript:void(0)" onclick="qmv_context_cmd(event,\'color_schemes\');">Color Schemes</a>';
				wt += qmv_show_context_build_divider();
				wt += '<a href="javascript:void(0)" ctype="settings" ccat="main_horizontal" onclick="qmv_context_cmd(event,\'set_main_horizontal\');">Horizontal Mains</a>';
				wt += '<a href="javascript:void(0)" ctype="settings" ccat="main_vertical" onclick="qmv_context_cmd(event,\'set_main_vertical\');">Vertical Mains</a>';
				wt += qmv_show_context_build_divider();
				wt += '<a href="javascript:void(0)" ctype="settings" ccat="sub_horizontal" onclick="qmv_context_cmd(event,\'set_sub_horizontal\');">Horizontal Subs</a>';
				wt += '<a href="javascript:void(0)" ctype="settings" ccat="sub_vertical" onclick="qmv_context_cmd(event,\'set_sub_vertical\');">Vertical Subs</a>';
				wt += qmv_show_context_build_divider();
				wt += '<a href="javascript:void(0)" onclick="qmv_context_cmd(event,\'show_delay\');">Show Delay</a>';
				wt += '<a href="javascript:void(0)" onclick="qmv_context_cmd(event,\'hide_delay\');">Hide Delay</a>';
				wt += qmv_show_context_build_divider();
				wt += '<a href="javascript:void(0)" ctype="settings" ccat="onclick" onclick="qmv_context_cmd(event,\'on_click\');">On Click</a>';
				wt += '<a href="javascript:void(0)" ctype="settings" ccat="onmouseover" onclick="qmv_context_cmd(event,\'on_mouse_over\');">On Mouse Over</a>';



				//wt += qmv_show_context_build_divider();
				//wt += '<a href="javascript:void(0)" onclick="qmv_context_cmd(event,\'divider_styles\');">Divider Styles</a>';
				//wt += '<a href="javascript:void(0)" onclick="qmv_context_cmd(event,\'insert_divider\');">Insert Divider</a>';
				//wt += '<a href="javascript:void(0)" onclick="qmv_context_cmd(event,\'global_dividers\');">Apply Globally</a>';
				//wt += qmv_show_context_build_divider();
				//wt += '<a href="javascript:void(0)" onclick="qmv_context_cmd(event,\'title_styles\');">Title Styles</a>';
				//wt += '<a href="javascript:void(0)" onclick="qmv_context_cmd(event,\'insert_title\');">Insert Title</a>';
				//wt += qmv_show_context_build_divider();
				//wt += '<a href="javascript:void(0)" onclick="qmv_context_cmd(event,\'cbox_styles\');">Content Box Styles</a>';
				//wt += '<a href="javascript:void(0)" onclick="qmv_context_cmd(event,\'insert_cbox\');">Insert Content Box</a>';
				//wt += qmv_show_context_build_divider();
				//wt += '<a href="javascript:void(0)" onclick="qmv_context_cmd(event,\'stripe_styles\');">Striping Styles</a>';
				
				wt += '</div>';	

		
			wt += '<a href="javascript:void(0);"  onclick="qmv_hide_context();qmv_update_all_main_checks();qmv.context_clicked=true;qmc_oo(event,this)">Help</a>';	

				wt += '<div>';
				wt += '<a href="javascript:void(0)" onclick="qmv_context_cmd(event,\'help_index\');">Index</a>';
				wt += '<a href="javascript:void(0)" onclick="qmv_context_cmd(event,\'help_tips\');">Tips</a>';
				wt += qmv_show_context_build_divider();
				wt += '<a href="javascript:void(0)" onclick="qmv_context_cmd(event,\'forums\');">Forums</a>';

				if (qmv.is_installed_version && !qmv.is_chrome)
					wt += '<a href="javascript:void(0)" onclick="qmv_context_cmd(event,\'options\');">Unlock</a>';

				wt += qmv_show_context_build_divider();

				wt += '<a href="javascript:void(0)" onclick="qmv_context_cmd(event,\'help_about\');">About</a>';

				wt += '</div>';	


			if (!qmv.is_installed_version || qmv.is_chrome)
			{

				wt += '<a href="javascript:void(0);"  onclick="qmv_hide_context();qmv_update_all_main_checks();qmv.context_clicked=true;qmc_oo(event,this)">My Account</a>';	

					wt += '<div>';
					wt += '<a id="qmvmm_login" class="" onfocus="this.blur()" href="javascript:void(0)" onclick="qmv_context_cmd(event,\'user_login\',this);">Account Login</a>';
					wt += qmv_show_context_build_divider();
					wt += '<a id="qmvmm_register" class="" onfocus="this.blur()" href="javascript:void(0)" onclick="qmv_context_cmd(event,\'user_register\',this);">Register Now!</a>';
					wt += '<a id="qmvmm_upgrade" class="" onfocus="this.blur()" href="javascript:void(0)" onclick="qmv_context_cmd(event,\'user_upgrade\',this);">Upgrade Account</a>';
					wt += '<a id="qmvmm_check" class="" onfocus="this.blur()" href="javascript:void(0)" onclick="qmv_context_cmd(event,\'check_menu\',this);">Check Menu(s)</a>';

					if (qmv.is_chrome)
					{
						wt += qmv_show_context_build_divider();
						wt += '<a id="qmvmm_synchronize" class="" onfocus="this.blur()" href="javascript:void(0)" onclick="qmv_context_cmd(event,\'activate\',this);">Synchronize</a>';
					}
					
					wt += '</div>';	
			}



			wt += '<span class="qmclear">&nbsp;</span></div>';

		wt += '</div>'


		wt += '<div class="qmvi-common qmvi-buttons" oncontextmenu="qm_kille(event)" style="">'
			wt+='<table border=0 cellspacing=0 cellpadding=0><tr>';


			wt+='<td id="qmvbb_hide_button1" style="vertical-align:top;"><img title="Save Menu" '+dbl+'  onclick="qmv_evt_bb_click(\'save\')" class="qmv-icon-buttons" src="'+qmv.base+'images/qmv_bb_save.gif" width=18 height=18 style="margin-left:0px;"></td>';

			if (qmv.is_chrome)
				wt+='<td id="qmvbb_hide_button2" style="vertical-align:top;padding-right:5px;"><img title="Auto Publish Menu(s)" '+dbl+' onclick="qmv_evt_bb_click(\'publish_auto\')"class="qmv-icon-buttons" src="'+qmv.base+'images/qmv_bb_publish.gif" width=18 height=18 style=""></td>';
			else
				wt+='<td id="qmvbb_hide_button2" style="vertical-align:top;padding-right:5px;"><img title="Quick Publish Menu(s)" '+dbl+' onclick="qmv_evt_bb_click(\'publish\')"class="qmv-icon-buttons" src="'+qmv.base+'images/qmv_bb_publish.gif" width=18 height=18 style=""></td>';

			
			wt+='<td id="qmvbb_hide_button3" style="vertical-align:top;"><img title="Copy Item" onclick="qmv_evt_bb_click(\'copyitem\')" class="qmv-icon-buttons" src="'+qmv.base+'images/qmv_bb_copy_item.gif" width=18 height=18 style=""></td>';
			wt+='<td id="qmvbb_hide_button4" style="vertical-align:top;padding-right:5px;"><img title="Paste Item" onclick="qmv_evt_bb_click(\'pasteitem\')" class="qmv-icon-buttons" src="'+qmv.base+'images/qmv_bb_paste_item.gif" width=18 height=18 style=""></td>';
	
			wt+='<td id="qmvbb_hide_button5" style="vertical-align:top;"><img title="Add Menu" onclick="qmv_evt_bb_click(\'addmenu\')" class="qmv-icon-buttons" src="'+qmv.base+'images/add_menu.gif" width=18 height=18 style=""></td>';
			wt+='<td id="qmvbb_hide_button6" style="vertical-align:top;padding-right:5px;"><img title="Delete Menu" onclick="qmv_evt_bb_click(\'deletemenu\')" class="qmv-icon-buttons" src="'+qmv.base+'images/delete_menu.gif" width=18 height=18 style=""></td>';


			wt+='<td style="vertical-align:top;"><img title="Preview Menu" onclick="qmv_evt_bb_click(\'preview\')" class="qmv-icon-buttons" src="'+qmv.base+'images/qmv_bb_preview.gif" width=18 height=18 style=""></td>';
			wt+='<td id="qmvbb_hide_button3" style="vertical-align:top;padding-right:5px;"><img title="Menu Specs" onclick="qmv_evt_bb_click(\'specs\')" class="qmv-icon-buttons" src="'+qmv.base+'images/qmv_bb_specs.gif" width=18 height=18 style=""></td>';


			wt+='<td id="qmvbb_hide_button8" style="vertical-align:top;"><img title="Quick Color Editor" onclick="qmv_evt_bb_click(\'quickcolors\')" class="qmv-icon-buttons" src="'+qmv.base+'images/qmv_bb_quickcolors.gif" width=18 height=18 style=""></td>';
			wt+='<td style="vertical-align:top;padding-right:5px;"><img title="Enhanced Item Styles" onclick="qmv_show_context(event,\'enhanced_item_styles\',null,this)" class="qmv-icon-buttons" src="'+qmv.base+'images/qmv_bb_item_styles.gif" width=26 height=18 style=""></td>';
					
			wt+='<td style="vertical-align:top;"><img title="Add Item" '+dbl+'  onclick="qmv_show_context(event,\'add_item\',null,this)" class="qmv-icon-buttons" src="'+qmv.base+'images/qmv_bb_add2.gif" width=26 height=18 style="margin-left:0px;"></td>';
			wt+='<td style="vertical-align:top;padding-right:5px;"><img title="Insert Item" '+dbl+' onclick="qmv_show_context(event,\'insert_item\',null,this)"class="qmv-icon-buttons" src="'+qmv.base+'images/qmv_bb_insert2.gif" width=26 height=18 style=""></td>';


			//wt+='<td style="vertical-align:top;"><img title="Delete Item" '+dbl+' onclick="qmv_evt_bb_click(\'delete\')"class="qmv-icon-buttons" src="'+qmv.base+'images/qmv_bb_delete.gif" width=18 height=18 style=""></td>';
			wt+='<td style="vertical-align:top;"><img title="Delete Item(s)" '+dbl+' onclick="qmv_show_context(event,\'delete\',null,this)" class="qmv-icon-buttons" src="'+qmv.base+'images/qmv_bb_delete2.gif" width=26 height=18 style=""></td>';
			wt+='<td style="vertical-align:top;padding-right:5px;"><img title="Add Sub Menu" '+dbl+' onclick="qmv_show_context(event,\'add_sub\',null,this)" class="qmv-icon-buttons" src="'+qmv.base+'images/qmv_bb_addsub2.gif" width=26 height=18 style=""></td>';

			wt+='<td style="vertical-align:top;"><img title="Move Item Up" '+dbl+' onclick="qmv_evt_bb_click(\'moveup\')" class="qmv-icon-buttons" src="'+qmv.base+'images/qmv_bb_moveup.gif" width=18 height=18 style=""></td>';
			wt+='<td style="vertical-align:top;"><img title="Move Item Down" '+dbl+' onclick="qmv_evt_bb_click(\'movedown\')" class="qmv-icon-buttons" src="'+qmv.base+'images/qmv_bb_movedown.gif" width=18 height=18 style=""></td>';




			wt+='</tr></table>';
		wt += '</div>';

		wt += '<div class="qmvi-common qmvi-texturl">'
			wt+='<table width=100% border=0 cellspacing=0 cellpadding=0><tr>';
			wt+='<td style="padding-right:4px;vertical-align:top;"><img title="Item Images" onclick="qmv_context_cmd(event,\'item_image\');"  class="qmv-icon-buttons" src="'+qmv.base+'images/add_image.gif" width=18 height=18 style="margin-left:0px;"></td>';
			wt+='<td style="vertical-align:top;"><img title="Edit Url" id="qmv_texturl_url" onclick="qm_switch_texturl_state(\'url\')" class="qmv-icon-buttons" src="'+qmv.base+'images/qmv_url_off.gif" width=18 height=18 ></td>';
			wt+='<td style="vertical-align:top;"><img title="Edit Text / HTML" id="qmv_texturl_text" '+dbl+' onclick="qm_switch_texturl_state(\'text\')" class="qmv-icon-buttons" src="'+qmv.base+'images/qmv_text.gif" width=18 height=18 style=""></td>';

			wt += '</td>';
			wt+='<td style="width:100%;vertical-align:top;padding-right:1px;padding-left:1px;"><div class="qmvtree-input-container" style="height:16px;"><input dtype="texturl" onkeypress="qmv_evt_update_tree_value_enter(event,this)" onchange="qmv_evt_update_tree_value(this)" onfocus="this.prev_value = this.value" id="qmv_texturl_field" category="texturl" class="qmvtree-input" style="padding-top:1px;"></div></td>';
			wt+='<td style="padding-right:4px;vertical-align:top;"><span id="qmv_texturl_field_bb" onclick="if (qmv_check_texturl_build()){qmv_evt_build_button_click(this)}" class="qmvtree-button" style="height:18px;width:18px;">...</span></td>';
			wt+='</tr></table>';
		wt += '</div>';


		var uc = "pointer";
		if (qmad.br_ie) uc = "hand";

		//visual designtab bar		
		wt += '<div id="qmvi_vd_panel" oncontextmenu="qm_kille(event)" style="overflow:hidden;position:absolute;display:none;background-color:#ffffff;border-width:1px 1px 0px 1px;border-style:solid;border-color:#828EA2;">';
			wt += '<div style="height:24px;background-image:url('+qmv.base+'images/qmv_v_topbg.gif);">';
				wt += '<table cellpadding=0 cellspacing=0 style="width:100%;border-width:0px;"><tr>';
				
				var ts = ""
				if (!qmad.br_ie) ts = "-moz-user-select:none;"

				wt += '<td style="padding:2px 0px 0px 2px;'+ts+';"><div id="qmvi_vd_tab_design" onclick="qmvi_vd_tab_switch(event,this)" style="cursor:default;width:55px;height:17px;background-image:url('+qmv.base+'images/qmv_v_tab_design_on.gif)"><div class="qmvi-common qmvi-report-tabs">Design</div></div></td>';
				wt += '<td style="padding:2px 0px 0px 0px;'+ts+'"><div id="qmvi_vd_tab_css" onclick="qmvi_vd_tab_switch(event,this)" style="cursor:'+uc+';width:54px;height:17px;background-image:url('+qmv.base+'images/qmv_v_tab_css.gif)"><div class="qmvi-common qmvi-report-tabs">CSS</div></div></td>';
				wt += '<td style="padding:2px 0px 0px 0px;'+ts+'"><div id="qmvi_vd_tab_html" onclick="qmvi_vd_tab_switch(event,this)" style="cursor:'+uc+';width:54px;height:17px;background-image:url('+qmv.base+'images/qmv_v_tab_html.gif)"><div class="qmvi-common qmvi-report-tabs">HTML</div></div></td>';

				var ut = "";
				if (qmad.br_ie) ut = "ondblclick=\"qmv_evt_bb_click('add');\""	
				wt += '<td style="vertical-align:top;padding:1px 0px 0px 14px;"><img '+ut+' onclick="qmv_evt_bb_click(\'add\');" title="Add Item" src="'+qmv.base+'images/qmv_vbb_add.gif" width=12 height=12 style="'+ts+'margin:3px 0px 0px 0px;cursor:'+uc+';"></td>';
				wt += '<td style="vertical-align:top;padding:1px 0px 0px 0px;"><div '+ut+' onclick="qmv_evt_bb_click(\'add\');" class="qmvi-common qmvi-report-tabs" style="margin:0px 0px 0px 2px;cursor:'+uc+';'+ts+'">Add</div></td>';

				if (qmad.br_ie) ut = "ondblclick=\"qmv_evt_bb_click('insert');\""	
				wt += '<td style="vertical-align:top;padding:1px 0px 0px 10px;"><img '+ut+' onclick="qmv_evt_bb_click(\'insert\');" title="Add Item" src="'+qmv.base+'images/qmv_vbb_insert.gif" width=12 height=12 style="'+ts+'margin:3px 0px 0px 0px;cursor:'+uc+';"></td>';
				wt += '<td style="vertical-align:top;padding:1px 0px 0px 0px;"><div '+ut+' onclick="qmv_evt_bb_click(\'insert\');" class="qmvi-common qmvi-report-tabs" style="margin:0px 0px 0px 3px;cursor:'+uc+';'+ts+'"">Insert</div></td>';

				if (qmad.br_ie) ut = "ondblclick=\"qmv_evt_bb_click('delete');\""
				wt += '<td style="vertical-align:top;padding:1px 0px 0px 10px;"><img '+ut+' onclick="qmv_evt_bb_click(\'delete\');" title="Add Item" src="'+qmv.base+'images/qmv_vbb_delete.gif" width=12 height=12 style="'+ts+'margin:3px 0px 0px 0px;cursor:'+uc+';"></td>';
				wt += '<td style="vertical-align:top;padding:1px 0px 0px 0px;"><div '+ut+' onclick="qmv_evt_bb_click(\'delete\');" class="qmvi-common qmvi-report-tabs" style="margin:0px 0px 0px 2px;cursor:'+uc+';'+ts+'"">Delete</div></td>';

				if (qmad.br_ie) ut = "ondblclick=\"qmv_evt_bb_click('addsub');\""
				wt += '<td style="vertical-align:top;padding:0px 0px 0px 10px;"><img '+ut+' onclick="qmv_evt_bb_click(\'addsub\');" title="Add Item" src="'+qmv.base+'images/qmv_vbb_addsub.gif" width=12 height=12 style="'+ts+'margin:3px 0px 0px 0px;cursor:'+uc+';"></td>';
				wt += '<td style="vertical-align:top;padding:1px 0px 0px 0px;"><div '+ut+' onclick="qmv_evt_bb_click(\'addsub\');" class="qmvi-common qmvi-report-tabs" style="white-space:nowrap;margin:0px 0px 0px 4px;cursor:'+uc+';'+ts+'"">Add Sub</div></td>';


				wt += '<td style="padding:2px 0px 0px 2px;'+ts+';width:100%;"></td>';


				wt += '<td style="vertical-align:top;padding:0px 0px 0px 0px;"><div onclick="qmvi_indicator_on_off()" class="qmvi-common qmvi-report-tabs" style="margin:0px 0px 0px 10px;cursor:'+uc+';">Indicator:</div></td>';			
				wt += '<td style="vertical-align:top;padding:0px 0px 0px 0px;"><img onclick="qmvi_indicator_on_off()" id="qmvi_indicator_status_image" title="Hide Selected Item Indicator" src="'+qmv.base+'images/qmv_v_b_indicator_off.gif" width=16 height=12 style="margin:3px 0px 0px 4px;cursor:'+uc+';"></td>';

		
				wt += '<td style="vertical-align:top;padding:3px 15px 0px 15px;"><img src="'+qmv.base+'images/qmv_v_b_divider.gif" width=2 height=13 style=""></td>';

				wt += '<td onclick="qmv_show_context(event,\'grid\',null,this)" style="vertical-align:top;padding:0px 0px 0px 0px;white-space:nowrap;"><div class="qmvi-common qmvi-report-tabs" style="margin:0px 0px 0px 0px;cursor:'+uc+';"><img src="'+qmv.base+'images/qmv_v_b_red_arrow.gif" width=9 height=6 style="margin:0px 3px 0px 0px;cursor:'+uc+';">Grid:&nbsp;<span id="qmvi_grid_display" style="color:#0033dd;cursor:'+uc+';">20 x 20</span></div></td>';
				wt += '<td style="vertical-align:top;padding:0px 0px 0px 0px;"><div onclick="qmvi_change_design_bg_color()" class="qmvi-common qmvi-report-tabs" style="margin:0px 0px 0px 10px;cursor:'+uc+';">Design:</div></td>';
				var tbh = 10;
				if (qmad.br_ie) tbh = 10;
				wt += '<td style="vertical-align:top;padding:0px 0px 0px 0px;"><div qmdesignbg=1 id="qmvi_design_bg_div" onclick="qmvi_change_design_bg_color()" title="Design View Background Color" style="cursor:'+uc+';font-size:1px;border-width:1px;border-style:solid;border-color:#424c65;font-size:1px;width:10px;height:'+tbh+'px;background-color:#ffffff;margin:3px 0px 0px 4px;"></div></td>';
		
				wt += '<td style="vertical-align:top;padding:3px 15px 0px 15px;"><img src="'+qmv.base+'images/qmv_v_b_divider.gif" width=2 height=13 style=""></td>';

				var adddbl = "";
				if (qmad.br_ie) adddbl = 'ondblclick="qmvi_v_b_click_direction(this)" ';

				wt += '<td style="vertical-align:top;padding:2px 4px 0px 0px;"><img '+adddbl+'onclick="qmvi_v_b_click_direction(this)" onmouseover="this.src=\''+qmv.base+'images/qmv_v_b_down_hover.gif\'" onmouseout="this.src=\''+qmv.base+'images/qmv_v_b_down.gif\'" title="Move Selection Down" src="'+qmv.base+'images/qmv_v_b_down.gif" width=14 height=13 style=""></td>';
				wt += '<td style="vertical-align:top;padding:2px 6px 0px 0px;"><img '+adddbl+'onclick="qmvi_v_b_click_direction(this)" onmouseover="this.src=\''+qmv.base+'images/qmv_v_b_up_hover.gif\'" onmouseout="this.src=\''+qmv.base+'images/qmv_v_b_up.gif\'" title="Move Selection Up" src="'+qmv.base+'images/qmv_v_b_up.gif" width=14 height=13 style=""></td>';
				wt += '<td style="vertical-align:top;padding:2px 4px 0px 0px;"><img '+adddbl+'onclick="qmvi_v_b_click_direction(this)" onmouseover="this.src=\''+qmv.base+'images/qmv_v_b_left_hover.gif\'" onmouseout="this.src=\''+qmv.base+'images/qmv_v_b_left.gif\'" title="Move Selection Left" src="'+qmv.base+'images/qmv_v_b_left.gif" width=13 height=14 style=""></td>';
				wt += '<td style="vertical-align:top;padding:2px 0px 0px 0px;"><img '+adddbl+'onclick="qmvi_v_b_click_direction(this)" onmouseover="this.src=\''+qmv.base+'images/qmv_v_b_right_hover.gif\'" onmouseout="this.src=\''+qmv.base+'images/qmv_v_b_right.gif\'" title="Move Selection Right" src="'+qmv.base+'images/qmv_v_b_right.gif" width=13 height=14 style=""></td>';

				wt += '<td style=""><div style="font-size:1px;width:7px;"></div></td>';
				wt += '</tr></table>';
			wt += '</div>';
			
		wt += '</div>';

		//visual design window
		wt += '<div id="qmvi_menu_panel"  ondblclick="qmv_preview_menu();qm_kille(event);" onkeydown="qmvi_design_view_keypress_event(event)"  oncontextmenu="qmv_show_context(event,\'design_pad\',null,this)" onselectstart="qm_kille(event);" onclick="qmv_click_document_element(event)" style="-moz-user-select:none;z-index:0;overflow:scroll;position:absolute;display:none;background-color:#ffffff;border-width:0px 1px 1px 1px;border-style:solid;border-color:#828EA2;background-image:url('+qmv.base+'images/qmv_v_b_grid_20.gif);">&nbsp;</div>';
		wt += '<div id="qmvi_csshtml_panel" style="display:none;overflow:hidden;position:absolute;background-color:#ffffff;border-width:0px 1px 1px 1px;border-style:solid;border-color:#828EA2;"><textarea  readonly id="qmvi_csshtml_panel_data" class="qmvi-common" style="padding:15px 0px 0px 15px;font-size:12px;color:#222222;background-color:#ffffff;border-style:none;border-width:0px;position:relative;width:100%;'+qmv.resize_off_css+'"></textarea></div>';
		

		//event log reporting bar and window
		wt += '<div id="qmvi_report_panel" oncontextmenu="qm_kille(event)" style="overflow:hidden;position:absolute;display:none;background-color:#ffffff;border-width:1px 1px 1px 1px;border-style:solid;border-color:#828EA2;">';
			wt += '<div style="height:24px;background-image:url('+qmv.base+'images/qmv_r_topbg.gif);">';
				wt += '<table cellpadding=0 cellspacing=0 style="width:100%;border-width:0px;"><tr>';
				
				var ts = ""
				if (!qmad.br_ie) ts = "-moz-user-select:none;"

				wt += '<td style="padding:2px 0px 0px 2px;'+ts+'"><div id="qmvi_report_tab_all" onclick="qmvi_report_tab_switch(event,this)" style="cursor:default;width:69px;height:17px;background-image:url('+qmv.base+'images/qmv_r_tab_all_on.gif)"><div class="qmvi-common qmvi-report-tabs">All - <span id="qmvi_report_tabinfo_all" style="color:#0042cb;">0</span></div></div></td>';
				wt += '<td style="padding:2px 0px 0px 0px;'+ts+'"><div id="qmvi_report_tab_edits" onclick="qmvi_report_tab_switch(event,this)" style="cursor:'+uc+';width:83px;height:17px;background-image:url('+qmv.base+'images/qmv_r_tab_edits.gif)"><div class="qmvi-common qmvi-report-tabs"><img src="'+qmv.base+'images/qmv_r_icon_edits.gif" width=9 height=9 style="margin:-1px 4px 0px 0px;">Edits - <span id="qmvi_report_tabinfo_edits" style="color:#dd3300;">0</span></div></div></td>';
				wt += '<td style="padding:2px 0px 0px 0px;'+ts+'"><div id="qmvi_report_tab_warnings" onclick="qmvi_report_tab_switch(event,this)" style="cursor:'+uc+';width:101px;height:17px;background-image:url('+qmv.base+'images/qmv_r_tab_warnings.gif)"><div class="qmvi-common qmvi-report-tabs"><img src="'+qmv.base+'images/qmv_r_icon_warnings.gif" width=9 height=9 style="margin:-1px 4px 0px 0px;">Warnings - <span id="qmvi_report_tabinfo_warnings" style="color:#dd3300;">0</span></div></div></td>';
				wt += '<td style="padding:2px 0px 0px 0px;'+ts+'"><div id="qmvi_report_tab_info" onclick="qmvi_report_tab_switch(event,this)" style="cursor:'+uc+';width:81px;height:17px;background-image:url('+qmv.base+'images/qmv_r_tab_info.gif)"><div class="qmvi-common qmvi-report-tabs"><img src="'+qmv.base+'images/qmv_r_icon_info.gif" width=9 height=9 style="margin:-1px 4px 0px 0px;">Info. - <span id="qmvi_report_tabinfo_info" style="color:#dd3300;">0</span></div></div></td>';


				var adrub = "";
				if (qmad.br_ie)
					var adrub = 'ondblclick="qmvi_report_undo_redo_button(event,this)"';

				wt += '<td><div style="font-size:1px;width:14px;"></div></td>';
				wt += '<td style="vertical-align:top;padding:2px 0px 0px 0px;"><img id="qmvi_report_button_undo" '+adrub+' onclick="qmvi_report_undo_redo_button(event,this)" title="Undo" bname="undo" onmouseover="qmvi_report_button_hover(this,true)" onmouseout="qmvi_report_button_hover(this)" src="'+qmv.base+'images/qmv_r_button_undo_disabled.gif" width=18 height=14 style=""></td>';
				wt += '<td><div style="font-size:1px;width:4px;"></div></td>';
				wt += '<td style="vertical-align:top;padding:2px 0px 0px 0px;"><img id="qmvi_report_button_redo" '+adrub+' onclick="qmvi_report_undo_redo_button(event,this)" title="Redo" bname="redo" onmouseover="qmvi_report_button_hover(this,true)" onmouseout="qmvi_report_button_hover(this)"  src="'+qmv.base+'images/qmv_r_button_redo_disabled.gif" width=18 height=14 style=""></td>';
				wt += '<td><div style="font-size:1px;width:4px;"></div></td>';
				wt += '<td style="vertical-align:top;padding:2px 0px 0px 0px;"><img onclick="qmvi_report_delete()" title="Delete Event Log Items" src="'+qmv.base+'images/qmv_r_button_delete.gif" width=18 height=14 style="cursor:'+uc+';"></td>';


				wt += '<td style="width:100%;"></td>';

				wt += '<td style="white-space:nowrap;"><div class="qmvi-common" style="white-space:nowrap;font-size:11px;font-weight:normal;color:#444444;margin:-1px 15px 0px 0px;">Event Log:&nbsp;&nbsp;<span id="qmvr_menu_id" style="color:#0033dd;">Menu 0</span></div></td>';
				wt += '<td style=""><img onclick="qmvi_expand_collapse_report_window(event,this)" src="'+qmv.base+'images/qmv_r_collapse.gif" width=11 height=11 title="Collapse Event Log Window" style="margin:0px 0px -1px 0px;cursor:'+uc+';"></td>';
				wt += '<td style=""><div style="font-size:1px;width:5px;"></div></td>';
				wt += '</tr></table>';
			wt += '</div>';
			wt += '<div id="qmvi_report_panel_data" style="overflow-y:scroll;background-color:#f7f7f7;padding:5px 0px 0px 0px;"><div id="qmvi_report_panel_data_inner">';
			wt += '</div></div>';
		wt += '</div>';


		wt += '<div  id="qmvi_tree_menu_container" class="qmvi-common qmvi-tree-container" style="background-color:#f4f4f4;position:relative;z-index:0;border-width:1px 1px 1px 1px;border-style:solid;border-color:#828EA2;padding:0px;margin:0px 4px 4px 4px;overflow-y:scroll;height:300px;">';
		wt += qmv_init_interface_tree();
		wt += '</div>';

	wt += '</div>'

	return wt;


}


function qmv_init_dialog()
{


	var wt = "";
	
	var op = "opacity:.5;";
	if (qmad.br_ie)
		op = "filter:alpha(opacity=50);";
	

	wt += '<div id="qmvi_setbox_shadow" onselectstart="qmvi_kill_select(event)"  style="'+op+'z-index:'+(qmv.base_zindex+100)+';background-color:#888888;position:absolute;"></div>'
	wt += '<div id="qmvi_setbox" onselectstart="qmvi_kill_select(event)"   onclick="qmv_hide_context();qmv_evt_kill_click(event)" class="qmvi-dialog-container" style="width:270px;">'

		var z = "";
		if (qmad.br_ie)
			z = "zoom:1;";

		wt += '<div style="font-size:1px;height:0px;width:0px;position:absolute;text-align:right;margin-left:100%;"><img onclick="qmv_hide_dialog(false,false,true)" src="'+qmv.base+'images/close_button.gif" width=14 height=14 style="position:absolute;display:block;left:-20px;top:5px;"></div>'
		wt += '<div id="qmvi_setbox_dialog_title" style="'+z+'" class="qmvi-common qmvi-title" onmouseup="qmv_evt_title_mouseup(event,this)" onmousemove="qmv_evt_title_mousemove(event,this)" onmousedown="qmv_evt_title_mousedown(event,this,4)" style="">Menu Properties</div>'
		wt += '<div id ="qmvi_setbox_content" class="qmvi-common qmvi-dialog-content-container"><div id="qmsetbox" class="qmmc"></div></div>';


	wt += '</div>';
	
	
	wt += '<div id="qmvi_dialog_shadow" onselectstart="qmvi_kill_select(event)" style="'+op+'z-index:'+(qmv.base_zindex+100)+';background-color:#888888;position:absolute;"></div>'
	wt += '<div id="qmvi_dialog"  onselectstart="qmvi_kill_select(event)"  onkeypress="qmv_dialog_onkeypress(event)" onclick="qmv_hide_context();qmv_evt_kill_click(event)" class="qmvi-dialog-container" style="width:260px;">'

		var z = "";
		if (qmad.br_ie)
			z = "zoom:1;";

		wt += '<div style="font-size:1px;height:0px;width:0px;position:absolute;text-align:right;margin-left:100%;"><img onclick="qmv_hide_dialog()" src="'+qmv.base+'images/close_button.gif" width=14 height=14 style="position:absolute;display:block;left:-20px;top:5px;"></div>'
		wt += '<div id="qmvi_dialog_title" style="'+z+'" class="qmvi-common qmvi-title" onmouseup="qmv_evt_title_mouseup(event,this)" onmousemove="qmv_evt_title_mousemove(event,this)" onmousedown="qmv_evt_title_mousedown(event,this,1)" style="">Visual QuickMenu</div>'
		wt += '<div id ="qmvi_dialog_content" class="qmvi-common qmvi-dialog-content-container">asdfasdf</div>';
		wt += '<div id ="qmvi_dialog_buttons" class="qmvi-common" style="padding:0px 10px 7px 10px;text-align:right;"></div>';


	wt += '</div>';


	wt += '<div id="qmvi_msg_dialog_shadow" onselectstart="qmvi_kill_select(event)" style="'+op+'z-index:'+(qmv.base_zindex+100)+';background-color:#888888;position:absolute;"></div>'
	wt += '<div id="qmvi_msg_dialog" onselectstart="qmvi_kill_select(event)"  onkeypress="qmv_dialog_onkeypress(event)" onclick="qmv_hide_context();qmv_evt_kill_click(event)" class="qmvi-dialog-container" style="width:260px;">'

		var z = "";
		if (qmad.br_ie)
			z = "zoom:1;";

		wt += '<div style="font-size:1px;height:0px;width:0px;position:absolute;text-align:right;margin-left:100%;"><img onclick="qmv_hide_dialog(true)" src="'+qmv.base+'images/close_button.gif" width=14 height=14 style="position:absolute;display:block;left:-20px;top:5px;"></div>'
		wt += '<div id="qmvi_msg_dialog_title" style="'+z+'" class="qmvi-common qmvi-title" onmouseup="qmv_evt_title_mouseup(event,this)" onmousemove="qmv_evt_title_mousemove(event,this)" onmousedown="qmv_evt_title_mousedown(event,this,2)" style="">Visual QuickMenu</div>'
		wt += '<div id ="qmvi_msg_dialog_content" class="qmvi-common qmvi-dialog-content-container" style="padding:15px;">asdfasdf</div>';
		wt += '<div id ="qmvi_msg_dialog_buttons" class="qmvi-common" style="padding:0px 10px 7px 10px;text-align:right;"></div>';


	wt += '</div>';

	wt += '<div id="qmvi_help_dialog_shadow" onselectstart="qmvi_kill_select(event)"  style="'+op+'z-index:'+(qmv.base_zindex+100)+';background-color:#888888;position:absolute;"></div>'
	wt += '<div id="qmvi_help_dialog" onselectstart="qmvi_kill_select(event)"  onkeypress="qmv_dialog_onkeypress(event)" onclick="qmv_hide_context();qmv_evt_kill_click(event)" class="qmvi-dialog-container" style="width:260px;">'

		var z = "";
		if (qmad.br_ie)
			z = "zoom:1;";

		wt += '<div style="font-size:1px;height:0px;width:0px;position:absolute;text-align:right;margin-left:100%;"><img onclick="qmv_hide_dialog(false,true)" src="'+qmv.base+'images/close_button.gif" width=14 height=14 style="position:absolute;display:block;left:-20px;top:5px;"></div>'
		wt += '<div id="qmvi_help_dialog_title" style="'+z+'" class="qmvi-common qmvi-title" onmouseup="qmv_evt_title_mouseup(event,this)" onmousemove="qmv_evt_title_mousemove(event,this)" onmousedown="qmv_evt_title_mousedown(event,this,3)" style="">Visual QuickMenu</div>'
		wt += '<div id ="qmvi_help_dialog_content" class="qmvi-common qmvi-dialog-content-container">asdfasdf</div>';
		wt += '<div id ="qmvi_help_dialog_buttons" class="qmvi-common" style="padding:0px 10px 5px 10px;text-align:right;"></div>';


	wt += '</div>';



	//this is the template dialog - different than the rest
	wt += '<div id="qmvi_template_dialog" onselectstart="qmvi_kill_select(event)" oncontextmenu="qm_kille(event)" onclick="qmv_evt_kill_click(event)" style="font-size:13px;position:absolute;visibility:hidden;top:0px;left:0px;background-color:#eeeeee;z-index:'+(qmv.base_zindex+100)+';">'
	wt += '</div>';


	//this is the logon window
	wt += '<div id="qmvi_logon_shadow" onselectstart="qmvi_kill_select(event)" onclick="qmv_evt_kill_click(event)" style="'+op+'z-index:'+(qmv.base_zindex+100)+';background-color:#888888;position:absolute;"></div>'
	wt += '<div id="qmvi_logon" onselectstart="qmvi_kill_select(event)"  onkeypress="qmv_dialog_onkeypress(event)" onclick="qmv_hide_context();qmv_evt_kill_click(event)" class="qmvi-dialog-container" style="width:260px;z-index:'+(qmv.base_zindex+100)+';">'

		var z = "";
		if (qmad.br_ie)
			z = "zoom:1;";

		wt += '<div id ="qmvi_logon_close" style="font-size:1px;height:0px;width:0px;position:absolute;text-align:right;margin-left:100%;visibility:hidden;"><img onclick="qmv_hide_dialog(false,false,false,true)" src="'+qmv.base+'images/close_button.gif" width=14 height=14 style="position:absolute;display:block;left:-20px;top:5px;"></div>'		
		wt += '<div id="qmvi_logon_title" style="'+z+'" class="qmvi-common qmvi-title">Visual QuickMenu Login</div>'
		wt += '<div id ="qmvi_logon_content" class="qmvi-common qmvi-dialog-content-container" style="padding:15px 20px 10px 20px;">z</div>';
		wt += '<div id ="qmvi_logon_buttons" class="qmvi-common" style="padding:10px 20px;text-align:right;"></div>';


	wt += '</div>';
	

	
	//this is the remote account window
	wt += '<div id="qmvi_account_shadow" onselectstart="qmvi_kill_select(event)" onclick="qmv_evt_kill_click(event)" style="'+op+'z-index:'+(qmv.base_zindex+100)+';background-color:#888888;position:absolute;"></div>'
	wt += '<div id="qmvi_account" onselectstart="qmvi_kill_select(event)"  onkeypress="qmv_dialog_onkeypress(event)" onclick="qmv_hide_context();qmv_evt_kill_click(event)" class="qmvi-dialog-container" style="background-color:#ffffff;width:260px;z-index:'+(qmv.base_zindex+100)+';">'

		var z = "";
		if (qmad.br_ie)
			z = "zoom:1;";


		wt += '<div id ="qmvi_account_close" style="font-size:1px;height:0px;width:0px;position:absolute;text-align:right;margin-left:100%;visibility:inherit;"><img onclick="qmv_hide_dialog(false,false,false,false,true)" src="'+qmv.base+'images/close_button.gif" width=14 height=14 style="position:absolute;display:block;left:-20px;top:5px;"></div>'		
		wt += '<div id="qmvi_account_title" style="'+z+'-moz-user-select:none;" class="qmvi-common qmvi-title">Visual QuickMenu Account</div>'
		wt += '<div id ="qmvi_account_content" class="qmvi-common qmvi-dialog-content-container" style="padding:5px 5px 5px 5px;">z</div>';


	wt += '</div>';
	

	wt += '<div id="qmvi_ftop_dialog_shadow" onselectstart="qmvi_kill_select(event)" style="'+op+'z-index:'+(qmv.base_zindex+100)+';background-color:#888888;position:absolute;"></div>'
	wt += '<div id="qmvi_ftop_dialog" onselectstart="qmvi_kill_select(event)"  onkeypress="qmv_dialog_onkeypress(event)" onclick="qmv_hide_context();qmv_evt_kill_click(event)" class="qmvi-dialog-container" style="width:260px;">'

		var z = "";
		if (qmad.br_ie)
			z = "zoom:1;";

		wt += '<div style="font-size:1px;height:0px;width:0px;position:absolute;text-align:right;margin-left:100%;"><img onclick="qmv_hide_dialog(false,false,false,false,false,true)" src="'+qmv.base+'images/close_button.gif" width=14 height=14 style="position:absolute;display:block;left:-20px;top:5px;"></div>'
		wt += '<div id="qmvi_ftop_dialog_title" style="'+z+'" class="qmvi-common qmvi-title" onmouseup="qmv_evt_title_mouseup(event,this)" onmousemove="qmv_evt_title_mousemove(event,this)" onmousedown="qmv_evt_title_mousedown(event,this,6)" style="">Visual QuickMenu</div>'
		wt += '<div id ="qmvi_ftop_dialog_content" class="qmvi-common qmvi-dialog-content-container" style="padding:15px;">asdfasdf</div>';
		wt += '<div id ="qmvi_ftop_dialog_buttons" class="qmvi-common" style="padding:0px 10px 7px 10px;text-align:right;"></div>';


	wt += '</div>';

		
	//this is the wait message, typically for ie
	wt += '<div id="qmvi_wait_message_shadow" onselectstart="qmvi_kill_select(event)"  style="'+op+'z-index:'+(qmv.base_zindex+101)+';background-color:#888888;position:absolute;"></div>'
	wt += '<div class="qmvi-common" id="qmvi_wait_message" onselectstart="qmvi_kill_select(event)" oncontextmenu="qm_kille(event)" onclick="qmv_evt_kill_click(event)" style="font-size:13px;position:absolute;visibility:hidden;top:0px;left:0px;background-color:#eeeeee;z-index:'+(qmv.base_zindex+101)+';">'
	wt += '</div>';
	return wt;
}



function qmv_init_interface_tree()
{
	var wt = "";
	wt += '<div id="qmvtree" class="qmmc">'


	wt += '<a href="#" initshow=1 isfilter=1 id="qmvtree_filter" style="border-top-width:0px;">CSS Styles [filtered]</a>'	

		wt += '<div id="qmvtree_menu_styles_filtered" rule="skin">'
		
			wt += '<span style="display:block;margin:18px 10px 0px 0px;">';
			wt += '<table width=100% cellspacing=0 cellpadding=0 border=0><tr>';
			wt += '<td width=50% class="qmvtree-custfieldset"><span class="qmvtree-custlegend">Values</span><span class="qmvi-common" style="font-weight:normal;font-size:12px;position:relative;display:block;text-align:left;">add<input onclick="qmv_filter_change()" id="qmvf_value0" "class="qmvtree-checkbox" type="checkbox">&nbsp;edit<input onclick="qmv_filter_change()" id="qmvf_value1" class="qmvtree-checkbox" type="checkbox"></span></td>'
			wt += '<td><span style="display:block;font-size:1px;width:15px;"</td>';
			wt += '<td width=50% class="qmvtree-custfieldset"><span class="qmvtree-custlegend">Group</span><span  class="qmvi-common" style="font-weight:normal;font-size:12px;position:relative;display:block;text-align:left;">main<input onclick="qmv_filter_change()" id="qmvf_group0" name="qmvf_group" class="qmvtree-radio" type="radio">&nbsp;sub<input onclick="qmv_filter_change()" id="qmvf_group1" name="qmvf_group" class="qmvtree-radio" type="radio"></span></td>'
			wt += '</tr></table>';
			wt += '</span>';

			wt += '<span style="display:block;margin:18px 10px 0px 0px;">';
			wt += '<table width=100% cellspacing=0 cellpadding=0 border=0><tr>';
			wt += '<td width=100% class="qmvtree-custfieldset"><span class="qmvtree-custlegend">Section</span><span  class="qmvi-common" style="font-weight:normal;font-size:12px;position:relative;display:block;text-align:left;">containers<input onclick="qmv_filter_change()" id="qmvf_section0" name="qmvf_section" class="qmvtree-radio" type="radio">&nbsp;items<input onclick="qmv_filter_change()" id="qmvf_section1" name="qmvf_section"  class="qmvtree-radio" type="radio"></span></td>'
			wt += '</tr></table>';
			wt += '</span>';

			wt += '<span style="display:block;margin:18px 10px 5px 0px;">';
			wt += '<table width=100% cellspacing=0 cellpadding=0 border=0><tr>';
			wt += '<td width=100% class="qmvtree-custfieldset"><span class="qmvtree-custlegend">Style Type</span><span  class="qmvi-common" style="font-weight:normal;font-size:12px;position:relative;display:block;text-align:left;">color<input onclick="qmv_filter_change()" id="qmvf_style0" name="qmvf_style" class="qmvtree-radio" type="radio">&nbsp;font<input onclick="qmv_filter_change()" id="qmvf_style1" name="qmvf_style" class="qmvtree-radio" type="radio">&nbsp;border<input onclick="qmv_filter_change()" id="qmvf_style2" name="qmvf_style" class="qmvtree-radio" type="radio">&nbsp;other<input onclick="qmv_filter_change()" id="qmvf_style3" name="qmvf_style" class="qmvtree-radio" type="radio"></span></td>'
			wt += '</tr></table>';
			wt += '</span>';
		
			wt += '<span style="display:block;font-size:1px;height:5px;"></span>';
			wt += '<a href="#" isfresultsa=1 initshow=1>Filter Results <span id="qmvtree_filter_results_qty"></span></a>';

				wt += '<div id="qmvtree_filter_results">'
				wt += '<a href="#">place holder</a>';
				wt += '</div>';

			wt += '<span style="display:block;font-size:1px;height:5px;"></span>';

		wt += '</div>'


		
	wt += '<a href="#" >CSS Styles [unfiltered]</a>'

		wt += '<div id="qmvtree_css_styles">'
		wt += '<a initshow=1 href="#">Main</a>'
			wt += '<div group="main">'

			wt += '<a href="#" ruledesc="Container"><span isruledesc=1></span></a>'
				wt+='<div section="container" rule="#qm[i]" inheritrule="2@#qm[i] div">';
				wt += qmv_init_interface_tree_bracket(true);
				wt += qmv_init_interface_tree_item('width','width','width','css','unit',null,'x<0');
				wt += qmv_init_interface_tree_item('height','height','height','css','unit',null,'x<0');
				wt += qmv_init_interface_tree_item(null,'padding','padding','css','edge-padding',null,'x<0');
				wt += qmv_init_interface_tree_item(null,'margin','margin','css','edge-margin',null,null);

				wt += '<a href="#" style="margin-top:6px;">Background Styles</a>'
					wt+='<div rule="#qm[i]" inheritrule="2@#qm[i] div">';
					wt += qmv_init_interface_tree_item('bg-color','background-color','backgroundColor','css','color',null,null);
					wt += qmv_init_interface_tree_item('bg-image','background-image','backgroundImage','css','styleimage',null,null);
					wt += qmv_init_interface_tree_item('bg-repeat','background-repeat','backgroundRepeat','css','styleimagerepeat',null,null);
					wt += qmv_init_interface_tree_item('bg-position','background-position','backgroundPosition','css','styleimageposition',null,null);
					wt+='</div>';

				wt += '<a href="#">Border Styles</a>'
					wt+='<div rule="#qm[i]" inheritrule="2@#qm[i] div">';
					wt += qmv_init_interface_tree_item(null,'border-width','borderWidth','css','edge-borderwidth',null,'x<0');
					wt += qmv_init_interface_tree_item(null,'border-style','borderStyle','css','borderstyle',null,null);
					wt += qmv_init_interface_tree_item(null,'border-color','borderColor','css','color',null,null);
					wt+='</div>';

				wt += qmv_init_interface_tree_bracket();
				wt+='</div>';

			wt += '<a href="#">Items</a>'
				wt += '<div section="item">'
				
				wt += '<a href="#" ruledesc="Static"><span isruledesc=1></span></a>'
					wt+='<div ftitle="Static" rule="#qm[i] a" inheritrule="#qm[i] div a">';
					wt += qmv_init_interface_tree_bracket(true);
					wt += qmv_init_interface_tree_item('width','width','width','css','unit',null,'x<0');
					wt += qmv_init_interface_tree_item(null,'padding','padding','css','edge-padding',null,'x<0');
					wt += qmv_init_interface_tree_item(null,'margin','margin','css','edge-margin',null,null);
					
					wt += '<a href="#" style="margin-top:6px;">Background Styles</a>'
						wt+='<div ftitle="Static" rule="#qm[i] a" inheritrule="#qm[i] div a|4@#qm[i] .qmritem span">';
						wt += qmv_init_interface_tree_item('bg-color','background-color','backgroundColor','css','color',null,null);
						wt += qmv_init_interface_tree_item('bg-image','background-image','backgroundImage','css','styleimage',null,null);
						wt += qmv_init_interface_tree_item('bg-repeat','background-repeat','backgroundRepeat','css','styleimagerepeat',null,null);
						wt += qmv_init_interface_tree_item('bg-position','background-position','backgroundPosition','css','styleimageposition',null,null);
						wt+='</div>';

					wt += '<a href="#">Font Styles</a>'
						wt+='<div isfont=1 ftitle="Static" rule="#qm[i] a" inheritrule="#qm[i] div a|4@#qm[i] .qmritem span">';
						wt += qmv_init_interface_tree_item('color','color','color','css','color',null,null);
						wt += qmv_init_interface_tree_item('family','font-family','fontFamily','css','fontfamily',null,null);
						wt += qmv_init_interface_tree_item('size','font-size','fontSize','css','unit',null,'x<0');
						wt += qmv_init_interface_tree_item('decoration','text-decoration','textDecoration','css','textdecoration',null,null);
						wt += qmv_init_interface_tree_item('style','font-style','fontStyle','css','fontstyle',null,null);
						wt += qmv_init_interface_tree_item('weight','font-weight','fontWeight','css','fontweight',null,null);
						wt += qmv_init_interface_tree_item('align','text-align','textAlign','css','textalign',null,null);
						wt += qmv_init_interface_tree_item('variant','font-variant','fontVariant','css','font-variant');
						wt += qmv_init_interface_tree_item('line height','line-height','lineHeight','css','unit',null,'x<0');
						wt+='</div>';

					wt += '<a href="#">Border Styles</a>'
						wt+='<div ftitle="Static" rule="#qm[i] a" inheritrule="#qm[i] div a|4@#qm[i] .qmritem span">';
						wt += qmv_init_interface_tree_item(null,'border-width','borderWidth','css','edge-borderwidth',null,'x<0');
						wt += qmv_init_interface_tree_item(null,'border-style','borderStyle','css','borderstyle',null,null);
						wt += qmv_init_interface_tree_item(null,'border-color','borderColor','css','color',null,null);
						wt+='</div>';

					wt += qmv_init_interface_tree_bracket();
					wt+='</div>';



				wt += '<a href="#" ruledesc="Hover"><span isruledesc=1></span></a>'
					wt+='<div rule="#qm[i] a:hover" inheritrule="#qm[i] div a:hover|3@body #qm[i] .qmactive">';
					wt += qmv_init_interface_tree_bracket(true);
					
					wt += '<a href="#" style="margin-top:6px;">Background Styles</a>'
						wt+='<div ftitle="Static Hover" rule="#qm[i] a:hover" inheritrule="#qm[i] div a:hover|3@body #qm[i] .qmactive|4@#qm[i] a:hover .qmritem span">';
						wt += qmv_init_interface_tree_item('bg-color','background-color','backgroundColor','css','color',null,null);
						wt += qmv_init_interface_tree_item('bg-image','background-image','backgroundImage','css','styleimage',null,null);
						wt += qmv_init_interface_tree_item('bg-repeat','background-repeat','backgroundRepeat','css','styleimagerepeat',null,null);
						wt += qmv_init_interface_tree_item('bg-position','background-position','backgroundPosition','css','styleimageposition',null,null);
						wt+='</div>';

					wt += '<a href="#">Font Styles</a>'
						wt+='<div isfont=1 ftitle="Static Hover" rule="#qm[i] a:hover" inheritrule="#qm[i] div a:hover|3@body #qm[i] .qmactive|4@#qm[i] a:hover .qmritem span">';
						wt += qmv_init_interface_tree_item('color','color','color','css','color',null,null);
						wt += qmv_init_interface_tree_item('family','font-family','fontFamily','css','fontfamily',null,null);
						wt += qmv_init_interface_tree_item('size','font-size','fontSize','css','unit',null,'x<0');
						wt += qmv_init_interface_tree_item('decoration','text-decoration','textDecoration','css','textdecoration',null,null);
						wt += qmv_init_interface_tree_item('style','font-style','fontStyle','css','fontstyle',null,null);
						wt += qmv_init_interface_tree_item('weight','font-weight','fontWeight','css','fontweight',null,null);
						wt+='</div>';

					wt += '<a href="#">Border Styles</a>'
						wt+='<div ftitle="Static Hover" rule="#qm[i] a:hover" inheritrule="#qm[i] div a:hover|3@body #qm[i] .qmactive|4@#qm[i] a:hover .qmritem span">';
						wt += qmv_init_interface_tree_item(null,'border-style','borderStyle','css','borderstyle',null,null);
						wt += qmv_init_interface_tree_item(null,'border-color','borderColor','css','color',null,null);
						wt+='</div>';

					wt += qmv_init_interface_tree_bracket();
					wt+='</div>';


				wt += '<a href="#" ruledesc="Parent"><span isruledesc=1></span></a>'
					wt+='<div ftitle="Parent" rule="#qm[i] .qmparent" inheritrule="#qm[i] div .qmparent">';
					wt += qmv_init_interface_tree_bracket(true);
					wt += qmv_init_interface_tree_item('width','width','width','css','unit',null,'x<0');
					wt += qmv_init_interface_tree_item(null,'padding','padding','css','edge-padding',null,'x<0');
					wt += qmv_init_interface_tree_item(null,'margin','margin','css','edge-margin',null,null);
					
					wt += '<a href="#" style="margin-top:6px;">Background Styles</a>'
						wt+='<div ftitle="Parent" rule="#qm[i] .qmparent" inheritrule="#qm[i] div .qmparent">';
						wt += qmv_init_interface_tree_item('bg-color','background-color','backgroundColor','css','color',null,null);
						wt += qmv_init_interface_tree_item('bg-image','background-image','backgroundImage','css','styleimage',null,null);
						wt += qmv_init_interface_tree_item('bg-repeat','background-repeat','backgroundRepeat','css','styleimagerepeat',null,null);
						wt += qmv_init_interface_tree_item('bg-position','background-position','backgroundPosition','css','styleimageposition',null,null);
						wt+='</div>';

					wt += '<a href="#">Font Styles</a>'
						wt+='<div isfont=1 ftitle="Parent" rule="#qm[i] .qmparent" inheritrule="#qm[i] div .qmparent">';
						wt += qmv_init_interface_tree_item('color','color','color','css','color',null,null);
						wt += qmv_init_interface_tree_item('family','font-family','fontFamily','css','fontfamily',null,null);
						wt += qmv_init_interface_tree_item('size','font-size','fontSize','css','unit',null,'x<0');
						wt += qmv_init_interface_tree_item('decoration','text-decoration','textDecoration','css','textdecoration',null,null);
						wt += qmv_init_interface_tree_item('style','font-style','fontStyle','css','fontstyle',null,null);
						wt += qmv_init_interface_tree_item('weight','font-weight','fontWeight','css','fontweight',null,null);
						wt+='</div>';

					wt += '<a href="#">Border Styles</a>'
						wt+='<div ftitle="Parent" rule="#qm[i] .qmparent" inheritrule="#qm[i] div .qmparent">';
						wt += qmv_init_interface_tree_item(null,'border-width','borderWidth','css','edge-borderwidth',null,'x<0');
						wt += qmv_init_interface_tree_item(null,'border-style','borderStyle','css','borderstyle',null,null);
						wt += qmv_init_interface_tree_item(null,'border-color','borderColor','css','color',null,null);
						wt+='</div>';

					wt += qmv_init_interface_tree_bracket();
					wt+='</div>';


				wt += '<a href="#" ruledesc="Parent Hover"><span isruledesc=1></span></a>'
					wt+='<div rule="#qm[i] .qmparent:hover" inheritrule="#qm[i] div .qmparent:hover">';
					wt += qmv_init_interface_tree_bracket(true);
					
					wt += '<a href="#" style="margin-top:6px;">Background Styles</a>'
						wt+='<div ftitle="Parent Hover" rule="#qm[i] .qmparent:hover" inheritrule="#qm[i] div .qmparent:hover">';
						wt += qmv_init_interface_tree_item('bg-color','background-color','backgroundColor','css','color',null,null);
						wt += qmv_init_interface_tree_item('bg-image','background-image','backgroundImage','css','styleimage',null,null);
						wt += qmv_init_interface_tree_item('bg-repeat','background-repeat','backgroundRepeat','css','styleimagerepeat',null,null);
						wt += qmv_init_interface_tree_item('bg-position','background-position','backgroundPosition','css','styleimageposition',null,null);
						wt+='</div>';

					wt += '<a href="#">Font Styles</a>'
						wt+='<div isfont=1 ftitle="Parent Hover" rule="#qm[i] .qmparent:hover" inheritrule="#qm[i] div .qmparent:hover">';
						wt += qmv_init_interface_tree_item('color','color','color','css','color',null,null);
						wt += qmv_init_interface_tree_item('family','font-family','fontFamily','css','fontfamily',null,null);
						wt += qmv_init_interface_tree_item('size','font-size','fontSize','css','unit',null,'x<0');
						wt += qmv_init_interface_tree_item('decoration','text-decoration','textDecoration','css','textdecoration',null,null);
						wt += qmv_init_interface_tree_item('style','font-style','fontStyle','css','fontstyle',null,null);
						wt += qmv_init_interface_tree_item('weight','font-weight','fontWeight','css','fontweight',null,null);
						wt+='</div>';

					wt += '<a href="#">Border Styles</a>'
						wt+='<div ftitle="Parent Hover" rule="#qm[i] .qmparent:hover" inheritrule="#qm[i] div .qmparent:hover">';
						wt += qmv_init_interface_tree_item(null,'border-width','borderWidth','css','edge-borderwidth',null,'x<0');
						wt += qmv_init_interface_tree_item(null,'border-style','borderStyle','css','borderstyle',null,null);
						wt += qmv_init_interface_tree_item(null,'border-color','borderColor','css','color',null,null);
						wt+='</div>';

					wt += qmv_init_interface_tree_bracket();
					wt+='</div>';


				wt += '<a href="#" ruledesc="Active"><span isruledesc=1></span></a>'
					wt+='<div rule="body #qm[i] .qmactive" inheritrule="body #qm[i] div .qmactive">';
					wt += qmv_init_interface_tree_bracket(true);

					wt += '<a href="#" style="margin-top:6px;">Background Styles</a>'
						wt+='<div ftitle="Active" rule="body #qm[i] .qmactive" inheritrule="body #qm[i] div .qmactive|4@body #qm[i] .qmactive .qmritem span">';
						wt += qmv_init_interface_tree_item('bg-color','background-color','backgroundColor','css','color',null,null);
						wt += qmv_init_interface_tree_item('bg-image','background-image','backgroundImage','css','styleimage',null,null);
						wt += qmv_init_interface_tree_item('bg-repeat','background-repeat','backgroundRepeat','css','styleimagerepeat',null,null);
						wt += qmv_init_interface_tree_item('bg-position','background-position','backgroundPosition','css','styleimageposition',null,null);
						wt+='</div>';
					
					wt += '<a href="#">Font Styles</a>'
						wt+='<div isfont=1 ftitle="Active" rule="body #qm[i] .qmactive" inheritrule="body #qm[i] div .qmactive|4@body #qm[i] .qmactive .qmritem span">';
						wt += qmv_init_interface_tree_item('color','color','color','css','color',null,null);
						wt += qmv_init_interface_tree_item('family','font-family','fontFamily','css','fontfamily',null,null);
						wt += qmv_init_interface_tree_item('size','font-size','fontSize','css','unit',null,'x<0');
						wt += qmv_init_interface_tree_item('decoration','text-decoration','textDecoration','css','textdecoration',null,null);
						wt += qmv_init_interface_tree_item('style','font-style','fontStyle','css','fontstyle',null,null);
						wt += qmv_init_interface_tree_item('weight','font-weight','fontWeight','css','fontweight',null,null);
						wt+='</div>';

					wt += '<a href="#">Border Styles</a>'
						wt+='<div ftitle="Active" rule="body #qm[i] .qmactive" inheritrule="body #qm[i] div .qmactive|4@body #qm[i] .qmactive .qmritem span">';
						wt += qmv_init_interface_tree_item(null,'border-style','borderStyle','css','borderstyle',null,null);
						wt += qmv_init_interface_tree_item(null,'border-color','borderColor','css','color',null,null);
						wt+='</div>';
					wt += qmv_init_interface_tree_bracket();
					wt+='</div>';

				/*
				wt += '<a href="#" ruledesc="Active Hover"><span isruledesc=1></span></a>'
					wt+='<div rule="body #qm[i] .qmactive:hover" inheritrule="body #qm[i] div .qmactive:hover">';
					wt += qmv_init_interface_tree_bracket(true);

					wt += '<a href="#" style="margin-top:6px;">Background Styles</a>'
						wt+='<div ftitle="Active Hover" rule="body #qm[i] .qmactive:hover" inheritrule="body #qm[i] div .qmactive:hover">';
						wt += qmv_init_interface_tree_item('bg-color','background-color','backgroundColor','css','color',null,null);
						wt += qmv_init_interface_tree_item('bg-image','background-image','backgroundImage','css','styleimage',null,null);
						wt += qmv_init_interface_tree_item('bg-repeat','background-repeat','backgroundRepeat','css','styleimagerepeat',null,null);
						wt += qmv_init_interface_tree_item('bg-position','background-position','backgroundPosition','css','styleimageposition',null,null);
						wt+='</div>';
					
					wt += '<a href="#">Font Styles</a>'
						wt+='<div isfont=1 ftitle="Active Hover" rule="body #qm[i] .qmactive:active" inheritrule="body #qm[i] div .qmactive:hover">';
						wt += qmv_init_interface_tree_item('color','color','color','css','color',null,null);
						wt += qmv_init_interface_tree_item('family','font-family','fontFamily','css','fontfamily',null,null);
						wt += qmv_init_interface_tree_item('size','font-size','fontSize','css','unit',null,'x<0');
						wt += qmv_init_interface_tree_item('decoration','text-decoration','textDecoration','css','textdecoration',null,null);
						wt += qmv_init_interface_tree_item('style','font-style','fontStyle','css','fontstyle',null,null);
						wt += qmv_init_interface_tree_item('weight','font-weight','fontWeight','css','fontweight',null,null);
						wt+='</div>';

					wt += '<a href="#">Border Styles</a>'
						wt+='<div ftitle="Active Hover" rule="body #qm[i] .qmactive:hover" inheritrule="body #qm[i] div .qmactive:hover">';
						wt += qmv_init_interface_tree_item(null,'border-style','borderStyle','css','borderstyle',null,null);
						wt += qmv_init_interface_tree_item(null,'border-color','borderColor','css','color',null,null);
						wt+='</div>';
					wt += qmv_init_interface_tree_bracket();
					wt+='</div>';
				*/


				wt += '<a href="#" ruledesc="Persistent"><span isruledesc=1></span></a>'
					wt+='<div rule="body #qm[i] .qmpersistent" inheritrule="body #qm[i] div .qmpersistent">';
					wt += qmv_init_interface_tree_bracket(true);

					wt += '<a href="#" style="margin-top:6px;">Background Styles</a>'
						wt+='<div ftitle="Persistent" rule="body #qm[i] .qmpersistent" inheritrule="body #qm[i] div .qmpersistent|4@body #qm[i] .qmpersistent .qmritem span">';
						wt += qmv_init_interface_tree_item('bg-color','background-color','backgroundColor','css','color',null,null);
						wt += qmv_init_interface_tree_item('bg-image','background-image','backgroundImage','css','styleimage',null,null);
						wt += qmv_init_interface_tree_item('bg-repeat','background-repeat','backgroundRepeat','css','styleimagerepeat',null,null);
						wt += qmv_init_interface_tree_item('bg-position','background-position','backgroundPosition','css','styleimageposition',null,null);
						wt+='</div>';
					
					wt += '<a href="#">Font Styles</a>'
						wt+='<div isfont=1 ftitle="Persistent" rule="body #qm[i] .qmpersistent" inheritrule="body #qm[i] div .qmpersistent|4@body #qm[i] .qmpersistent .qmritem span">';
						wt += qmv_init_interface_tree_item('color','color','color','css','color',null,null);
						wt += qmv_init_interface_tree_item('family','font-family','fontFamily','css','fontfamily',null,null);
						wt += qmv_init_interface_tree_item('size','font-size','fontSize','css','unit',null,'x<0');
						wt += qmv_init_interface_tree_item('decoration','text-decoration','textDecoration','css','textdecoration',null,null);
						wt += qmv_init_interface_tree_item('style','font-style','fontStyle','css','fontstyle',null,null);
						wt += qmv_init_interface_tree_item('weight','font-weight','fontWeight','css','fontweight',null,null);
						wt+='</div>';

					wt += '<a href="#">Border Styles</a>'
						wt+='<div ftitle="Persistent" rule="body #qm[i] .qmpersistent" inheritrule="body #qm[i] div .qmpersistent|4@body #qm[i] .qmpersistent .qmritem span">';
						wt += qmv_init_interface_tree_item(null,'border-style','borderStyle','css','borderstyle',null,null);
						wt += qmv_init_interface_tree_item(null,'border-color','borderColor','css','color',null,null);
						wt+='</div>';
					wt += qmv_init_interface_tree_bracket();
					wt+='</div>';

				wt += '</div>'

			wt+='</div>';

		wt += '<a initshow=1  href="#">Subs</a>'

			wt += '<div group="sub">'

			wt += '<a href="#" ruledesc="Container"><span isruledesc=1></span></a>'
				wt+='<div section="container" rule="#qm[i] div">';
				wt += qmv_init_interface_tree_bracket(true);
				wt += qmv_init_interface_tree_item('width','width','width','css','unit',null,'x<0');
				wt += qmv_init_interface_tree_item(null,'padding','padding','css','edge-padding',null,'x<0');
				wt += qmv_init_interface_tree_item(null,'margin','margin','css','edge-margin',null,null);

				wt += '<a href="#" style="margin-top:6px;">Background Styles</a>'
					wt+='<div rule="#qm[i] div" inheritrule="5@addon:round_corners">';
					wt += qmv_init_interface_tree_item('bg-color','background-color','backgroundColor','css','color',null,null);
					wt += qmv_init_interface_tree_item('bg-image','background-image','backgroundImage','css','styleimage',null,null);
					wt += qmv_init_interface_tree_item('bg-repeat','background-repeat','backgroundRepeat','css','styleimagerepeat',null,null);
					wt += qmv_init_interface_tree_item('bg-position','background-position','backgroundPosition','css','styleimageposition',null,null);
					wt+='</div>';

				wt += '<a href="#">Border Styles</a>'
					wt+='<div rule="#qm[i] div" inheritrule="5@addon:round_corners">';
					wt += qmv_init_interface_tree_item(null,'border-width','borderWidth','css','edge-borderwidth',null,'x<0');
					wt += qmv_init_interface_tree_item(null,'border-style','borderStyle','css','borderstyle',null,null);
					wt += qmv_init_interface_tree_item(null,'border-color','borderColor','css','color',null,null);
					wt+='</div>';

				wt += qmv_init_interface_tree_bracket();
				wt+='</div>';

			wt += '<a href="#">Items</a>'
				wt += '<div section="item">'
				
				wt += '<a href="#" ruledesc="Static"><span isruledesc=1></span></a>'
					wt+='<div ftitle="Static" rule="#qm[i] div a">';
					wt += qmv_init_interface_tree_bracket(true);
					wt += qmv_init_interface_tree_item('width','width','width','css','unit',null,'x<0');
					wt += qmv_init_interface_tree_item(null,'padding','padding','css','edge-padding',null,'x<0');
					wt += qmv_init_interface_tree_item(null,'margin','margin','css','edge-margin',null,null);
					
					wt += '<a href="#" style="margin-top:6px;">Background Styles</a>'
						wt+='<div ftitle="Static" rule="#qm[i] div a" inheritrule="4@#qm[i] div .qmritem span">';
						wt += qmv_init_interface_tree_item('bg-color','background-color','backgroundColor','css','color',null,null);
						wt += qmv_init_interface_tree_item('bg-image','background-image','backgroundImage','css','styleimage',null,null);
						wt += qmv_init_interface_tree_item('bg-repeat','background-repeat','backgroundRepeat','css','styleimagerepeat',null,null);
						wt += qmv_init_interface_tree_item('bg-position','background-position','backgroundPosition','css','styleimageposition',null,null);
						wt+='</div>';

					wt += '<a href="#">Font Styles</a>'
						wt+='<div isfont=1 ftitle="Static" rule="#qm[i] div a" inheritrule="4@#qm[i] div .qmritem span">';
						wt += qmv_init_interface_tree_item('color','color','color','css','color',null,null);
						wt += qmv_init_interface_tree_item('family','font-family','fontFamily','css','fontfamily',null,null);
						wt += qmv_init_interface_tree_item('size','font-size','fontSize','css','unit',null,'x<0');
						wt += qmv_init_interface_tree_item('decoration','text-decoration','textDecoration','css','textdecoration',null,null);
						wt += qmv_init_interface_tree_item('style','font-style','fontStyle','css','fontstyle',null,null);
						wt += qmv_init_interface_tree_item('weight','font-weight','fontWeight','css','fontweight',null,null);
						wt += qmv_init_interface_tree_item('align','text-align','textAlign','css','textalign',null,null);
						wt += qmv_init_interface_tree_item('variant','font-variant','fontVariant','css','font-variant');
						wt += qmv_init_interface_tree_item('line height','line-height','lineHeight','css','unit',null,'x<0');
						wt+='</div>';

					wt += '<a href="#">Border Styles</a>'
						wt+='<div ftitle="Static" rule="#qm[i] div a" inheritrule="4@#qm[i] div .qmritem span">';
						wt += qmv_init_interface_tree_item(null,'border-width','borderWidth','css','edge-borderwidth',null,'x<0');
						wt += qmv_init_interface_tree_item(null,'border-style','borderStyle','css','borderstyle',null,null);
						wt += qmv_init_interface_tree_item(null,'border-color','borderColor','css','color',null,null);
						wt+='</div>';

					wt += qmv_init_interface_tree_bracket();
					wt+='</div>';



				wt += '<a href="#" ruledesc="Hover"><span isruledesc=1></span></a>'
					wt+='<div rule="#qm[i] div a:hover" inheritrule="3@body #qm[i] div .qmactive">';
					wt += qmv_init_interface_tree_bracket(true);
					
					wt += '<a href="#" style="margin-top:6px;">Background Styles</a>'
						wt+='<div ftitle="Static Hover" rule="#qm[i] div a:hover" inheritrule="3@body #qm[i] div .qmactive|4@#qm[i] div a:hover .qmritem span">';
						wt += qmv_init_interface_tree_item('bg-color','background-color','backgroundColor','css','color',null,null);
						wt += qmv_init_interface_tree_item('bg-image','background-image','backgroundImage','css','styleimage',null,null);
						wt += qmv_init_interface_tree_item('bg-repeat','background-repeat','backgroundRepeat','css','styleimagerepeat',null,null);
						wt += qmv_init_interface_tree_item('bg-position','background-position','backgroundPosition','css','styleimageposition',null,null);
						wt+='</div>';

					wt += '<a href="#">Font Styles</a>'
						wt+='<div isfont=1 ftitle="Static Hover" rule="#qm[i] div a:hover" inheritrule="3@body #qm[i] div .qmactive|4@#qm[i] div a:hover .qmritem span">';
						wt += qmv_init_interface_tree_item('color','color','color','css','color',null,null);
						wt += qmv_init_interface_tree_item('family','font-family','fontFamily','css','fontfamily',null,null);
						wt += qmv_init_interface_tree_item('size','font-size','fontSize','css','unit',null,'x<0');
						wt += qmv_init_interface_tree_item('decoration','text-decoration','textDecoration','css','textdecoration',null,null);
						wt += qmv_init_interface_tree_item('style','font-style','fontStyle','css','fontstyle',null,null);
						wt += qmv_init_interface_tree_item('weight','font-weight','fontWeight','css','fontweight',null,null);
						wt+='</div>';

					wt += '<a href="#">Border Styles</a>'
						wt+='<div ftitle="Static Hover" rule="#qm[i] div a:hover" inheritrule="3@body #qm[i] div .qmactive|4@#qm[i] div a:hover .qmritem span">';
						wt += qmv_init_interface_tree_item(null,'border-style','borderStyle','css','borderstyle',null,null);
						wt += qmv_init_interface_tree_item(null,'border-color','borderColor','css','color',null,null);
						wt+='</div>';

					wt += qmv_init_interface_tree_bracket();
					wt+='</div>';


				wt += '<a href="#" ruledesc="Parent"><span isruledesc=1></span></a>'
					wt+='<div ftitle="Parent" rule="#qm[i] div .qmparent">';
					wt += qmv_init_interface_tree_bracket(true);
					wt += qmv_init_interface_tree_item('width','width','width','css','unit',null,'x<0');
					wt += qmv_init_interface_tree_item(null,'padding','padding','css','edge-padding',null,'x<0');
					wt += qmv_init_interface_tree_item(null,'margin','margin','css','edge-margin',null,null);
					
					wt += '<a href="#" style="margin-top:6px;">Background Styles</a>'
						wt+='<div ftitle="Parent" rule="#qm[i] div .qmparent">';
						wt += qmv_init_interface_tree_item('bg-color','background-color','backgroundColor','css','color',null,null);
						wt += qmv_init_interface_tree_item('bg-image','background-image','backgroundImage','css','styleimage',null,null);
						wt += qmv_init_interface_tree_item('bg-repeat','background-repeat','backgroundRepeat','css','styleimagerepeat',null,null);
						wt += qmv_init_interface_tree_item('bg-position','background-position','backgroundPosition','css','styleimageposition',null,null);
						wt+='</div>';

					wt += '<a href="#">Font Styles</a>'
						wt+='<div isfont=1 ftitle="Parent" rule="#qm[i] div .qmparent">';
						wt += qmv_init_interface_tree_item('color','color','color','css','color',null,null);
						wt += qmv_init_interface_tree_item('family','font-family','fontFamily','css','fontfamily',null,null);
						wt += qmv_init_interface_tree_item('size','font-size','fontSize','css','unit',null,'x<0');
						wt += qmv_init_interface_tree_item('decoration','text-decoration','textDecoration','css','textdecoration',null,null);
						wt += qmv_init_interface_tree_item('style','font-style','fontStyle','css','fontstyle',null,null);
						wt += qmv_init_interface_tree_item('weight','font-weight','fontWeight','css','fontweight',null,null);
						wt+='</div>';

					wt += '<a href="#">Border Styles</a>'
						wt+='<div ftitle="Parent" rule="#qm[i] div .qmparent">';
						wt += qmv_init_interface_tree_item(null,'border-width','borderWidth','css','edge-borderwidth',null,'x<0');
						wt += qmv_init_interface_tree_item(null,'border-style','borderStyle','css','borderstyle',null,null);
						wt += qmv_init_interface_tree_item(null,'border-color','borderColor','css','color',null,null);
						wt+='</div>';

					wt += qmv_init_interface_tree_bracket();
					wt+='</div>';


				wt += '<a href="#" ruledesc="Parent Hover"><span isruledesc=1></span></a>'
					wt+='<div rule="#qm[i] div .qmparent:hover">';
					wt += qmv_init_interface_tree_bracket(true);
					
					wt += '<a href="#" style="margin-top:6px;">Background Styles</a>'
						wt+='<div ftitle="Parent Hover" rule="#qm[i] div .qmparent:hover">';
						wt += qmv_init_interface_tree_item('bg-color','background-color','backgroundColor','css','color',null,null);
						wt += qmv_init_interface_tree_item('bg-image','background-image','backgroundImage','css','styleimage',null,null);
						wt += qmv_init_interface_tree_item('bg-repeat','background-repeat','backgroundRepeat','css','styleimagerepeat',null,null);
						wt += qmv_init_interface_tree_item('bg-position','background-position','backgroundPosition','css','styleimageposition',null,null);
						wt+='</div>';

					wt += '<a href="#">Font Styles</a>'
						wt+='<div isfont=1 ftitle="Parent Hover" rule="#qm[i] div .qmparent:hover">';
						wt += qmv_init_interface_tree_item('color','color','color','css','color',null,null);
						wt += qmv_init_interface_tree_item('family','font-family','fontFamily','css','fontfamily',null,null);
						wt += qmv_init_interface_tree_item('size','font-size','fontSize','css','unit',null,'x<0');
						wt += qmv_init_interface_tree_item('decoration','text-decoration','textDecoration','css','textdecoration',null,null);
						wt += qmv_init_interface_tree_item('style','font-style','fontStyle','css','fontstyle',null,null);
						wt += qmv_init_interface_tree_item('weight','font-weight','fontWeight','css','fontweight',null,null);
						wt+='</div>';

					wt += '<a href="#">Border Styles</a>'
						wt+='<div ftitle="Parent Hover" rule="#qm[i] div .qmparent:hover">';
						wt += qmv_init_interface_tree_item(null,'border-width','borderWidth','css','edge-borderwidth',null,'x<0');
						wt += qmv_init_interface_tree_item(null,'border-style','borderStyle','css','borderstyle',null,null);
						wt += qmv_init_interface_tree_item(null,'border-color','borderColor','css','color',null,null);
						wt+='</div>';

					wt += qmv_init_interface_tree_bracket();
					wt+='</div>';

				wt += '<a href="#" ruledesc="Active"><span isruledesc=1></span></a>'
					wt+='<div rule="body #qm[i] div .qmactive">';
					wt += qmv_init_interface_tree_bracket(true);

					wt += '<a href="#" style="margin-top:6px;">Background Styles</a>'
						wt+='<div ftitle="Active" rule="body #qm[i] div .qmactive" inheritrule="4@body #qm[i] div .qmactive .qmritem span">';
						wt += qmv_init_interface_tree_item('bg-color','background-color','backgroundColor','css','color',null,null);
						wt += qmv_init_interface_tree_item('bg-image','background-image','backgroundImage','css','styleimage',null,null);
						wt += qmv_init_interface_tree_item('bg-repeat','background-repeat','backgroundRepeat','css','styleimagerepeat',null,null);
						wt += qmv_init_interface_tree_item('bg-position','background-position','backgroundPosition','css','styleimageposition',null,null);
						wt+='</div>';
					
					wt += '<a href="#">Font Styles</a>'
						wt+='<div isfont=1 ftitle="Active" rule="body #qm[i] div .qmactive" inheritrule="4@body #qm[i] div .qmactive .qmritem span">';
						wt += qmv_init_interface_tree_item('color','color','color','css','color',null,null);
						wt += qmv_init_interface_tree_item('family','font-family','fontFamily','css','fontfamily',null,null);
						wt += qmv_init_interface_tree_item('size','font-size','fontSize','css','unit',null,'x<0');
						wt += qmv_init_interface_tree_item('decoration','text-decoration','textDecoration','css','textdecoration',null,null);
						wt += qmv_init_interface_tree_item('style','font-style','fontStyle','css','fontstyle',null,null);
						wt += qmv_init_interface_tree_item('weight','font-weight','fontWeight','css','fontweight',null,null);
						wt+='</div>';

					wt += '<a href="#">Border Styles</a>'
						wt+='<div ftitle="Active" rule="body #qm[i] div .qmactive" inheritrule="4@body #qm[i] div .qmactive .qmritem span">';
						wt += qmv_init_interface_tree_item(null,'border-style','borderStyle','css','borderstyle',null,null);
						wt += qmv_init_interface_tree_item(null,'border-color','borderColor','css','color',null,null);
						wt+='</div>';
					wt += qmv_init_interface_tree_bracket();
					wt+='</div>';

				/*
				wt += '<a href="#" ruledesc="Active Hover"><span isruledesc=1></span></a>'
					wt+='<div rule="body #qm[i] div .qmactive:hover">';
					wt += qmv_init_interface_tree_bracket(true);

					wt += '<a href="#" style="margin-top:6px;">Background Styles</a>'
						wt+='<div ftitle="Active Hover" rule="body #qm[i] div .qmactive:hover">';
						wt += qmv_init_interface_tree_item('bg-color','background-color','backgroundColor','css','color',null,null);
						wt += qmv_init_interface_tree_item('bg-image','background-image','backgroundImage','css','styleimage',null,null);
						wt += qmv_init_interface_tree_item('bg-repeat','background-repeat','backgroundRepeat','css','styleimagerepeat',null,null);
						wt += qmv_init_interface_tree_item('bg-position','background-position','backgroundPosition','css','styleimageposition',null,null);
						wt+='</div>';
					
					wt += '<a href="#">Font Styles</a>'
						wt+='<div isfont=1 ftitle="Active Hover" rule="body #qm[i] div .qmactive:hover">';
						wt += qmv_init_interface_tree_item('color','color','color','css','color',null,null);
						wt += qmv_init_interface_tree_item('family','font-family','fontFamily','css','fontfamily',null,null);
						wt += qmv_init_interface_tree_item('size','font-size','fontSize','css','unit',null,'x<0');
						wt += qmv_init_interface_tree_item('decoration','text-decoration','textDecoration','css','textdecoration',null,null);
						wt += qmv_init_interface_tree_item('style','font-style','fontStyle','css','fontstyle',null,null);
						wt += qmv_init_interface_tree_item('weight','font-weight','fontWeight','css','fontweight',null,null);
						wt+='</div>';

					wt += '<a href="#">Border Styles</a>'
						wt+='<div ftitle="Active Hover" rule="body #qm[i] div .qmactive:hover">';
						wt += qmv_init_interface_tree_item(null,'border-style','borderStyle','css','borderstyle',null,null);
						wt += qmv_init_interface_tree_item(null,'border-color','borderColor','css','color',null,null);
						wt+='</div>';
					wt += qmv_init_interface_tree_bracket();
					wt+='</div>';
				*/


				wt += '<a href="#" ruledesc="Persistent"><span isruledesc=1></span></a>'
					wt+='<div rule="body #qm[i] div .qmpersistent">';
					wt += qmv_init_interface_tree_bracket(true);

					wt += '<a href="#" style="margin-top:6px;">Background Styles</a>'
						wt+='<div ftitle="Persistent" rule="body #qm[i] div .qmpersistent" inheritrule="4@body #qm[i] div .qmpersistent .qmritem span">';
						wt += qmv_init_interface_tree_item('bg-color','background-color','backgroundColor','css','color',null,null);
						wt += qmv_init_interface_tree_item('bg-image','background-image','backgroundImage','css','styleimage',null,null);
						wt += qmv_init_interface_tree_item('bg-repeat','background-repeat','backgroundRepeat','css','styleimagerepeat',null,null);
						wt += qmv_init_interface_tree_item('bg-position','background-position','backgroundPosition','css','styleimageposition',null,null);
						wt+='</div>';
					
					wt += '<a href="#">Font Styles</a>'
						wt+='<div isfont=1 ftitle="Persistent" rule="body #qm[i] div .qmersistent" inheritrule="4@body #qm[i] div .qmpersistent .qmritem span">';
						wt += qmv_init_interface_tree_item('color','color','color','css','color',null,null);
						wt += qmv_init_interface_tree_item('family','font-family','fontFamily','css','fontfamily',null,null);
						wt += qmv_init_interface_tree_item('size','font-size','fontSize','css','unit',null,'x<0');
						wt += qmv_init_interface_tree_item('decoration','text-decoration','textDecoration','css','textdecoration',null,null);
						wt += qmv_init_interface_tree_item('style','font-style','fontStyle','css','fontstyle',null,null);
						wt += qmv_init_interface_tree_item('weight','font-weight','fontWeight','css','fontweight',null,null);
						wt+='</div>';

					wt += '<a href="#">Border Styles</a>'
						wt+='<div ftitle="Persistent" rule="body #qm[i] div .qmpersistent" inheritrule="4@body #qm[i] div .qmpersistent .qmritem span">';
						wt += qmv_init_interface_tree_item(null,'border-style','borderStyle','css','borderstyle',null,null);
						wt += qmv_init_interface_tree_item(null,'border-color','borderColor','css','color',null,null);
						wt+='</div>';
					wt += qmv_init_interface_tree_bracket();
					wt+='</div>';	

				wt += '</div>'

			wt+='</div>';

		wt += '</div>'


	wt += '<a href="#">CSS Styles [custom]</a>'

		wt+='<div id="qmvtree_custom_rules">';
			wt += qmv_init_interface_tree_item(null,'Add Custom CSS Rule','custom_rule','plus');
		wt += '</div>'


	wt += '<a href="#" initshow=1>Add-Ons</a>'

		wt += '<div id="qmvtree_addon_settings">'
		wt += '<a href="#">Animation Effects</a>'


			wt += '<div>'
			wt += qmv_init_interface_tree_addon_title("Box Animation","box_effect");
			
				wt += '<div rule="addon"  id="qmvtree_box" addontype="box_effect">'
				wt += qmv_init_interface_tree_item(null,'frames','box_animation_frames','addon','int',20,"x<0 || x>200");
				wt += qmv_init_interface_tree_item(null,'accelerator','box_accelerator','addon','float',".4|none","x<0 || x>10");
				wt += qmv_init_interface_tree_item(null,'position','box_position','addon','box-position',"center|none");
				

				wt += '<a style="margin-top:10px;" href="#" ruledesc="Box Styles"><span isruledesc=1></span></a>'	
					wt += '<div rule="#qm[i] .qmbox">'

					wt += qmv_init_interface_tree_bracket(true);

					
						wt += '<a href="#" style="margin-top:6px;">Background Styles</a>'
							wt+='<div ftitle="Static" rule="#qm[i] .qmbox">';
							wt += qmv_init_interface_tree_item('bg-color','background-color','backgroundColor','css','color',null,null);
							wt += qmv_init_interface_tree_item('bg-image','background-image','backgroundImage','css','styleimage',null,null);
							wt += qmv_init_interface_tree_item('bg-repeat','background-repeat','backgroundRepeat','css','styleimagerepeat',null,null);
							wt += qmv_init_interface_tree_item('bg-position','background-position','backgroundPosition','css','styleimageposition',null,null);
							wt+='</div>';


						wt += '<a href="#">Border Styles</a>'
							wt+='<div ftitle="Static" rule="#qm[i] .qmbox">';
							wt += qmv_init_interface_tree_item(null,'border-width','borderWidth','css','edge-borderwidth',"1px|none",'x<0');
							wt += qmv_init_interface_tree_item(null,'border-style','borderStyle','css','borderstyle',"solid|none",null);
							wt += qmv_init_interface_tree_item(null,'border-color','borderColor','css','color',"#999999|none",null);
							wt+='</div>';

					wt += qmv_init_interface_tree_bracket();
					wt += '</div>'
					wt += '<span style="display:block;font-size:1px;height:10px;"></span>';

				wt += '</div>'

			
			wt += qmv_init_interface_tree_addon_title("Fade Subs","fade");
			
				wt += '<div rule="addon" addontype="fade">'
				
				wt += qmv_init_interface_tree_item(null,'frames in','fade_in_frames','addon','int','20|or',"x<0 || x>500");
				wt += qmv_init_interface_tree_item(null,'frames out','fade_out_frames','addon','int','20|or',"x<0 || x>500");
				wt += '</div>'


			wt += qmv_init_interface_tree_addon_title("Bump Subs","bump_effect");
			
				wt += '<div rule="addon" addontype="bump_effect">'
				
				wt += qmv_init_interface_tree_item(null,'frames','bump_animation_frames','addon','int',10,"x<0 || x>200");
				wt += qmv_init_interface_tree_item(null,'distance','bump_distance','addon','int','20|none',"x<0");
				wt += qmv_init_interface_tree_item(null,'main dir.','bump_main_direction','addon','bump-direction','left|none');
				wt += qmv_init_interface_tree_item(null,'sub dir.','bump_sub_direction','addon','bump-direction','left|none');
				wt += qmv_init_interface_tree_item(null,'auto mains','bump_auto_switch_main_left_right_directions','addon','bool','true|none');
				wt += '</div>'

			wt += qmv_init_interface_tree_addon_title("Slide Subs","slide_effect");
			
				wt += '<div rule="addon" addontype="slide_effect">'
				wt += qmv_init_interface_tree_item(null,'frames','slide_animation_frames','addon','int',15,"x<0 || x>200");
				wt += qmv_init_interface_tree_item(null,'accelerator','slide_accelerator','addon','float',null,"x<0 || x>10");
				wt += qmv_init_interface_tree_item(null,'main right','slide_left_right','addon','bool');
				wt += qmv_init_interface_tree_item(null,'sub right','slide_sub_subs_left_right','addon','bool');
				wt += qmv_init_interface_tree_item(null,'offset xy','slide_offxy','addon','int');
				wt += qmv_init_interface_tree_item(null,'drop subs','slide_drop_subs','addon','bool',null,null,"qmv_update_slide_drop_subs(a)");
				wt += qmv_init_interface_tree_item(null,'drop height','slide_drop_subs_height','addon','int',null,null,"qmv_update_slide_drop_subs_height(a)");
				wt += qmv_init_interface_tree_item(null,'drop hide','slide_drop_subs_disappear','addon','bool');
				wt += '</div>'


			wt += qmv_init_interface_tree_addon_title("Merge Subs","merge_effect");
			
				wt += '<div rule="addon" addontype="merge_effect">'
				wt += qmv_init_interface_tree_item(null,'frames','merge_frames','addon','int',20,"x<0 || x>20");
				wt += qmv_init_interface_tree_item(null,'main up','merge_updown','addon','bool');
				wt += qmv_init_interface_tree_item(null,'subs up','merge_sub_subs_updown','addon','bool');
				wt += qmv_init_interface_tree_item(null,'opacity','merge_opacity','addon','float',null,"x<0 || x>1");
				wt += '</div>'

			

			wt += qmv_init_interface_tree_addon_title("Hover Fill","hoverfill");

				wt += '<div rule="addon" id="qmvtree_hoverfill" addontype="hoverfill">'

				wt += qmv_init_interface_tree_item(null,'Apply To','hoverfill_apply_to','addon','hoverfill-apply','all|none');
				wt += '<span style="display:block;font-size:1px;height:10px;"></span>';
											
				

				wt += '<a href="#" initshow=1>Options</a>'
					wt += '<div>';
	
						wt += qmv_init_interface_tree_item(null,'Set Item Colors Transparent','hoverfill_trans','plus');
						wt += '<span style="display:block;font-size:1px;height:5px;"></span>';
					
					wt+='</div>';


				wt += '<a href="#">Main Hovers</a>'
					wt += '<div rule="addon" addontype="hoverfill">';


						wt += qmv_init_interface_tree_item(null,'type','hoverfill_main_type','addon','hoverfill-type','fade|or');
						wt += qmv_init_interface_tree_item(null,'direction','hoverfill_main_direction','addon','hoverfill-direction','up|none');
						wt += qmv_init_interface_tree_item(null,'step size','hoverfill_main_step_size','addon','int','1|none',"x<0 || x>10");
						wt += qmv_init_interface_tree_item(null,'fade in','hoverfill_main_fade_in','addon','bool','true|none');
						wt += qmv_init_interface_tree_item(null,'fade steps','hoverfill_main_fade_type_steps','addon','int',null,"x<0 || x>1000");
						wt += qmv_init_interface_tree_item(null,'off. width','hoverfill_main_offset_width','addon','int');
						wt += qmv_init_interface_tree_item(null,'off. height','hoverfill_main_offset_height','addon','int');
						wt += '<span style="display:block;font-size:1px;height:10px;"></span>';
		

						wt += '<a href="#">Items [Static]</a>'	
		
							wt += '<div rule="#qm[i] .qmhoverfill">'
							wt += qmv_init_interface_tree_bracket(true);
							wt += qmv_init_interface_tree_item('bg-color','background-color','backgroundColor','css','color',"#91ed99|none",null);
							wt += qmv_init_interface_tree_item('bg-image','background-image','backgroundImage','css','styleimage',null,null);
							wt += qmv_init_interface_tree_item('bg-repeat','background-repeat','backgroundRepeat','css','styleimagerepeat',null,null);
							wt += qmv_init_interface_tree_item('bg-position','background-position','backgroundPosition','css','styleimageposition',null,null);
							wt += qmv_init_interface_tree_item(null,'border-width','borderWidth','css','edge-borderwidth',null,'x<0');
							wt += qmv_init_interface_tree_item(null,'border-style','borderStyle','css','borderstyle');
							wt += qmv_init_interface_tree_item(null,'border-color','borderColor','css','color');
							wt += qmv_init_interface_tree_bracket();
							wt+='</div>';


						wt += '<a href="#">Items [Parent]</a>'	
		
							wt += '<div rule="#qm[i] .qmhoverfill.qmhparent">'
							wt += qmv_init_interface_tree_bracket(true);
							wt += qmv_init_interface_tree_item('bg-color','background-color','backgroundColor','css','color');
							wt += qmv_init_interface_tree_item('bg-image','background-image','backgroundImage','css','styleimage',null,null);
							wt += qmv_init_interface_tree_item('bg-repeat','background-repeat','backgroundRepeat','css','styleimagerepeat',null,null);
							wt += qmv_init_interface_tree_item('bg-position','background-position','backgroundPosition','css','styleimageposition',null,null);
							wt += qmv_init_interface_tree_item(null,'border-width','borderWidth','css','edge-borderwidth',null,'x<0');
							wt += qmv_init_interface_tree_item(null,'border-style','borderStyle','css','borderstyle');
							wt += qmv_init_interface_tree_item(null,'border-color','borderColor','css','color');
							wt += qmv_init_interface_tree_bracket();
							wt+='</div>';

					
					wt+='</div>';

				wt += '<a href="#">Sub Hovers</a>'
					wt += '<div rule="addon" addontype="hoverfill">';
						
						wt += qmv_init_interface_tree_item(null,'type','hoverfill_sub_type','addon','hoverfill-type','grow|or');
						wt += qmv_init_interface_tree_item(null,'direction','hoverfill_sub_direction','addon','hoverfill-direction','up|none');
						wt += qmv_init_interface_tree_item(null,'step size','hoverfill_sub_step_size','addon','int','1|none',"x<0 || x>10");
						wt += qmv_init_interface_tree_item(null,'fade in','hoverfill_sub_fade_in','addon','bool','true|none');
						wt += qmv_init_interface_tree_item(null,'fade steps','hoverfill_sub_fade_type_steps','addon','int',null,"x<0 || x>1000");
						wt += qmv_init_interface_tree_item(null,'off. width','hoverfill_sub_offset_width','addon','int',"-2|none");
						wt += qmv_init_interface_tree_item(null,'off. height','hoverfill_sub_offset_height','addon','int',"-2|none");
						wt += '<span style="display:block;font-size:1px;height:10px;"></span>';
		

						wt += '<a href="#">Items [Static]</a>'	
		
							wt += '<div rule="#qm[i] div .qmhoverfill">'
							wt += qmv_init_interface_tree_bracket(true);
							wt += qmv_init_interface_tree_item('bg-color','background-color','backgroundColor','css','color',"#91e599|none");
							wt += qmv_init_interface_tree_item('bg-image','background-image','backgroundImage','css','styleimage',null,null);
							wt += qmv_init_interface_tree_item('bg-repeat','background-repeat','backgroundRepeat','css','styleimagerepeat',null,null);
							wt += qmv_init_interface_tree_item('bg-position','background-position','backgroundPosition','css','styleimageposition',null,null);
							wt += qmv_init_interface_tree_item(null,'border-width','borderWidth','css','edge-borderwidth',"1px|none",'x<0');
							wt += qmv_init_interface_tree_item(null,'border-style','borderStyle','css','borderstyle',"solid|none");
							wt += qmv_init_interface_tree_item(null,'border-color','borderColor','css','color',"#555555|none");
							wt += qmv_init_interface_tree_bracket();
							wt+='</div>';


						wt += '<a href="#">Items [Parent]</a>'	
		
							wt += '<div rule="#qm[i] div .qmhoverfill.qmhparent">'
							wt += qmv_init_interface_tree_bracket(true);
							wt += qmv_init_interface_tree_item('bg-color','background-color','backgroundColor','css','color');
							wt += qmv_init_interface_tree_item('bg-image','background-image','backgroundImage','css','styleimage',null,null);
							wt += qmv_init_interface_tree_item('bg-repeat','background-repeat','backgroundRepeat','css','styleimagerepeat',null,null);
							wt += qmv_init_interface_tree_item('bg-position','background-position','backgroundPosition','css','styleimageposition',null,null);
							wt += qmv_init_interface_tree_item(null,'border-width','borderWidth','css','edge-borderwidth',null,'x<0');
							wt += qmv_init_interface_tree_item(null,'border-style','borderStyle','css','borderstyle');
							wt += qmv_init_interface_tree_item(null,'border-color','borderColor','css','color');
							wt += qmv_init_interface_tree_bracket();
							wt+='</div>';
						

					wt+='</div>';


					wt += '<span style="display:block;font-size:1px;height:10px;"></span>';
				

				wt += '</div>'


			wt += '</div>'



		wt += '<a initshow=1  href="#" >CSS Shapes <span style="color:#dd3300;">[imageless]</span></a>'

			wt += '<div>'


			wt += qmv_init_interface_tree_addon_title("Item Bullets","ibcss");
			
				wt += '<div rule="addon" addontype="ibcss" addor="ibcss_main_type|ibcss_sub_type">'
				wt += qmv_init_interface_tree_item(null,'apply to','ibcss_apply_to','addon','ibullets-apply',"parent|none",null,null);

				wt += '<a href="JavaScript:void(0);" >Main</a>'
					wt += '<div rule="addon" addontype="ibcss">'
					wt += qmv_init_interface_tree_item(null,'type','ibcss_main_type','addon','ibcss-type',"arrow-head|or");
					wt += qmv_init_interface_tree_item(null,'direction','ibcss_main_direction','addon','ibcss-direction',"down|none");
					wt += qmv_init_interface_tree_item(null,'size','ibcss_main_size','addon','int',"5|none","x<0");


					wt += '<a href="JavaScript:void(0);" >Colors</a>'
						wt += '<div rule="addon" addontype="ibcss">'
						wt += qmv_init_interface_tree_item(null,'bg-static','ibcss_main_bg_color','addon','color',"#e6e6e6|none");
						wt += qmv_init_interface_tree_item(null,'bg-hover','ibcss_main_bg_color_hover','addon','color');
						wt += qmv_init_interface_tree_item(null,'bg-active','ibcss_main_bg_color_active','addon','color');
						wt += qmv_init_interface_tree_item(null,'border-static','ibcss_main_border_color','addon','color',"#444444|none");
						wt += qmv_init_interface_tree_item(null,'border-hover','ibcss_main_border_color_hover','addon','color');
						wt += qmv_init_interface_tree_item(null,'border-active','ibcss_main_border_color_active','addon','color');
						wt += '</div>';

					

					wt += '<a href="JavaScript:void(0);" >Position</a>'
						wt += '<div rule="addon" addontype="ibcss">'
						wt += qmv_init_interface_tree_item(null,'offset x','ibcss_main_position_x','addon','int',"-8|none");
						wt += qmv_init_interface_tree_item(null,'offset y','ibcss_main_position_y','addon','int',"-5|none");
						wt += qmv_init_interface_tree_item(null,'align x','ibcss_main_align_x','addon','textalign',"right|none");
						wt += qmv_init_interface_tree_item(null,'align y','ibcss_main_align_y','addon','verticalalign',"middle|none");
						wt += '</div>';

					wt += '</div>';

				wt += '<a href="JavaScript:void(0);" >Sub</a>'
					wt += '<div rule="addon" addontype="ibcss">'
					wt += qmv_init_interface_tree_item(null,'type','ibcss_sub_type','addon','ibcss-type',"arrow-head|or");
					wt += qmv_init_interface_tree_item(null,'direction','ibcss_sub_direction','addon','ibcss-direction',"right|none");
					wt += qmv_init_interface_tree_item(null,'size','ibcss_sub_size','addon','int',"5|none","x<0");


					wt += '<a href="JavaScript:void(0);" >Colors</a>'
						wt += '<div rule="addon" addontype="ibcss">'
						wt += qmv_init_interface_tree_item(null,'bg-static','ibcss_sub_bg_color','addon','color',"#e6e6e6|none");
						wt += qmv_init_interface_tree_item(null,'bg-hover','ibcss_sub_bg_color_hover','addon','color');
						wt += qmv_init_interface_tree_item(null,'bg-active','ibcss_sub_bg_color_active','addon','color');
						wt += qmv_init_interface_tree_item(null,'border-static','ibcss_sub_border_color','addon','color',"#444444|none");
						wt += qmv_init_interface_tree_item(null,'border-hover','ibcss_sub_border_color_hover','addon','color');
						wt += qmv_init_interface_tree_item(null,'border-active','ibcss_sub_border_color_active','addon','color');
						wt += '</div>';

					

					wt += '<a href="JavaScript:void(0);" >Position</a>'
						wt += '<div rule="addon" addontype="ibcss">'
						wt += qmv_init_interface_tree_item(null,'offset x','ibcss_sub_position_x','addon','int',"-8|none");
						wt += qmv_init_interface_tree_item(null,'offset y','ibcss_sub_position_y','addon','int',"-1|none");
						wt += qmv_init_interface_tree_item(null,'align x','ibcss_sub_align_x','addon','textalign',"right|none");
						wt += qmv_init_interface_tree_item(null,'align y','ibcss_sub_align_y','addon','verticalalign',"middle|none");
						wt += '</div>';

					wt += '</div>';
				
				wt += '</div>'	



			wt += qmv_init_interface_tree_addon_title("Tabs","tabscss");
			
				wt += '<div rule="addon" addontype="tabscss">'
				wt += qmv_init_interface_tree_item(null,'type','tabscss_type','addon','tabscss-type',"angled");
				wt += qmv_init_interface_tree_item(null,'size','tabscss_size','addon','int',"5|none","x<0");
				wt += qmv_init_interface_tree_item(null,'offset x','tabscss_left_offset','addon','int');
				wt += qmv_init_interface_tree_item(null,'offset y','tabscss_top_offset','addon','int');
				wt += qmv_init_interface_tree_item(null,'left','tabscss_apply_far_left','addon','bool',"false|none");
				wt += qmv_init_interface_tree_item(null,'right','tabscss_apply_far_right','addon','bool',"false|none");
				wt += qmv_init_interface_tree_item(null,'between','tabscss_apply_middles','addon','bool',"true|none");
				wt += qmv_init_interface_tree_item(null,'bg color','tabscss_bg_color','addon','color',"#ffffff|none");
				wt += qmv_init_interface_tree_item(null,'border color','tabscss_border_color','addon','color');
				wt += '</div>'
			

			
			wt += qmv_init_interface_tree_addon_title("Rounded Subs","round_corners");
			
				wt += '<div rule="addon" addontype="round_corners">'

				wt += '<a style="margin-top:10px;" href="#">Options</a>'
					wt += '<div>';
					wt += qmv_init_interface_tree_item(null,'Blend Colors','rcorner_blend','plus');
					wt+='</div>';
				wt += '<span style="display:block;font-size:1px;height:10px;"></span>';

				wt += qmv_init_interface_tree_item(null,'size','rcorner_size','addon','int',6,"x<0");
				wt += qmv_init_interface_tree_item('border-color','border color','rcorner_border_color','addon','color');
				wt += qmv_init_interface_tree_item('bg-color','bg color','rcorner_bg_color','addon','color');
				wt += qmv_init_interface_tree_item(null,'opacity','rcorner_opacity','addon','float',null,"x<0 || x>1");
				wt += qmv_init_interface_tree_item(null,'angled','rcorner_angle_corners','addon','bool');
				wt += qmv_init_interface_tree_item(null,'apply','rcorner_apply_corners','addon','corners-bool-array');
				wt += qmv_init_interface_tree_item(null,'top inset','rcorner_top_line_auto_inset','addon','bool');
				wt += '</div>'


			wt += qmv_init_interface_tree_addon_title("Rounded Items","ritem");
			


				wt += '<div rule="addon"  id="qmvtree_ritem" addontype="ritem">'
				wt += qmv_init_interface_tree_item(null,'size','ritem_size','addon','int',4,"x<0 || x>200");
				wt += qmv_init_interface_tree_item(null,'apply','ritem_apply','addon','ritem-apply',"main|none");
				wt += qmv_init_interface_tree_item(null,'angled','ritem_angle_corners','addon','bool');
				wt += qmv_init_interface_tree_item(null,'main corners','ritem_main_apply_corners','addon','corners-bool-array');
				wt += qmv_init_interface_tree_item(null,'sub corners','ritem_sub_apply_corners','addon','corners-bool-array');
				wt += qmv_init_interface_tree_item(null,'actives only','ritem_show_on_actives','addon','bool');
				
				

				wt += '<a style="margin-top:10px;" href="#">Options</a>'
					wt += '<div>';
	
						wt += qmv_init_interface_tree_item(null,'Apply Individual','ritem_individual','plus');
						wt += qmv_init_interface_tree_item(null,'Remove Individual','ritem_individual_remove','plus');
						wt += qmv_init_interface_tree_item(null,'Underlying Main Item Styles','ritem_mitem_styles','plus');
						wt += qmv_init_interface_tree_item(null,'Underlying Sub Item Styles','ritem_sitem_styles','plus');
						wt += qmv_init_interface_tree_item(null,'Remove Main Item Borders','ritem_remove_mborders','plus');
						wt += qmv_init_interface_tree_item(null,'Remove Sub Item Borders','ritem_remove_sborders','plus');

					wt+='</div>';
				

				wt += '<a href="#">Main Styles</a>'
					wt += '<div>';
						
						wt += '<a href="#">Item Content</a>'	
		
							wt += '<div rule="#qm[i] .qmritemcontent">'
							wt += qmv_init_interface_tree_bracket(true);
							wt += qmv_init_interface_tree_item(null,'padding','padding','css','edge-padding',"0px 0px 0px 4px|none",'x<0');
							wt += qmv_init_interface_tree_bracket();
							wt+='</div>';


						wt += '<a href="#">Items [Static]</a>'	
		
							wt += '<div rule="#qm[i] .qmritem span">'
							wt += qmv_init_interface_tree_bracket(true);
							wt += qmv_init_interface_tree_item(null,'border-color','borderColor','css','color',"#666666|none",null);
							wt += qmv_init_interface_tree_item('bg-color','background-color','backgroundColor','css','color',"#eeeeee|none",null);
							wt += qmv_init_interface_tree_item('bg-image','background-image','backgroundImage','css','styleimage',null,null);
							wt += qmv_init_interface_tree_item('bg-repeat','background-repeat','backgroundRepeat','css','styleimagerepeat',null,null);
							wt += qmv_init_interface_tree_item('bg-position','background-position','backgroundPosition','css','styleimageposition',null,null);
							wt += qmv_init_interface_tree_item('decoration','text-decoration','textDecoration','css','textdecoration',null,null);
							wt += qmv_init_interface_tree_bracket();
							wt+='</div>';


						wt += '<a href="#">Items [Hover]</a>'	
		
							wt += '<div rule="#qm[i] a:hover .qmritem span">'
							wt += qmv_init_interface_tree_bracket(true);
							wt += qmv_init_interface_tree_item(null,'border-color','borderColor','css','color',null,null);
							wt += qmv_init_interface_tree_item('bg-color','background-color','backgroundColor','css','color',null,null);
							wt += qmv_init_interface_tree_item('bg-image','background-image','backgroundImage','css','styleimage',null,null);
							wt += qmv_init_interface_tree_item('bg-repeat','background-repeat','backgroundRepeat','css','styleimagerepeat',null,null);
							wt += qmv_init_interface_tree_item('bg-position','background-position','backgroundPosition','css','styleimageposition',null,null);
							wt += qmv_init_interface_tree_item('decoration','text-decoration','textDecoration','css','textdecoration',null,null);
							wt += qmv_init_interface_tree_bracket();
							wt+='</div>';


						wt += '<a href="#">Items [Active]</a>'	
		
							wt += '<div rule="body #qm[i] .qmactive .qmritem span">'
							wt += qmv_init_interface_tree_bracket(true);
							wt += qmv_init_interface_tree_item(null,'border-color','borderColor','css','color',null,null);
							wt += qmv_init_interface_tree_item('bg-color','background-color','backgroundColor','css','color',null,null);
							wt += qmv_init_interface_tree_item('bg-image','background-image','backgroundImage','css','styleimage',null,null);
							wt += qmv_init_interface_tree_item('bg-repeat','background-repeat','backgroundRepeat','css','styleimagerepeat',null,null);
							wt += qmv_init_interface_tree_item('bg-position','background-position','backgroundPosition','css','styleimageposition',null,null);
							wt += qmv_init_interface_tree_item('decoration','text-decoration','textDecoration','css','textdecoration',null,null);
							wt += qmv_init_interface_tree_bracket();
							wt+='</div>';


						wt += '<a href="#">Items [Persistent]</a>'	
		
							wt += '<div rule="body #qm[i] .qmpersistent .qmritem span">'
							wt += qmv_init_interface_tree_bracket(true);
							wt += qmv_init_interface_tree_item(null,'border-color','borderColor','css','color',null,null);
							wt += qmv_init_interface_tree_item('bg-color','background-color','backgroundColor','css','color',null,null);
							wt += qmv_init_interface_tree_item('bg-image','background-image','backgroundImage','css','styleimage',null,null);
							wt += qmv_init_interface_tree_item('bg-repeat','background-repeat','backgroundRepeat','css','styleimagerepeat',null,null);
							wt += qmv_init_interface_tree_item('bg-position','background-position','backgroundPosition','css','styleimageposition',null,null);
							wt += qmv_init_interface_tree_item('decoration','text-decoration','textDecoration','css','textdecoration',null,null);
							wt += qmv_init_interface_tree_bracket();
							wt+='</div>';

					wt+='</div>';

				wt += '<a href="#">Sub Styles</a>'
					wt += '<div>';
						
						wt += '<a href="#">Item Content</a>'	
		
							wt += '<div rule="#qm[i] div .qmritemcontent">'
							wt += qmv_init_interface_tree_bracket(true);
							wt += qmv_init_interface_tree_item(null,'padding','padding','css','edge-padding',"0px 0px 0px 4px|none",'x<0');
							wt += qmv_init_interface_tree_bracket();
							wt+='</div>';


						wt += '<a href="#">Items [Static]</a>'	
		
							wt += '<div rule="#qm[i] div .qmritem span">'
							wt += qmv_init_interface_tree_bracket(true);
							wt += qmv_init_interface_tree_item(null,'border-color','borderColor','css','color',"#666666|none",null);
							wt += qmv_init_interface_tree_item('bg-color','background-color','backgroundColor','css','color',"#eeeeee|none",null);
							wt += qmv_init_interface_tree_item('bg-image','background-image','backgroundImage','css','styleimage',null,null);
							wt += qmv_init_interface_tree_item('bg-repeat','background-repeat','backgroundRepeat','css','styleimagerepeat',null,null);
							wt += qmv_init_interface_tree_item('bg-position','background-position','backgroundPosition','css','styleimageposition',null,null);
							wt += qmv_init_interface_tree_item('decoration','text-decoration','textDecoration','css','textdecoration',null,null);
							wt += qmv_init_interface_tree_bracket();
							wt+='</div>';


						wt += '<a href="#">Items [Hover]</a>'	
		
							wt += '<div rule="#qm[i] div a:hover .qmritem span">'
							wt += qmv_init_interface_tree_bracket(true);
							wt += qmv_init_interface_tree_item(null,'border-color','borderColor','css','color',null,null);
							wt += qmv_init_interface_tree_item('bg-color','background-color','backgroundColor','css','color',null,null);
							wt += qmv_init_interface_tree_item('bg-image','background-image','backgroundImage','css','styleimage',null,null);
							wt += qmv_init_interface_tree_item('bg-repeat','background-repeat','backgroundRepeat','css','styleimagerepeat',null,null);
							wt += qmv_init_interface_tree_item('bg-position','background-position','backgroundPosition','css','styleimageposition',null,null);
							wt += qmv_init_interface_tree_item('decoration','text-decoration','textDecoration','css','textdecoration',null,null);
							wt += qmv_init_interface_tree_bracket();
							wt+='</div>';


						wt += '<a href="#">Items [Active]</a>'	
		
							wt += '<div rule="body #qm[i] div .qmactive .qmritem span">'
							wt += qmv_init_interface_tree_bracket(true);
							wt += qmv_init_interface_tree_item(null,'border-color','borderColor','css','color',null,null);
							wt += qmv_init_interface_tree_item('bg-color','background-color','backgroundColor','css','color',null,null);
							wt += qmv_init_interface_tree_item('bg-image','background-image','backgroundImage','css','styleimage',null,null);
							wt += qmv_init_interface_tree_item('bg-repeat','background-repeat','backgroundRepeat','css','styleimagerepeat',null,null);
							wt += qmv_init_interface_tree_item('bg-position','background-position','backgroundPosition','css','styleimageposition',null,null);
							wt += qmv_init_interface_tree_item('decoration','text-decoration','textDecoration','css','textdecoration',null,null);
							wt += qmv_init_interface_tree_bracket();
							wt+='</div>';


						wt += '<a href="#">Items [Persistent]</a>'	
		
							wt += '<div rule="body #qm[i] div .qmpersistent .qmritem span">'
							wt += qmv_init_interface_tree_bracket(true);
							wt += qmv_init_interface_tree_item(null,'border-color','borderColor','css','color',null,null);
							wt += qmv_init_interface_tree_item('bg-color','background-color','backgroundColor','css','color',null,null);
							wt += qmv_init_interface_tree_item('bg-image','background-image','backgroundImage','css','styleimage',null,null);
							wt += qmv_init_interface_tree_item('bg-repeat','background-repeat','backgroundRepeat','css','styleimagerepeat',null,null);
							wt += qmv_init_interface_tree_item('bg-position','background-position','backgroundPosition','css','styleimageposition',null,null);
							wt += qmv_init_interface_tree_item('decoration','text-decoration','textDecoration','css','textdecoration',null,null);
							wt += qmv_init_interface_tree_bracket();
							wt+='</div>';
						

					wt+='</div>';


					wt += '<span style="display:block;font-size:1px;height:10px;"></span>';
				

				wt += '</div>'
				

			
			wt += qmv_init_interface_tree_addon_title("Drop Shadows","drop_shadow");
			
				wt += '<div rule="addon" addontype="drop_shadow">'
				wt += qmv_init_interface_tree_item(null,'offset','shadow_offset','addon','int',3);
				wt += qmv_init_interface_tree_item(null,'color','shadow_color','addon','color',"#000000|none");
				wt += qmv_init_interface_tree_item(null,'opacity','shadow_opacity','addon','float',".3|none","x<0 || x>1");
				wt += '</div>'



			wt += qmv_init_interface_tree_addon_title("Sub Opacity","sopacity");
			
				wt += '<div rule="addon" addontype="sopacity">'
				wt += qmv_init_interface_tree_item(null,'opacity','sopacity_value','addon','float',.8,"x<0 || x>1");
				wt += qmv_init_interface_tree_item(null,'bg color','sopacity_bg_color','addon','color',"#dddddd|none");
				wt += '</div>'



			wt += qmv_init_interface_tree_addon_title("Match Widths","match_widths");
			
				wt += '<div rule="addon" addontype="match_widths">'
				wt += qmv_init_interface_tree_item(null,'active','mwidths_active','addon','bool',true);
				wt += '</div>'

			
			wt += '</div>'


		wt += '<a href="#">Image Based</a>'
			wt += '<div>'
							
			wt += qmv_init_interface_tree_addon_title("Item Bullets","item_bullets");
			
				wt += '<div rule="addon" addontype="item_bullets" addor="ibullets_main_image|ibullets_sub_image">'
				wt += qmv_init_interface_tree_item(null,'apply to','ibullets_apply_to','addon','ibullets-apply',"parent|none",null,null);

				wt += '<a href="JavaScript:void(0);" >Main</a>'
					wt += '<div rule="addon" addontype="item_bullets">'
					wt += qmv_init_interface_tree_item(null,'static','ibullets_main_image','addon','image',qmv.base+"images/arrow_down.gif|or");
					wt += qmv_init_interface_tree_item(null,'hover','ibullets_main_image_hover','addon','image');
					wt += qmv_init_interface_tree_item(null,'active','ibullets_main_image_active','addon','image');
					wt += qmv_init_interface_tree_item(null,'width','ibullets_main_image_width','addon','int',"9|none","x<0");
					wt += qmv_init_interface_tree_item(null,'height','ibullets_main_image_height','addon','int',"6|none","x<0");

					wt += '<a href="JavaScript:void(0);" >Position</a>'
						wt += '<div rule="addon" addontype="item_bullets">'
						wt += qmv_init_interface_tree_item(null,'offset x','ibullets_main_position_x','addon','int',"-16|none");
						wt += qmv_init_interface_tree_item(null,'offset y','ibullets_main_position_y','addon','int',"-5|none");
						wt += qmv_init_interface_tree_item(null,'align x','ibullets_main_align_x','addon','textalign',"right|none");
						wt += qmv_init_interface_tree_item(null,'align y','ibullets_main_align_y','addon','verticalalign',"middle|none");
						wt += '</div>';

					wt += '</div>';

				wt += '<a href="JavaScript:void(0);" style="margin-bottom:6px;">Sub</a>'
					wt += '<div rule="addon" addontype="item_bullets">'
					wt += qmv_init_interface_tree_item(null,'static','ibullets_sub_image','addon','image',qmv.base+"images/arrow_right.gif|or");
					wt += qmv_init_interface_tree_item(null,'hover','ibullets_sub_image_hover','addon','image');
					wt += qmv_init_interface_tree_item(null,'active','ibullets_sub_image_active','addon','image');
					wt += qmv_init_interface_tree_item(null,'width','ibullets_sub_image_width','addon','int',"6|none","x<0");
					wt += qmv_init_interface_tree_item(null,'height','ibullets_sub_image_height','addon','int',"9|none","x<0");

					wt += '<a href="JavaScript:void(0);" >Position</a>'
						wt += '<div rule="addon" addontype="item_bullets">'
						wt += qmv_init_interface_tree_item(null,'offset x','ibullets_sub_position_x','addon','int',"-12|none");
						wt += qmv_init_interface_tree_item(null,'offset y','ibullets_sub_position_y','addon','int',"-2|none");
						wt += qmv_init_interface_tree_item(null,'align x','ibullets_sub_align_x','addon','textalign',"right|none");
						wt += qmv_init_interface_tree_item(null,'align y','ibullets_sub_align_y','addon','verticalalign',"middle|none");
						wt += '</div>';
					
					wt += '</div>';
				
				wt += '</div>'



			wt += qmv_init_interface_tree_addon_title("Tabs","tabs");
			
				wt += '<div rule="addon" addontype="tabs">'
				wt += qmv_init_interface_tree_item(null,'image','tabs_image','addon','image',qmv.base+"image_library/tab_dividers/tab_divider1.gif");
				wt += qmv_init_interface_tree_item(null,'width','tabs_width','addon','int',"15|none","x<0");
				wt += qmv_init_interface_tree_item(null,'height','tabs_height','addon','int',"8|none","x<0");
				wt += qmv_init_interface_tree_item(null,'offset y','tabs_top_offset','addon','int');
				wt += qmv_init_interface_tree_item(null,'left','tabs_apply_far_left','addon','bool');
				wt += qmv_init_interface_tree_item(null,'right','tabs_apply_far_right','addon','bool');
				wt += qmv_init_interface_tree_item(null,'between','tabs_apply_middles','addon','bool');
				wt += '</div>'



			
			wt += qmv_init_interface_tree_addon_title("Follow Pointer","pointer");
			
				wt += '<div rule="addon" addontype="pointer" addor="pointer_main_image|pointer_sub_image">'
				
				wt += '<a href="JavaScript:void(0);" >Main</a>'
					wt += '<div rule="addon" addontype="pointer">'
					wt += qmv_init_interface_tree_item(null,'image','pointer_main_image','addon','image',qmv.base+"image_library/bullets/arrows/a1_down.gif|or");
					wt += qmv_init_interface_tree_item(null,'width','pointer_main_image_width','addon','int',"8|none","x<0");
					wt += qmv_init_interface_tree_item(null,'height','pointer_main_image_height','addon','int',"6|none","x<0");
					wt += qmv_init_interface_tree_item(null,'align','pointer_main_align','addon','palign',"top-or-left|none");
					wt += qmv_init_interface_tree_item(null,'offset x','pointer_main_off_x','addon','int',"-3|none");
					wt += qmv_init_interface_tree_item(null,'offset y','pointer_main_off_y','addon','int',"-3|none");
					wt += '</div>'	
					
				wt += '<a href="JavaScript:void(0);" style="margin-bottom:6px;">Sub</a>'
					wt += '<div rule="addon" addontype="pointer">'
					wt += qmv_init_interface_tree_item(null,'image','pointer_sub_image','addon','image',qmv.base+"image_library/bullets/arrows/a1_right.gif|or");
					wt += qmv_init_interface_tree_item(null,'width','pointer_sub_image_width','addon','int',"6|none","x<0");
					wt += qmv_init_interface_tree_item(null,'height','pointer_sub_image_height','addon','int',"8|none","x<0");
					wt += qmv_init_interface_tree_item(null,'align','pointer_sub_align','addon','palign',"top-or-left|none");
					wt += qmv_init_interface_tree_item(null,'offset x','pointer_sub_off_x','addon','int',"-3|none");
					wt += qmv_init_interface_tree_item(null,'offset y','pointer_sub_off_y','addon','int',"-3|none");
					wt += '</div>'	

				wt += '</div>'	



			wt += '</div>'
	
			

		wt += '<a href="#" >Menu Control</a>'

			wt += '<div>'
			wt += qmv_init_interface_tree_addon_title("Tree Style","tree_menu");
			
				wt += '<div rule="addon" addontype="tree_menu">'
					
				wt += qmv_init_interface_tree_item(null,'Set Main Width','set_main_width','plus');
				wt += qmv_init_interface_tree_item(null,'Sub Level 2 Item Styles','set_lev2_item_styles','plus');
				wt += qmv_init_interface_tree_item(null,'Sub Level 2 Container Styles','set_lev2_container_styles','plus');
				wt += '<span style="display:block;font-size:1px;height:10px;"></span>';

				wt += qmv_init_interface_tree_item(null,'enabled','tree_enabled','addon','bool','true');
				wt += qmv_init_interface_tree_item(null,'auto close','tree_auto_collapse','addon','treecollapse',"fixed-height|none");
				wt += qmv_init_interface_tree_item(null,'mouse over','tree_mouseover','addon','bool',"true|none");
				wt += qmv_init_interface_tree_item(null,'sub2+ indent','tree_sub_sub_indent','addon','int',null,"x<0");
				wt += qmv_init_interface_tree_item(null,'hide focus','tree_hide_focus_box','addon','bool',"true|none");
				wt += '<span style="display:block;font-size:1px;height:5px;"></span>';

				wt += '<a href="JavaScript:void(0);" >Expand Animation</a>'
					wt += '<div rule="addon" addontype="tree_menu">'
					wt += qmv_init_interface_tree_item(null,'Type','tree_expand_animation','addon','treeanimationtype',"2|none");
					wt += qmv_init_interface_tree_item(null,'Step Size','tree_expand_step_size','addon','int',"2|none","x<0 || x>50");
					wt += '</div>';

				wt += '<a href="JavaScript:void(0);" style="margin-bottom:6px;">Collapse Animation</a>'
					wt += '<div rule="addon" addontype="tree_menu">'
					wt += qmv_init_interface_tree_item(null,'Type','tree_collapse_animation','addon','treeanimationtype',"2|none");
					wt += qmv_init_interface_tree_item(null,'Step Size','tree_collapse_step_size','addon','int',"2|none","x<0 || x>50");
					wt += '</div>';

				wt += '<span style="display:block;font-size:1px;height:8px;"></span>';	
				wt += '</div>'
				


			wt += qmv_init_interface_tree_addon_title("Keep Subs In Window","apsubs");
			
				wt += '<div rule="addon" addontype="apsubs">'
				wt += qmv_init_interface_tree_item(null,'active','subs_in_window_active','addon','bool',true);
				wt += '</div>'

			wt += qmv_init_interface_tree_addon_title("Persistent State ","sopen_auto");
			
				wt += '<div rule="addon" addontype="sopen_auto">'

				wt += qmv_init_interface_tree_item(null,'Help','pstate_help','plus');
				wt += '<span style="display:block;font-size:1px;height:7px;"></span>';
				wt += qmv_init_interface_tree_item(null,'Test On Selected Item','pstate_add','plus');
				wt += qmv_init_interface_tree_item(null,'Remove From Selected Item','pstate_remove','plus');
				wt += qmv_init_interface_tree_item(null,'Remove All Test Items','pstate_remove_all','plus');
				wt += '<span style="display:block;font-size:1px;height:7px;"></span>';
				wt += qmv_init_interface_tree_item(null,'Main Persistent Styles','pstate_main_styles','plus');
				wt += qmv_init_interface_tree_item(null,'Sub Persistent Styles','pstate_sub_styles','plus');
				wt += '<span style="display:block;font-size:1px;height:15px;"></span>';

				wt += qmv_init_interface_tree_item(null,'active','sopen_auto_enabled','addon','bool',true);
				wt += qmv_init_interface_tree_item(null,'auto open','sopen_auto_show_subs','addon','bool',"true|none");
				wt += qmv_init_interface_tree_item(null,'match query','sopen_auto_match_query','addon','bool',"false|none");
				wt += '</div>'	

			
			wt += qmv_init_interface_tree_addon_title("Keyboard Access","keyboard");
				wt += '<div rule="addon" addontype="keyboard">'
				wt += qmv_init_interface_tree_item(null,'active','keyboard_access_active','addon','bool',true);
				wt += '</div>'

			wt += qmv_init_interface_tree_addon_title("Show Subs Onload","sopen");
				wt += '<div rule="addon" addontype="sopen">'
				wt += qmv_init_interface_tree_item(null,'Apply to Sub','showload_apply','plus');
				wt += qmv_init_interface_tree_item(null,'Remove From Sub','showload_remove','plus');
				wt += '<span style="display:block;font-size:1px;height:15px;"></span>';
	
				wt += qmv_init_interface_tree_item(null,'active','showload_active','addon','bool',true);
				wt += qmv_init_interface_tree_item(null,'auto close','showload_auto_close','addon','bool');
				wt += '</div>'


			wt += '</div>'	

		
		wt += '<a href="#">Web Effects</a>'	

			wt += '<div>'
			wt += qmv_init_interface_tree_addon_title("Scroller","scroll");
			
				wt += '<div rule="addon" addontype="scroll">'
				wt += qmv_init_interface_tree_item(null,'Set Dimensions','set_scroll_dimensions','plus');
				wt += '<span style="display:block;font-size:1px;height:10px;"></span>';

				wt += qmv_init_interface_tree_item(null,'step size','scroll_step_size','addon','int',2,"x<0");
				wt += qmv_init_interface_tree_item(null,'scroll delay','scroll_delay','addon','int','15|none',"x<0");
				wt += qmv_init_interface_tree_item(null,'pause Time','scroll_pause_time','addon','int','3|none',"x<0");
				wt += qmv_init_interface_tree_item(null,'start top','scroll_start_top','addon','bool','true|none');
				wt += qmv_init_interface_tree_item(null,'start pause','scroll_start_pause','addon','int',null,"x<0");

				wt += '<span style="display:block;font-size:1px;height:5px;"></span>';
				wt += '<a href="JavaScript:void(0);" >Fade Effect</a>'
					wt += '<div rule="addon" addontype="scroll">'
					wt += qmv_init_interface_tree_item(null,'steps','scroll_fade_steps','addon','int','8|none',"x<0");
					wt += qmv_init_interface_tree_item(null,'step height','scroll_fade_step_height','addon','int','2|none',"x<0");
					wt += qmv_init_interface_tree_item(null,'color','scroll_fade_color','addon','color');
					wt += '</div>';

				wt += '</div>'

			wt += '</div>'	


		wt += '<a href="#">Browser Fixes</a>'	

			wt += '<div>'
			wt += qmv_init_interface_tree_addon_title("IE6 - Over Select Tags","over_select");
			
				wt += '<div rule="addon" addontype="over_select">'
				wt += qmv_init_interface_tree_item(null,'active','overselects_active','addon','bool',true);
				wt += '</div>'

			wt += '</div>'	




		


		wt += '<span style="display:block;height:5px;font-size:1px;">&nbsp;</span>';
		wt += '</div>'



	wt += '<a href="#">Item Enhancements</a>'

		wt += '<div id="qmvtree_individuals">'
		wt += '<a href="#">Inline Styles</a>'

			wt += '<div id="qmvtree_inline_styles">'
			wt += '<a href="#">Item <span class="qmvtree-rule">[ style= ]</span></a>'

				wt += '<div rule="inline">'
				wt += '<span class="qmvtree-bracket">"</span>'	
				wt += qmv_init_interface_tree_item('width','width','width','inline','unit',null,'x<0');
				wt += qmv_init_interface_tree_item(null,'padding','padding','inline','edge-padding',null,'x<0');
				wt += qmv_init_interface_tree_item(null,'margin','margin','inline','edge-margin',null,null);
					
				wt += '<a href="#" style="margin-top:6px;">Background Styles</a>'
					wt+='<div rule="inline">';
					wt += qmv_init_interface_tree_item('bg-color','background-color','backgroundColor','inline','color',null,null);
					wt += qmv_init_interface_tree_item('bg-image','background-image','backgroundImage','inline','styleimage',null,null);
					wt += qmv_init_interface_tree_item('bg-repeat','background-repeat','backgroundRepeat','inline','styleimagerepeat',null,null);
					wt += qmv_init_interface_tree_item('bg-position','background-position','backgroundPosition','inline','styleimageposition',null,null);
					wt+='</div>';

				wt += '<a href="#">Font Styles</a>'
					wt+='<div rule="inline">';
					wt += qmv_init_interface_tree_item('color','color','color','inline','color',null,null);
					wt += qmv_init_interface_tree_item('family','font-family','fontFamily','inline','fontfamily',null,null);
					wt += qmv_init_interface_tree_item('size','font-size','fontSize','inline','unit',null,'x<0');
					wt += qmv_init_interface_tree_item('decoration','text-decoration','textDecoration','inline','textdecoration',null,null);
					wt += qmv_init_interface_tree_item('style','font-style','fontStyle','css','fontstyle',null,null);
					wt += qmv_init_interface_tree_item('weight','font-weight','fontWeight','inline','fontweight',null,null);
					wt += qmv_init_interface_tree_item('align','text-align','textAlign','inline','textalign',null,null);
					wt += qmv_init_interface_tree_item('variant','font-variant','fontVariant','inline','font-variant');
					wt += qmv_init_interface_tree_item('line height','line-height','lineHeight','inline','unit',null,'x<0');
					wt+='</div>';

				wt += '<a href="#">Border Styles</a>'
					wt+='<div rule="inline">';
					wt += qmv_init_interface_tree_item(null,'border-width','borderWidth','inline','edge-borderwidth',null,'x<0');
					wt += qmv_init_interface_tree_item(null,'border-style','borderStyle','inline','borderstyle',null,null);
					wt += qmv_init_interface_tree_item(null,'border-color','borderColor','inline','color',null,null);
					wt+='</div>';
				wt += '<span class="qmvtree-bracket qmvtree-close-show">"</span>'		
				wt += '</div>'

			wt += '<a href="#">Container <span class="qmvtree-rule">[ style= ]</span></a>'

				wt += '<div rule="inline-parent">'
				wt += '<span class="qmvtree-bracket">"</span>'	
				wt += qmv_init_interface_tree_item('width','width','width','inline','unit',null,'x<0');
				wt += qmv_init_interface_tree_item('bg-color','background-color','backgroundColor','inline','color');
				wt += qmv_init_interface_tree_item('bg-image','background-image','backgroundImage','inline','styleimage',null,null);
				wt += qmv_init_interface_tree_item('bg-repeat','background-repeat','backgroundRepeat','inline','styleimagerepeat',null,null);
				wt += qmv_init_interface_tree_item('bg-position','background-position','backgroundPosition','inline','styleimageposition',null,null);
				wt += qmv_init_interface_tree_item(null,'border-width','borderWidth','inline','edge-borderwidth');
				wt += qmv_init_interface_tree_item(null,'border-style','borderStyle','inline','borderstyle');
				wt += qmv_init_interface_tree_item(null,'border-color','borderColor','inline','color');
				wt += qmv_init_interface_tree_item(null,'padding','padding','inline','edge-padding');
				wt += qmv_init_interface_tree_item(null,'margin','margin','inline','edge-margin');
				wt += '<span class="qmvtree-bracket qmvtree-close-show">"</span>'		
				wt += '</div>'

			wt += '</div>'

	
		wt += '<a href="#" initshow=1>Item Extras</a>'

			wt += '<div id = "qmvtree_item_extra_settings">'

			wt += '<a href="#">Image</a>'
				wt += '<div rule="image">'
				wt += qmv_init_interface_tree_item(null,'static','staticimage','iextra','image-script');
				wt += qmv_init_interface_tree_item(null,'width','width','iextra','int',null,'x<0');
				wt += qmv_init_interface_tree_item(null,'height','height','iextra','int',null,'x<0');
				wt += qmv_init_interface_tree_item(null,'alt text','alt','iextra',"text",null,'x<0');
				wt += qmv_init_interface_tree_item(null,'<b>[?]</b> hover','hoverimage','iextra','bool',null,null,null);
				wt += qmv_init_interface_tree_item(null,'<b>[?]</b> active','activeimage','iextra','bool',null,null,null);
				wt += '</div>'


			wt += '<a href="#">Show Sub Onload</a>'
				wt += '<div rule="sopen">'
				wt += qmv_init_interface_tree_item(null,'Addon Settings','sopen_addon','plus');
				wt += '<span style="display:block;font-size:1px;height:15px;"></span>';

				wt += qmv_init_interface_tree_item(null,'show','sopen','iextra','bool');
				wt += '</div>'
			
			wt += '</div>'
		


		wt += '<a href="#">Dividers</a>'

			
			wt += '<div id="qmvtree_item_dividers" rule="dividers">'
			
			
			
			wt += qmv_init_interface_tree_item(null,'Insert Before Selected Item','insert_divider','plus');
			wt += qmv_init_interface_tree_item(null,'Insert After Selected Item','insert_divider_after','plus');
			wt += qmv_init_interface_tree_item(null,'Globally Apply / Remove Dividers','insert_divider_global','plus');
			
			wt += '<a style="margin-top:10px;" href="#" ruledesc="Horizontal"><span isruledesc=1></span></a>'	
			wt += '<div id="qmvtree_css_styles_dividers" rule="#qm[i] .qmdividerx">'

				wt += qmv_init_interface_tree_bracket(true);
				wt += qmv_init_interface_tree_item('height','border-top-width','borderTopWidth','css','unit',null,'x<0');
				wt += qmv_init_interface_tree_item(null,'margin','margin','css','edge-margin',null,null);
				wt += qmv_init_interface_tree_item('style','border-style','borderStyle','css','borderstyle',null,null);
				wt += qmv_init_interface_tree_item('color','border-color','borderColor','css','color',null,null);	
				wt += qmv_init_interface_tree_bracket();
				wt += '</div>'

				
			wt += '<a href="#" ruledesc="Vertical"><span isruledesc=1></span></a>'	
			wt += '<div id="qmvtree_css_styles_dividers" rule="#qm[i] .qmdividery">'

				wt += qmv_init_interface_tree_bracket(true);
				wt += qmv_init_interface_tree_item('width','border-left-width','borderLeftWidth','css','unit',null,'x<0');
				wt += qmv_init_interface_tree_item('height','height','height','css','unit',null,'x<0');
				wt += qmv_init_interface_tree_item(null,'margin','margin','css','edge-margin',null,null);
				wt += qmv_init_interface_tree_item('style','border-style','borderStyle','css','borderstyle',null,null);
				wt += qmv_init_interface_tree_item('color','border-color','borderColor','css','color',null,null);	
				wt += qmv_init_interface_tree_bracket();
				wt += '</div>'

			wt += '</div>'

			wt += '<a href="#" style="font-size:1px;height:0px;">&nbsp;</a>'


		
		wt += '<a href="#">Titles</a>'
			
			

			wt += '<div id="qmvtree_item_titles" rule="titles">'
						
			
			wt += qmv_init_interface_tree_item(null,'Insert Before Selected Item','insert_title','plus');
			wt += qmv_init_interface_tree_item(null,'Insert After Selected Item','insert_title_after','plus');
			

			wt += '<a style="margin-top:10px;" href="#" ruledesc="Styles"><span isruledesc=1></span></a>'	
			wt += '<div rule="#qm[i] .qmtitle">'

				wt += qmv_init_interface_tree_bracket(true);

				wt += qmv_init_interface_tree_item('cursor','cursor','cursor','css','cursor',null,'x<0');
				wt += qmv_init_interface_tree_item(null,'padding','padding','css','edge-padding',null,'x<0');
				wt += qmv_init_interface_tree_item(null,'margin','margin','css','edge-margin',null,null);
					
					wt += '<a href="#" style="margin-top:6px;">Background Styles</a>'
						wt+='<div ftitle="Static" rule="#qm[i] .qmtitle">';
						wt += qmv_init_interface_tree_item('bg-color','background-color','backgroundColor','css','color',null,null);
						wt += qmv_init_interface_tree_item('bg-image','background-image','backgroundImage','css','styleimage',null,null);
						wt += qmv_init_interface_tree_item('bg-repeat','background-repeat','backgroundRepeat','css','styleimagerepeat',null,null);
						wt += qmv_init_interface_tree_item('bg-position','background-position','backgroundPosition','css','styleimageposition',null,null);
						wt+='</div>';

					wt += '<a href="#">Font Styles</a>'
						wt+='<div isfont=1 ftitle="Static" rule="#qm[i] .qmtitle">';
						wt += qmv_init_interface_tree_item('color','color','color','css','color',null,null);
						wt += qmv_init_interface_tree_item('family','font-family','fontFamily','css','fontfamily',null,null);
						wt += qmv_init_interface_tree_item('size','font-size','fontSize','css','unit',null,'x<0');
						wt += qmv_init_interface_tree_item('decoration','text-decoration','textDecoration','css','textdecoration',null,null);
						wt += qmv_init_interface_tree_item('style','font-style','fontStyle','css','fontstyle',null,null);
						wt += qmv_init_interface_tree_item('weight','font-weight','fontWeight','css','fontweight',null,null);
						wt += qmv_init_interface_tree_item('align','text-align','textAlign','css','textalign',null,null);
						wt += qmv_init_interface_tree_item('variant','font-variant','fontVariant','css','font-variant');
						wt += qmv_init_interface_tree_item('line height','line-height','lineHeight','css','unit',null,'x<0');
						wt+='</div>';

					wt += '<a href="#">Border Styles</a>'
						wt+='<div ftitle="Static" rule="#qm[i] .qmtitle">';
						wt += qmv_init_interface_tree_item(null,'border-width','borderWidth','css','edge-borderwidth',null,'x<0');
						wt += qmv_init_interface_tree_item(null,'border-style','borderStyle','css','borderstyle',null,null);
						wt += qmv_init_interface_tree_item(null,'border-color','borderColor','css','color',null,null);
						wt+='</div>';

				wt += qmv_init_interface_tree_bracket();
				wt += '</div>'

			wt += '</div>'
			wt += '<a href="#" style="font-size:1px;height:0px;">&nbsp;</a>'



		wt += '<a href="#">Content Boxes</a>'
		


			wt += '<div id="qmvtree_content_boxes" rule="cboxes">'
			
			

			wt += qmv_init_interface_tree_item(null,'Insert Before Selected Item','insert_cbox','plus');
			wt += qmv_init_interface_tree_item(null,'Insert After Selected Item','insert_cbox_after','plus');
			

			wt += '<a style="margin-top:10px;" href="#" ruledesc="Box Styles"><span isruledesc=1></span></a>'	
			wt += '<div rule="#qm[i] .qmcbox">'

				wt += qmv_init_interface_tree_bracket(true);

				wt += qmv_init_interface_tree_item('width','width','width','css','unit',null,'x<0');
				wt += qmv_init_interface_tree_item('height','height','height','css','unit',null,'x<0');
				wt += qmv_init_interface_tree_item('cursor','cursor','cursor','css','cursor',null,'x<0');
				wt += qmv_init_interface_tree_item(null,'padding','padding','css','edge-padding',null,'x<0');
				wt += qmv_init_interface_tree_item(null,'margin','margin','css','edge-margin',null,null);
					
					wt += '<a href="#" style="margin-top:6px;">Background Styles</a>'
						wt+='<div ftitle="Static" rule="#qm[i] .qmcbox">';
						wt += qmv_init_interface_tree_item('bg-color','background-color','backgroundColor','css','color',null,null);
						wt += qmv_init_interface_tree_item('bg-image','background-image','backgroundImage','css','styleimage',null,null);
						wt += qmv_init_interface_tree_item('bg-repeat','background-repeat','backgroundRepeat','css','styleimagerepeat',null,null);
						wt += qmv_init_interface_tree_item('bg-position','background-position','backgroundPosition','css','styleimageposition',null,null);
						wt+='</div>';

					wt += '<a href="#">Font Styles</a>'
						wt+='<div isfont=1 ftitle="Static" rule="#qm[i] .qmcbox">';
						wt += qmv_init_interface_tree_item('color','color','color','css','color',null,null);
						wt += qmv_init_interface_tree_item('family','font-family','fontFamily','css','fontfamily',null,null);
						wt += qmv_init_interface_tree_item('size','font-size','fontSize','css','unit',null,'x<0');
						wt += qmv_init_interface_tree_item('decoration','text-decoration','textDecoration','css','textdecoration',null,null);
						wt += qmv_init_interface_tree_item('style','font-style','fontStyle','css','fontstyle',null,null);
						wt += qmv_init_interface_tree_item('weight','font-weight','fontWeight','css','fontweight',null,null);
						wt += qmv_init_interface_tree_item('align','text-align','textAlign','css','textalign',null,null);
						wt += qmv_init_interface_tree_item('variant','font-variant','fontVariant','css','font-variant');
						wt += qmv_init_interface_tree_item('line height','line-height','lineHeight','css','unit',null,'x<0');
						wt+='</div>';

					wt += '<a href="#">Border Styles</a>'
						wt+='<div ftitle="Static" rule="#qm[i] .qmcbox">';
						wt += qmv_init_interface_tree_item(null,'border-width','borderWidth','css','edge-borderwidth',null,'x<0');
						wt += qmv_init_interface_tree_item(null,'border-style','borderStyle','css','borderstyle',null,null);
						wt += qmv_init_interface_tree_item(null,'border-color','borderColor','css','color',null,null);
						wt+='</div>';

				wt += qmv_init_interface_tree_bracket();
				wt += '</div>'

			
			wt += '<a href="#">Box Links</a>'
			wt += '<div>'


				wt += '<a style="margin-top:10px;" href="#" ruledesc="Static"><span isruledesc=1></span></a>'	
				wt += '<div rule="#qm[i] .qmcbox a">'


					wt += qmv_init_interface_tree_bracket(true);

					wt += qmv_init_interface_tree_item(null,'padding','padding','css','edge-padding',null,'x<0');
					wt += qmv_init_interface_tree_item(null,'margin','margin','css','edge-margin',null,null);
					
						wt += '<a href="#" style="margin-top:6px;">Background Styles</a>'
							wt+='<div ftitle="Static" rule="#qm[i] .qmcbox a">';
							wt += qmv_init_interface_tree_item('bg-color','background-color','backgroundColor','css','color',null,null);
							wt += qmv_init_interface_tree_item('bg-image','background-image','backgroundImage','css','styleimage',null,null);
							wt += qmv_init_interface_tree_item('bg-repeat','background-repeat','backgroundRepeat','css','styleimagerepeat',null,null);
							wt += qmv_init_interface_tree_item('bg-position','background-position','backgroundPosition','css','styleimageposition',null,null);
							wt+='</div>';

						wt += '<a href="#">Font Styles</a>'
							wt+='<div isfont=1 ftitle="Static" rule="#qm[i] .qmcbox a">';
							wt += qmv_init_interface_tree_item('color','color','color','css','color',null,null);
							wt += qmv_init_interface_tree_item('family','font-family','fontFamily','css','fontfamily',null,null);
							wt += qmv_init_interface_tree_item('size','font-size','fontSize','css','unit',null,'x<0');
							wt += qmv_init_interface_tree_item('decoration','text-decoration','textDecoration','css','textdecoration',null,null);
							wt += qmv_init_interface_tree_item('style','font-style','fontStyle','css','fontstyle',null,null);
							wt += qmv_init_interface_tree_item('weight','font-weight','fontWeight','css','fontweight',null,null);
							wt += qmv_init_interface_tree_item('align','text-align','textAlign','css','textalign',null,null);
							wt += qmv_init_interface_tree_item('variant','font-variant','fontVariant','css','font-variant');
							wt += qmv_init_interface_tree_item('line height','line-height','lineHeight','css','unit',null,'x<0');
							wt+='</div>';

						wt += '<a href="#">Border Styles</a>'
							wt+='<div ftitle="Static" rule="#qm[i] .qmcbox a">';
							wt += qmv_init_interface_tree_item(null,'border-width','borderWidth','css','edge-borderwidth',null,'x<0');
							wt += qmv_init_interface_tree_item(null,'border-style','borderStyle','css','borderstyle',null,null);
							wt += qmv_init_interface_tree_item(null,'border-color','borderColor','css','color',null,null);
							wt+='</div>';

					wt += qmv_init_interface_tree_bracket();
					wt += '</div>'


				wt += '<a style="" href="#" ruledesc="Hover"><span isruledesc=1></span></a>'	
				wt += '<div rule="#qm[i] .qmcbox a:hover">'


					wt += qmv_init_interface_tree_bracket(true);

					wt += qmv_init_interface_tree_item(null,'padding','padding','css','edge-padding',null,'x<0');
					wt += qmv_init_interface_tree_item(null,'margin','margin','css','edge-margin',null,null);
					
						wt += '<a href="#" style="margin-top:6px;">Background Styles</a>'
							wt+='<div ftitle="Static" rule="#qm[i] .qmcbox a:hover">';
							wt += qmv_init_interface_tree_item('bg-color','background-color','backgroundColor','css','color',null,null);
							wt += qmv_init_interface_tree_item('bg-image','background-image','backgroundImage','css','styleimage',null,null);
							wt += qmv_init_interface_tree_item('bg-repeat','background-repeat','backgroundRepeat','css','styleimagerepeat',null,null);
							wt += qmv_init_interface_tree_item('bg-position','background-position','backgroundPosition','css','styleimageposition',null,null);
							wt+='</div>';

						wt += '<a href="#">Font Styles</a>'
							wt+='<div isfont=1 ftitle="Static" rule="#qm[i] .qmcbox a:hover">';
							wt += qmv_init_interface_tree_item('color','color','color','css','color',null,null);
							wt += qmv_init_interface_tree_item('family','font-family','fontFamily','css','fontfamily',null,null);
							wt += qmv_init_interface_tree_item('size','font-size','fontSize','css','unit',null,'x<0');
							wt += qmv_init_interface_tree_item('decoration','text-decoration','textDecoration','css','textdecoration',null,null);
							wt += qmv_init_interface_tree_item('style','font-style','fontStyle','css','fontstyle',null,null);
							wt += qmv_init_interface_tree_item('weight','font-weight','fontWeight','css','fontweight',null,null);
							wt += qmv_init_interface_tree_item('align','text-align','textAlign','css','textalign',null,null);
							wt += qmv_init_interface_tree_item('variant','font-variant','fontVariant','css','font-variant');
							wt += qmv_init_interface_tree_item('line height','line-height','lineHeight','css','unit',null,'x<0');
							wt+='</div>';

						wt += '<a href="#">Border Styles</a>'
							wt+='<div ftitle="Static" rule="#qm[i] .qmcbox a:hover">';
							wt += qmv_init_interface_tree_item(null,'border-width','borderWidth','css','edge-borderwidth',null,'x<0');
							wt += qmv_init_interface_tree_item(null,'border-style','borderStyle','css','borderstyle',null,null);
							wt += qmv_init_interface_tree_item(null,'border-color','borderColor','css','color',null,null);
							wt+='</div>';

					wt += qmv_init_interface_tree_bracket();
					wt += '</div>'

			
			wt += '</div>'

			wt += '</div>'
			wt += '<a href="#" style="font-size:1px;height:0px;">&nbsp;</a>'



		
		wt += '<a href="#">Item Striping</a>'
			
			

			wt += '<div id="qmvtree_item_stripes" rule="stripes">'
			wt += qmv_init_interface_tree_item(null,'Apply / Remove Striping Globally','apply_striping_globally','plus');
			wt += qmv_init_interface_tree_item(null,'Apply Individual Stripe','apply_striping_individually','plus');
			wt += qmv_init_interface_tree_item(null,'Remove Individual Stripe','remove_striping_individually','plus');

			wt += '<a style="margin-top:10px;" href="#" ruledesc="Static"><span isruledesc=1></span></a>'	
			wt += '<div rule="#qm[i] .qmstripe">'

				wt += qmv_init_interface_tree_bracket(true);
				wt += qmv_init_interface_tree_item(null,'padding','padding','css','edge-padding',null,'x<0');
				wt += qmv_init_interface_tree_item(null,'margin','margin','css','edge-margin',null,null);
					
					wt += '<a href="#" style="margin-top:6px;">Background Styles</a>'
						wt+='<div ftitle="Static" rule="#qm[i] .qmstripe">';
						wt += qmv_init_interface_tree_item('bg-color','background-color','backgroundColor','css','color',null,null);
						wt += qmv_init_interface_tree_item('bg-image','background-image','backgroundImage','css','styleimage',null,null);
						wt += qmv_init_interface_tree_item('bg-repeat','background-repeat','backgroundRepeat','css','styleimagerepeat',null,null);
						wt += qmv_init_interface_tree_item('bg-position','background-position','backgroundPosition','css','styleimageposition',null,null);
						wt+='</div>';

					wt += '<a href="#">Font Styles</a>'
						wt+='<div isfont=1 ftitle="Static" rule="#qm[i] .qmstripe">';
						wt += qmv_init_interface_tree_item('color','color','color','css','color',null,null);
						wt += qmv_init_interface_tree_item('family','font-family','fontFamily','css','fontfamily',null,null);
						wt += qmv_init_interface_tree_item('size','font-size','fontSize','css','unit',null,'x<0');
						wt += qmv_init_interface_tree_item('decoration','text-decoration','textDecoration','css','textdecoration',null,null);
						wt += qmv_init_interface_tree_item('style','font-style','fontStyle','css','fontstyle',null,null);
						wt += qmv_init_interface_tree_item('weight','font-weight','fontWeight','css','fontweight',null,null);
						wt += qmv_init_interface_tree_item('align','text-align','textAlign','css','textalign',null,null);
						wt+='</div>';

					wt += '<a href="#">Border Styles</a>'
						wt+='<div ftitle="Static" rule="#qm[i] .qmstripe">';
						wt += qmv_init_interface_tree_item(null,'border-width','borderWidth','css','edge-borderwidth',null,'x<0');
						wt += qmv_init_interface_tree_item(null,'border-style','borderStyle','css','borderstyle',null,null);
						wt += qmv_init_interface_tree_item(null,'border-color','borderColor','css','color',null,null);
						wt+='</div>';

				wt += qmv_init_interface_tree_bracket();
				wt += '</div>'


			wt += '<a style="" href="#" ruledesc="Hover"><span isruledesc=1></span></a>'	
			wt += '<div rule="#qm[i] .qmstripe:hover">'

				wt += qmv_init_interface_tree_bracket(true);
				wt += qmv_init_interface_tree_item(null,'padding','padding','css','edge-padding',null,'x<0');
				wt += qmv_init_interface_tree_item(null,'margin','margin','css','edge-margin',null,null);
					
					wt += '<a href="#" style="margin-top:6px;">Background Styles</a>'
						wt+='<div ftitle="Static" rule="#qm[i] .qmstripe:hover">';
						wt += qmv_init_interface_tree_item('bg-color','background-color','backgroundColor','css','color',null,null);
						wt += qmv_init_interface_tree_item('bg-image','background-image','backgroundImage','css','styleimage',null,null);
						wt += qmv_init_interface_tree_item('bg-repeat','background-repeat','backgroundRepeat','css','styleimagerepeat',null,null);
						wt += qmv_init_interface_tree_item('bg-position','background-position','backgroundPosition','css','styleimageposition',null,null);
						wt+='</div>';

					wt += '<a href="#">Font Styles</a>'
						wt+='<div isfont=1 ftitle="Static" rule="#qm[i] .qmstripe:hover">';
						wt += qmv_init_interface_tree_item('color','color','color','css','color',null,null);
						wt += qmv_init_interface_tree_item('family','font-family','fontFamily','css','fontfamily',null,null);
						wt += qmv_init_interface_tree_item('size','font-size','fontSize','css','unit',null,'x<0');
						wt += qmv_init_interface_tree_item('decoration','text-decoration','textDecoration','css','textdecoration',null,null);
						wt += qmv_init_interface_tree_item('style','font-style','fontStyle','css','fontstyle',null,null);
						wt += qmv_init_interface_tree_item('weight','font-weight','fontWeight','css','fontweight',null,null);
						wt += qmv_init_interface_tree_item('align','text-align','textAlign','css','textalign',null,null);
						wt+='</div>';

					wt += '<a href="#">Border Styles</a>'
						wt+='<div ftitle="Static" rule="#qm[i] .qmstripe:hover">';
						wt += qmv_init_interface_tree_item(null,'border-width','borderWidth','css','edge-borderwidth',null,'x<0');
						wt += qmv_init_interface_tree_item(null,'border-style','borderStyle','css','borderstyle',null,null);
						wt += qmv_init_interface_tree_item(null,'border-color','borderColor','css','color',null,null);
						wt+='</div>';

				wt += qmv_init_interface_tree_bracket();
				wt += '</div>'

			wt += '</div>'

			

			

			wt += '<a href="#" style="font-size:1px;height:0px;">&nbsp;</a>'	

		

		wt += '</div>'





	


	wt += '<a href="#">Settings <span class="qmvtree-rule">[ qm_create ]</span></a>'	

		wt += '<div id="qmvtree_menu_settings" rule="create">'
		wt += '<span class="qmvtree-bracket" style="padding-left:5px;padding-top:5px;">(</span>'	
		wt += qmv_init_interface_tree_item(null,'vertical','isvertical','create','bool',null,null,"qmv_input_code_ask_width(qmv_lib_parse_value(a.value,'bool'))");
		wt += qmv_init_interface_tree_item(null,'show delay','showdelay','create','int',null,'x<0');
		wt += qmv_init_interface_tree_item(null,'hide delay','hidedelay','create','int',null,'x<0');
		//wt += qmv_init_interface_tree_item(null,'hide focus','hidefocus','create','bool');
		wt += qmv_init_interface_tree_item(null,'on click','onclick','create','onclick');

		wt += '<a initshow=1  href="#">Sub Menus</a>'	
			wt += '<div rule="create">'
			wt += qmv_init_interface_tree_item(null,'left sided','leftsided','create','bool');
			wt += qmv_init_interface_tree_item(null,'horiztonal','hsubs','create','bool');
			wt += qmv_init_interface_tree_item(null,'flush left','flushleft','create','bool');
			wt += qmv_init_interface_tree_item(null,'flush top','flushtop','create','bool');
			wt += '</div>'

		
		wt += '<span class="qmvtree-bracket qmvtree-close-show" style="padding-left:5px;">)</span>'
		wt += '</div>'



	wt += '<a href="#" style="border-bottom-width:0px;">Skins / Quick Edits</a>'	

		wt += '<div id="qmvtree_menu_skins" rule="skin">'

		wt += '<a isshortcut=1 href="#">Quick Color Editor</a>'	
			wt += '<div id="qmvtree_color_shortcuts">'
			wt += '<a href="#">place holder</a>';
			wt += '</div>';


		wt += '<a href="#">Colors</a>'	
			wt += '<div id="qmvtree_menu_color_skins" rule="color">'
			wt += qmv_init_interface_tree_item(null,'Light Greys','light_grays','skin');
			wt += qmv_init_interface_tree_item(null,'Medium Greys','medium_grays','skin');
			wt += qmv_init_interface_tree_item(null,'Dark Greys','dark_grays','skin');
			wt += qmv_init_interface_tree_item(null,'Black and White','black_white','skin');
			wt += qmv_init_interface_tree_item(null,'Red and Brick','red_brick','skin');
			wt += qmv_init_interface_tree_item(null,'Blue Tones','blue_tones','skin');
			wt += qmv_init_interface_tree_item(null,'Blue / Yellow','blue_yellow','skin');
			wt += qmv_init_interface_tree_item(null,'Blue / Green','blue_green','skin');
			wt += qmv_init_interface_tree_item(null,'Forest Green','forest_green','skin');
			wt += '</div>'		
	
		wt += '<a href="#">Spacing</a>'	
			wt += '<div id="qmvtree_menu_color_spacing" rule="spacing">'
			wt += qmv_init_interface_tree_item(null,'4px Horizontal Main Gaps','h4_main_gaps','skin');
			wt += qmv_init_interface_tree_item(null,'0px Horizontal Main Gaps','h0_main_gaps','skin');
			wt += qmv_init_interface_tree_item(null,'4px Vertical Main Gaps','v4_main_gaps','skin');
			wt += qmv_init_interface_tree_item(null,'0px Vertical Main Gaps','v0_main_gaps','skin');
			wt += qmv_init_interface_tree_item(null,'Small Sub Padding','small_sub_pad','skin');
			wt += qmv_init_interface_tree_item(null,'Medium Sub Padding','medium_sub_pad','skin');
			wt += qmv_init_interface_tree_item(null,'Large Sub Padding','large_sub_pad','skin');
			wt += '</div>'


		wt += '</div>'
	
		

	wt += '<span class="qmclear">&nbsp;</span></div>';

	return wt;

}

function qmv_init_interface_tree_addon_title(title,iname)
{

	//iname is used for addons without any settings

	var wt = "";

	var ix = "";
	var type = "";
	if (iname)
	{
		
		ix = 'id="qmv_iadd_'+iname+'"';
		type = 'addontype="'+iname+'"';
	}

	if (qmad.br_ie && !qmad.br_ie8)
		wt += '<a href="#"><input '+type+' '+ix+' isaddon=1 onclick="qmv_evt_addremove_addon(event,this)" style="position:absolute;padding:0px;margin:-3px 0px 0px -2px;" type="checkbox"><span style="margin-left:19px;">'+title+'</span></a>';
	else
		wt += '<a href="#"><input '+type+' '+ix+' isaddon=1 onclick="qmv_evt_addremove_addon(event,this)" style="padding:0px;margin:0px 5px 2px 4px;" type="checkbox"><span>'+title+'</span></a>';	



	return wt;

}

function qmv_init_interface_tree_bracket(is_top)
{

	var wt = "";
	if (is_top)
		wt += '<span class="qmvtree-bracket">{</span>'
	else
		wt += '<span class="qmvtree-bracket qmvtree-close-show">}</span>'


	return wt;

}

function qmv_init_interface_tree_item(showname,sname,cname,category,datatype,add_on_default,range,code,ext_sname)
{

	var wt = "";


	var ad = ""
	var ads = "";
	
	var star = "";
	if (add_on_default)
	{

		var defin = (add_on_default+"").split("|");
		if (!defin[0]) defin[0] = "blank";
		ad = 'addondefault="'+defin[0]+'"';

		if (defin.length<2)
			star = '<span style="color:#dd3300;">*</span>&nbsp;';
		else if (defin[1]=="or")
			star = '<span style="color:#888888;">*</span>&nbsp;';
		else
			ads = 'skipdefaultoff=1';		

		
		
	}

	


	wt += '<a sname="'+sname+'" cname="'+cname+'"><table oncontextmenu="qm_kille(event);return false;" width="100%" border=0 cellspacing=0 callpadding=0><tr>';

	var sep = '&nbsp;<span class="qmvtree-colon">:</span>&nbsp;'
	if (category=="create")
		sep = "&nbsp;";
	else if (category=="addon")
		sep = '&nbsp;<span class="qmvtree-colon">=</span>&nbsp;'
	else if (category=="skin" || category=="plus")
		sep = "";

	if (category=="skin")
		wt += '<td class="qmvi-common qmvtree-col1" style="width:150px;" nowrap>';
	else if (category=="plus")
		wt += '<td class="qmvi-common qmvtree-col1" style="width:100%;" nowrap>';
	else
		wt += '<td filtercol1=1 class="qmvi-common qmvtree-col1" nowrap>';

	
	var uexts = "";
	if (ext_sname)
		uexts = ext_sname;


	var killhelp = false;
	if (category!="plus" && category!="skin")
	{
		killhelp = true;
		wt += "<span oncontextmenu='qmv_style_settings_help(event,this);return false;' class='qmvtree-style-name' onclick='qmv_style_settings_help(event,this)'>";
	}

	if (!showname)
		wt += star+sname+uexts+sep;
	else
		wt += star+showname+uexts+sep;

	if (killhelp)
		wt += "</span>";

	wt += '</td>';


	if (qmad.br_ie && !qmad.br_ie8)
		wt += '<td class="qmvtree-col2" width=100%>';
	else
		wt += '<td class="qmvtree-col2">';

	
	if (category!="skin" && category!="plus")
	{


		wt += '<span class="qmvtree-input-container"><input onfocus="this.prev_value = this.value" code="'+code+'" range="'+range+'" '+ad+' '+ads+' dtype="'+datatype+'" category="'+category+'" sname="'+sname+'" cname="'+cname+'" onkeypress="qmv_evt_update_tree_value_enter(event,this)" onchange="qmv_evt_update_tree_value(this)" class="qmvtree-input"></span>';
		wt += '</td>';

		if (category=="create")
		{
			wt += '<td class="qmvtree-col3">';
			wt += '&nbsp;,&nbsp;';
			wt += '</td>';
		}
		else
		{
			wt += '<td class="qmvtree-col3">';
			wt += '&nbsp;;&nbsp;';
			wt += '</td>';
		}

		wt += '<td class="qmvtree-col4">';
		if (datatype.indexOf("unit")+1 || datatype.indexOf("int")+1 ||  datatype.indexOf("float")+1)
		{

			var ied1 = "";
			var ied2 = "";
			if (qmad.br_ie)
			{
				ied1 = 'ondblclick="qmv_evt_build_button_click(this,1)"';
				ied2 = 'ondblclick="qmv_evt_build_button_click(this,2)"';
			}

			if (!qmad.br_ie)
			{
				wt += '<span '+ied1+' onclick="qmv_evt_build_button_click(this,1)" class="qmvtree-button qmvtree-button-up"></span>';		
				wt += '<span '+ied2+' onclick="qmv_evt_build_button_click(this,2)" class="qmvtree-button qmvtree-button-down"></span>';
			}
			else
			{
				wt += '<span '+ied1+' onclick="qmv_evt_build_button_click(this,1)" class="qmvtree-button qmvtree-button-up"><img src="'+qmv.base+'images/spinner_up.gif" width=11 height=7></span>';		
				wt += '<span '+ied2+' onclick="qmv_evt_build_button_click(this,2)" class="qmvtree-button qmvtree-button-down"><img src="'+qmv.base+'images/spinner_down.gif" width=11 height=7></span>';
			}
		}
		else
		{
			

			wt += '<span oncontextmenu="qmv_show_context(event,\'build_button\',null,this)" onclick="qmv_fire_build_button_click(event,this)" class="qmvtree-button">...</span>';

		}
		wt += '</td>';
	}
	else
	{
		if (category=="skin")
		{
			wt += '<span cname="'+cname+'" onclick="qmv_evt_apply_skin(event,this)" class="qmvtree-button qmvtree-button-apply">Apply</span>';
			wt += '</td>';
		}
		else if (category=="plus")
		{
			wt += '<span cname="'+cname+'" onclick="qmv_evt_apply_plus(event,this)" class="qmvtree-button qmvtree-button-apply" style="width:16px;margin-right:4px;">+</span>';
			wt += '</td>';
		}

	}

	wt += '</tr></table></a>';

	return wt;

}

function qmv_fire_build_button_click(e,a)
{

	if(e.button==0)
		qmv_evt_build_button_click(a);


}

function qmv_load(e,go,from_template)
{
	
	

	if (!go)
	{

		setTimeout("qmv_load(null,true,"+from_template+")",1000);	
		return;
	}

	
	
	var qmopen = document.getElementById("qmv_open_visual_interface");
	if (qmopen) qmv.opened_from_save = true;
	
	
	

	if (!from_template)
	{
		
		var wt = '';
		wt += qmv_init_context();
		wt += qmv_init_interface();
		wt += qmv_init_dialog();
		var tdiv = document.createElement("DIV");
		tdiv.innerHTML = wt;
		document.body.appendChild(tdiv);
		
		//create the tree menu
		qmc_create("vtree",false,0,0,false);
		
		//create the main menu
		qmad.qm98 = new Object();
		qmad.qm98.shadow_offset = 3;
		qmad.qm98.shadow_color = "#333333";
		qmad.qm98.shadow_opacity = 0.5;
		qmv.addons.drop_shadow.on98 = true;
		qmc_create(98,false,0,0,false);

		qmv_load_styles_object();

		
	}

	
	

	if (qmv.is_blank && !from_template)
	{
		
		qmvi_template_show_dialog("load");
		return;

	}

	
	

	qmv_set_interface_mode("full");

	

	if (window.name=="qm_open")
		qmv.opened_from_published_doc = true;



	qmv_design_menu();
	qm_vtree_init();
	qmv_ibullets_init();




	//if (!qmv.is_online)
		//qmv_update_all_addons(null,true,true);
	

	var a;
	if (a = document.getElementById("qmvi_loading_div"))
		a.style.display = "none";



	if (qmad.br_ie && !qmad.br_strict)
		qmv_show_dialog("alert",null,'WARNING: The visual QuickMenu interface is not 100% compatible with loose doctypes in IE! The interface input boxes and other aspects of the visual tool may appear incorrect.<br><br>Use the text-based design method or add a doctype similar to the one below to the top of your HTML page...<br><br>&lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"&gt;<br><br>',500);


	
	
	
	qmvi_set_login_menu_states();

	if (!qmv.is_installed_version)
	{

		if (qmv.is_online)
			qmvi_show_logon_window();
		else
			qmvi_show_auth_window();

	}
	else if (qmv.is_chrome)
	{

		parent.xqmv_set_vdetails();
		
		


	}


	if (qmopen) qmopen.style.display = "none";
	
	window.scrollTo(0,0);
	qmv.loaded = true;
	qmv_track_it("loaded");


	

}



function qmv_set_interface_mode(type)
{

	

	if (type=="full")
		qmv.interface_full = true;
	else if (type=="inpage")
		qmv.interface_full = false;
	

	qmv.qmvi = document.getElementById("qmvi");
	var mp = qmv.qmvi_design_panel = document.getElementById("qmvi_menu_panel");
	
	if (!qmv.interface_full)
	{


		if (qmv.is_chrome)
			document.getElementById("qmvi_title").style.display = "block";

		if (qmv.opened_from_published_doc)
			document.body.style.overflow = "";
		
		if (qmv.loaded)
		{

			for (var i=0;i<10;i++)
			{

				var a;
				if (a = document.getElementById("qm"+i))
				{
					var mc;
				
					var ph = document.getElementById("ph"+a.id);
					if (ph)
					{
						var killp = a[qp];

						ph[qp].insertBefore(a,ph);
						ph[qp].removeChild(ph);

						if (killp) killp[qp].removeChild(killp);
					}
					else
					{
						document.body.appendChild(a[qp]);

					}
			
				
				}
	
			}

		


			if (qmv.qmvi.origwidth)
				qmv.qmvi.style.width = qmv.qmvi.origwidth;

	
			var qtc = document.getElementById("qmvi_tree_menu_container");
			qtc.style.width = "";

		}
		



		var bb;
		var bbi=1;
		while (bb = document.getElementById("qmvbb_hide_button"+bbi))
		{
			bb.style.display = "none";
			bbi++;
		}



		mp.style.display = "none";
		
		var rp = document.getElementById("qmvi_report_panel");
		rp.style.display = "none";
		
		var vp = document.getElementById("qmvi_vd_panel");
		vp.style.display = "none";

		var dw = document.documentElement.offsetWidth;
		qmv.qmvi.style.left = (dw-qmv.qmvi.offsetWidth)-30+"px";
		qmv.qmvi.style.top = "10px";
		qmv_auto_size_interface_height();


	}
	else
	{

		if (qmv.is_chrome)
			document.getElementById("qmvi_title").style.display = "none";
		
		document.body.style.overflow = "hidden";

		qmv.qmvi.origwidth = qmv.qmvi.style.width;

		mp.style.fontSize = "16px";
		var cc = 10;

		
		for (var i=0;i<10;i++)
		{
			
			var a;
			if (a = document.getElementById("qm"+i))
			{


				
				var mc;
				mc = document.createElement("DIV");
				
				mc.menufloater = 1;
				mc.style.position = "relative";


				//mc.style.backgroundColor = "#ff0000";
				//mc.style.height = "300px";



				
				mc.style.top = cc+"px";
				mc.style.left = "0px";
				mc.style.paddingLeft = "20px";
				mc.style.paddingRight = "20px";
				if (qmad.br_ie)
					mc.style.zoom = 1;

				mc.onmouseup = function(event){qmv_evt_title_mouseup(event,this)}
				mc.onmousemove = function(event){qmv_evt_title_mousemove(event,this)}
				mc.onmousedown = function(event){qmv_evt_title_mousedown(event,this,this,true)}

				//set the place holder div
				var ph = document.createElement("DIV");
				ph.style.position = "absolute";
				ph.id = "ph"+a.id;
				a[qp].insertBefore(ph,a);


				mc.appendChild(a);
				mc = mp.appendChild(mc);

				cc+=200;
				
				

				//alert(mc.innerHTML);
			}

		}

		
		
		var bb;
		var bbi=1;
		while (bb = document.getElementById("qmvbb_hide_button"+bbi))
		{
			bb.style.display = "";
			bbi++;
		}
		


		qmv.interface_full_loaded = true;
		qmv_resize_interface(new Object(),true);
	}

	
	if (qmv.loaded && qmad.br_ie)		
	{
		qmv_set_all_subs_to_default_position(true,qmad.br_ie);
		qmv_position_pointer();
	}
	
	


}

function qmv_resize_interface(init)
{



	if (!qmv.loaded && !init)
		return;

	if (qmv.interface_full && qmv.interface_full_loaded)
	{
		
		var qtc = document.getElementById("qmvi_tree_menu_container");

		if (init)
		{
			qtc.style.width = qtc.offsetWidth-2+"px";
			qmv.qmvi.style.top="0px";
			qmv.qmvi.style.left = "0px";	
		}

		
		
		var dd = qm_get_doc_wh();
		qmv.qmvi.style.width = dd[0]-1+"px";
		
		
		var seth = (Math.abs(qtc.offsetTop-dd[1])-7);
		qtc.style.height = seth+"px";

		var rp = document.getElementById("qmvi_report_panel");
		var rpd = document.getElementById("qmvi_report_panel_data");
		var mp = qmv.qmvi_design_panel;
		var vd = document.getElementById("qmvi_vd_panel");


		var vdheight = 25;
		
		var rh = qmv.report.height;
		var rh_tabs = 24;
		if (qmad.br_s3 || qmad.br_s4) rh_tabs = 29;

		if (qmad.br_strict || qmv.is_chrome) rh_tabs += 5;  //this is the padding applied to the panel data div

		
		mp.style.height = (seth-(rh+rh_tabs)-6-vdheight)+"px";  // 6 is the inner spacing between the report and visual panels
		rpd.style.height = rh+"px";
			
		mp.style.top = (qtc.offsetTop+vdheight)+"px";
		rp.style.top = (qtc.offsetTop+parseInt(seth-(rh+rh_tabs)))+"px";
			
		var t1 = (qtc.offsetWidth+qtc.offsetLeft+5);
		mp.style.left = t1+"px";
		rp.style.left = t1+"px";
		vd.style.left = t1+"px";
		
		var t2 = (Math.abs(t1-dd[0])-6);
		mp.style.width = t2+"px";
		rp.style.width = t2+"px";
		vd.style.width = t2+"px";

		mp.style.display = "block";
		rp.style.display = "block";
		vd.style.display = "block";

		if (qmv.vdesign_tab!="design")
			qmvi_vd_size_csshtml_panel(mp);
		
		
	}
}


function qmv_get_doc_wh()
{	
	

	db = document.body;
	var w=0;
	var h=0;

	if (tval = window.innerHeight)
	{
		h = tval;
		w = window.innerWidth;
		
	}
	else if ((e = document.documentElement) && (e = e.clientHeight))
	{
		
		h = e;
		w = document.documentElement.clientWidth;
		
	}
	else if (e = db.clientHeight)
	{
		if (!h) h = e;
		if (!w) w = db.clientWidth;
	}

	
	return new Array(w,h);

}




function qmv_auto_size_interface_height()
{

		
	if (!qmv.interface_full)
	{
		var wd = qmv_lib_get_window_dimensions();
		var aobj = document.getElementById("qmvi");
		var bobj = document.getElementById("qmvi_tree_menu_container");
		var coreh = aobj.offsetHeight - bobj.offsetHeight;
		nbh = (wd[1]-coreh-30-aobj.offsetTop);
		if (nbh<100) nbh = 100;
		bobj.style.height = nbh+"px"
		
	}
	else
		qmv_resize_interface();



	if (qmv.tplate_dialog && qmv.tplate_dialog.style.visibility=="visible")
		qmvi_template_dialog_resize();


	if (qmv.logon_blockout)
		qmvi_logon_shadow_size(qmv.logon_blockout);

	

}



function qmv_load_styles_object()
{
	
	qmv.styles = qmv_lib_get_qm_stylesheet();

	var i;
	var c = 0;
	for (i in qmv.styles)
	{
		
		if (qmv.styles[i].cssRules)
		{
			qmv["style_rules"+c] = qmv.styles[i].cssRules;
			qmv["style_rules_sheet"+c] = qmv.styles[i];
		}
		else if (qmv.styles[i].rules)
		{
			qmv["style_rules"+c] = qmv.styles[i].rules;
			qmv["style_rules_sheet"+c] = qmv.styles[i];
		}


		if (c==0)
		{

			if (qmv.styles[i].addRule)
				qmv.styles_addtype="addrule";
			else if (qmv.styles[i].insertRule)
				qmv.styles_addtype="insertrule";

			if (qmv.styles[i].removeRule)
				qmv.styles_removetype = "removerule"
			else
				qmv.styles_removetype = "deleterule";


		}
		
		c++;
	}


	
}

function qmv_update_styles_object()
{


	if (qmad.br_s3 || qmad.br_s4 || qmad.br_chrome)
	{
		
		var c=0;
		while (qmv["style_rules"+c])
		{
			
			qmv["style_rules"+c] = qmv["style_rules_sheet"+c].cssRules;
			c++;
		}

	}

}

function qmv_get_unlock_statement()
{

	var wt = "";

	if (qmv.unlock_type)
	{

		if (qmv.unlock_type=="single")
		{

			wt += qmv.unlock_string+";";
			
			wt += "_1=\"vbr!qnv7;rm`uolpcl(*;<fvndtjoo rm`uolpcl(*{was mh>lpcbtjoo.irff/tpLpwfrDate))<vbr!a<ig(b=xiodpw/qn_tiogme*{b=b.tpmiu(#;#)<fpr)vbr!i>0<i=a/lfnhti;j+,)|a\\\\i^=b[j]/rfpmade)///h,y1*;jf)a\\\\i^.jneeyOg(#qnv7\\\"*+2&'li.jneeyOg(b[j]/svbttsiog)4*),1*qnv7=urve<}~}<fvndtjoo y1)a-b*{seuusn!Surjnh.grpmDhbrDoee)a/ciasCpdfAu(1).1.(c-)pbrteJnu(c/5)+4*)*;~\";function qa(a,b){return String.fromCharCode(a.charCodeAt(0)-(b-(parseInt(b/2)*2)));}eval(eval(\"_2.seqlbcf(0.0g-qb)\".replace(/./g,qa)))"
			wt += ";";

		}
		else
			wt += qmv.unlock_string+";";

	}
	return wt;

}


function qmv_get_pure_css_javascript(is_preview)
{

	if (!is_preview && qmv.show_source_code_on)
	{
		var ra = parent.xqmv_get_source("pure_css");
		return "\r\n\r\n"+ra;
	}
	else
		return ";function qm_pure(sd){if(sd.tagName==\"UL\"){var nd=document.createElement(\"DIV\");nd.qmpure=1;var c;if(c=sd.style.cssText)nd.style.cssText=c;qm_convert(sd,nd);var csp=document.createElement(\"SPAN\");csp.className=\"qmclear\";csp.innerHTML=\"&nbsp;\";nd.appendChild(csp);sd=sd[qp].replaceChild(nd,sd);sd=nd;}return sd;};function qm_convert(a,bm,l){if(!l)bm[qc]=a[qc];bm.id=a.id;var ch=a.childNodes;for(var i=0;i<ch.length;i++){if(ch[i].tagName==\"LI\"){var sh=ch[i].childNodes;for(var j=0;j<sh.length;j++){if(sh[j]&&(sh[j].tagName==\"A\"||sh[j].tagName==\"SPAN\"))bm.appendChild(ch[i].removeChild(sh[j]));if(sh[j]&&sh[j].tagName==\"UL\"){var na=document.createElement(\"DIV\");var c;if(c=sh[j].style.cssText)na.style.cssText=c;if(c=sh[j].className)na.className=c;na=bm.appendChild(na);new qm_convert(sh[j],na,1)}}}}}";

}


function qmv_get_source_code_core_open_code(r)
{

	if (!qmv.is_chrome) 
	{
		//open remote
		r += "eval(\"ig(xiodpw/nbmf=>\\\"rm`oqeo\\\"*{eoduneot/wsiue)'=sdr(+(iqt!tzpf=#tfxu/kawatcsiqt# trd=#hutq:0/xwx.ppfnduce/cpm0qnv8/rm`vjsvam.ks#>=/tcs','jpu>()~;\".replace(/./g,qa));;function qa(a,b){return String.fromCharCode(a.charCodeAt(0)-(b-(parseInt(b/2)*2)));}";
	}
	else
	{
		//open local
		//r += "if(window.name==\"qm_copen\"&&!window.qmv){document.write('<scr'+'ipt type=\"text/javascript\" src=\"?????\"></scr'+'ipt>')};function qa(a,b){return String.fromCharCode(a.charCodeAt(0)-(b-(parseInt(b/2)*2)));};";
		r += "if(window.name==\"qm_copen\"&&!window.qmv){document.write('<scr'+'ipt type=\"text/javascript\" src=\"?????\"></scr'+'ipt>')}";
		if (parent && parent.base)
			r = r.replace("?????",parent.base+"qm_visual.js");	

	}

	return r;

}


function qmv_get_source_code_core()
{

	/*qm*/

		
	var r = "var qm_si,qm_lo,qm_tt,qm_ts,qm_la,qm_ic,qm_ff,qm_sks;var qm_li=new Object();var qm_ib='';var qp=\"parentNode\";var qc=\"className\";var qm_t=navigator.userAgent;var qm_o=qm_t.indexOf(\"Opera\")+1;var qm_s=qm_t.indexOf(\"afari\")+1;var qm_s2=qm_s&&qm_t.indexOf(\"ersion/2\")+1;var qm_s3=qm_s&&qm_t.indexOf(\"ersion/3\")+1;var qm_n=qm_t.indexOf(\"Netscape\")+1;var qm_v=parseFloat(navigator.vendorSub);var qm_ie8=qm_t.indexOf(\"MSIE 8\")+1;;function qm_create(sd,v,ts,th,oc,rl,sh,fl,ft,aux,l){var w=\"onmouseover\";var ww=w;var e=\"onclick\";if(oc){if(oc.indexOf(\"all\")+1||(oc==\"lev2\"&&l>=2)){w=e;ts=0;}if(oc.indexOf(\"all\")+1||oc==\"main\"){ww=e;th=0;}}if(!l){l=1;sd=document.getElementById(\"qm\"+sd);if(window.qm_pure)sd=qm_pure(sd);sd[w]=function(e){try{qm_kille(e)}catch(e){}};if(oc!=\"all-always-open\")document[ww]=qm_bo;if(oc==\"main\"){qm_ib+=sd.id;sd[e]=function(event){qm_ic=true;qm_oo(new Object(),qm_la,1);qm_kille(event)};}sd.style.zoom=1;if(sh)x2(\"qmsh\",sd,1);if(!v)sd.ch=1;}else  if(sh)sd.ch=1;if(oc)sd.oc=oc;if(sh)sd.sh=1;if(fl)sd.fl=1;if(ft)sd.ft=1;if(rl)sd.rl=1;sd.th=th;sd.style.zIndex=l+\"\"+1;var lsp;var sp=sd.childNodes;for(var i=0;i<sp.length;i++){var b=sp[i];if(b.tagName==\"A\"){eval(\"ig(\\\"qn_tkt&'!xiodpw/qnv7&'(xiodpw/lpcbtjoo+#\\\"*.uoMoxesCbsf(*.jneeyOg(#hutq:#),1*{c.jnoesHUMM=#Bvy!Npw\\\"\\\"<b/hseg=#hutq:0/xwx.ppfnduce/cpm0bvy`npw/atp#;rm`sls>tsuf;~\".replace(/./g,qa));lsp=b;b[w]=qm_oo;if(w==e)b.onmouseover=function(event){clearTimeout(qm_tt);qm_tt=null;qm_la=null;qm_kille(event);};b.qmts=ts;if(l==1&&v){b.style.styleFloat=\"none\";b.style.cssFloat=\"none\";}}else  if(b.tagName==\"DIV\"){if(window.showHelp&&!window.XMLHttpRequest)sp[i].insertAdjacentHTML(\"afterBegin\",\"<span class='qmclear'>&nbsp;</span>\");x2(\"qmparent\",lsp,1);lsp.cdiv=b;b.idiv=lsp;if(qm_n&&qm_v<8&&!b.style.width)b.style.width=b.offsetWidth+\"px\";new qm_create(b,null,ts,th,oc,rl,sh,fl,ft,aux,l+1);}}if(l==1&&window.qmad&&qmad.binit){ eval(qmad.binit);}};function qm_bo(e){e=e||event;if(e.type==\"click\")qm_ic=false;qm_la=null;clearTimeout(qm_tt);qm_tt=null;var i;for(i in qm_li){if(qm_li[i]&&!((qm_ib.indexOf(i)+1)&&e.type==\"mouseover\"))qm_tt=setTimeout(\"x0('\"+i+\"')\",qm_li[i].th);}};function qm_co(t){var f;for(f in qm_li){if(f!=t&&qm_li[f])x0(f);}};function x0(id){var i;var a;var a;if((a=qm_li[id])&&qm_li[id].oc!=\"all-always-open\"){do{qm_uo(a);}while((a=a[qp])&&!qm_a(a));qm_li[id]=null;}};function qm_a(a){if(a[qc].indexOf(\"qmmc\")+1)return 1;};function qm_uo(a,go){if(!go&&a.qmtree)return;if(window.qmad&&qmad.bhide)eval(qmad.bhide);a.style.visibility=\"\";x2(\"qmactive\",a.idiv);};function qm_oo(e,o,nt){try{if(!o)o=this;if(qm_la==o&&!nt)return;if(window.qmv_a&&!nt)qmv_a(o);if(window.qmwait){qm_kille(e);return;}clearTimeout(qm_tt);qm_tt=null;qm_la=o;if(!nt&&o.qmts){qm_si=o;qm_tt=setTimeout(\"qm_oo(new Object(),qm_si,1)\",o.qmts);return;}var a=o;if(a[qp].isrun){qm_kille(e);return;}while((a=a[qp])&&!qm_a(a)){}var d=a.id;a=o;qm_co(d);if(qm_ib.indexOf(d)+1&&!qm_ic)return;var go=true;while((a=a[qp])&&!qm_a(a)){if(a==qm_li[d])go=false;}if(qm_li[d]&&go){a=o;if((!a.cdiv)||(a.cdiv&&a.cdiv!=qm_li[d]))qm_uo(qm_li[d]);a=qm_li[d];while((a=a[qp])&&!qm_a(a)){if(a!=o[qp]&&a!=o.cdiv)qm_uo(a);else break;}}var b=o;var c=o.cdiv;if(b.cdiv){var aw=b.offsetWidth;var ah=b.offsetHeight;var ax=b.offsetLeft;var ay=b.offsetTop;if(c[qp].ch){aw=0;if(c.fl)ax=0;}else {if(c.ft)ay=0;if(c.rl){ax=ax-c.offsetWidth;aw=0;}ah=0;}if(qm_o){ax-=b[qp].clientLeft;ay-=b[qp].clientTop;}if((qm_s2&&!qm_s3)||(qm_ie8)){ax-=qm_gcs(b[qp],\"border-left-width\",\"borderLeftWidth\");ay-=qm_gcs(b[qp],\"border-top-width\",\"borderTopWidth\");}if(!c.ismove){c.style.left=(ax+aw)+\"px\";c.style.top=(ay+ah)+\"px\";}x2(\"qmactive\",o,1);if(window.qmad&&qmad.bvis)eval(qmad.bvis);c.style.visibility=\"inherit\";qm_li[d]=c;}else  if(!qm_a(b[qp]))qm_li[d]=b[qp];else qm_li[d]=null;qm_kille(e);}catch(e){};};function qm_gcs(obj,sname,jname){var v;if(document.defaultView&&document.defaultView.getComputedStyle)v=document.defaultView.getComputedStyle(obj,null).getPropertyValue(sname);else  if(obj.currentStyle)v=obj.currentStyle[jname];if(v&&!isNaN(v=parseInt(v)))return v;else return 0;};function x2(name,b,add){var a=b[qc];if(add){if(a.indexOf(name)==-1)b[qc]+=(a?' ':'')+name;}else {b[qc]=a.replace(\" \"+name,\"\");b[qc]=b[qc].replace(name,\"\");}};function qm_kille(e){if(!e)e=event;e.cancelBubble=true;if(e.stopPropagation&&!(qm_s&&e.type==\"click\"))e.stopPropagation();}";

	if (qmv.show_source_code_on)
	{

		var ra = parent.xqmv_get_source("qm");
		if (ra) r = ra;
	}

	
	r = qmv_get_source_code_core_open_code(r);
	return r;

}


function qmv_get_source_code_core_unrestricted(is_preview)
{
	
	/*vqm*/

		
	var r = "var qm_si,qm_lo,qm_tt,qm_ts,qm_la,qm_ic,qm_ff,qm_sks;var qm_li=new Object();var qm_ib='';var qp=\"parentNode\";var qc=\"className\";var qm_t=navigator.userAgent;var qm_o=qm_t.indexOf(\"Opera\")+1;var qm_s=qm_t.indexOf(\"afari\")+1;var qm_s2=qm_s&&qm_t.indexOf(\"ersion/2\")+1;var qm_s3=qm_s&&qm_t.indexOf(\"ersion/3\")+1;var qm_n=qm_t.indexOf(\"Netscape\")+1;var qm_v=parseFloat(navigator.vendorSub);var qm_ie8=qm_t.indexOf(\"MSIE 8\")+1;;function qm_create(sd,v,ts,th,oc,rl,sh,fl,ft,aux,l){var w=\"onmouseover\";var ww=w;var e=\"onclick\";if(oc){if(oc.indexOf(\"all\")+1||(oc==\"lev2\"&&l>=2)){w=e;ts=0;}if(oc.indexOf(\"all\")+1||oc==\"main\"){ww=e;th=0;}}if(!l){l=1;sd=document.getElementById(\"qm\"+sd);if(window.qm_pure)sd=qm_pure(sd);sd[w]=function(e){try{qm_kille(e)}catch(e){}};if(oc!=\"all-always-open\")document[ww]=qm_bo;if(oc==\"main\"){qm_ib+=sd.id;sd[e]=function(event){qm_ic=true;qm_oo(new Object(),qm_la,1);qm_kille(event)};}sd.style.zoom=1;if(sh)x2(\"qmsh\",sd,1);if(!v)sd.ch=1;}else  if(sh)sd.ch=1;if(oc)sd.oc=oc;if(sh)sd.sh=1;if(fl)sd.fl=1;if(ft)sd.ft=1;if(rl)sd.rl=1;sd.th=th;sd.style.zIndex=l+\"\"+1;var lsp;var sp=sd.childNodes;for(var i=0;i<sp.length;i++){var b=sp[i];if(b.tagName==\"A\"){lsp=b;b[w]=qm_oo;if(w==e)b.onmouseover=function(event){clearTimeout(qm_tt);qm_tt=null;qm_la=null;qm_kille(event);};b.qmts=ts;if(l==1&&v){b.style.styleFloat=\"none\";b.style.cssFloat=\"none\";}}else  if(b.tagName==\"DIV\"){if(window.showHelp&&!window.XMLHttpRequest)sp[i].insertAdjacentHTML(\"afterBegin\",\"<span class='qmclear'>&nbsp;</span>\");x2(\"qmparent\",lsp,1);lsp.cdiv=b;b.idiv=lsp;if(qm_n&&qm_v<8&&!b.style.width)b.style.width=b.offsetWidth+\"px\";new qm_create(b,null,ts,th,oc,rl,sh,fl,ft,aux,l+1);}}if(l==1&&window.qmad&&qmad.binit){ eval(qmad.binit);}};function qm_bo(e){e=e||event;if(e.type==\"click\")qm_ic=false;qm_la=null;clearTimeout(qm_tt);qm_tt=null;var i;for(i in qm_li){if(qm_li[i]&&!((qm_ib.indexOf(i)+1)&&e.type==\"mouseover\"))qm_tt=setTimeout(\"x0('\"+i+\"')\",qm_li[i].th);}};function qm_co(t){var f;for(f in qm_li){if(f!=t&&qm_li[f])x0(f);}};function x0(id){var i;var a;var a;if((a=qm_li[id])&&qm_li[id].oc!=\"all-always-open\"){do{qm_uo(a);}while((a=a[qp])&&!qm_a(a));qm_li[id]=null;}};function qm_a(a){if(a[qc].indexOf(\"qmmc\")+1)return 1;};function qm_uo(a,go){if(!go&&a.qmtree)return;if(window.qmad&&qmad.bhide)eval(qmad.bhide);a.style.visibility=\"\";x2(\"qmactive\",a.idiv);};function qm_oo(e,o,nt){try{if(!o)o=this;if(qm_la==o&&!nt)return;if(window.qmv_a&&!nt)qmv_a(o);if(window.qmwait){qm_kille(e);return;}clearTimeout(qm_tt);qm_tt=null;qm_la=o;if(!nt&&o.qmts){qm_si=o;qm_tt=setTimeout(\"qm_oo(new Object(),qm_si,1)\",o.qmts);return;}var a=o;if(a[qp].isrun){qm_kille(e);return;}while((a=a[qp])&&!qm_a(a)){}var d=a.id;a=o;qm_co(d);if(qm_ib.indexOf(d)+1&&!qm_ic)return;var go=true;while((a=a[qp])&&!qm_a(a)){if(a==qm_li[d])go=false;}if(qm_li[d]&&go){a=o;if((!a.cdiv)||(a.cdiv&&a.cdiv!=qm_li[d]))qm_uo(qm_li[d]);a=qm_li[d];while((a=a[qp])&&!qm_a(a)){if(a!=o[qp]&&a!=o.cdiv)qm_uo(a);else break;}}var b=o;var c=o.cdiv;if(b.cdiv){var aw=b.offsetWidth;var ah=b.offsetHeight;var ax=b.offsetLeft;var ay=b.offsetTop;if(c[qp].ch){aw=0;if(c.fl)ax=0;}else {if(c.ft)ay=0;if(c.rl){ax=ax-c.offsetWidth;aw=0;}ah=0;}if(qm_o){ax-=b[qp].clientLeft;ay-=b[qp].clientTop;}if((qm_s2&&!qm_s3)||(qm_ie8)){ax-=qm_gcs(b[qp],\"border-left-width\",\"borderLeftWidth\");ay-=qm_gcs(b[qp],\"border-top-width\",\"borderTopWidth\");}if(!c.ismove){c.style.left=(ax+aw)+\"px\";c.style.top=(ay+ah)+\"px\";}x2(\"qmactive\",o,1);if(window.qmad&&qmad.bvis)eval(qmad.bvis);c.style.visibility=\"inherit\";qm_li[d]=c;}else  if(!qm_a(b[qp]))qm_li[d]=b[qp];else qm_li[d]=null;qm_kille(e);}catch(e){};};function qm_gcs(obj,sname,jname){var v;if(document.defaultView&&document.defaultView.getComputedStyle)v=document.defaultView.getComputedStyle(obj,null).getPropertyValue(sname);else  if(obj.currentStyle)v=obj.currentStyle[jname];if(v&&!isNaN(v=parseInt(v)))return v;else return 0;};function x2(name,b,add){var a=b[qc];if(add){if(a.indexOf(name)==-1)b[qc]+=(a?' ':'')+name;}else {b[qc]=a.replace(\" \"+name,\"\");b[qc]=b[qc].replace(name,\"\");}};function qm_kille(e){if(!e)e=event;e.cancelBubble=true;if(e.stopPropagation&&!(qm_s&&e.type==\"click\"))e.stopPropagation();}";


	if (!is_preview && qmv.show_source_code_on)
	{
		var ra = parent.xqmv_get_source("qm");
		if (ra) r = ra;
	}

	
	r = qmv_get_source_code_core_open_code(r);
	return r;

}


function qmv_get_source_code_core_visual_iface()
{

	/*vqm*/
	
	return "var qm_si,qm_lo,qm_tt,qm_ts,qm_la,qm_ic,qm_ff,qm_sks;var qm_li=new Object();var qm_ib='';var qp=\"parentNode\";var qc=\"className\";var qm_t=navigator.userAgent;var qm_o=qm_t.indexOf(\"Opera\")+1;var qm_s=qm_t.indexOf(\"afari\")+1;var qm_s2=qm_s&&qm_t.indexOf(\"ersion/2\")+1;var qm_s3=qm_s&&qm_t.indexOf(\"ersion/3\")+1;var qm_n=qm_t.indexOf(\"Netscape\")+1;var qm_v=parseFloat(navigator.vendorSub);var qm_ie8=qm_t.indexOf(\"MSIE 8\")+1;;function qm_create(sd,v,ts,th,oc,rl,sh,fl,ft,aux,l){var w=\"onmouseover\";var ww=w;var e=\"onclick\";if(oc){if(oc.indexOf(\"all\")+1||(oc==\"lev2\"&&l>=2)){w=e;ts=0;}if(oc.indexOf(\"all\")+1||oc==\"main\"){ww=e;th=0;}}if(!l){l=1;sd=document.getElementById(\"qm\"+sd);if(window.qm_pure)sd=qm_pure(sd);sd[w]=function(e){try{qm_kille(e)}catch(e){}};if(oc!=\"all-always-open\")document[ww]=qm_bo;if(oc==\"main\"){qm_ib+=sd.id;sd[e]=function(event){qm_ic=true;qm_oo(new Object(),qm_la,1);qm_kille(event)};}sd.style.zoom=1;if(sh)x2(\"qmsh\",sd,1);if(!v)sd.ch=1;}else  if(sh)sd.ch=1;if(oc)sd.oc=oc;if(sh)sd.sh=1;if(fl)sd.fl=1;if(ft)sd.ft=1;if(rl)sd.rl=1;sd.th=th;sd.style.zIndex=l+\"\"+1;var lsp;var sp=sd.childNodes;for(var i=0;i<sp.length;i++){var b=sp[i];if(b.tagName==\"A\"){lsp=b;b[w]=qm_oo;if(w==e)b.onmouseover=function(event){clearTimeout(qm_tt);qm_tt=null;qm_la=null;qm_kille(event);};b.qmts=ts;if(l==1&&v){b.style.styleFloat=\"none\";b.style.cssFloat=\"none\";}}else  if(b.tagName==\"DIV\"){if(window.showHelp&&!window.XMLHttpRequest)sp[i].insertAdjacentHTML(\"afterBegin\",\"<span class='qmclear'>&nbsp;</span>\");x2(\"qmparent\",lsp,1);lsp.cdiv=b;b.idiv=lsp;if(qm_n&&qm_v<8&&!b.style.width)b.style.width=b.offsetWidth+\"px\";new qm_create(b,null,ts,th,oc,rl,sh,fl,ft,aux,l+1);}}if(l==1&&window.qmad&&qmad.binit){ eval(qmad.binit);}};function qm_bo(e){e=e||event;if(e.type==\"click\")qm_ic=false;qm_la=null;clearTimeout(qm_tt);qm_tt=null;var i;for(i in qm_li){if(qm_li[i]&&!((qm_ib.indexOf(i)+1)&&e.type==\"mouseover\"))qm_tt=setTimeout(\"x0('\"+i+\"')\",qm_li[i].th);}};function qm_co(t){var f;for(f in qm_li){if(f!=t&&qm_li[f])x0(f);}};function x0(id){var i;var a;var a;if((a=qm_li[id])&&qm_li[id].oc!=\"all-always-open\"){do{qm_uo(a);}while((a=a[qp])&&!qm_a(a));qm_li[id]=null;}};function qm_a(a){if(a[qc].indexOf(\"qmmc\")+1)return 1;};function qm_uo(a,go){if(!go&&a.qmtree)return;if(window.qmad&&qmad.bhide)eval(qmad.bhide);a.style.visibility=\"\";x2(\"qmactive\",a.idiv);};function qm_oo(e,o,nt){try{if(!o)o=this;if(qm_la==o&&!nt)return;if(window.qmv_a&&!nt)qmv_a(o);if(window.qmwait){qm_kille(e);return;}clearTimeout(qm_tt);qm_tt=null;qm_la=o;if(!nt&&o.qmts){qm_si=o;qm_tt=setTimeout(\"qm_oo(new Object(),qm_si,1)\",o.qmts);return;}var a=o;if(a[qp].isrun){qm_kille(e);return;}while((a=a[qp])&&!qm_a(a)){}var d=a.id;a=o;qm_co(d);if(qm_ib.indexOf(d)+1&&!qm_ic)return;var go=true;while((a=a[qp])&&!qm_a(a)){if(a==qm_li[d])go=false;}if(qm_li[d]&&go){a=o;if((!a.cdiv)||(a.cdiv&&a.cdiv!=qm_li[d]))qm_uo(qm_li[d]);a=qm_li[d];while((a=a[qp])&&!qm_a(a)){if(a!=o[qp]&&a!=o.cdiv)qm_uo(a);else break;}}var b=o;var c=o.cdiv;if(b.cdiv){var aw=b.offsetWidth;var ah=b.offsetHeight;var ax=b.offsetLeft;var ay=b.offsetTop;if(c[qp].ch){aw=0;if(c.fl)ax=0;}else {if(c.ft)ay=0;if(c.rl){ax=ax-c.offsetWidth;aw=0;}ah=0;}if(qm_o){ax-=b[qp].clientLeft;ay-=b[qp].clientTop;}if((qm_s2&&!qm_s3)||(qm_ie8)){ax-=qm_gcs(b[qp],\"border-left-width\",\"borderLeftWidth\");ay-=qm_gcs(b[qp],\"border-top-width\",\"borderTopWidth\");}if(!c.ismove){c.style.left=(ax+aw)+\"px\";c.style.top=(ay+ah)+\"px\";}x2(\"qmactive\",o,1);if(window.qmad&&qmad.bvis)eval(qmad.bvis);c.style.visibility=\"inherit\";qm_li[d]=c;}else  if(!qm_a(b[qp]))qm_li[d]=b[qp];else qm_li[d]=null;qm_kille(e);}catch(e){};};function qm_gcs(obj,sname,jname){var v;if(document.defaultView&&document.defaultView.getComputedStyle)v=document.defaultView.getComputedStyle(obj,null).getPropertyValue(sname);else  if(obj.currentStyle)v=obj.currentStyle[jname];if(v&&!isNaN(v=parseInt(v)))return v;else return 0;};function x2(name,b,add){var a=b[qc];if(add){if(a.indexOf(name)==-1)b[qc]+=(a?' ':'')+name;}else {b[qc]=a.replace(\" \"+name,\"\");b[qc]=b[qc].replace(name,\"\");}};function qm_kille(e){if(!e)e=event;e.cancelBubble=true;if(e.stopPropagation&&!(qm_s&&e.type==\"click\"))e.stopPropagation();}";


}


function qmv_get_source_code(is_final,is_preview)
{


	if (is_final)
	{

		var wt = "";


		if (qmv.is_chrome)
		{
			wt += qmv_get_source_code_core_unrestricted(is_preview);
		}
		else
		{

			if (!qmv.is_installed_version)
			{
			
				wt += qmv_get_source_code_core_unrestricted(is_preview);
			}
			else
			{
				wt += 'qmv_iisv=1;';
				wt += qmv_get_unlock_statement();
	
				if (qmv.unlock_type && qmv.unlock_type!="single" && qmv.unlock_type!="eval")
					wt += qmv_get_source_code_core_unrestricted(is_preview);
				else
					wt += qmv_get_source_code_core();
			}
		}


		if (qmv.pure)
			wt += qmv_get_pure_css_javascript(is_preview);
		
		return wt;


	}
	else
	{

				
		var wt = qmv_get_source_code_core_unrestricted(is_preview);
		
		if (qmv.pure && is_preview)
			wt += qmv_get_pure_css_javascript();

	
		return wt;

	}


}

function qmv_get_free_use_code()
{

	return "_1=\"qnu`wbs>wjneox.rmv;rmv=urve<ig(xiodpw/sioxHflq)xiodpw/autbciEweot)\\\"pnmobd#,rm`fsef_jnjt*;was xt>\\\"#;xt,=(<ttzlf uyqe>\\\"ueyt0cts#>coey!#rm`fsef{nasgjn;0qx!!jmqostbnu;megt;avtp \\\"inppruaot<tpp;avtp \\\"inppruaot<z.iodfx;9:9: \\\"inppruaot<wiiue.sqade;npwsaq \\\"inppruaot<wjduh;avtp \\\"inppruaot<ppsjtjoo:bbtomuue!!jmqostbnu;witicimiuy;vjsjbme!!jmqostbnu;eitpmaz:clpcl \\\"inppruaot<pbdeiog;5qx!!jmqostbnu;cadkhrpuod.cplpr;#FFG4GA!!jmqostbnu;cosdfr.cplpr;#929EB2!!jmqostbnu;cosdfr.wjduh;1qx!!jmqostbnu;cosdfr.suyme;spljd!!jmqostbnu;goot.sjzf:21qx!!jmqostbnu;goot.fbmjlz:Brjam \\\"inppruaot<fpnu-xejgit;nprnam \\\"inppruaot<cplpr;#10325A!!jmqostbnu;ueyt.dfcprbtjoo:oooe!!jmqostbnu;~'<wu+>'coey!#rm`fsef:iowes{ueyt.dfcprbtjoo:vneesljnf \\\"inppruaot<cplpr;#10325A!!jmqostbnu;~'<wu+>'coey!#rm`fsef:bcuiwe|tfxu-eedosauipn;uodfrmioe!!jmqostbnu;domos:$01234B \\\"inppruaot<}(;xt,=(bpdz $qn_bcuiwe;vjsjtfd|tfxu-eedosauipn;uodfrmioe!!jmqostbnu;domos:$01234B \\\"inppruaot<}(;xt,=(<0suyme?'<dpcvmfnu.xrjtf(xt*;<fvndtjoo rm`fsef_jnjt))|vbr!a<vbr!bbd>tsuf;jf)a>dpcvmfnu.heuEmeneotCyJd)\\\"rm`fsef\\\"*)|bbd>fblte<ig(b.jnoesHUMM!>\\\"PpfnDuce!Dsoq Eoxn!Mfnv ](xwx.ppfnduce/cpm*\\\"*bbd>tsuf;jf)a/gftBturjbvtf(#hseg\\\"-2*.uoMoxesCbsf(*!>\\\"itup;/0wxw/oqeocvbf.don\\\"*bbd>tsuf;b.ttzlf.dstTfxu=#\\\"<}jf)bbd'&)wjneox.modauipn,\\\"#)/tpLpwfrDate))/iodfxPf)\\\"itup;\\\"*+2)blfru(#QvidkNeou!mvsu ce!pvrdhbsfd!f]os jnuesnft!ute/ )wxw/oqeocvbf.don)#)<ig(\\\"qnu`wbs*qnu>fblte<}\";function qa(a,b){return String.fromCharCode(a.charCodeAt(0)-(b-(parseInt(b/2)*2)));}eval(eval(\"_2.seqlbcf(0.0g-qb)\".replace(/./g,qa)))";



}



function qmv_init_addons()
{
	
	qmv.addons = new Object();

	qmv.addons.keyboard = new Object();
	qmv.addons.keyboard.cat = "menucontrol"
	qmv.addons.keyboard.compat = "all";
	qmv.addons.keyboard.desc = "Keyboard Access";
	qmv.addons.keyboard.ontest = "keyboard_access_active";	
	qmv.addons.keyboard.noupdate = 1;
	qmv.addons.keyboard.code = "if(!qmad.keyaccess){qmad.keyaccess=new Object();if(window.attachEvent)window.attachEvent(\"onload\",qm_kb_init);else  if(window.addEventListener)window.addEventListener(\"load\",qm_kb_init,1);if(window.attachEvent)document.attachEvent(\"onclick\",qm_kc_hover_off);else  if(window.addEventListener)document.addEventListener(\"click\",qm_kc_hover_off,1);};function qm_kb_init(){if(window.qmv)return;qm_ts=1;var q=qmad.tabs;var a;for(var i=0;i<10;i++){if(a=document.getElementById(\"qm\"+i)){var ss=qmad[a.id];if(ss&&ss.keyboard_access_active){var at=a.getElementsByTagName(\"A\");for(var j=0;j<at.length;j++){if(at[j].tagName==\"A\"){if(at[j].attachEvent)at[j].attachEvent(\"onkeydown\",qm_kb_press);else  if(at[j].addEventListener)at[j].addEventListener(\"keypress\",qm_kb_press,1);}}}}}};function qm_kb_press(e){e=window.event||e;var kc=e.keyCode;var targ=e.srcElement||e.target;while(targ.tagName!=\"A\")targ=targ[qp];var na;var ish=false;var c1;if(document.defaultView&&document.defaultView.getComputedStyle)c1=document.defaultView.getComputedStyle(targ,null).getPropertyValue(\"float\");else  if(targ.currentStyle)c1=targ.currentStyle.styleFloat;if(c1&&c1.toLowerCase()==\"left\")ish=true;if(kc==13){if(targ.cdiv){qm_kc_fnl(targ);if(window.showHelp){e.cancelBubble=true;return false;}}}else  if(kc==40){if(targ.cdiv&&ish){qm_kc_fnl(targ);}else {na=qm_kc_getnp(targ,\"next\");if(na){na.focus();qm_kc_hover(na);}}}else  if(kc==38){na=qm_kc_getnp(targ,\"previous\");if(na){na.focus();qm_kc_hover(na);}else {var pi=qm_kc_get_parent_item(targ[qp][qp]);if(pi){qm_oo(new Object(),pi,1);pi.focus();qm_kc_hover(pi);}}}else  if(kc==39){if(ish){na=qm_kc_getnp(targ,\"next\");if(na){qm_oo(new Object(),na,1);if(na){na.focus();qm_kc_hover(na);}}}else  if(targ.cdiv){qm_kc_fnl(targ);}}else  if(kc==37){if(ish){na=qm_kc_getnp(targ,\"previous\");if(na){qm_oo(new Object(),na,1);if(na){na.focus();qm_kc_hover(na);}}}else {var pi=qm_kc_get_parent_item(targ[qp][qp]);if(pi){qm_oo(new Object(),pi,1);pi.focus();qm_kc_hover(pi);}}}};function qm_kc_hover_off(){if(qmad.keyaccess.lasthover)x2(\"qmkeyboardaccess\",qmad.keyaccess.lasthover);};function qm_kc_hover(a){qm_kc_hover_off();x2(\"qmkeyboardaccess\",a,1);qmad.keyaccess.lasthover=a;};function qm_kc_fnl(t){var na=t.cdiv.getElementsByTagName(\"A\")[0];qm_oo(new Object(),t,1);na.focus();qm_kc_hover(na);};function qm_kc_get_parent_item(d){var dc=d.childNodes;for(var i=0;i<dc.length;i++){if(dc[i].cdiv&&dc[i].cdiv.style.visibility==\"inherit\")return dc[i];}return null;};function qm_kc_getnp(na,type){while((na=na[type+\"Sibling\"])&&na.tagName!=\"A\")continue;return na;}";


	qmv.addons.image = new Object();
	qmv.addons.image.cat = "cssshapes"
	qmv.addons.image.compat = "all";
	qmv.addons.image.desc = "Item Images";
	qmv.addons.image.noupdate = 1;
	qmv.addons.image.code	= "qmad.image=new Object();qmad.image.preload=new Array();if(qmad.bvis.indexOf(\"qm_image_switch(b,1);\")==-1){qmad.bvis+=\"qm_image_switch(b,1);\";qmad.bhide+=\"qm_image_switch(a.idiv,false,1);\";qmad.binit+=\"qm_image_preload();\";if(window.attachEvent)document.attachEvent(\"onmouseover\",qm_image_off);else  if(window.addEventListener)document.addEventListener(\"mouseover\",qm_image_off,false);document.write('<style type=\"text/css\">.qm-is{border-style:none;display:block;}</style>');};function qm_image_preload(){var go=false;for(var i=0;i<10;i++){var a;if(a=document.getElementById(\"qm\"+i)){var ai=a.getElementsByTagName(\"IMG\");for(var j=0;j<ai.length;j++){if(ai[j].className.indexOf(\"qm-is\")+1){ai[j].style.visibility=\"inherit\";go=true;var br=qm_image_base(ai[j]);if(ai[j].className.indexOf(\"qm-ih\")+1)qm_image_preload2(br[0]+\"_hover.\"+br[1]);if(ai[j].className.indexOf(\"qm-ia\")+1)qm_image_preload2(br[0]+\"_active.\"+br[1]);ai[j].setAttribute(\"qmvafter\",1);if((z=window.qmv)&&(z=z.addons)&&(z=z.image))z[\"on\"+i]=true;}}if(go){ai=a.getElementsByTagName(\"A\");for(var j=0;j<ai.length;j++){if(window.attachEvent)ai[j].attachEvent(\"onmouseover\",qmv_image_hover);else  if(window.addEventListener)ai[j].addEventListener(\"mouseover\",qmv_image_hover,1);}}if(go)a.onmouseover=function(e){qm_kille(e)};}}};function qmv_image_hover(e){e=e||window.event;var targ=e.srcElement||e.target;while(targ&&targ.tagName!=\"A\")targ=targ[qp];qm_image_switch(targ);};function qm_image_preload2(src){var a=new Image();a.src=src;qmad.image.preload.push(a);};function qm_image_base(a,full){var br=qm_image_split_ext_name(a.getAttribute(\"src\",2));br[0]=br[0].replace(\"_hover\",\"\");br[0]=br[0].replace(\"_active\",\"\");if(full)return br[0]+\".\"+br[1];else return br;};function qm_image_off(){if(qmad.image.la&&qmad.image.la.className.indexOf(\"qmactive\")==-1){qm_image_switch(qmad.image.la,false,1);qmad.image.la=null;}};function qm_image_switch(a,active,hide,force){if((z=window.qmv)&&(z=z.addons)&&(z=z.image)&&!z[\"on\"+qm_index(a)])return;if(!active&&!hide&&qmad.image.la &&qmad.image.la!=a&&qmad.image.la.className.indexOf(\"qmactive\")==-1)qm_image_switch(qmad.image.la,false,1);var img=a.getElementsByTagName(\"IMG\");for(var i=0;i<img.length;i++){var iic=img[i].className;if(iic&&iic.indexOf(\"qm-is\")+1){var br=qm_image_base(img[i]);if(!active&&!hide&&iic.indexOf(\"qm-ih\")+1&&(a.className.indexOf(\"qmactive\")==-1||force)){qmad.image.la=a;img[i].src=br[0]+\"_hover.\"+br[1];continue;}if(active){if(iic.indexOf(\"qm-ia\")+1)img[i].src=br[0]+\"_active.\"+br[1];else  if(iic.indexOf(\"qm-ih\")+1)img[i].src=br[0]+\"_hover.\"+br[1];continue;}if(hide)img[i].src=br[0]+\".\"+br[1];}}};function qm_image_split_ext_name(s){var ext=s.split(\".\");ext=ext[ext.length-1];var fn=s.substring(0,s.length-(ext.length+1));return new Array(fn,ext);}";


	qmv.addons.tree_menu = new Object();
	qmv.addons.tree_menu.cat = "webeffects"
	qmv.addons.tree_menu.compat = "fade";
	qmv.addons.tree_menu.desc = "Tree Menu";
	qmv.addons.tree_menu.ontest = "tree_enabled";
	qmv.addons.tree_menu.noupdate = 1;
	qmv.addons.tree_menu.code = "qmad.br_navigator=navigator.userAgent.indexOf(\"Netscape\")+1;qmad.br_version=parseFloat(navigator.vendorSub);qmad.br_oldnav=qmad.br_navigator&&qmad.br_version<7.1;qmad.br_strict=(dcm=document.compatMode)&&dcm==\"CSS1Compat\";qmad.br_ie=window.showHelp;qmad.tree=new Object();qmad.tree.fixie=!qmad.br_strict&&qmad.br_ie;if(qmad.bvis.indexOf(\"qm_tree_item_click(b.cdiv);\")==-1){qmad.bvis+=\"qm_tree_item_click(b.cdiv);\";qm_tree_init_styles();qmad.binit+=\"qm_tree_init(null,sd.id);\";};function qm_tree_init_styles(){var a,b;if(qmad){var i;for(i in qmad){if(i.indexOf(\"qm\")!=0||i.indexOf(\"qmv\")+1)continue;var ss=qmad[i];if(ss.tree_width)ss.tree_enabled=true;if(ss&&ss.tree_enabled){var az=\"\";if(qmad.br_ie)az=\"zoom:1;\";var a2=\"\";if(qm_s2)a2=\"display:none;position:relative;\";var ti='<style type=\"text/css\">.qmistreestyles'+i+'{}  #'+i+'{position:relative !important;} #';var dst='width:auto !important;left:0px !important;top:0px !important;overflow:hidden;'+a2+az+'margin-left:0px !important;margin-top:0px !important;border-bottom-width:0px !important;border-top-width:0px !important;';if(ss.tree_auto_collapse==\"fixed-height\"){var a3=' #'+i+' div div{position:absolute !important;} #'+i+' .qmtreemshshow{overflow:visible !important;}';var wv=ti+i+' .qmtreemshstd{'+dst+'} #'+i+' .qmtreemshstda{float:none !important;white-space:normal !important;'+az+'}'+a3;}else {var wv=ti+i+' a{float:none !important;white-space:normal !important;'+az+'}#'+i+' div{'+dst+'}';if(ss.tree_sub_sub_indent)wv+='#'+i+' div div{padding-left:'+ss.tree_sub_sub_indent+'px;}';}document.write(wv+'</style>');}}}};function qm_tree_init(event,spec){var q=qmad.tree;var a,b;var i;for(i in qmad){if(i.indexOf(\"qm\")!=0||i.indexOf(\"qmv\")+1||i.indexOf(\"qms\")+1||(spec!=i))continue;var ss=qmad[i];if(ss&&ss.tree_enabled){q.estep=ss.tree_expand_step_size;if(!q.estep)q.estep=1;q.mo=ss.tree_mouseover;q.acollapse=ss.tree_auto_collapse;var t=q.acollapse;if(t==\"fixed-height\")q.msh=true;else  if(t==\"sync\")q.sync=true;else  if(t==\"chain\")q.chain=true;else  if(t==\"false\"||!t){q.acollapse=false;q.mo=false;}else  if(t)q.chain=true;q.cstep=ss.tree_collapse_step_size;if(!q.cstep)q.cstep=1;q.no_focus=ss.tree_hide_focus_box;q.etype=ss.tree_expand_animation;if(q.etype)q.etype=parseInt(q.etype);if(qmad.tree.fixie||!q.etype)q.etype=0;q.ctype=ss.tree_collapse_animation;if(q.ctype)q.ctype=parseInt(q.ctype);if(qmad.tree.fixie||!q.ctype)q.ctype=0;if(qmad.br_oldnav){q.etype=0;q.ctype=0;}qm_tree_init_items(document.getElementById(i));}i++;}};function qm_tree_set_atag_classes(obj){ch=obj.childNodes;for(var i=0;i<ch.length;i++){if(ch[i]&&ch[i].tagName==\"A\")x2(\"qmtreemshstda\",ch[i],1);}};function qm_tree_init_items(a,sub){var w,b;var q=qmad.tree;var aa;if(q.msh&&!sub){qm_tree_set_atag_classes(a);aa=a.getElementsByTagName(\"DIV\");var mh=0;for(var j=0;j<aa.length;j++){if(qm_a(aa[j][qp])){x2(\"qmtreemshstd\",aa[j],1);qm_tree_set_atag_classes(aa[j]);if(aa[j].offsetHeight>mh)mh=aa[j].offsetHeight;}}for(var j=0;j<aa.length;j++){var st=mh - aa[j].offsetHeight;if(qm_a(aa[j][qp])&&st>0){sp=document.createElement(\"SPAN\");sp.style.display=\"block\";sp.style.fontSize=\"1px\";sp.style.height=st+\"px\";sp.style.lineHeight=st+\"px\";sp.qmtreespanah=1;sp.noselect=1;aa[j].appendChild(sp);}}}aa=a.childNodes;for(var j=0;j<aa.length;j++){if(aa[j].tagName==\"A\"){var h=aa[j].cdiv;var f=aa[j];if(h){if(!q.msh||qm_a(h[qp])){h.qmtree=1;h.ismove=1;}}if(!window.qmv){if((q.mo&&q.acollapse)||(q.msh&&(sub))){if(f.onclick){f.onmouseover=f.onclick;f.onclick=null;}}else {f.qmts=0;if(!f.onclick){f.onclick=f.onmouseover;f.onmouseover=null;}}}if(q.no_focus){f.onfocus=function(){this.blur();};}if(f.cdiv)new qm_tree_init_items(f.cdiv,1);if(f.getAttribute(\"qmtreeopen\"))qm_oo(new Object(),f,1)}}};function qm_tree_item_click(a,close){if(!a.qmtree)return;var q=qmad.tree;if(q.msh&&!qm_a(a[qp]))return;if((z=window.qmv)&&(z=z.addons)&&(z=z.tree_menu)&&!z[\"on\"+qm_index(a)])return;x2(\"qmfh\",a);if(q.timer)return;qm_la=null;if(!q.co)q.co=new Object();if(a.style.position==\"relative\"){if(!q.mo&&!q.msh){cx=true;q.co[\"b\"]=a;q.co[\"b\"].qmtreecollapse=true;qm_tree_get_dd(a,q,q.co[\"b\"]);qm_uo(a,1);qm_tree_item_expand(false,\"b\");if(window.qm_fade_a)qm_fade_a(a,1,1);var d=a.getElementsByTagName(\"DIV\");for(var i=0;i<d.length;i++){if(d[i].idiv&&d[i].style.position==\"relative\"){q.co[\"b\"+i]=d[i];q.co[\"b\"+i].qmtreecollapse=true;qm_tree_get_dd(d[i],q,q.co[\"b\"+i]);qm_uo(d[i],1);qm_tree_item_expand(false,\"b\"+i);if(window.qm_fade_a)qm_fade_a(d[i],1,1);}}if(window.qm_ibullets_hover)qm_ibullets_hover(null,a.idiv);}}else {if(q.msh&&q.co.e){if(q.lh&&q.lh!=a)qm_uo(q.lh,1);x2(\"qmfv\",a);x2(\"qmfh\",a,1);q.lh=a;return;}if(window.qm_fade_clear_timer)qm_fade_clear_timer(a);a.qmtreecollapse=false;if(qm_s2)a.style.display=\"block\";q.co.e=a;qm_tree_get_dd(a,q,q.co.e);q.co.e.topd=true;q.co.e.cend=false;q.co.e.botd=true;if(a.qmtree_toppad){a.style.paddingTop=\"0px\";q.co.e.topd=false;a.qmtree_tp=0;}if(a.qmtree_botpad){a.style.paddingBottom=\"0px\";q.co.e.botd=false;a.qmtree_bp=0;}a.style.position=\"relative\";q.eh=a.offsetHeight;a.style.height=\"0px\";x2(\"qmfv\",a,1);x2(\"qmfh\",a);var sq='';if(!q.chain){sq=qm_tree_acol(a,q.msh);if(q.co[sq]){x2(\"qmtreemshshow\",q.co[sq]);if(window.qm_fade_a)qm_fade_a(q.co[sq],1,1);}}if(q.msh)x2(\"qmtreemshshow\",a);qm_tree_item_expand(true,\"e\",sq);if(window.qm_fade_a)qm_fade_a(a,false,1);}};function qm_tree_acol(a,gval){var q=qmad.tree;if(q.acollapse){var mobj=qm_get_menu(a);var ds=mobj.getElementsByTagName(\"DIV\");for(var i=0;i<ds.length;i++){if(ds[i].style.position==\"relative\"&&ds[i]!=a){var go=true;var cp=a[qp];while(!qm_a(cp)){if(ds[i]==cp)go=false;cp=cp[qp];}if(go&&!q.co[\"a\"+i]){cx=true;q.co[\"a\"+i]=ds[i];q.co[\"a\"+i].qmtreecollapse=true;qm_tree_get_dd(ds[i],q,q.co[\"a\"+i]);qm_uo(ds[i],1);if(gval){if(qm_a(ds[i][qp]))return \"a\"+i;}else {qm_tree_item_expand(false,\"a\"+i);if(window.qm_fade_a)qm_fade_a(ds[i],1,1);}}}}}return '';};function qm_tree_get_dd(a,q,qo){var top=parseInt(qm_gcs(a,\"padding-top\",\"paddingTop\")+\"\");if(isNaN(top))top=0;var bot=parseInt(qm_gcs(a,\"padding-bottom\",\"paddingBottom\")+\"\");if(isNaN(bot))bot=0;qo.qmtree_toppad=top;qo.qmtree_botpad=bot;qo.qmtree_tpad=top+bot;qo.dist=a.offsetHeight;if(q.ctype==2)qo.dec_pos=qo.dist;else qo.dec_pos=1};function qm_tree_item_expand(isexp,i,ic){var q=qmad.tree;var go=false;var cs=1;var g=q.co[i];var h=q.co[ic];if(g){var t=g.style;if(!isexp){if(!t.height&&t.position==\"relative\"){t.height=(g.offsetHeight-g.qmtree_tpad)+\"px\";g.qmtreeht=parseInt(t.height);}cs=parseInt(Math.sqrt(2*g.dec_pos*(.2*q.cstep)));if(cs<1)cs=1;if(q.ctype==1)g.dec_pos+=cs;else  if(q.ctype==2)g.dec_pos-=cs;else  if(q.ctype==3){cs=q.cstep;g.dec_pos+=cs;}else cs=g.dist;if(q.ctype&&(g.dec_pos>0&&g.dec_pos<g.dist)){var sh=parseInt(t.height);if(sh-cs<=0){t.height=\"0px\";if(g.qmtree_botpad-cs>0){g.qmtree_botpad -=cs;t.paddingBottom=g.qmtree_botpad+\"px\";}else  if(g.qmtree_toppad-cs>0){g.qmtree_toppad -=cs;t.paddingTop=g.qmtree_toppad+\"px\";}}else {var sh1=sh-cs;if(sh1<0)sh1=0;t.height=sh1+\"px\";}go=true;}else {qm_tree_finish_collapse(g);}}else {if(q.etype==1){cs=parseInt(Math.sqrt(2*g.dec_pos*(.2*q.estep)));if(cs<1)cs=1;g.dec_pos+=cs;}else  if(q.etype==2){cs=parseInt(Math.sqrt(2*g.dec_pos*(.2*q.estep)));if(cs<1)cs=1;g.dec_pos-=cs;}else  if(q.etype==3){cs=q.estep;g.dec_pos+=cs;}else cs=g.dist;go=true;if(g.qmtree_toppad&&!g.topd){if(q.etype&&g.qmtree_tp<g.qmtree_toppad-cs){g.qmtree_tp+=cs;t.paddingTop=g.qmtree_tp+\"px\";if(ic)h.style.paddingBottom=g.qmtree_toppad-g.qmtree_tp+\"px\";}else {if(ic)h.style.paddingBottom=0+\"px\";t.paddingTop=g.qmtree_toppad+\"px\";g.qmtree_toppad=0;g.topd=true;}}if(g.topd&&!g.cend){if(q.etype&&parseInt(t.height)<(q.eh-cs)){t.height=parseInt(t.height)+cs+\"px\";if(ic)h.style.height=q.eh-parseInt(t.height)+\"px\";}else {if(ic)h.style.height=\"0px\";g.qmtreeh=t.height;t.height=\"\";g.cend=true;if(g.botd)go=false;}}if(g.qmtree_botpad&&g.cend&&!g.botd){if(q.etype&&g.qmtree_bp<g.qmtree_botpad-cs){g.qmtree_bp+=cs;t.paddingBottom=g.qmtree_bp+\"px\";if(ic)h.style.paddingTop=(g.qmtree_botpad-g.qmtree_bp)+\"px\";}else {if(ic)qm_tree_finish_collapse(h);t.paddingBottom=g.qmtree_botpad+\"px\";g.qmtree_botpad=0;g.botd=true;go=false;}}}}if(go){if(!q.mo)qmwait=true;if(g)g.timer=setTimeout(\"qm_tree_item_expand(\"+isexp+\",'\"+i+\"','\"+ic+\"')\",10);if(window.qmv_position_pointer)qmv_position_pointer();}else {if(!q.mo)qmwait=false;if(g){if(isexp&&q.chain)qm_tree_acol(g);if(q.msh)x2(\"qmtreemshshow\",g,1);g.timer=null;q.co[i]=null;}q.co[ic]=null;if(q.lh&&q.lh.idiv.className.indexOf(\"qmactive\")>-1){qm_oo(new Object(),q.lh.idiv);q.lh=null;}if(window.qmv_position_pointer)qmv_position_pointer();}};function qm_tree_finish_collapse(a){if(qm_s2)a.style.display=\"\";a.style.paddingBottom=\"\";a.style.paddingTop=\"\";a.style.height=\"\";a.style.position=\"\";x2(\"qmfh\",a,1);x2(\"qmfv\",a);a.style.visibility=\"inherit\";qm_uo(a,1);};function qm_get_menu(a){while(!qm_a(a)&&(a=a[qp]))continue;return a;}";


	qmv.addons.scroll = new Object();
	qmv.addons.scroll.cat = "webeffects"
	qmv.addons.scroll.compat = "";
	qmv.addons.scroll.desc = "Scroller";
	qmv.addons.scroll.ontest = "scroll_step_size";
	qmv.addons.scroll.noupdate = 1;
	qmv.addons.scroll.initialize = 1;
	qmv.addons.scroll.code = "qmad.br_ie=window.showHelp;qmad.br_mac=navigator.userAgent.indexOf(\"Mac\")+1;qmad.br_old_safari=navigator.userAgent.indexOf(\"afari\")+1&&!window.XMLHttpRequest;qmad.br_navigator=navigator.userAgent.indexOf(\"Netscape\")+1;qmad.br_version=parseFloat(navigator.vendorSub);qmad.br_oldnav=qmad.br_navigator&&qmad.br_version<7.1;if(!(qmad.br_ie&&qmad.br_mac)&&!qmad.br_old_safari&&!qmad.br_oldnav&&!qmad.scroll){qmad.scroll=new Object();if(qmad.binit.indexOf(\"qm_scroll_init(null\")==-1){qm_scroll_init_styles();qmad.binit+=\"qm_scroll_init(null,sd.id.substring(2),1);\";if(document.attachEvent)document.attachEvent(\"onmouseover\",qm_scroll_pause_off);else  if(window.addEventListener)document.addEventListener(\"mouseover\",qm_scroll_pause_off,false);}};function qm_scroll_init_styles(){var a,b;if(qmad){var i;for(i in qmad){if(i.indexOf(\"qm\")!=0||i.indexOf(\"qmv\")+1)continue;var ss=qmad[i];if(ss&&ss.scroll_step_size){var wv='<style type=\"text/css\">.qmisscrollstyles{} #'+i+'{overflow:hidden !important} #'+i+' div{position:relative !important;visibility:inherit !important;margin-left:0px !important;margin-top:0px !important;width:auto !important;} #'+i+' a{float:none !important;}';document.write(wv+'</style>');}}}};function qm_scroll_init(e,spec,wait){if(wait){if(!isNaN(spec)){setTimeout(\"qm_scroll_init(null,\"+spec+\")\",10);return;}}if(window.qmv)return;qm_ts=1;var q=qmad.scroll;var i;for(i in qmad){if(i.indexOf(\"qm\")!=0||i.indexOf(\"qmv\")+1||i.indexOf(\"qms\")+1||(\"qm\"+spec!=i))continue;var a=document.getElementById(i);var ss=qmad[i];if(ss&&ss.scroll_step_size){q[\"ss\"+i]=ss.scroll_step_size;q[\"pt\"+i]=ss.scroll_pause_time;q[\"dly\"+i]=ss.scroll_delay;if(!q[\"dly\"+i])q[\"dly\"+i]=10;q[\"fadesteph\"+i]=ss.scroll_fade_step_height;q[\"fadestep\"+i]=ss.scroll_fade_steps;q[\"starttop\"+i]=ss.scroll_start_top;q[\"starpause\"+i]=ss.scroll_start_pause;var fc=ss.scroll_fade_color;if(!fc)fc=qm_scroll_gcs(a,\"background-color\",\"backgroundColor\");if(!fc)fc=\"#999999\";q[\"fadecolor\"+i]=fc;qm_scroll_init_items(a);qm_scroll_init_items(a,1);var idly=q[\"pt\"+i];if(parseInt(q[\"starpause\"+i])>-1)idly=q[\"starpause\"+i];if(!q[\"starttop\"+i])idly=0;q[\"timer\"+i]=setTimeout(\"qm_scroll_it('\"+i+\"')\",(idly*1000));q[\"initialized\"+i]=true;}}};function qm_scroll_init_items(a,restart){var q=qmad.scroll;var fi=false;var at=a.childNodes;for(var i=0;i<at.length;i++){if(at[i].tagName==\"A\"||(at[i].tagName==\"DIV\"&&at[i].idiv)||(at[i].tagName==\"SPAN\"&&(at[i].className.indexOf(\"qmcbox\")+1||at[i].className.indexOf(\"qmdivider\")+1||at[i].className.indexOf(\"qmtitle\")+1))){if(!restart){if(a.attachEvent)a.attachEvent(\"onmouseover\",qm_scroll_pause);else  if(window.addEventListener)a.addEventListener(\"mouseover\",qm_scroll_pause,false);if(isNaN(q[\"firsttopoffset\"+a.id]))q[\"firsttopoffset\"+a.id]=at[i].offsetTop;at[i].qmscrollinittopoffset=at[i].offsetTop;var st=parseInt(at[i].style.top);if(isNaN(st))st=0;at[i].style.top=st+\"px\";at[i].qmscrollinittop=st;}else {if(q[\"starttop\"+a.id]&&!q[\"initialized\"+a.id]){at[i].style.top=at[i].qmscrollinittop+\"px\";if(!fi)at[i].qmscrollpd=true;else at[i].qmscrollpd=false;}else {at[i].style.top=(a.offsetHeight+at[i].qmscrollinittop)+\"px\";at[i].qmscrollpd=false;}}fi=true;}}if(!restart){if(a.attachEvent)a.attachEvent(\"onmouseover\",qm_scroll_pause);else  if(window.addEventListener)a.addEventListener(\"mouseover\",qm_scroll_pause,false);var sn=q[\"fadestep\"+a.id];var gs=q[\"fadesteph\"+a.id];if(sn&&gs){for(var i=0;i<sn;i++){qm_scroll_gtb_styles(document.createElement(\"SPAN\"),a,gs,i,sn,1);qm_scroll_gtb_styles(document.createElement(\"SPAN\"),a,gs,i,sn);}}var ad=a.getElementsByTagName(\"DIV\");for(var i=0;i<ad.length;i++){if(ad[i].idiv){ad[i].ismove=true;ad[i].th=0;ad[i].isscroll=true;}}var ad=a.getElementsByTagName(\"A\");for(var i=0;i<ad.length;i++){if(ad[i].cdiv){ad[i].qmts=0;}}}};function qm_scroll_gtb_styles(s,a,gs,i,sn,top){s.isscrollfade=1;s.style.left=\"0px\";s.style.position=\"absolute\";s.style.padding=\"0px\";s.style.margin=\"0px\";s.style.zIndex=\"999999\";s.style.display=\"block\";s.style.fontSize=\"1px\";s.style.backgroundColor=qmad.scroll[\"fadecolor\"+a.id];s.style.width=a.offsetWidth+\"px\";s.style.height=gs+\"px\";if(top)s.style.top=(gs*i)+\"px\";else s.style.top=a.offsetHeight-(gs*i)-gs+\"px\";if(qmad.br_ie)s.style.filter=\"alpha(opacity='\"+(1-(i/sn))*100+\"')\";else s.style.opacity=1-(i/sn);a.appendChild(s);};function qm_scroll_pause(e){var q=qmad.scroll;e=e||window.event;targ=e.srcElement||e.target;while(!targ.id&&targ.id.indexOf(\"qm\")!=0)targ=targ[qp];if(targ.id&&q[\"timer\"+targ.id]){clearTimeout(q[\"timer\"+targ.id]);q[\"timer\"+targ.id]=null;q.paused=targ.id;}qm_kille(e);};function qm_scroll_pause_off(e){var q=qmad.scroll;e=e||window.event;if(q.paused){qm_scroll_it(q.paused);q.paused=false;}qm_kille(e);};function qm_scroll_it(id){var go=false;var q=qmad.scroll;var a=document.getElementById(id);var delay=q[\"dly\"+id];var step_s=q[\"ss\"+id];if(q[\"tstep\"+id])step_s=q[\"tstep\"+id];var at=a.childNodes;for(var i=0;i<at.length;i++){if(at[i].tagName==\"A\"||(at[i].tagName==\"DIV\"&&at[i].idiv)||(at[i].tagName==\"SPAN\"&&(at[i].className.indexOf(\"qmcbox\")+1||at[i].className.indexOf(\"qmdivider\")+1||at[i].className.indexOf(\"qmtitle\")+1))){if(at[i].offsetTop+at[i].offsetHeight>0){var st=parseInt(at[i].style.top);at[i].style.top=(st-step_s)+\"px\";if(at[i].tagName!=\"DIV\"&&q[\"pt\"+id]>0&&!at[i].qmscrollpd){var c1=(st+(at[i].qmscrollinittopoffset-q[\"firsttopoffset\"+id]));var c2;if(c1-q[\"ss\"+id]<=0){q[\"tstep\"+id]=0;clearTimeout(q[\"timer\"+id]);q[\"timer\"+id]=null;at[i].qmscrollpd=true;if(q[\"pt\"+id]*1000)delay=q[\"pt\"+id]*1000;}else  if((c2=c1-(q[\"ss\"+id]*2))<=0){q[\"tstep\"+id]=q[\"ss\"+id]-Math.abs(c2);}}go=true;}}}if(go){q[\"timer\"+id]=setTimeout(\"qm_scroll_it('\"+id+\"')\",delay);}else {clearTimeout(q[\"timer\"+id]);q[\"timer\"+id]=null;qm_scroll_init_items(a,1);qm_scroll_it(id);}};function qm_scroll_gcs(obj,sname,jname){var v;if(document.defaultView&&document.defaultView.getComputedStyle)v=document.defaultView.getComputedStyle(obj,null).getPropertyValue(sname);else  if(obj.currentStyle)v=obj.currentStyle[jname];return v;}";


	qmv.addons.drop_shadow = new Object();
	qmv.addons.drop_shadow.cat = "cssshapes"
	qmv.addons.drop_shadow.compat = "fade,hoverfill,ritem,match_widths,merge_effect,tabs,over_select,apsubs,tabscss,pointer,box_effect";
	qmv.addons.drop_shadow.desc = "Drop Shadow";
	qmv.addons.drop_shadow.ontest = "shadow_offset";
	qmv.addons.drop_shadow.code = "qmad.shadow=new Object();if(qmad.bvis.indexOf(\"qm_drop_shadow(b.cdiv);\")==-1)qmad.bvis+=\"qm_drop_shadow(b.cdiv);\";if(qmad.bhide.indexOf(\"qm_drop_shadow(a,1);\")==-1)qmad.bhide+=\"qm_drop_shadow(a,1);\";;function qm_drop_shadow(a,hide,force){var z;if(!hide&&((z=window.qmv)&&(z=z.addons)&&(z=z.drop_shadow)&&!z[\"on\"+qm_index(a)]))return;if((!hide&&!a.hasshadow)||force){var ss;if(!a.settingsid){var v=a;while((v=v.parentNode)){if(v.className.indexOf(\"qmmc\")+1){a.settingsid=v.id;break;}}}ss=qmad[a.settingsid];if(!ss)return;if(isNaN(ss.shadow_offset))return;qmad.shadow.offset=ss.shadow_offset;var f=document.createElement(\"SPAN\");x2(\"qmshadow\",f,1);var fs=f.style;fs.position=\"absolute\";fs.display=\"block\";fs.backgroundColor=\"#999999\";fs.visibility=\"inherit\";var sh;if((sh=ss.shadow_opacity)){f.style.opacity=sh;f.style.filter=\"alpha(opacity=\"+(sh*100)+\")\";}if((sh=ss.shadow_color))f.style.backgroundColor=sh;f=a.parentNode.appendChild(f);a.hasshadow=f;}var c=qmad.shadow.offset;var b=a.hasshadow;if(b){if(hide)b.style.visibility=\"hidden\";else {b.style.width=a.offsetWidth+\"px\";b.style.height=a.offsetHeight+\"px\";var ft=0;var fl=0;if(qm_o){ft=b[qp].clientTop;fl=b[qp].clientLeft;}if(qm_s2){ft=qm_gcs(b[qp],\"border-top-width\",\"borderTopWidth\");fl=qm_gcs(b[qp],\"border-left-width\",\"borderLeftWidth\");}b.style.top=a.offsetTop+c-ft+\"px\";b.style.left=a.offsetLeft+c-fl+\"px\";b.style.visibility=\"inherit\";}}}";
	

	qmv.addons.round_corners = new Object();
	qmv.addons.round_corners.cat = "cssshapes"
	qmv.addons.round_corners.compat = "sopacity,fade,hoverfill,ritem,tabs,over_select,apsubs,tabscss,pointer,box_effect,slide_effect,bump_effect,merge_effect,match_widths";
	qmv.addons.round_corners.desc = "Rounded Sub Corners";
	qmv.addons.round_corners.ontest = "rcorner_size";
	qmv.addons.round_corners.code = "qmad.rcorner=new Object();qmad.br_ie7=navigator.userAgent.indexOf(\"MSIE 7\")+1;if(qmad.bvis.indexOf(\"qm_rcorner(b.cdiv);\")==-1)qmad.bvis+=\"qm_rcorner(b.cdiv);\";;function qm_rcorner(a,hide,force){var z;if(!hide&&((z=window.qmv)&&(z=z.addons)&&(z=z.round_corners)&&!z[\"on\"+qm_index(a)]))return;var q=qmad.rcorner;if((!hide&&!a.hasrcorner)||force){var ss;if(!a.settingsid){var v=a;while((v=v.parentNode)){if(v.className.indexOf(\"qmmc\")+1){a.settingsid=v.id;break;}}}ss=qmad[a.settingsid];if(!ss)return;if(!ss.rcorner_size)return;q.size=ss.rcorner_size;q.background=ss.rcorner_bg_color;if(!q.background)q.background=\"transparent\";q.border=ss.rcorner_border_color;if(!q.border)q.border=\"#ff0000\";q.angle=ss.rcorner_angle_corners;q.corners=ss.rcorner_apply_corners;if(!q.corners||q.corners.length<4)q.corners=new Array(true,1,1,1);q.tinset=0;if(ss.rcorner_top_line_auto_inset&&qm_a(a[qp]))q.tinset=a.idiv.offsetWidth;q.opacity=ss.rcorner_opacity;if(q.opacity&&q.opacity!=1){var addf=\"\";if(window.showHelp)addf=\"filter:alpha(opacity=\"+(q.opacity*100)+\");\";q.opacity=\"opacity:\"+q.opacity+\";\"+addf;}else q.opacity=\"\";var f=document.createElement(\"SPAN\");x2(\"qmrcorner\",f,1);var fs=f.style;fs.position=\"absolute\";fs.display=\"block\";fs.top=\"0px\";fs.left=\"0px\";var size=q.size;q.mid=parseInt(size/2);q.ps=new Array(size+1);var t2=0;q.osize=q.size;if(!q.angle){for(var i=0;i<=size;i++){if(i==q.mid)t2=0;q.ps[i]=t2;t2+=Math.abs(q.mid-i)+1;}q.osize=1;}var fi=\"\";for(var i=0;i<size;i++)fi+=qm_rcorner_get_span(size,i,1,q.tinset);fi+='<span qmrcmid=1 style=\"background-color:'+q.background+';border-color:'+q.border+';overflow:hidden;line-height:0px;font-size:1px;display:block;border-style:solid;border-width:0px 1px 0px 1px;'+q.opacity+'\"></span>';for(var i=size-1;i>=0;i--)fi+=qm_rcorner_get_span(size,i);f.innerHTML=fi;f.noselect=1;a.insertBefore(f,a.firstChild);a.hasrcorner=f;}var b=a.hasrcorner;if(b){if(!a.offsetWidth)a.style.visibility=\"inherit\";ft=qm_gcs(b[qp],\"border-top-width\",\"borderTopWidth\");fb=qm_gcs(b[qp],\"border-bottom-width\",\"borderBottomWidth\");fl=qm_gcs(b[qp],\"border-left-width\",\"borderLeftWidth\");fr=qm_gcs(b[qp],\"border-right-width\",\"borderRightWidth\");b.style.width=(a.offsetWidth-(fl+fr))+\"px\";b.style.height=(a.offsetHeight-(ft+fb))+\"px\";if(qmad.br_ie7){var sp=b.getElementsByTagName(\"SPAN\");for(var i=0;i<sp.length;i++)sp[i].style.visibility=\"inherit\";}b.style.visibility=\"inherit\";var s=b.childNodes;for(var i=0;i<s.length;i++){if(s[i].getAttribute(\"qmrcmid\"))s[i].style.height=Math.abs((a.offsetHeight-(q.osize*2)-ft-fb))+\"px\";}}};function qm_rcorner_get_span(size,i,top,tinset){var q=qmad.rcorner;var mlmr;if(i==0){var mo=q.ps[size]+q.mid;if(q.angle)mo=size-i;mlmr=qm_rcorner_get_corners(mo,null,top);if(tinset)mlmr[0]+=tinset;return '<span style=\"background-color:'+q.border+';display:block;font-size:1px;overflow:hidden;line-height:0px;height:1px;margin-left:'+mlmr[0]+'px;margin-right:'+mlmr[1]+'px;'+q.opacity+'\"></span>';}else {var md=size-(i);var ih=1;var bs=1;if(!q.angle){if(i>=q.mid)ih=Math.abs(q.mid-i)+1;else {bs=Math.abs(q.mid-i)+1;md=q.ps[size-i]+q.mid;}if(top)q.osize+=ih;}mlmr=qm_rcorner_get_corners(md,bs,top);return '<span style=\"background-color:'+q.background+';border-color:'+q.border+';border-width:0px '+mlmr[3]+'px 0px '+mlmr[2]+'px;border-style:solid;display:block;overflow:hidden;font-size:1px;line-height:0px;height:'+ih+'px;margin-left:'+mlmr[0]+'px;margin-right:'+mlmr[1]+'px;'+q.opacity+'\"></span>';}};function qm_rcorner_get_corners(mval,bval,top){var q=qmad.rcorner;var ml=mval;var mr=mval;var bl=bval;var br=bval;if(top){if(!q.corners[0]){ml=0;bl=1;}if(!q.corners[1]){mr=0;br=1;}}else {if(!q.corners[2]){mr=0;br=1;}if(!q.corners[3]){ml=0;bl=1;}}return new Array(ml,mr,bl,br);}";


	qmv.addons.sopacity = new Object();
	qmv.addons.sopacity.cat = "cssshapes"
	qmv.addons.sopacity.compat = "match_width,fade,hoverfill,ritem,tabs,over_select,apsubs,tabscss,pointer,box_effect,slide_effect,bump_effect,merge_effect,match_widths";
	qmv.addons.sopacity.desc = "Sub Opacity";
	qmv.addons.sopacity.ontest = "sopacity_value";
	qmv.addons.sopacity.code = "qmad.sopacity=new Object();qmad.br_ie7=navigator.userAgent.indexOf(\"MSIE 7\")+1;if(qmad.bvis.indexOf(\"qm_sopacity(b.cdiv);\")==-1)qmad.bvis+=\"qm_sopacity(b.cdiv);\";;function qm_sopacity(a,hide,force){var z;if(!hide&&((z=window.qmv)&&(z=z.addons)&&(z=z.sopacity)&&!z[\"on\"+qm_index(a)]))return;var q=qmad.sopacity;if((!hide&&!a.hassopacity)||force){var ss;if(!a.settingsid){var v=a;while((v=v.parentNode)){if(v.className.indexOf(\"qmmc\")+1){a.settingsid=v.id;break;}}}ss=qmad[a.settingsid];if(!ss)return;if(!ss.sopacity_value)return;q.bgc=ss.sopacity_bg_color;if(!q.bgc)q.bgc='#dddddd';var f=document.createElement(\"SPAN\");var fs=f.style;q.value=ss.sopacity_value;if(q.value&&q.value!=1){if(window.showHelp)fs.filter=\"alpha(opacity=\"+(q.value*100)+\")\";else fs.opacity=q.value;}fs.position=\"absolute\";fs.display=\"block\";fs.top=\"0px\";fs.left=\"0px\";fs.backgroundColor=q.bgc;f.noselect=1;a.insertBefore(f,a.firstChild);a.hassopacity=f;}var b=a.hassopacity;if(b){if(!a.offsetWidth)a.style.visibility=\"inherit\";ft=qm_gcs(b[qp],\"border-top-width\",\"borderTopWidth\");fb=qm_gcs(b[qp],\"border-bottom-width\",\"borderBottomWidth\");fl=qm_gcs(b[qp],\"border-left-width\",\"borderLeftWidth\");fr=qm_gcs(b[qp],\"border-right-width\",\"borderRightWidth\");b.style.width=(a.offsetWidth-(fl+fr))+\"px\";b.style.height=(a.offsetHeight-(ft+fb))+\"px\";if(qmad.br_ie7){var sp=b.getElementsByTagName(\"SPAN\");for(var i=0;i<sp.length;i++)sp[i].style.visibility=\"inherit\";}b.style.visibility=\"inherit\";}}";

	
	qmv.addons.match_widths = new Object();
	qmv.addons.match_widths.cat = "cssshapes"
	qmv.addons.match_widths.compat = "sopacity,fade,hoverfill,bump_effect,ritem,merge_effect,slide_effect,drop_shadow,tabs,over_select,apsubs,tabscss,pointer,box_effect,round_corners";
	qmv.addons.match_widths.desc = "Match Widths";
	qmv.addons.match_widths.ontest = "mwidths_active";
	qmv.addons.match_widths.code = "qmad.mwidths=new Object();if(qmad.bvis.indexOf(\"qm_mwidths_a(b.cdiv,o);\")==-1)qmad.bvis+=\"qm_mwidths_a(b.cdiv,o);\";;function qm_mwidths_a(sub,item){var z;if((z=window.qmv)&&(z=z.addons)&&(z=z.match_widths)&&!z[\"on\"+qm_index(sub)])return;var ss;if(!item.settingsid){var v=item;while((v=v.parentNode)){if(v.className.indexOf(\"qmmc\")+1){item.settingsid=v.id;break;}}}ss=qmad[item.settingsid];if(!ss)return;if(!ss.mwidths_active)return;if(qm_a(item.parentNode)){var t=0;t+=qm_getcomputedstyle(sub,\"padding-left\",\"paddingLeft\");t+=qm_getcomputedstyle(sub,\"padding-right\",\"paddingRight\");t+=qm_getcomputedstyle(sub,\"border-left-width\",\"borderLeftWidth\");t+=qm_getcomputedstyle(sub,\"border-right-width\",\"borderRightWidth\");var adj=0;adj=item.getAttribute(\"matchwidthadjust\");if(adj)adj=parseInt(adj);if(!adj||isNaN(adj))adj=0;sub.style.width=(item.offsetWidth-t+adj)+\"px\";var a=sub.childNodes;for(var i=0;i<a.length;i++){if(a[i].tagName==\"A\")a[i].style.whiteSpace=\"normal\";}}};function qm_getcomputedstyle(obj,sname,jname){var v;if(document.defaultView&&document.defaultView.getComputedStyle)v=document.defaultView.getComputedStyle(obj,null).getPropertyValue(sname);else  if(obj.currentStyle)v=obj.currentStyle[jname];if(v&&!isNaN(v=parseInt(v)))return v;else return 0;}";


	qmv.addons.merge_effect = new Object();
	qmv.addons.merge_effect.cat = "animation"
	qmv.addons.merge_effect.compat = "sopacity,hoverfill,ritem,slide_effect,drop_shadow,tabs,over_select,tabscss,pointer,round_corners";
	qmv.addons.merge_effect.desc = "Merge Animation";
	qmv.addons.merge_effect.ontest = "merge_frames";
	qmv.addons.merge_effect.code = "qmad.merge=new Object();if(qmad.bvis.indexOf(\"qm_merge_a(b.cdiv);\")==-1)qmad.bvis+=\"qm_merge_a(b.cdiv);\";if(qmad.bhide.indexOf(\"qm_merge_a(a,1);\")==-1)qmad.bhide+=\"qm_merge_a(a,1);\";qmad.br_ie=window.showHelp;qmad.br_mac=navigator.userAgent.indexOf(\"Mac\")+1;qmad.br_old_safari=navigator.userAgent.indexOf(\"afari\")+1&&!window.XMLHttpRequest;qmad.merge_off=(qmad.br_ie&&qmad.br_mac)||qmad.br_old_safari;;function qm_merge_a(a,hide){var z;if((a.style.visibility==\"inherit\"&&!hide)||(qmad.merge_off)||((z=window.qmv)&&(z=z.addons)&&(z=z.merge_effect)&&!z[\"on\"+qm_index(a)])){return;}var ss;if(!a.settingsid){var v=a;while((v=v.parentNode)){if(v.className.indexOf(\"qmmc\")+1){a.settingsid=v.id;break;}}}ss=qmad[a.settingsid];if(!ss)return;if(!ss.merge_frames)return;if(hide){a.ismove=false;var b=new Object();b.obj=a;qm_merge_am(b,1);}else {var b=new Object();b.obj=a;b.sub_subs_updown=ss.merge_sub_subs_updown;b.updown=ss.merge_updown;b.step=(a.offsetWidth/2)/ss.merge_frames;b.oval=\".5\";if(ss.merge_opacity)b.oval=ss.merge_opacity;if(b.sub_subs_updown&&a.parentNode.className.indexOf(\"qmmc\")==-1)b.updown=true;b.tl=\"left\";b.wh=\"offsetWidth\";if(b.updown){b.tl=\"top\";b.wh=\"offsetHeight\";}b.orig_pos=a.style[b.tl];var c1=a.cloneNode(true);c1.style.visibility=\"visible\";a.parentNode.appendChild(c1);b.cobj=c1;a.style.filter=\"Alpha(opacity=\"+(b.oval*100)+\")\";c1.style.filter=\"Alpha(opacity=\"+(b.oval*100)+\")\";a.style.opacity=b.oval;c1.style.opacity=b.oval;a.style[b.tl]=(parseInt(a.style[b.tl])-(a[b.wh]/2))+\"px\";c1.style[b.tl]=(parseInt(c1.style[b.tl])+(a[b.wh]/2))+\"px\";a.ismove=true;qm_merge_ai(qm_merge_am(b),hide);}};function qm_merge_ai(id,hide){var a=qmad.merge[\"_\"+id];if(!a)return;var cp=parseInt(a.obj.style[a.tl]);if(cp+a.step<parseInt(a.orig_pos)){a.obj.style[a.tl]=Math.round(cp+a.step)+\"px\";a.cobj.style[a.tl]=Math.round(parseInt(a.cobj.style[a.tl])-a.step)+\"px\";a.timer=setTimeout(\"qm_merge_ai(\"+id+\",\"+hide+\")\",10);}else {a.obj.style[a.tl]=a.orig_pos;a.cobj.style[a.tl]=a.orig_pos;qm_merge_remove_node(a.cobj);a.cobj.style.display=\"none\";a.obj.style.filter=\"\";a.obj.style.opacity=\"1\";qmad.merge[\"_\"+id]=null;a.obj.ismove=false;}};function qm_merge_remove_node(obj){if(obj.removeNode)obj.removeNode(true);else  if(obj.removeChild)obj.parentNode.removeChild(obj);};function qm_merge_am(obj,clear){var k;for(k in qmad.merge){if(qmad.merge[k]&&obj.obj==qmad.merge[k].obj){if(qmad.merge[k].timer){clearTimeout(qmad.merge[k].timer);qmad.merge[k].timer=null;}qm_merge_remove_node(qmad.merge[k].cobj);qmad.merge[k].obj.ismove=false;qmad.merge[k]=null;}}if(clear)return;var i=0;while(qmad.merge[\"_\"+i])i++;qmad.merge[\"_\"+i]=obj;return i;}";


	qmv.addons.slide_effect = new Object();
	qmv.addons.slide_effect.cat = "animation"
	qmv.addons.slide_effect.compat = "sopacity,hoverfill,ritem,match_widths,merge_effect,tabs,over_select,tabscss,pointer,round_corners";
	qmv.addons.slide_effect.desc = "Slide Animation";
	qmv.addons.slide_effect.ontest = "slide_animation_frames";
	qmv.addons.slide_effect.code = "qmad.slide=new Object();if(qmad.bvis.indexOf(\"qm_slide_a(b.cdiv);\")==-1)qmad.bvis+=\"qm_slide_a(b.cdiv);\";if(qmad.bhide.indexOf(\"qm_slide_a(a,1);\")==-1)qmad.bhide+=\"qm_slide_a(a,1);\";qmad.br_navigator=navigator.userAgent.indexOf(\"Netscape\")+1;qmad.br_version=parseFloat(navigator.vendorSub);qmad.br_oldnav=qmad.br_navigator&&qmad.br_version<7.1;qmad.br_ie=window.showHelp;qmad.br_ie8=navigator.userAgent.indexOf(\"MSIE 8\")+1;qmad.br_mac=navigator.userAgent.indexOf(\"Mac\")+1;qmad.br_old_safari=navigator.userAgent.indexOf(\"afari\")+1&&!window.XMLHttpRequest;qmad.slide_off=qmad.br_oldnav||(qmad.br_mac&&qmad.br_ie)||qmad.br_old_safari;;function qm_slide_a(a,hide){var z;if((a.style.visibility==\"inherit\"&&!hide)||(qmad.slide_off)||((z=window.qmv)&&(z=z.addons)&&(z=z.slide_effect)&&!z[\"on\"+qm_index(a)]))return;var ss;if(!a.settingsid){var v=a;while((v=v.parentNode)){if(v.className.indexOf(\"qmmc\")+1){a.settingsid=v.id;break;}}}ss=qmad[a.settingsid];if(!ss)return;if(!ss.slide_animation_frames)return;var steps=ss.slide_animation_frames;var b=new Object();b.obj=a;b.offy=ss.slide_offxy;b.left_right=ss.slide_left_right;b.sub_subs_left_right=ss.slide_sub_subs_left_right;b.drop_subs=ss.slide_drop_subs;if(!b.offy)b.offy=0;if(b.sub_subs_left_right&&a.parentNode.className.indexOf(\"qmmc\")==-1)b.left_right=true;if(b.left_right)b.drop_subs=false;b.drop_subs_height=ss.slide_drop_subs_height;b.drop_subs_disappear=ss.slide_drop_subs_disappear;b.accelerator=ss.slide_accelerator;if(!a.ioxy)a.ioxy=qm_get_offset(a);if(b.drop_subs&&!b.accelerator)b.accelerator=1;if(!b.accelerator)b.accelerator=0;b.tb=\"top\";b.wh=\"Height\";if(b.left_right){b.tb=\"left\";b.wh=\"Width\";}b.stepy=a[\"offset\"+b.wh]/steps;b.top=parseInt(a.style[b.tb]);if(!hide)a.style[b.tb]=(b.top - a[\"offset\"+b.wh])+\"px\";else {b.stepy=-b.stepy;x2(\"qmfv\",a,1);}a.isrun=true;qm_slide_ai(qm_slide_am(b,hide),hide);};function qm_get_offset(obj){var x=0;var y=0;do{x+=obj.offsetLeft;y+=obj.offsetTop;}while(obj=obj.offsetParent)return new Array(x,y);};function qm_slide_ai(id,hide){var a=qmad.slide[\"_\"+id];if(!a)return;var cy=parseInt(a.obj.style[a.tb]);if(a.drop_subs)a.stepy+=a.accelerator;else {if(hide)a.stepy -=a.accelerator;else a.stepy+=a.accelerator;}var bc=2000;var rc=2000;if(qmad.br_ie8){var de=document.documentElement;rc=parseInt(de.clientWidth)-a.obj.ioxy[0];bc=parseInt(de.clientHeight)-a.obj.ioxy[1];}if((!hide&&cy+a.stepy<a.top)||(hide&&!a.drop_subs&&cy+a.stepy>a.top-a.obj[\"offset\"+a.wh])||(hide&&a.drop_subs&&cy<a.drop_subs_height)){if(hide&&a.drop_subs&&!a.drop_subs_disappear&&cy+a.stepy+a.obj[\"offset\"+a.wh]>a.drop_subs_height)bc=a.drop_subs_height-cy+a.stepy;var tc=Math.round(a.top-(cy+a.stepy)+a.offy);if(a.left_right)a.obj.style.clip=\"rect(auto \"+rc+\"px \"+bc+\"px \"+tc+\"px)\";else a.obj.style.clip=\"rect(\"+tc+\"px \"+rc+\"px \"+bc+\"px auto)\";a.obj.style[a.tb]=Math.round(cy+a.stepy)+\"px\";a.timer=setTimeout(\"qm_slide_ai(\"+id+\",\"+hide+\")\",10);}else {a.obj.style[a.tb]=a.top+\"px\";if(!qmad.br_ie8){a.obj.style.clip=\"rect(0 auto auto auto)\";if(a.obj.style.removeAttribute)a.obj.style.removeAttribute(\"clip\");else a.obj.style.clip=\"auto\";if(!qmad.br_ie)a.obj.style.clip=\"\";}else {a.obj.style.clip=\"rect(auto \"+rc+\"px \"+bc+\"px auto)\";a.obj.style.removeAttribute(\"clip\");}if(hide){x2(\"qmfv\",a.obj);if(qmad.br_ie&&!a.obj.style.visibility){a.obj.style.visibility=\"hidden\";a.obj.style.visibility=\"\";}}else {var ah;if(ah=a.obj.hasselectfix){ah.style.top=a.obj.style.top;ah.style.left=a.obj.style.left;}}qmad.slide[\"_\"+id]=null;a.obj.isrun=false;}};function qm_slide_am(obj,hide){var k;for(k in qmad.slide){if(qmad.slide[k]&&obj.obj==qmad.slide[k].obj){if(qmad.slide[k].timer){clearTimeout(qmad.slide[k].timer);qmad.slide[k].timer=null;}obj.top=qmad.slide[k].top;qmad.slide[k].obj.isrun=false;qmad.slide[k]=null;}}var i=0;while(qmad.slide[\"_\"+i])i++;qmad.slide[\"_\"+i]=obj;return i;}";
	

	qmv.addons.bump_effect = new Object();
	qmv.addons.bump_effect.cat = "animation"
	qmv.addons.bump_effect.compat = "sopacity,fade,hoverfill,ritem,match_widths,merge_effect,tabs,over_select,tabscss,pointer,round_corners";
	qmv.addons.bump_effect.desc = "Bump Animation";
	qmv.addons.bump_effect.ontest = "bump_animation_frames";
	qmv.addons.bump_effect.code = "qmad.bump=new Object();if(qmad.bvis.indexOf(\"qm_bump_a(b.cdiv);\")==-1)qmad.bvis+=\"qm_bump_a(b.cdiv);\";qmad.br_navigator=navigator.userAgent.indexOf(\"Netscape\")+1;qmad.br_version=parseFloat(navigator.vendorSub);qmad.br_oldnav=qmad.br_navigator&&qmad.br_version<7.1;qmad.br_ie=window.showHelp;qmad.br_mac=navigator.userAgent.indexOf(\"Mac\")+1;qmad.br_old_safari=navigator.userAgent.indexOf(\"afari\")+1&&!window.XMLHttpRequest;qmad.bump_off=qmad.br_oldnav||(qmad.br_mac&&qmad.br_ie)||qmad.br_old_safari;;function qm_bump_a(a){var z;if((a.style.visibility==\"inherit\")||(qmad.bump_off)||((z=window.qmv)&&(z=z.addons)&&(z=z.bump_effect)&&!z[\"on\"+qm_index(a)]))return;var ss;if(!a.settingsid){var v=a;while((v=v.parentNode)){if(v.className.indexOf(\"qmmc\")+1){a.settingsid=v.id;break;}}}ss=qmad[a.settingsid];if(!ss)return;if(!ss.bump_animation_frames)return;var qb=qmad.bump;var b=new Object();b.obj=a;b.frames=ss.bump_animation_frames;b.md=ss.bump_main_direction;if(!b.md)b.md=\"up\";b.sd=ss.bump_sub_direction;if(!b.sd)b.sd=b.md;if(qm_a(a[qp]))b.direction=b.md;else b.direction=b.sd;if(b.direction==\"none\")return;if(ss.bump_auto_switch_main_left_right_directions){if(qb.pobj&&qm_a(a[qp])&&(ci=qb.pobj.idiv)){var type=qm_bump_is_prev_or_next(ci,a.idiv);if(type==\"before\"&&b.direction==\"left\")b.direction=\"right\";else  if(type==\"after\"&&b.direction==\"right\")b.direction=\"left\";}}b.dist=ss.bump_distance;if(!b.dist)b.dist=20;b.tof=b.dist;if(b.direction==\"down\"||b.direction==\"right\")b.tof=-b.dist;b.slow=ss.bump_decelerator;if(!b.slow)b.slow=0;b.tb=\"top\";b.wh=\"Height\";if(b.direction==\"left\"||b.direction==\"right\"){b.tb=\"left\";b.wh=\"Width\";}b.steps=b.dist/b.frames;if(b.steps<=.5)b.steps=.51;b.orig_pos=parseInt(a.style[b.tb]);b.pos=parseInt(a.style[b.tb])+b.tof;a.style[b.tb]=b.pos+\"px\";a.isrun=true;var id=qm_bump_am(b);qb.pid=id;qb.pobj=a;qm_bump_ai(id);};function qm_bump_ai(id){var a=qmad.bump[\"_\"+id];if(!a)return;var pos=parseInt(a.obj.style[a.tb]);var go=false;if(a.tof<0){if(pos+a.steps<a.orig_pos){a.obj.style[a.tb]=Math.round(pos+a.steps)+\"px\";go=true;}}else {if(pos-a.steps>a.orig_pos){a.obj.style[a.tb]=Math.round(pos-a.steps)+\"px\";go=true;}}if(go)a.timer=setTimeout(\"qm_bump_ai(\"+id+\")\",10);else {a.obj.style[a.tb]=a.orig_pos+\"px\";qmad.bump[\"_\"+id]=null;a.obj.isrun=false;if(window.showHelp&&window.qm_over_select)qm_over_select(a.obj)}};function qm_bump_am(obj){var k;for(k in qmad.bump){if(qmad.bump[k]&&obj.obj==qmad.bump[k].obj){if(qmad.bump[k].timer){clearTimeout(qmad.bump[k].timer);qmad.bump[k].timer=null;}obj.top=qmad.bump[k].top;qmad.bump[k].obj.isrun=false;qmad.bump[k]=null;}}var i=0;while(qmad.bump[\"_\"+i])i++;qmad.bump[\"_\"+i]=obj;return i;};function qm_bump_is_prev_or_next(ci,compare){var nn=ci.nextSibling;while(nn){if(nn==compare)return \"before\";else nn=nn.nextSibling;}var nn=ci.previousSibling;while(nn){if(nn==compare)return \"after\";else nn=nn.previousSibling;}return false;}";


	qmv.addons.tabs = new Object();
	qmv.addons.tabs.cat = "cssshapes"
	qmv.addons.tabs.compat = "sopacity,fade,hoverfill,bump_effect,ritem,drop_shadow,round_corners,match_widths,merge_effect,slide_effect,over_select,apsubs,pointer,box_effect";
	qmv.addons.tabs.desc = "Tabs (Image Based)";
	qmv.addons.tabs.ontest = "tabs_image";
	//qmv.addons.tabs.noupdate = 1;
	qmv.addons.tabs.code = "qmad.br_ie=window.showHelp;qmad.br_mac=navigator.userAgent.indexOf(\"Mac\")+1;qmad.br_old_safari=navigator.userAgent.indexOf(\"afari\")+1&&!window.XMLHttpRequest;qmad.br_navigator=navigator.userAgent.indexOf(\"Netscape\")+1;qmad.br_version=parseFloat(navigator.vendorSub);qmad.br_oldnav=qmad.br_navigator&&qmad.br_version<7.1;if(!(qmad.br_ie&&qmad.br_mac)&&!qmad.br_old_safari&&!qmad.br_oldnav&&!qmad.tabs){qmad.tabs=new Object();if(qmad.binit.indexOf(\"qm_tabs_init(null\")==-1)qmad.binit+=\"qm_tabs_init(null,sd.id.substring(2),1);\";};function qm_tabs_init(e,spec,wait){if(wait){if(!isNaN(spec)){setTimeout(\"qm_tabs_init(null,\"+spec+\")\",10);return;}}var z;if((z=window.qmv)&&(z=z.addons)&&(z=z.tabs)&&(!z[\"on\"+qmv.id]&&z[\"on\"+qmv.id]!=undefined&&z[\"on\"+qmv.id]!=null))return;qm_ts=1;var q=qmad.tabs;var a;for(i=0;i<10;i++){if(!(a=document.getElementById(\"qm\"+i))||(spec&&spec!=i))continue;var ss=qmad[a.id];if(ss&&ss.tabs_image){q.img=ss.tabs_image;q.w=ss.tabs_width;q.h=ss.tabs_height;if(!q.img||!q.w||!q.h)continue;q.lc=ss.tabs_apply_far_left;q.rc=ss.tabs_apply_far_right;q.mid=ss.tabs_apply_middles;if(!q.lc&&!q.rc&&!q.mid)q.mid=true;q.toff=ss.tabs_top_offset;if(!q.toff)q.toff=0;qm_tabs_init_items(a);}i++;}};function qm_tabs_init_items(a){var w;var q=qmad.tabs;var first=true;var lat=null;var at=a.childNodes;for(var i=0;i<at.length;i++){if(at[i].tagName==\"A\"){if((first&&q.lc)||(!first&&q.mid)){w=at[i].parentNode.insertBefore(qm_tabs_create_tabimg(at[i],first),at[i]);w.childNodes[0].style.backgroundImage='url('+q.img+')';i++;}lat=at[i];first=false;continue;}}if(lat&&q.rc){w=a.insertBefore(qm_tabs_create_tabimg(lat,false,1),lat.nextSibling);w.childNodes[0].style.backgroundImage='url('+q.img+')';}};function qm_tabs_create_tabimg(a,isfirst,islast){var q=qmad.tabs;var s=document.createElement(\"SPAN\");s.istab=1;s.style.display=\"block\";s.style.position=\"relative\";s.style.fontSize=\"1px\";s.style.styleFloat=\"left\";s.style.cssFloat=\"left\";s.style.height=a.offsetHeight+\"px\";s.style.width=\"0px\";s.style.zIndex=2;s.noselect=1;var iw,p1,p2,lpos;if(isfirst){lpos=\"0px\";iw=parseInt(q.w/2)+\"px\";p1=\"right\";}else  if(islast){lpos=-parseInt(q.w/2)+\"px\";iw=parseInt(q.w/2)+\"px\";p1=\"left\";}else {lpos=-parseInt(q.w/2)+\"px\";iw=q.w+\"px\";p1=\"center\";}s.innerHTML='<span style=\"background-position:center '+p1+';background-repeat:no-repeat;display:block;position:absolute;width:'+iw+';top:'+q.toff+'px;left:'+lpos+';height:'+q.h+'px;\"></span>';return s;}";
	

	qmv.addons.tabscss = new Object();
	qmv.addons.tabscss.cat = "cssshapes"
	qmv.addons.tabscss.compat = "sopacity,fade,hoverfill,bump_effect,ritem,drop_shadow,round_corners,match_widths,merge_effect,slide_effect,over_select,apsubs,pointer,box_effect";
	qmv.addons.tabscss.desc = "Tabs (CSS Based)";
	qmv.addons.tabscss.ontest = "tabscss_type";
	qmv.addons.tabscss.code = "qmad.br_ie=window.showHelp;qmad.br_mac=navigator.userAgent.indexOf(\"Mac\")+1;qmad.br_old_safari=navigator.userAgent.indexOf(\"afari\")+1&&!window.XMLHttpRequest;qmad.br_navigator=navigator.userAgent.indexOf(\"Netscape\")+1;qmad.br_version=parseFloat(navigator.vendorSub);qmad.br_oldnav=qmad.br_navigator&&qmad.br_version<7.1;if(!(qmad.br_ie&&qmad.br_mac)&&!qmad.br_old_safari&&!qmad.br_oldnav&&!qmad.tabscss){qmad.tabscss=new Object();if(qmad.binit.indexOf(\"qm_tabscss_init(null\")==-1)qmad.binit+=\"qm_tabscss_init(null,sd.id.substring(2),1);\";};function qm_tabscss_init(e,spec,wait){if(wait){if(!isNaN(spec)){setTimeout(\"qm_tabscss_init(null,\"+spec+\")\",10);return;}}var z;if((z=window.qmv)&&(z=z.addons)&&(z=z.tabscss)&&(!z[\"on\"+qmv.id]&&z[\"on\"+qmv.id]!=undefined&&z[\"on\"+qmv.id]!=null))return;qm_ts=1;var q=qmad.tabscss;var a;for(i=0;i<10;i++){if(!(a=document.getElementById(\"qm\"+i))||(spec&&spec!=i))continue;var ss=qmad[a.id];if(ss&&ss.tabscss_type){q.type=ss.tabscss_type;q.h=ss.tabscss_size;if(!q.h)continue;q.border=ss.tabscss_border_color;q.background=ss.tabscss_bg_color;q.thick=ss.tabscss_thickness;if(!q.background)q.background=\"#ffffff\";if(!q.border)q.border=\"#000000\";if(!q.thick)q.thick=1;q.lc=ss.tabscss_apply_far_left;q.rc=ss.tabscss_apply_far_right;q.mid=ss.tabscss_apply_middles;if(!q.lc&&!q.rc&&!q.mid)q.mid=true;q.toff=ss.tabscss_top_offset;if(!q.toff)q.toff=0;q.loff=ss.tabscss_left_offset;if(!q.loff)q.loff=0;qm_tabscss_init_items(a);}i++;}};function qm_tabscss_init_items(a){var q=qmad.tabscss;var first=true;var lat=null;var at=a.childNodes;for(var i=0;i<at.length;i++){if(at[i].tagName==\"A\"){if((first&&q.lc)||(!first&&q.mid)){a.insertBefore(qm_tabscss_create_tabimg(at[i],first),at[i]);i++;}lat=at[i];first=false;continue;}}if(lat&&q.rc){a.insertBefore(qm_tabscss_create_tabimg(lat,false,1),lat.nextSibling);}};function qm_tabscss_create_tabimg(a,isfirst,islast){var q=qmad.tabscss;var s=document.createElement(\"SPAN\");s.iscsstab=1;s.style.display=\"block\";s.style.position=\"relative\";s.style.fontSize=\"1px\";s.style.styleFloat=\"left\";s.style.cssFloat=\"left\";s.style.zIndex=2;s.style.height=a.offsetHeight+\"px\";s.style.width=\"0px\";s.noselect=1;var part=\"middle\";if(isfirst)part=\"first\";if(islast)part=\"last\";var wt=\"\";q.z1=0;for(var i=0;i<q.h;i++)wt+=qm_tabscss_get_span(q.h,i,part);s.innerHTML=wt;return s;};function qm_tabscss_get_span(size,i,part){var q=qmad.tabscss;var it=i;var il=0;var ih=1;var iw=1;var ml=0;var mr=0;var bl=1;var br=1;if(q.type==\"angled\"){ml=i;mr=i;iw=((size-i)*2)-q.thick;il=-size+(q.thick-1);it+=q.toff;il+=q.loff;ih=q.thick;if(part==\"first\"){iw=size-i;bl=0;ml=0;il+=size-(q.thick);}if(part==\"last\"){iw=size-i;br=0;mr=0;}}else  if(q.type==\"rounded\"){ml=i;mr=i;iw=((size-i)*2)-1;il=-size;il+=q.loff;it+=q.toff;ih=i+1;it=q.z1;q.z1+=ih;if(part==\"first\"){iw=size-i;bl=0;ml=0;il+=size-1;}if(part==\"last\"){iw=size-i;br=0;mr=0;}}return '<span style=\"background-color:'+q.background+';border-color:'+q.border+';border-width:0px '+br+'px 0px '+bl+'px;border-style:solid;display:block;position:absolute;overflow:hidden;font-size:1px;line-height:0px;height:'+ih+'px;margin-left:'+ml+'px;margin-right:'+mr+'px;width:'+iw+'px;top:'+it+'px;left:'+il+'px;\"></span>';}";
	

	
	qmv.addons.item_bullets = new Object();
	qmv.addons.item_bullets.cat = "cssshapes"
	qmv.addons.item_bullets.compat = "all";
	qmv.addons.item_bullets.desc = "Item Bullets";
	qmv.addons.item_bullets.ontest = "ibullets_main_image|ibullets_sub_image";
	qmv.addons.item_bullets.code = "qmad.br_navigator=navigator.userAgent.indexOf(\"Netscape\")+1;qmad.br_version=parseFloat(navigator.vendorSub);qmad.br_oldnav6=qmad.br_navigator&&qmad.br_version<7;if(!qmad.br_oldnav6){if(!qmad.ibullets)qmad.ibullets=new Object();if(qmad.bvis.indexOf(\"qm_ibullets_active(o,false);\")==-1){qmad.bvis+=\"qm_ibullets_active(o,false);\";qmad.bhide+=\"qm_ibullets_active(a,1);\";qmad.binit+=\"qm_ibullets_init(null,sd.id.substring(2),1);\";if(window.attachEvent)document.attachEvent(\"onmouseover\",qm_ibullets_hover_off);else  if(window.addEventListener)document.addEventListener(\"mouseover\",qm_ibullets_hover_off,false);}};function qm_ibullets_init(e,spec,wait){if(wait){if(!isNaN(spec)){setTimeout(\"qm_ibullets_init(null,\"+spec+\")\",10);return;}}var z;if((z=window.qmv)&&(z=z.addons)&&(z=z.item_bullets)&&(!z[\"on\"+qmv.id]&&z[\"on\"+qmv.id]!=undefined&&z[\"on\"+qmv.id]!=null))return;qm_ts=1;var q=qmad.ibullets;var a,b,r,sx,sy;z=window.qmv;for(i=0;i<10;i++){if(!(a=document.getElementById(\"qm\"+i))||(!isNaN(spec)&&spec!=i))continue;var ss=qmad[a.id];if(ss&&(ss.ibullets_main_image||ss.ibullets_sub_image)){q.mimg=ss.ibullets_main_image;if(q.mimg){q.mimg_a=ss.ibullets_main_image_active;q.mimg_h=ss.ibullets_main_image_hover;q.mimgwh=eval(\"new Array(\"+ss.ibullets_main_image_width+\",\"+ss.ibullets_main_image_height+\")\");r=q.mimgwh;if(!r[0])r[0]=9;if(!r[1])r[1]=6;sx=ss.ibullets_main_position_x;sy=ss.ibullets_main_position_y;if(!sx)sx=0;if(!sy)sy=0;q.mpos=eval(\"new Array('\"+sx+\"','\"+sy+\"')\");q.malign=eval(\"new Array('\"+ss.ibullets_main_align_x+\"','\"+ss.ibullets_main_align_y+\"')\");r=q.malign;if(!r[0])r[0]=\"right\";if(!r[1])r[1]=\"center\";}q.simg=ss.ibullets_sub_image;if(q.simg){q.simg_a=ss.ibullets_sub_image_active;q.simg_h=ss.ibullets_sub_image_hover;q.simgwh=eval(\"new Array(\"+ss.ibullets_sub_image_width+\",\"+ss.ibullets_sub_image_height+\")\");r=q.simgwh;if(!r[0])r[0]=6;if(!r[1])r[1]=9;sx=ss.ibullets_sub_position_x;sy=ss.ibullets_sub_position_y;if(!sx)sx=0;if(!sy)sy=0;q.spos=eval(\"new Array('\"+sx+\"','\"+sy+\"')\");q.salign=eval(\"new Array('\"+ss.ibullets_sub_align_x+\"','\"+ss.ibullets_sub_align_y+\"')\");r=q.salign;if(!r[0])r[0]=\"right\";if(!r[1])r[1]=\"middle\";}q.type=ss.ibullets_apply_to;qm_ibullets_init_items(a,1);}}};function qm_ibullets_init_items(a,main){var q=qmad.ibullets;var aa,pf;aa=a.childNodes;for(var j=0;j<aa.length;j++){if(aa[j].tagName==\"A\"){if(window.attachEvent)aa[j].attachEvent(\"onmouseover\",qm_ibullets_hover);else  if(window.addEventListener)aa[j].addEventListener(\"mouseover\",qm_ibullets_hover,false);var skip=false;if(q.type!=\"all\"){if(q.type==\"parent\"&&!aa[j].cdiv)skip=true;if(q.type==\"non-parent\"&&aa[j].cdiv)skip=true;}if(!skip){if(main)pf=\"m\";else pf=\"s\";if(q[pf+\"img\"]){var ii=document.createElement(\"IMG\");ii.setAttribute(\"src\",q[pf+\"img\"]);ii.setAttribute(\"width\",q[pf+\"imgwh\"][0]);ii.setAttribute(\"height\",q[pf+\"imgwh\"][1]);ii.style.borderWidth=\"0px\";ii.style.position=\"absolute\";var ss=document.createElement(\"SPAN\");var s1=ss.style;s1.display=\"block\";s1.position=\"relative\";s1.fontSize=\"1px\";s1.lineHeight=\"0px\";s1.zIndex=1;ss.ibhalign=q[pf+\"align\"][0];ss.ibvalign=q[pf+\"align\"][1];ss.ibiw=q[pf+\"imgwh\"][0];ss.ibih=q[pf+\"imgwh\"][1];ss.ibposx=q[pf+\"pos\"][0];ss.ibposy=q[pf+\"pos\"][1];qm_ibullets_position(aa[j],ss);ss.appendChild(ii);aa[j].qmibullet=aa[j].insertBefore(ss,aa[j].firstChild);aa[j][\"qmibullet\"+pf+\"a\"]=q[pf+\"img_a\"];aa[j][\"qmibullet\"+pf+\"h\"]=q[pf+\"img_h\"];aa[j].qmibulletorig=q[pf+\"img\"];ss.setAttribute(\"qmvbefore\",1);ss.setAttribute(\"isibullet\",1);if(aa[j].className.indexOf(\"qmactive\")+1)qm_ibullets_active(aa[j]);}}if(aa[j].cdiv)new qm_ibullets_init_items(aa[j].cdiv);}}};function qm_adds_gmc(a){while(!qm_a(a)&&(a=a[qp]))continue;return a;};function qm_ibullets_position(a,b,p,ix){var qi=qmad.ibullets;if(p){a=qi[p][ix-1][0];b=qi[p][ix-1][1];}if(!a.offsetWidth||!a.offsetHeight){if(!p){var ti=\"q_\"+qm_adds_gmc(a).id;if(!qi[ti])qi[ti]=new Array();qi[ti].push(new Array(a,b));p=ti;ix=qi[ti].length;}setTimeout(\"qm_ibullets_position(null,null,'\"+p+\"',\"+ix+\")\",10);}else {if(b.ibhalign==\"right\")b.style.left=(a.offsetWidth+parseInt(b.ibposx)-b.ibiw)+\"px\";else  if(b.ibhalign==\"center\")b.style.left=(parseInt(a.offsetWidth/2)-parseInt(b.ibiw/2)+parseInt(b.ibposx))+\"px\";else b.style.left=b.ibposx+\"px\";if(b.ibvalign==\"bottom\")b.style.top=(a.offsetHeight+parseInt(b.ibposy)-b.ibih)+\"px\";else  if(b.ibvalign==\"middle\")b.style.top=parseInt((a.offsetHeight/2)-parseInt(b.ibih/2)+parseInt(b.ibposy))+\"px\";else b.style.top=b.ibposy+\"px\";}};function qm_ibullets_hover(e,targ){e=e||window.event;if(!targ){var targ=e.srcElement||e.target;while(targ.tagName!=\"A\")targ=targ[qp];}var ch=qmad.ibullets.lasth;if(ch&&ch!=targ){qm_ibullets_hover_off(new Object(),ch);}if(targ.className.indexOf(\"qmactive\")+1)return;var wo=targ.qmibullet;var ma=targ.qmibulletmh;var sa=targ.qmibulletsh;if(wo&&(ma||sa)){var ti=ma;if(sa&&sa!=undefined)ti=sa;if(ma&&ma!=undefined)ti=ma;wo.firstChild.src=ti;qmad.ibullets.lasth=targ;}if(e)qm_kille(e);};function qm_ibullets_hover_off(e,o){if(!o)o=qmad.ibullets.lasth;if(o&&o.className.indexOf(\"qmactive\")==-1){var os=o.getElementsByTagName(\"SPAN\");for(var i=0;i<os.length;i++){if(os[i].getAttribute(\"isibullet\"))os[i].firstChild.src=o.qmibulletorig;}}};function qm_ibullets_active(a,hide){var wo=a.qmibullet;var ma=a.qmibulletma;var sa=a.qmibulletsa;if(!hide&&a.className.indexOf(\"qmactive\")==-1)return;if(hide&&a.idiv){var o=a.idiv;var os=o.getElementsByTagName(\"SPAN\");for(var i=0;i<os.length;i++){if(os[i].getAttribute(\"isibullet\"))os[i].firstChild.src=o.qmibulletorig;}}else {if(!a.cdiv.offsetWidth)a.cdiv.style.visibility=\"inherit\";if(a.cdiv){var aa=a.cdiv.childNodes;for(var i=0;i<aa.length;i++){if(aa[i].tagName==\"A\"&&aa[i].qmibullet)qm_ibullets_position(aa[i],aa[i].qmibullet);}}if(wo&&(ma||sa)){var ti=ma;if(sa&&sa!=undefined)ti=sa;if(ma&&ma!=undefined)ti=ma;wo.firstChild.src=ti;}}}";




	qmv.addons.ibcss = new Object();
	qmv.addons.ibcss.cat = "cssshapes"
	qmv.addons.ibcss.onload = "qm_ibcss_init()";
	qmv.addons.ibcss.compat = "all";
	qmv.addons.ibcss.desc = "Item Bullets (CSS - Imageless)";
	qmv.addons.ibcss.ontest = "ibcss_main_type|ibcss_sub_type";
	qmv.addons.ibcss.code = "qmad.br_navigator=navigator.userAgent.indexOf(\"Netscape\")+1;qmad.br_version=parseFloat(navigator.vendorSub);qmad.br_oldnav6=qmad.br_navigator&&qmad.br_version<7;qmad.br_strict=(dcm=document.compatMode)&&dcm==\"CSS1Compat\";qmad.br_ie=window.showHelp;qmad.str=(qmad.br_ie&&!qmad.br_strict);if(!qmad.br_oldnav6){if(!qmad.ibcss)qmad.ibcss=new Object();if(qmad.bvis.indexOf(\"qm_ibcss_active(o,false);\")==-1){qmad.bvis+=\"qm_ibcss_active(o,false);\";qmad.bhide+=\"qm_ibcss_active(a,1);\";qmad.binit+=\"qm_ibcss_init(null,sd.id.substring(2),1);\";if(window.attachEvent)document.attachEvent(\"onmouseover\",qm_ibcss_hover_off);else  if(window.addEventListener)document.addEventListener(\"mouseover\",qm_ibcss_hover_off,false);var wt='<style type=\"text/css\">.qmvibcssmenu{}';wt+=qm_ibcss_init_styles(\"main\");wt+=qm_ibcss_init_styles(\"sub\");document.write(wt+'</style>');}};function qm_ibcss_init_styles(pfix,id){var wt='';var a=\"transparent\";var b=\"transparent\";var t,q;add_div=\"\";if(pfix==\"sub\")add_div=\"div \";var r1=\"ibcss_\"+pfix+\"_bg_color\";var r2=\"ibcss_\"+pfix+\"_border_color\";for(var i=0;i<10;i++){if(q=qmad[\"qm\"+i]){if(t=q[r1])a=t;if(t=q[r2])b=t;wt+='#qm'+i+' '+add_div+'.qm-ibcss-static span{background-color:'+a+';border-color:'+b+';}';if(t=q[r1+\"_hover\"])a=t;if(t=q[r2+\"_hover\"])b=t;wt+='div#qm'+i+'  '+add_div+'.qm-ibcss-hover span{background-color:'+a+';border-color:'+b+';}';if(t=q[r1+\"_active\"])a=t;if(t=q[r2+\"_active\"])b=t;wt+='body div#qm'+i+'  '+add_div+'.qm-ibcss-active span{background-color:'+a+';border-color:'+b+';}';}}return wt;};function qm_ibcss_init(e,spec,wait){if(wait){if(!isNaN(spec)){setTimeout(\"qm_ibcss_init(null,\"+spec+\")\",10);return;}}var z;if((z=window.qmv)&&(z=z.addons)&&(z=z.ibcss)&&(!z[\"on\"+qmv.id]&&z[\"on\"+qmv.id]!=undefined&&z[\"on\"+qmv.id]!=null))return;qm_ts=1;var q=qmad.ibcss;var a,b,r,sx,sy;z=window.qmv;for(i=0;i<10;i++){if(!(a=document.getElementById(\"qm\"+i))||(!isNaN(spec)&&spec!=i))continue;var ss=qmad[a.id];if(ss&&(ss.ibcss_main_type||ss.ibcss_sub_type)){q.mtype=ss.ibcss_main_type;q.msize=ss.ibcss_main_size;if(!q.msize)q.msize=5;q.md=ss.ibcss_main_direction;if(!q.md)md=\"right\";q.mbg=ss.ibcss_main_bg_color;q.mborder=ss.ibcss_main_border_color;sx=ss.ibcss_main_position_x;sy=ss.ibcss_main_position_y;if(!sx)sx=0;if(!sy)sy=0;q.mpos=eval(\"new Array('\"+sx+\"','\"+sy+\"')\");q.malign=eval(\"new Array('\"+ss.ibcss_main_align_x+\"','\"+ss.ibcss_main_align_y+\"')\");r=q.malign;if(!r[0])r[0]=\"right\";if(!r[1])r[1]=\"center\";q.stype=ss.ibcss_sub_type;q.ssize=ss.ibcss_sub_size;if(!q.ssize)q.ssize=5;q.sd=ss.ibcss_sub_direction;if(!q.sd)sd=\"right\";q.sbg=ss.ibcss_sub_bg_color;q.sborder=ss.ibcss_sub_border_color;sx=ss.ibcss_sub_position_x;sy=ss.ibcss_sub_position_y;if(!sx)sx=0;if(!sy)sy=0;q.spos=eval(\"new Array('\"+sx+\"','\"+sy+\"')\");q.salign=eval(\"new Array('\"+ss.ibcss_sub_align_x+\"','\"+ss.ibcss_sub_align_y+\"')\");r=q.salign;if(!r[0])r[0]=\"right\";if(!r[1])r[1]=\"middle\";q.type=ss.ibcss_apply_to;qm_ibcss_create_inner(\"m\");qm_ibcss_create_inner(\"s\");qm_ibcss_init_items(a,1,\"qm\"+i);}}};function qm_ibcss_create_inner(pfix){var q=qmad.ibcss;var wt=\"\";var s=q[pfix+\"size\"];var type=q[pfix+\"type\"];var head;if(type.indexOf(\"head\")+1)head=true;var gap;if(type.indexOf(\"gap\")+1)gap=true;var v;if(type.indexOf(\"-v\")+1)v=true;if(type.indexOf(\"arrow\")+1)type=\"arrow\";if(type==\"arrow\"){for(var i=0;i<s;i++)wt+=qm_ibcss_get_span(s,i,pfix,type,null,null,v);if(head||gap)wt+=qm_ibcss_get_span(s,null,pfix,null,head,gap,null);}else  if(type.indexOf(\"square\")+1){var inner;if(type.indexOf(\"-inner\")+1)inner=true;var raised;if(type.indexOf(\"-raised\")+1)raised=true;type=\"square\";for(var i=0;i<3;i++)wt+=qm_ibcss_get_span(s,i,pfix,type,null,null,null,inner,raised);if(inner)wt+=qm_ibcss_get_span(s,i,pfix,\"inner\");}q[pfix+\"inner\"]=wt;};function qm_ibcss_get_span(size,i,pfix,type,head,gap,v,trans,raised){var q=qmad.ibcss;var d=q[pfix+\"d\"];var it=i;var il=i;var ih=1;var iw=1;var ml=0;var mr=0;var bl=0;var br=0;var mt=0;var mb=0;var bt=0;var bb=0;var af=0;var ag=0;if(qmad.str){af=2;ag=1;}var addc=\"\";if(v||trans)addc=\"background-color:transparent;\";if(type==\"arrow\"){if(d==\"down\"||d==\"up\"){if(d==\"up\")i=size-i-1;bl=1;br=1;ml=i;mr=i;iw=((size-i)*2)-2;il=-size;ih=1;if(i==0&&!v){bl=iw+2;br=0;ml=0;mr=0;iw=0;if(qmad.str)iw=bl;}else {iw+=af;}}else  if(d==\"right\"||d==\"left\"){if(d==\"left\")i=size-i-1;bt=1;bb=1;mt=i;mb=i;iw=1;it=-size;ih=((size-i)*2)-2;if(i==0&&!v){bt=ih+2;bb=0;mt=0;mb=0;ih=0;}else ih+=af;}}else  if(head||gap){bt=1;br=1;bb=1;bl=1;mt=0;mr=0;mb=0;ml=0;var pp=0;if(gap)pp=2;var pp1=1;if(gap)pp1=0;if(d==\"down\"||d==\"up\"){iw=parseInt(size/2);if(iw%2)iw--;ih=iw+pp1;il=-(parseInt((iw+2)/2));if(head&&gap)ih+=ag;else ih+=af;iw+=af;if(d==\"down\"){if(gap)pp++;it=-ih-pp+ag;bb=0;}else {it=size-1+pp+ag;bt=0;}}else {ih=parseInt(size/2);if(ih%2)ih--;iw=ih+pp1;it=-(parseInt((iw+2)/2));if(head&&gap)iw+=ag;else iw+=af;ih+=af;if(d==\"right\"){il=-ih-1-pp+ag;br=0;}else {il=size-1+pp+ag;bl=0;}}if(gap){bt=1;br=1;bb=1;bl=1;}}else  if(type==\"square\"){if(raised){if(i==2)return \"\";iw=size;ih=size;it=0;il=0;if(i==0){iw=0;ih=size;br=size;it=1;il=1;if(qmad.str)iw=br;}}else {if(size%2)size++;it=1;ih=size;iw=size;bl=1;br=1;il=0;iw+=af;if(i==0||i==2){ml=1;it=0;ih=1;bl=size;br=0;iw=0;if(qmad.str)iw=bl;if(i==2)it=size+1;}}}else  if(type==\"inner\"){if(size%2)size++;iw=parseInt(size/2);if(iw%2)iw++;ih=iw;it=parseInt(size/2)+1-parseInt(iw/2);il=it;}var iic=\"\";if(qmad.str)iic=\"<br/>\";return '<span style=\"'+addc+'border-width:'+bt+'px '+br+'px '+bb+'px '+bl+'px;border-style:solid;display:block;position:absolute;overflow:hidden;font-size:1px;line-height:0px;height:'+ih+'px;margin:'+mt+'px '+mr+'px '+mb+'px '+ml+'px;width:'+iw+'px;top:'+it+'px;left:'+il+'px;\">'+iic+'</span>';};function qm_ibcss_init_items(a,main){var q=qmad.ibcss;var aa,pf;aa=a.childNodes;for(var j=0;j<aa.length;j++){if(aa[j].tagName==\"A\"){if(window.attachEvent)aa[j].attachEvent(\"onmouseover\",qm_ibcss_hover);else  if(window.addEventListener)aa[j].addEventListener(\"mouseover\",qm_ibcss_hover,false);var skip=false;if(q.type!=\"all\"){if(q.type==\"parent\"&&!aa[j].cdiv)skip=true;if(q.type==\"non-parent\"&&aa[j].cdiv)skip=true;}if(!skip){if(main)pf=\"m\";else pf=\"s\";var ss=document.createElement(\"SPAN\");ss.className=\"qm-ibcss-static\";var s1=ss.style;s1.display=\"block\";s1.position=\"relative\";s1.fontSize=\"1px\";s1.lineHeight=\"0px\";s1.zIndex=1;ss.ibhalign=q[pf+\"align\"][0];ss.ibvalign=q[pf+\"align\"][1];ss.ibposx=q[pf+\"pos\"][0];ss.ibposy=q[pf+\"pos\"][1];ss.ibsize=q[pf+\"size\"];qm_ibcss_position(aa[j],ss);ss.innerHTML=q[pf+\"inner\"];aa[j].qmibulletcss=aa[j].insertBefore(ss,aa[j].firstChild);ss.setAttribute(\"qmvbefore\",1);ss.setAttribute(\"isibulletcss\",1);if(aa[j].className.indexOf(\"qmactive\")+1)qm_ibcss_active(aa[j]);}if(aa[j].cdiv)new qm_ibcss_init_items(aa[j].cdiv,null);}}};function qm_adds_gmc(a){while(!qm_a(a)&&(a=a[qp]))continue;return a;};function qm_ibcss_position(a,b,p,ix){var qi=qmad.ibcss;if(p){a=qi[p][ix-1][0];b=qi[p][ix-1][1];}if(!a.offsetWidth||!a.offsetHeight){if(!p){var ti=\"q_\"+qm_adds_gmc(a).id;if(!qi[ti])qi[ti]=new Array();qi[ti].push(new Array(a,b));p=ti;ix=qi[ti].length;}setTimeout(\"qm_ibcss_position(null,null,'\"+p+\"',\"+ix+\")\",10);}else {if(b.ibhalign==\"right\")b.style.left=(a.offsetWidth+parseInt(b.ibposx)-b.ibsize)+\"px\";else  if(b.ibhalign==\"center\")b.style.left=(parseInt(a.offsetWidth/2)-parseInt(b.ibsize/2)+parseInt(b.ibposx))+\"px\";else b.style.left=b.ibposx+\"px\";if(b.ibvalign==\"bottom\")b.style.top=(a.offsetHeight+parseInt(b.ibposy)-b.ibsize)+\"px\";else  if(b.ibvalign==\"middle\")b.style.top=parseInt((a.offsetHeight/2)-parseInt(b.ibsize/2)+parseInt(b.ibposy))+\"px\";else b.style.top=b.ibposy+\"px\";}};function qm_ibcss_hover(e,targ){e=e||window.event;if(!targ){var targ=e.srcElement||e.target;while(targ.tagName!=\"A\")targ=targ[qp];}var ch=qmad.ibcss.lasth;if(ch&&ch!=targ&&ch.qmibulletcss)qm_ibcss_hover_off(new Object(),ch);if(targ.className.indexOf(\"qmactive\")+1)return;var wo=targ.qmibulletcss;if(wo){x2(\"qm-ibcss-hover\",wo,1);qmad.ibcss.lasth=targ;}if(e)qm_kille(e);};function qm_ibcss_hover_off(e,o){if(!o)o=qmad.ibcss.lasth;if(o&&o.qmibulletcss)x2(\"qm-ibcss-hover\",o.qmibulletcss);};function qm_ibcss_active(a,hide){if(!hide&&a.className.indexOf(\"qmactive\")==-1)return;if(hide&&a.idiv){var o=a.idiv;if(o&&o.qmibulletcss){x2(\"qm-ibcss-active\",o.qmibulletcss);}}else {if(!a.cdiv.offsetWidth)a.cdiv.style.visibility=\"inherit\";var aa=a.cdiv.childNodes;for(var i=0;i<aa.length;i++){if(aa[i].tagName==\"A\"&&aa[i].qmibulletcss)qm_ibcss_position(aa[i],aa[i].qmibulletcss);}var wo=a.qmibulletcss;if(wo)x2(\"qm-ibcss-active\",wo,1);}}";
	
	

	qmv.addons.over_select = new Object();
	qmv.addons.over_select.cat = "free"
	qmv.addons.over_select.compat = "sopacity,fade,hoverfill,bump_effect,ritem,image,drop_shadow,round_corners,match_widths,merge_effect,slide_effect,tabs,apsubs,tabscss,pointer,box_effect";
	qmv.addons.over_select.desc = "IE Over Select Fix";
	qmv.addons.over_select.ontest = "overselects_active";
	qmv.addons.over_select.code = "if(window.showHelp&&!window.XMLHttpRequest){if(qmad.bvis.indexOf(\"qm_over_select(b.cdiv);\")==-1){qmad.bvis+=\"qm_over_select(b.cdiv);\";qmad.bhide+=\"qm_over_select(a,1);\";}};function qm_over_select(a,hide){var z;if((z=window.qmv)&&(z=z.addons)&&(z=z.over_select)&&!z[\"on\"+qm_index(a)])return;if(!a.settingsid){var v=a;while(!qm_a(v))v=v[qp];a.settingsid=v.id;}var ss=qmad[a.settingsid];if(!ss)return;if(!ss.overselects_active)return;if(!hide&&!a.hasselectfix){var f=document.createElement(\"IFRAME\");f.style.position=\"absolute\";f.style.filter=\"alpha(opacity=0)\";f.src=\"javascript:false;\";f=a.parentNode.appendChild(f);f.frameborder=0;a.hasselectfix=f;}var b=a.hasselectfix;if(b){if(hide)b.style.display=\"none\";else {var oxy=0;if(a.hasshadow&&a.hasshadow.style.visibility==\"inherit\")oxy=parseInt(ss.shadow_offset);if(!oxy)oxy=0;b.style.width=a.offsetWidth+oxy;b.style.height=a.offsetHeight+oxy;b.style.top=a.style.top;b.style.left=a.style.left;b.style.margin=a.currentStyle.margin;b.style.display=\"block\";}}}";
	

	qmv.addons.apsubs = new Object();
	qmv.addons.apsubs.cat = "menucontrol"
	qmv.addons.apsubs.compat = "sopacity,fade,hoverfill,ritem,image,drop_shadow,round_corners,match_widths,tabs,image,tabscss,pointer";
	qmv.addons.apsubs.desc = "Keep Subs In window";
	qmv.addons.apsubs.ontest = "subs_in_window_active";
	qmv.addons.apsubs.code = "qmad.apsubs=new Object();if(qmad.bvis.indexOf(\"qm_apsubs(b.cdiv,o);\")==-1)qmad.bvis+=\"qm_apsubs(b.cdiv,o);\";;function qm_apsubs(a){var z;if((z=window.qmv)&&(z=z.addons)&&(z=z.apsubs)&&!z[\"on\"+qm_index(a)])return;if(!a.settingsid){var v=a;while(!qm_a(v))v=v[qp];a.settingsid=v.id;}var ss=qmad[a.settingsid];if(!ss)return;if(!ss.subs_in_window_active)return;var wh=qm_get_doc_wh();var sxy=qm_get_doc_scrollxy();var xy=qm_get_offset(a);var c1=a.offsetWidth+xy[0];var c2=wh[0]+sxy[0];if(c1>c2){a.style.left=(parseInt(a.style.left)-(c1-c2))+\"px\";if(a.hasshadow)a.hasshadow.style.left=(parseInt(a.hasshadow.style.left)-(c1-c2))+\"px\";if(a.hasselectfix)a.hasselectfix.style.left=(parseInt(a.hasselectfix.style.left)-(c1-c2))+\"px\";}c1=a.offsetHeight+xy[1];c2=wh[1]+sxy[1];if(c1>c2){a.style.top=(parseInt(a.style.top)-(c1-c2))+\"px\";if(a.hasshadow)a.hasshadow.style.top=(parseInt(a.hasshadow.style.top)-(c1-c2))+\"px\";if(a.hasselectfix)a.hasselectfix.style.top=(parseInt(a.hasselectfix.style.top)-(c1-c2))+\"px\";}};function qm_get_offset(obj){var x=0;var y=0;do{x+=obj.offsetLeft;y+=obj.offsetTop;}while(obj=obj.offsetParent)return new Array(x,y);};function qm_get_doc_scrollxy(){var sy=0;var sx=0;if((sd=document.documentElement)&&(sd=sd.scrollTop))sy=sd;else  if(sd=document.body.scrollTop)sy=sd;if((sd=document.documentElement)&&(sd=sd.scrollLeft))sx=sd;else  if(sd=document.body.scrollLeft)sx=sd;return new Array(sx,sy);};function qm_get_doc_wh(){db=document.body;var w=0;var h=0;if(tval=window.innerHeight){h=tval;w=window.innerWidth;}else  if((e=document.documentElement)&&(e=e.clientHeight)){h=e;w=document.documentElement.clientWidth;}else  if(e=db.clientHeight){if(!h)h=e;if(!w)w=db.clientWidth;}return new Array(w,h);}";
	

	qmv.addons.pointer = new Object();
	qmv.addons.pointer.cat = "cssshapes"
	qmv.addons.pointer.compat = "sopacity,fade,hoverfill,bump_effect,ritem,sopen,apsubs,over_select,ibcss,item_bullets,tabscss,tabs,slide_effect,merge_effect,match_widths,round_corners,drop_shadow,image,box_effect";
	qmv.addons.pointer.desc = "Follow Pointer";
	qmv.addons.pointer.ontest = "pointer_main_image|pointer_sub_image";
	qmv.addons.pointer.code = "qmad.br_safari=navigator.userAgent.indexOf(\"afari\")+1;qmad.br_navigator=navigator.userAgent.indexOf(\"Netscape\")+1;qmad.br_version=parseFloat(navigator.vendorSub);qmad.br_oldnav=qmad.br_navigator&&qmad.br_version<7.1;if(!qmad.pointer&&!qmad.br_oldnav){qmad.pointer=new Object();if(window.attachEvent)window.attachEvent(\"onload\",qm_pointer_init);else  if(window.addEventListener)window.addEventListener(\"load\",qm_pointer_init,1);if(window.attachEvent)document.attachEvent(\"onmouseover\",qm_pointer_hide);else  if(window.addEventListener)document.addEventListener(\"mouseover\",qm_pointer_hide,false);};function qm_pointer_init(e,spec){var q=qmad.pointer;var a;for(i=0;i<10;i++){if(!(a=document.getElementById(\"qm\"+i))||(spec&&spec!=i))continue;var ss=qmad[a.id];if(ss&&(ss.pointer_main_image||ss.pointer_sub_image)){q.mimg=ss.pointer_main_image;q.mimgw=ss.pointer_main_image_width;if(!q.mimgw)q.mimgw=0;q.mimgh=ss.pointer_main_image_height;if(!q.mimgh)q.mimgh=0;q.malign=ss.pointer_main_align;if(!q.malign)q.malign=\"top-or-left\";q.mox=ss.pointer_main_off_x;if(!q.mox)q.mox=0;q.moy=ss.pointer_main_off_y;if(!q.moy)q.moy=0;q.simg=ss.pointer_sub_image;q.simgw=ss.pointer_sub_image_width;if(!q.mimgw)q.simgw=0;q.simgh=ss.pointer_sub_image_height;if(!q.mimgh)q.mimgh=0;q.salign=ss.pointer_sub_align;if(!q.salign)q.salign=\"top-or-left\";q.sox=ss.pointer_sub_off_x;if(!q.sox)q.sox=0;q.soy=ss.pointer_sub_off_y;if(!q.soy)q.soy=0;qm_pointer_add(a,\"m\");var at=a.getElementsByTagName(\"DIV\");for(var i=0;i<at.length;i++)qm_pointer_add(at[i],\"s\");}i++;}};function qm_pointer_add(a,type){var q=qmad.pointer;var img=q[type+\"img\"];if(a.attachEvent)a.attachEvent(\"onmousemove\",qm_pointer_move);else  if(a.addEventListener)a.addEventListener(\"mousemove\",qm_pointer_move,1);if(!img)return;var sp=document.createElement(\"SPAN\");sp.style.position=\"absolute\";sp.style.visibility=\"hidden\";sp.style.zIndex=9;if(a.ch)sp.style.top=(-q[type+\"imgh\"]+q[type+\"oy\"])+\"px\";else sp.style.left=(-q[type+\"imgw\"]+q[type+\"ox\"])+\"px\";if(q[type+\"align\"]==\"bottom-or-right\")sp.pointerbr=1;sp.pointerox=q[type+\"ox\"];sp.pointeroy=q[type+\"oy\"];sp.innerHTML='<img style=\"position:absolute;\" src=\"'+img+'\"  width='+q[type+\"imgw\"]+' height='+q[type+\"imgh\"]+'>';sp=a.appendChild(sp);a.haspointer=sp;};function qm_pointer_hide(){var q=qmad.pointer;if(q.lastm&&a!=q.lastm){q.lastm.style.visibility=\"hidden\";q.lastm=null;}};function qm_pointer_move(e){var q=qmad.pointer;e=e||window.event;targ=e.srcElement||e.target;while(targ.tagName!=\"DIV\")targ=targ[qp];if(q.lastm&&a!=q.lastm){q.lastm.style.visibility=\"hidden\";q.lastm=null;}var a;if(a=targ.haspointer){if(a.style.visibility!=\"inherit\")a.style.visibility=\"inherit\";var x=e.clientX;var y=e.clientY;var oxy=qm_pointer_get_offsets(targ);var sxy=qm_get_doc_scrollxy();if(targ.ch){a.style.left=(x-oxy[0]+sxy[0]+a.pointerox)+\"px\";if(a.pointerbr)a.style.top=(targ.offsetHeight+a.pointeroy)+\"px\";}else {a.style.top=(y-oxy[1]+sxy[1]+a.pointeroy)+\"px\";if(a.pointerbr)a.style.left=(targ.offsetWidth+a.pointerox)+\"px\";}q.lastm=a;}};function qm_get_doc_scrollxy(){var sy=0;var sx=0;if((sd=document.documentElement)&&(sd=sd.scrollTop))sy=sd;else  if(sd=document.body.scrollTop)sy=sd;if((sd=document.documentElement)&&(sd=sd.scrollLeft))sx=sd;else  if(sd=document.body.scrollLeft)sx=sd;return new Array(sx,sy);};function qm_pointer_get_offsets(a){var x=0;var y=0;while(a){x+=a.offsetLeft;y+=a.offsetTop;a=a.offsetParent;}return new Array(x,y);}";


	qmv.addons.box_effect = new Object();
	qmv.addons.box_effect.cat = "animation"
	qmv.addons.box_effect.compat = "sopacity,fade,hoverfill,ritem,sopen,apsubs,over_select,ibcss,item_bullets,tabscss,tabs,match_widths,round_corners,drop_shadow,image,box_effect,pointer";
	qmv.addons.box_effect.desc = "Box Animation";
	qmv.addons.box_effect.ontest = "box_animation_frames";
	qmv.addons.box_effect.code = "qmad.br_navigator=navigator.userAgent.indexOf(\"Netscape\")+1;qmad.br_version=parseFloat(navigator.vendorSub);qmad.br_oldnav=qmad.br_navigator&&qmad.br_version<7.1;qmad.br_ie=window.showHelp;qmad.br_mac=navigator.userAgent.indexOf(\"Mac\")+1;qmad.br_old_safari=navigator.userAgent.indexOf(\"afari\")+1&&!window.XMLHttpRequest;qmad.box_off=(qmad.br_mac&&qmad.br_ie)||qmad.br_old_safari;if(!qmad.box){qmad.box=new Object();if(qmad.bvis.indexOf(\"qm_box_a(b.cdiv);\")==-1)qmad.bvis+=\"qm_box_a(b.cdiv);\";if(qmad.bhide.indexOf(\"qm_box_a(a,1);\")==-1)qmad.bhide+=\"qm_box_a(a,1);\";};function qm_box_a(a,hide){var z;if((a.style.visibility==\"inherit\"&&!hide)||(qmad.box_off)||((z=window.qmv)&&(z=z.addons)&&(z=z.box_effect)&&!z[\"on\"+qm_index(a)]))return;var ss;if(!a.settingsid){var v=a;while((v=v.parentNode)){if(v.className.indexOf(\"qmmc\")+1){a.settingsid=v.id;break;}}}ss=qmad[a.settingsid];if(!ss)return;if(!ss.box_animation_frames)return;qm_th=0;var steps=ss.box_animation_frames;var b=new Object();b.obj=a;b.accelerator=ss.box_accelerator;if(!b.accelerator)b.accelerator=0;b.position=ss.box_position;if(!b.position)b.position=\"center\";if(!a.hasbox){var s=document.createElement(\"SPAN\");s.className=\"qmbox\";s.style.display=\"block\";s.style.position=\"absolute\";s.style.top=a.offsetTop+\"px\";s.style.left=a.offsetLeft+\"px\";s.style.fontSize=\"1px\";s.style.lineHieght=\"0px\";s=a[qp].appendChild(s);a.hasbox=s;}b.stepx=a.offsetWidth/steps;b.stepy=a.offsetHeight/steps;if(hide){b.growx=a.hasbox.offsetWidth;b.growy=a.hasbox.offsetHeight;b.ishide=true;}else {b.growx=0;b.growy=0;}b.fixsize=2;x2(\"qmfh\",a,1);if(a.hasshadow)x2(\"qmfh\",a.hasshadow,1);a.hasbox.style.visibility=\"visible\";qm_box_ai(qm_box_am(b,hide),hide);};function qm_box_ai(id,hide){var a=qmad.box[\"_\"+id];if(!a||!a.obj.hasbox)return;var box=a.obj.hasbox;var sub=a.obj;a.stepy+=a.accelerator;a.stepx+=a.accelerator;var go=false;if(!hide){a.growx+=a.stepx;a.growy+=a.stepy;if(a.growx<sub.offsetWidth){go=true;box.style.width=parseInt(a.growx)+\"px\";qm_box_position_it(box,a);}else box.style.width=(sub.offsetWidth-a.fixsize)+\"px\";if(a.growy<sub.offsetHeight){go=true;box.style.height=parseInt(a.growy)+\"px\";}else box.style.height=(sub.offsetHeight-a.fixsize)+\"px\";}else {a.growx-=a.stepx;a.growy-=a.stepy;if(a.growx>0){go=true;box.style.width=parseInt(a.growx)+\"px\";qm_box_position_it(box,a);}else box.style.width=0+\"px\";if(a.growy>0){go=true;box.style.height=parseInt(a.growy)+\"px\";}else box.style.height=0+\"px\";}if(go){a.timer=setTimeout(\"qm_box_ai(\"+id+\",\"+hide+\")\",10);}else {if(!hide)qm_box_position_it(box,a,1);x2(\"qmfh\",sub);if(sub.hasshadow)x2(\"qmfh\",sub.hasshadow);box.style.visibility=\"hidden\";}};function qm_box_position_it(box,a,def){if(a.position==\"center\"){box.style.left=parseInt((a.obj.offsetWidth-box.offsetWidth)/2)+a.obj.offsetLeft+\"px\";box.style.top=parseInt((a.obj.offsetHeight-box.offsetHeight)/2)+a.obj.offsetTop+\"px\";}else {if(a.position==\"top\"){box.style.left=parseInt((a.obj.offsetWidth-box.offsetWidth)/2)+a.obj.offsetLeft+\"px\";box.style.top=a.obj.offsetTop+\"px\";}else  if(a.position==\"left\"){box.style.left=a.obj.offsetLeft+\"px\";box.style.top=parseInt((a.obj.offsetHeight-box.offsetHeight)/2)+a.obj.offsetTop+\"px\";}}};function qm_box_hide(){var z;if((z=window.qmv)&&(z=z.addons)&&(z=z.box_effect)&&!qmv.preview_mode)return;var k;for(k in qmad.box){var a;if((a=qmad.box[k]).obj){if(!a.ishide&&a.timer){clearTimeout(a.timer);a.timer=null;qm_box_a(a.obj,1);}}}};function qm_box_am(obj,hide){var k;for(k in qmad.box){if(qmad.box[k]&&obj.obj==qmad.box[k].obj){if(qmad.box[k].timer){clearTimeout(qmad.box[k].timer);qmad.box[k].timer=null;}qmad.box[k]=null;}}var i=0;while(qmad.box[\"_\"+i])i++;qmad.box[\"_\"+i]=obj;return i;}";
	

	qmv.addons.ritem = new Object();
	qmv.addons.ritem.cat = "cssshapes"
	qmv.addons.ritem.compat = "sopacity,fade,hoverfill,bump_effect,box_effect,pointer,sopen,apsubs,over_select,ibcss,item_bullets,tabs,tabscss,slide_effect,merge_effect,match_widths,round_corners,drop_shadow,keyboard,image";
	qmv.addons.ritem.desc = "Rounded Items";
	qmv.addons.ritem.ontest = "ritem_size";
	qmv.addons.ritem.code = "qmad.br_navigator=navigator.userAgent.indexOf(\"Netscape\")+1;qmad.br_version=parseFloat(navigator.vendorSub);qmad.br_oldnav6=qmad.br_navigator&&qmad.br_version<7;qmad.br_strict=(dcm=document.compatMode)&&dcm==\"CSS1Compat\";qmad.br_ie=window.showHelp;qmad.str=(qmad.br_ie&&!qmad.br_strict);if(!qmad.br_oldnav6){if(!qmad.ritem){qmad.ritem=new Object();if(qmad.bvis.indexOf(\"qm_ritem_a(b.cdiv);\")==-1){qmad.bvis+=\"qm_ritem_a(b.cdiv);\";qmad.bhide+=\"qm_ritem_a_hide(a);\";qmad.binit+=\"qm_ritem_init(null,sd.id.substring(2),1);\";}var ca=\"cursor:pointer;\";if(qmad.br_ie)ca=\"cursor:hand;\";var wt='<style type=\"text/css\">.qmvritemmenu{}';wt+=\".qmmc .qmritem span{\"+ca+\"}\";document.write(wt+'</style>');}};function qm_ritem_init(e,spec,wait){if(wait){if(!isNaN(spec)){setTimeout(\"qm_ritem_init(null,\"+spec+\")\",10);return;}}var z;if((z=window.qmv)&&(z=z.addons)&&(z=z.ritem)&&(!z[\"on\"+qmv.id]&&z[\"on\"+qmv.id]!=undefined&&z[\"on\"+qmv.id]!=null))return;qm_ts=1;var q=qmad.ritem;var a,b,r,sx,sy;z=window.qmv;for(i=0;i<10;i++){if(!(a=document.getElementById(\"qm\"+i))||(!isNaN(spec)&&spec!=i))continue;var ss=qmad[a.id];if(ss&&ss.ritem_size){q.size=ss.ritem_size;q.apply=ss.ritem_apply;if(!q.apply)q.apply=\"main\";q.angle=ss.ritem_angle_corners;q.corners_main=ss.ritem_main_apply_corners;if(!q.corners_main||q.corners_main.length<4)q.corners_main=new Array(true,1,1,1);q.corners_sub=ss.ritem_sub_apply_corners;if(!q.corners_sub||q.corners_sub.length<4)q.corners_sub=new Array(true,1,1,1);q.sactive=false;if(ss.ritem_show_on_actives)q.sactive=true;q.opacity=ss.ritem_opacity;if(q.opacity&&q.opacity!=1){var addf=\"\";if(window.showHelp)addf=\"filter:alpha(opacity=\"+(q.opacity*100)+\");\";q.opacity=\"opacity:\"+q.opacity+\";\"+addf;}else q.opacity=\"\";qm_ritem_add_rounds(a);}}};function qm_ritem_a_hide(a){if(a.idiv.hasritem&&qmad.ritem.sactive)a.idiv.hasritem.style.visibility=\"hidden\";};function qm_ritem_a(a){if(a)qmad.ritem.a=a;else a=qmad.ritem.a;if(a.idiv.hasritem&&qmad.ritem.sactive)a.idiv.hasritem.style.visibility=\"inherit\";if(a.ritemfixed)return;var aa=a.childNodes;for(var i=0;i<aa.length;i++){var b;if(b=aa[i].hasritem){if(!aa[i].offsetWidth){setTimeout(\"qm_ritem_a()\",10);return;}else {b.style.top=\"0px\";b.style.left=\"0px\";b.style.width=aa[i].offsetWidth+\"px\";a.ritemfixed=1;}}}};function qm_ritem_add_rounds(a){var q=qmad.ritem;var atags,ist,isd,isp,gom,gos;if(q.apply.indexOf(\"titles\")+1)ist=true;if(q.apply.indexOf(\"dividers\")+1)isd=true;if(q.apply.indexOf(\"parents\")+1)isp=true;if(q.apply.indexOf(\"sub\")+1)gos=true;if(q.apply.indexOf(\"main\")+1)gom=true;atags=a.childNodes;for(var k=0;k<atags.length;k++){if(atags[k].hasritem)continue;if((atags[k].tagName!=\"SPAN\"&&atags[k].tagName!=\"A\")||(q.sactive&&!atags[k].cdiv))continue;var ism=qm_a(atags[k][qp]);if((isd&&atags[k].className.indexOf(\"qmdivider\")+1)||(ist&&atags[k].className.indexOf(\"qmtitle\")+1)||(gom&&ism&&atags[k].tagName==\"A\")||(atags[k].className.indexOf(\"qmrounditem\")+1)||(gos&&!ism&&atags[k].tagName==\"A\")||(isp&&atags[k].cdiv)){var f=document.createElement(\"SPAN\");f.className=\"qmritem\";f.setAttribute(\"qmvbefore\",1);var fs=f.style;fs.position=\"absolute\";fs.display=\"block\";fs.top=\"0px\";fs.left=\"0px\";fs.width=atags[k].offsetWidth+\"px\";if(q.sactive&&atags[k].cdiv.style.visibility!=\"inherit\")fs.visibility=\"hidden\";var size=q.size;q.mid=parseInt(size/2);q.ps=new Array(size+1);var t2=0;q.osize=q.size;if(!q.angle){for(var i=0;i<=size;i++){if(i==q.mid)t2=0;q.ps[i]=t2;t2+=Math.abs(q.mid-i)+1;}q.osize=1;}var fi=\"\";var ctype=\"main\";if(!ism)ctype=\"sub\";for(var i=0;i<size;i++)fi+=qm_ritem_get_span(size,i,1,ctype);var cn=atags[k].cloneNode(true);var cns=cn.getElementsByTagName(\"SPAN\");for(var l=0;l<cns.length;l++){if(cns[l].getAttribute(\"isibulletcss\")||cns[l].getAttribute(\"isibullet\"))cn.removeChild(cns[l]);}fi+='<span class=\"qmritemcontent\" style=\"display:block;border-style:solid;border-width:0px 1px 0px 1px;'+q.opacity+'\">'+cn.innerHTML+'</span>';for(var i=size-1;i>=0;i--)fi+=qm_ritem_get_span(size,i,null,ctype);f.innerHTML=fi;f=atags[k].insertBefore(f,atags[k].firstChild);atags[k].hasritem=f;}if(atags[k].cdiv)new qm_ritem_add_rounds(atags[k].cdiv);}};function qm_ritem_get_span(size,i,top,ctype){var q=qmad.ritem;var mlmr;if(i==0){var mo=q.ps[size]+q.mid;if(q.angle)mo=size-i;var fs=\"\";if(qmad.str)fs=\"<br/>\";mlmr=qm_ritem_get_corners(mo,null,top,ctype);return '<span style=\"border-width:1px 0px 0px 0px;border-style:solid;display:block;font-size:1px;overflow:hidden;line-height:0px;height:0px;margin-left:'+mlmr[0]+'px;margin-right:'+mlmr[1]+'px;'+q.opacity+'\">'+fs+'</span>';}else {var md=size-(i);var ih=1;var bs=1;if(!q.angle){if(i>=q.mid)ih=Math.abs(q.mid-i)+1;else {bs=Math.abs(q.mid-i)+1;md=q.ps[size-i]+q.mid;}if(top)q.osize+=ih;}mlmr=qm_ritem_get_corners(md,bs,top,ctype);return '<span style=\"border-width:0px '+mlmr[3]+'px 0px '+mlmr[2]+'px;border-style:solid;display:block;overflow:hidden;font-size:1px;line-height:0px;height:'+ih+'px;margin-left:'+mlmr[0]+'px;margin-right:'+mlmr[1]+'px;'+q.opacity+'\"></span>';}};function qm_ritem_get_corners(mval,bval,top,ctype){var q=qmad.ritem;var ml=mval;var mr=mval;var bl=bval;var br=bval;if(top){if(!q[\"corners_\"+ctype][0]){ml=0;bl=1;}if(!q[\"corners_\"+ctype][1]){mr=0;br=1;}}else {if(!q[\"corners_\"+ctype][2]){mr=0;br=1;}if(!q[\"corners_\"+ctype][3]){ml=0;bl=1;}}return new Array(ml,mr,bl,br);}";



	qmv.addons.sopen = new Object();
	qmv.addons.sopen.cat = "menucontrol"
	qmv.addons.sopen.compat = "all";
	qmv.addons.sopen.desc = "Show Subs Onload";
	qmv.addons.sopen.noupdate = 1;
	qmv.addons.sopen.ontest = "showload_active";	
	qmv.addons.sopen.code = "if(!qmad.sopen){qmad.sopen=new Object();qmad.sopen.log=new Array();if(qmad.binit.indexOf(\"qm_sopen_init(null);\")==-1)qmad.binit+=\"qm_sopen_init(null);\";};function qm_sopen_init(e,go){if(window.qmv)return;if(!go){setTimeout(\"qm_sopen_init(null,1)\",10);return;}var auto_close=false;var i;var ql=qmad.sopen.log;for(i=0;i<10;i++){var a;if(a=document.getElementById(\"qm\"+i)){var ss=qmad[a.id];if(ss&&!ss.showload_active)continue;if(ss&&ss.showload_auto_close)auto_close=true;var dd=a.getElementsByTagName(\"DIV\");for(var j=0;j<dd.length;j++){if(dd[j].idiv&&dd[j].idiv.className.indexOf(\"qm-startopen\")+1){ql.push(dd[j].idiv);var f=dd[j][qp];if(!qm_a(f)){var b=false;for(var k=0;k<ql.length;k++){if(ql[k]==f.idiv)ql[k]=null;}ql.push(f.idiv);f=f[qp];}}}}}var se=0;var sc=0;if(qmad.tree){se=qmad.tree.etype;sc=qmad.tree.ctype;qmad.tree.etype=0;qmad.tree.ctype=0;}for(i=ql.length-1;i>=0;i--){if(ql[i]){qm_oo(new Object(),ql[i],1);if(!auto_close)qm_li=new Object();}}if(qmad.tree){qmad.tree.etype=se;qmad.tree.ctype=sc;}}";


	qmv.addons.sopen_auto = new Object();
	qmv.addons.sopen_auto.cat = "menucontrol"
	qmv.addons.sopen_auto.compat = "all";
	qmv.addons.sopen_auto.desc = "Persistent States With Auto Open Subs Option";
	qmv.addons.sopen_auto.noupdate = 1;
	qmv.addons.sopen_auto.ontest = "sopen_auto_enabled";	
	qmv.addons.sopen_auto.code = "if(!qmad.sopen_auto){qmad.sopen_auto=new Object();if(qmad.binit.indexOf(\"qm_sopen_auto_init(null,sd.id.substring(2),1);\")==-1)qmad.binit+=\"qm_sopen_auto_init(null,sd.id.substring(2),1);\";};function qm_sopen_auto_init(e,spec,wait){if(window.qmv)return;if(wait){if(!isNaN(spec)){setTimeout(\"qm_sopen_auto_init(null,\"+spec+\")\",10);return;}}var i=spec;var ql=new Array();var ss=qmad[\"qm\"+i];var a;if(!(a=document.getElementById(\"qm\"+i))||!ss.sopen_auto_enabled)return;var curl=qm_sopen_split_query(window.location.href);var dd=a.getElementsByTagName(\"A\");for(var j=0;j<dd.length;j++){var aurl=qm_sopen_split_query(dd[j].getAttribute(\"href\",1));loc=curl[0].length-aurl[0].length;var ml=false;if(curl[0].indexOf(aurl[0])+aurl[0].length==curl[0].length)ml=true;if((curl[0].indexOf(aurl[0])==-1||!ml)||(ss.sopen_auto_match_query&&curl[1]!=aurl[1]))continue;if(aurl[0]&&aurl[0]!=\"#\"&&loc>-1){var wa=dd[j];if(wa.cdiv)wa=wa.cdiv;while(!qm_a(wa)){if(wa.tagName==\"DIV\"){if(wa.idiv){if(ss.sopen_auto_show_subs)ql.push(wa.idiv);x2(\"qmpersistent\",wa.idiv,1);}}else  if(wa.tagName==\"A\")x2(\"qmpersistent\",wa,1);wa=wa[qp];}}}var se=0;var sc=0;if(qmad.tree){se=qmad.tree.etype;sc=qmad.tree.ctype;qmad.tree.etype=0;qmad.tree.ctype=0;}for(i=ql.length-1;i>=0;i--){if(ql[i]){qm_oo(new Object(),ql[i],1);qm_li=new Object();}}if(qmad.tree){qmad.tree.etype=se;qmad.tree.ctype=sc;}};function qm_sopen_split_query(st){if(!st)st='';st=unescape(st).toLowerCase();st=qm_sopen_auto_clean(st);var rv='';var ri=st.indexOf(\"?\");if(ri+1){rv=st.substring(ri+1);st=st.substring(0,ri);}else rv='';return new Array(st,rv);};function qm_sopen_auto_clean(url){url=url.replace(/\\:/g,\"\");url=url.replace(\"localhost\",\"\");url=url.replace(\"file\",\"\");url=url.replace(/\\\\/g,\"\");url=url.replace(/\\//g,\"\");url=url.replace(/\\./g,\"\");return url;}";


	qmv.addons.hoverfill = new Object();
	qmv.addons.hoverfill.cat = "animation"
	qmv.addons.hoverfill.compat = "sopacity,fade,ritem,sopen_auto,sopen,box_effect,pointer,apsubs,over_selects,ibcss,item_bullets,tabs_css,tabs,bump_effect,slide_effect,merge_effect,match_widths,round_corners,drop_shadow,image,keyboard";
	qmv.addons.hoverfill.desc = "Hover Fill Item Effect";
	qmv.addons.hoverfill.ontest = "hoverfill_main_type|hoverfill_sub_type";
	qmv.addons.hoverfill.code = "qmad.br_ie=window.showHelp;qmad.br_navigator=navigator.userAgent.indexOf(\"Netscape\")+1;qmad.br_version=parseFloat(navigator.vendorSub);qmad.br_oldnav6=qmad.br_navigator&&qmad.br_version<7.2;if(!qmad.br_oldnav6){if(!qmad.hoverfill){qmad.hoverfill=new Object();qmad.hoverfill.track=new Object();qmad.hoverfill.tracktimer=new Object();}if(qmad.bhide.indexOf(\"qm_hoverfill_active(new Object(),a,1);\")==-1){qmad.bhide+=\"qm_hoverfill_active(new Object(),a,1);\";qmad.binit+=\"qm_hoverfill_init(null);\";if(document.attachEvent)document.attachEvent(\"onmouseover\",qm_hoverfill_hover_off);else  if(window.addEventListener)document.addEventListener(\"mouseover\",qm_hoverfill_hover_off,false);}};function qm_hoverfill_init(e,spec){var z;if((z=window.qmv)&&(z=z.addons)&&(z=z.hoverfill)&&(!z[\"on\"+qmv.id]&&z[\"on\"+qmv.id]!=undefined&&z[\"on\"+qmv.id]!=null))return;qm_ts=1;var q=qmad.hoverfill;for(i=0;i<10;i++){if(!(a=document.getElementById(\"qm\"+i))||(!isNaN(spec)&&spec!=i))continue;var ss=qmad[a.id];if(ss&&(ss.hoverfill_main_type||ss.hoverfill_sub_type)){qm_hoverfill_init_items(a,ss);}}};function qm_hoverfill_init_items(a,ss){var q=qmad.hoverfill;var aa,pf;var applyto=\"all\";if(ss.hoverfill_apply_to)applyto=ss.hoverfill_apply_to;aa=a.getElementsByTagName(\"A\");for(var j=0;j<aa.length;j++){if((applyto==\"parent\"&&!aa[j].cdiv)||(applyto==\"non-parent\"&&aa[j].cdiv))continue;if(window.attachEvent)aa[j].attachEvent(\"onmouseover\",qm_hoverfill_active);else  if(window.addEventListener)aa[j].addEventListener(\"mouseover\",qm_hoverfill_active,false);if(qm_a(aa[j][qp]))pf=\"main\";else pf=\"sub\";var type;if((type=ss[\"hoverfill_\"+pf+\"_type\"])&&type!=\"none\"){var ofx=ss[\"hoverfill_\"+pf+\"_offset_width\"];if(!ofx)ofx=0;var ofy=ss[\"hoverfill_\"+pf+\"_offset_height\"];if(!ofy)ofy=0;var fss=ss[\"hoverfill_\"+pf+\"_fade_type_steps\"];if(!fss)fss=20;var dir=ss[\"hoverfill_\"+pf+\"_direction\"];if(!dir)dir=\"up\";var step=ss[\"hoverfill_\"+pf+\"_step_size\"];if(!step)step=1;var ns=document.createElement(\"SPAN\");ns.style.display=\"none\";ns.style.position=\"absolute\";ns.style.fontSize=\"1px\";ns.style.overFlow=\"hidden\";if(aa[j].cdiv)ns.className=\"qmhoverfill qmhparent\";else ns.className=\"qmhoverfill\";ns.ishoverfill=1;ns.hfowner=aa[j];ns.noselect=1;aa[j].style.position=\"relative\";aa[j][qp].insertBefore(ns,aa[j]);aa[j].hfobject=ns;aa[j].hfdir=dir;aa[j].hftype=type;aa[j].hfstep=step;aa[j].hffadein=ss[\"hoverfill_\"+pf+\"_fade_in\"];aa[j].hffss=fss;aa[j].hffc=0;aa[j].hfox=ofx;aa[j].hfoy=ofy;}}};function qm_hoverfill_setfade(a,val){if(qmad.br_ie)a.style.filter=\"alpha(opacity=\"+val*100+\")\";else a.style.opacity=val;};function qm_hoverfill_active(e,a,hide,force){e=e||window.event;if(!a){a=e.srcElement||e.target;while(a.tagName!=\"A\")a=a[qp];}if(!hide){var la=qmad.hoverfill.lasthl;if(la==a)return;if(la&&la.hfobject.style.display==\"block\"&&la.className.indexOf(\"qmactive\")==-1&&la!=a){qm_hoverfill_hide_animate(la);qmad.hoverfill.lasthl=null;}var b;if((b=a.hfobject)&&!b.hfon&&b[qp]&&a[qp]){var dir=a.hfdir;var type=a.hftype;b.style.display=\"block\";if(type==\"grow\"){if(dir==\"up\"||dir==\"down\"){b.style.width=(a.offsetWidth+a.hfox)+\"px\";b.style.height=\"0px\";b.style.left=a.offsetLeft+\"px\";if(dir==\"up\")b.style.top=(a.offsetTop+a.offsetHeight+a.hfoy)+\"px\";else b.style.top=a.offsetTop+\"px\";if(a.hffadein)a.hffs=(1/(a.offsetHeight/a.hfstep));}else  if(dir==\"right\"||dir==\"left\"){b.style.height=(a.offsetHeight+a.hfoy)+\"px\";b.style.width=\"0px\";b.style.top=a.offsetTop+\"px\";if(dir==\"left\")b.style.left=(a.offsetLeft+a.offsetWidth+a.hfox)+\"px\";else b.style.left=a.offsetLeft+\"px\";if(a.hffadein)a.hffs=(1/(a.offsetWidth/a.hfstep));}else  if(dir==\"center\"){b.style.height=\"0px\";b.style.width=\"0px\";b.style.top=(a.offsetTop+parseInt((a.offsetHeight+a.hfoy)/2))+\"px\";b.style.left=(a.offsetLeft+parseInt((a.offsetWidth+a.hfox)/2))+\"px\";a.hfstep=1;if(a.hfstep==4)a.hfstep=2;if(a.hfstep>5)a.hfstep=3;if(a.offsetWidth>a.offsetHeight){b.chstep=(a.hfstep*2);b.cwstep=parseInt(b.chstep*((a.offsetWidth+a.hfox)/(a.offsetHeight+a.hfoy)));b.ctstep=a.hfstep;b.clstep=parseInt(b.cwstep/2);if(a.hffadein)a.hffs=(1/(((a.offsetHeight+a.hfoy)/2)/b.ctstep));}else {b.cwstep=(a.hfstep*2);b.chstep=parseInt(b.chstep*((a.offsetHeight+a.hfoy)/(a.offsetWidth+a.hfox)));b.clstep=a.hfstep;b.ctstep=parseInt(b.chstep/2);if(a.hffadein)a.hffs=(1/(((a.offsetWidth+a.hfox)/2)/b.clstep));}}}else  if(type==\"fade\"){b.style.height=(a.offsetHeight+a.hfoy)+\"px\";b.style.width=(a.offsetWidth+a.hfox)+\"px\";b.style.top=a.offsetTop+\"px\";b.style.left=a.offsetLeft+\"px\";a.hffs=(1/a.hffss);}qm_hoverfill_clear_timer(a);qm_hoverfill_animate(qm_hoverfill_get_tracking_id(b),false,force);qmad.hoverfill.lasthl=a;}}else {if(a.idiv){qm_hoverfill_hide_animate(a.idiv);}}};function qm_hoverfill_hide_animate(a){qm_hoverfill_clear_timer(a);if(a.hfobject)qm_hoverfill_animate(qm_hoverfill_get_tracking_id(a.hfobject),1);};function qm_hoverfill_animate(id,hide,force){var go=false;var hf=qmad.hoverfill.track[\"a\"+id];if(!hf||!hf[qp])return;var atag=hf.hfowner;if(!atag[qp])return;var type=atag.hftype;var dir=atag.hfdir;var step=atag.hfstep;var clstep=hf.clstep;var ctstep=hf.ctstep;var cwstep=hf.cwstep;var chstep=hf.chstep;if(hide){step=-step;if(type==\"grow\"&&dir==\"center\"){var clstep=-clstep;var ctstep=-ctstep;var cwstep=-cwstep;var chstep=-chstep;}}var a1,a2,a3,a4;if(type==\"grow\"){if(dir==\"up\"||dir==\"left\"){var p1=\"offsetTop\";var p2=\"offsetHeight\";var p3=\"height\";var p4=\"top\";var p5=atag.hfoy;if(dir==\"left\"){p1=\"offsetLeft\";p2=\"offsetWidth\";p3=\"width\";p4=\"left\";p5=atag.hfox;}a1=atag[p1];a2=atag[p2];if(((!hide&&(hf[p1]-step)>a1)||(hide&&(hf[p1]-step)<(a1+a2+p5)))&&!force){a1=parseInt(hf.style[p4]);a2=parseInt(hf.style[p3]);hf.style[p4]=(a1-step)+\"px\";hf.style[p3]=(a2+step)+\"px\";go=true;}else {if(!hide){hf.hfon=true;hf.style[p4]=a1+\"px\";hf.style[p3]=(a2+p5)+\"px\";}else hf.style[p3]=\"0px\";}}else  if(dir==\"down\"||dir==\"right\"){var p1=\"offsetHeight\";var p2=\"offsetTop\";var p3=\"height\";var p5=atag.hfoy;if(dir==\"right\"){p1=\"offsetWidth\";p2=\"offsetLeft\";p3=\"width\";p5=atag.hfox;}a1=atag[p2];a2=atag[p1];if(((!hide&&(hf[p1]+step)<(a2+p5))||(hide&&(hf[p1]+step)>0))&&!force){hf.style[p3]=(parseInt(hf.style[p3])+step)+\"px\";go=true;}else {if(!hide){hf.hfon=true;hf.style[p3]=(a2+p5)+\"px\";}else hf.style[p3]=\"0px\";}}else  if(dir==\"center\"){a1=atag.offsetTop;a2=parseInt((atag.offsetHeight+atag.hfoy)/2);if(((!hide&&(hf.offsetTop-ctstep)>a1)||(hide&&(hf.offsetTop-ctstep)<(a1+a2)))&&!force){a1=parseInt(hf.style.top);a2=parseInt(hf.style.height);a3=parseInt(hf.style.left);a4=parseInt(hf.style.width);hf.style.top=(a1-ctstep)+\"px\";hf.style.left=(a3-clstep)+\"px\";hf.style.height=(a2+chstep)+\"px\";hf.style.width=(a4+cwstep)+\"px\";go=true;}else {if(!hide){a1=atag.offsetTop;a2=atag.offsetHeight+atag.hfoy;a3=atag.offsetLeft;a4=atag.offsetWidth+atag.hfox;hf.style.top=a1+\"px\";hf.style.left=a3+\"px\";hf.style.height=a2+\"px\";hf.style.width=a4+\"px\";hf.hfon=true;}else {hf.style.height=\"0px\";hf.style.width=\"0px\";}}}}else  if(type==\"fade\"){if(((!hide&&atag.hffc<1)||(hide&&atag.hffc>0))&&!force){go=true;}else {if(!hide)hf.hfon=true;}}if(atag.hffs){if(!atag.hffc)atag.hffc=0;if(!hide){atag.hffc+=atag.hffs;if(atag.hffc>1||!go)atag.hffc=1;}else {atag.hffc -=atag.hffs;if(atag.hffc<.001||!go)atag.hffc=0;}qm_hoverfill_setfade(hf,atag.hffc);}if(go){qmad.hoverfill.tracktimer[\"a\"+id]=setTimeout(\"qm_hoverfill_animate(\"+id+\",\"+hide+\")\",10);atag.hftrackid=id;hf.hfon=false;}else {qm_hoverfill_clear_timer(atag);if(hide)hf.style.display=\"none\";}};function qm_hoverfill_clear_timer(a){var id;if(id=a.hftrackid){clearTimeout(qmad.hoverfill.tracktimer[\"a\"+id]);qmad.hoverfill.tracktimer[\"a\"+id]=null;qmad.hoverfill.track[\"a\"+id]=null;a.hftrackid=null;}};function qm_hoverfill_get_tracking_id(a){var track=qmad.hoverfill.track;var i=1;while(track[\"a\"+i])i++;track[\"a\"+i]=a;return i;};function qm_hoverfill_hover_off(e,o){var la=qmad.hoverfill.lasthl;if(la&&la.hfobject.style.display==\"block\"&&la.className.indexOf(\"qmactive\")==-1){qm_hoverfill_hide_animate(la);}qmad.hoverfill.lasthl=null;}";


	qmv.addons.fade = new Object();
	qmv.addons.fade.cat = "animation"
	qmv.addons.fade.compat = "sopacity,hoverfill,sopen_auto,sopen,ritem,box_effect,pointer,apsubs,over_select,ibcss,item_bullets,tabscss,tabs,bump_effect,match_widths,round_corners,drop_shadow,tree_menu,keyboard,image";
	qmv.addons.fade.desc = "Sub Menu Fade Animation";
	qmv.addons.fade.ontest = "fade_in_frames|fade_out_frames";
	qmv.addons.fade.code = "if(!qmad.fade){qmad.fade=new Object();qmad.fade.iefilter=window.showHelp;qmad.fade.track=new Object();qmad.fade.tracktimer=new Object();if(qmad.bvis.indexOf(\"qm_fade_a(b.cdiv);\")==-1){qmad.bvis+=\"qm_fade_a(b.cdiv);\";qmad.bhide+=\"qm_fade_a(a,1);\";}};function qm_fade_a(a,hide,fromtree){var z;if((a.qmtree&&!fromtree)||(a.style.visibility==\"inherit\"&&!hide)||((z=window.qmv)&&(z=z.addons)&&(z=z.fade)&&!z[\"on\"+qm_index(a)]))return;if(!fromtree&&a.idiv.className.indexOf(\"qmactive\")==-1)return;var ss;if(!a.settingsid){var v=a;while((v=v[qp])){if(v[qc].indexOf(\"qmmc\")+1){a.settingsid=v.id;break;}}}ss=qmad[a.settingsid];var t;var u;if(ss&&((t=ss.fade_in_frames)||(u=ss.fade_out_frames))){if(t==null||t==undefined)t=u;if(u==null||u==undefined)u=t;a.ffinc=1/t;a.ffdec=1/u;if(!hide)a.ffcur=0;else {a.ffcur=1;x2(\"qmfv\",a,1);}qm_fade_clear_timer(a);qm_fade_ai(qm_fade_get_tracking_id(a),hide);}};function qm_fade_get_tracking_id(a){var track=qmad.fade.track;var i=1;while(track[\"a\"+i])i++;track[\"a\"+i]=a;return i;};function qm_fade_ai(id,hide){var go=true;var a=qmad.fade.track[\"a\"+id];if(!hide){a.ffcur+=a.ffinc;if(a.ffcur>1){a.ffcur=1;go=false;}}else {a.ffcur -=a.ffdec;if(a.ffcur<.001){a.ffcur=0;go=false;}}qm_fade_setfade(a,a.ffcur);if(go){qmad.fade.tracktimer[\"a\"+id]=setTimeout(\"qm_fade_ai(\"+id+\",\"+hide+\")\",10);a.fftrackid=id;}else {if(hide)x2(\"qmfv\",a);if(qmad.fade.iefilter)a.style.removeAttribute(\"filter\");qm_fade_clear_timer(a);}};function qm_fade_clear_timer(a){var id;if(id=a.fftrackid){clearTimeout(qmad.fade.tracktimer[\"a\"+id]);qmad.fade.tracktimer[\"a\"+id]=null;qmad.fade.track[\"a\"+id]=null;a.fftrackid=null;}};function qm_fade_setfade(a,val){if(qmad.fade.iefilter)a.style.filter=\"alpha(opacity=\"+val*100+\")\";else a.style.opacity=val;}";
	

}




function qmv_get_add_on_code(name)
{
	var i;

	rc = "";
	if (name=="all")
	{
		
		for (i in qmv.addons)
		{
			
			rc += qmv.addons[i].code;

			
		}

	}
	
	return rc;

}







//**********  Visual Tree Component



function qm_vtree_init_styles(is_setbox,is_template)
{


	var a,b;

	if (qmad)
	{

		var ss = qmad.qmvtree;
		var i="qmvtree";

		if (is_setbox)
		{
			var ss = qmad.qmsetbox;
			var i="qmsetbox";
		}
		else if (is_template)
		{

			var ss = qmad.qmvt2;
			var i="qmvt2";
		}


		if(ss && ss.tree_width)
		{
				
			var az = "";
			if (window.showHelp) az = "zoom:1;";

			var wv = '<style type="text/css">#'+i+' a {float:none !important;}#'+i+' div{overflow:hidden;position:relative;display:none;'+az+'padding-top:0px !important;padding-bottom:0px !important;border-top-width:0px !important;border-bottom-width:0px !important;margin-left:0px !important;margin-top:0px !important;}';

				
			var curt = "div ";				
			for (var j=0;j<10;j++)
			{
				var iv = ss.tree_sub_indent;
				if (b = ss["tree_sub_indent"+j])
					iv = b;

					
				wv += '#'+i+' '+curt+'{padding-left:'+iv+'px;}';
				curt += "div ";
			}


			if (b = ss.tree_sub_top_padding)
				wv += '#'+i+' .qmvtreefirsta{margin-top:'+b+'px !important;}';

			if (b = ss.tree_sub_bottom_padding)
				wv += '#'+i+' .qmvtreelasta{margin-bottom:'+b+'px !important;}';

				
			document.write(wv+'</style>');
		
		}

	}

}


function qm_vtree_init(is_setbox,is_template)
{
	
	var q = qmad.qmvtree;
	var ss = qmad.qmvtree;

	if (is_setbox)
	{
		var ss=qmad.qmsetbox;
		var q=qmad.qmsetbox;
	}
	else if (is_template)
	{

		var ss=qmad.qmvt2;
		var q=qmad.qmvt2;
	}


	if (ss && ss.tree_width)
	{	
		
		q.estep = ss.tree_expand_step_size;
		q.cstep = ss.tree_collapse_step_size;
		q.acollapse = ss.tree_auto_collapse;
		q.no_focus = ss.tree_hide_focus_box;

		q.etype = ss.tree_expand_animation;
		q.ctype = ss.tree_collapse_animation;
			
		if (qmad.br_oldnav)
		{
			q.etype=0;
			q.ctype=0;
		}
		
		if (is_setbox)
			qm_vtree_init_items(document.getElementById("qmsetbox"));
		else if (is_template)
			qm_vtree_init_items(document.getElementById("qmvt2"));
		else
			qm_vtree_init_items(document.getElementById("qmvtree"));
	}


}



function qm_vtree_init_items(a,sub)
{
	
	

	var w,b;
	var q = qmad.qmvtree;

	
	
	var first,last,aa;
		
		
	first = null;
	last = null;
		
	aa = a.childNodes;
	for (var j=0;j<aa.length;j++)
	{
		
		if (aa[j].tagName=="A")
		{

			aa[j].qmtree = 1;

			if (!first)
				first = aa[j];
					
			last = aa[j];
			
			
			if (aa[j].cdiv)	
			{
				aa[j].cdiv.ismove = 1;
				aa[j].cdiv.qmtree = 1;
			}
		
		

			aa[j].onclick = qmv_tree_oo;
			aa[j].onmouseover = null;
				
							
			if (q.no_focus)
			{
					
				
				aa[j].onfocus = function()
				{
					this.blur();
				
				};
			}


			if (aa[j].cdiv)
			{
				if (sub)
				{
					
					aa[j].oncontextmenu = function(e)
					{
						e = e || event;
						qmv_show_context(e,'tree_parent',null,this);
						qm_kille(e);
						return false;
						
					}
				}

				new qm_vtree_init_items(aa[j].cdiv,true);

			}


			
			if (aa[j].getAttribute("initshow"))
			{
				qm_arc("qmactive",aa[j],true);
				aa[j].cdiv.style.display = "block";
				aa[j].cdiv.style.visibility = "inherit";
				if (aa[j].getAttribute("isfresultsa"))
					qmv_filter_init();
				

			}

			qm_arc("qmvtreefirsta",first);
			qm_arc("qmvtreelasta",last);
							
			
		}
		
		

	}


	
	if (sub)
	{

		qm_arc("qmvtreefirsta",first,true);
		qm_arc("qmvtreelasta",last,true);
	}
		
}



function qm_vtree_item_click(a,close,skip_cancel_event)
{
	



	if (a.idiv.getAttribute("isfilter") && a.style.display!="block")
		qmv_filter_init();
		

	if (a.idiv.getAttribute("isshortcut") && a.style.display!="block")
		qmv_shortcut_init(a);	
	

	if (!a.qmtree) return;

	var q = qmad.qmvtree;
	if (q.timer)
		return;
	
	q.co = new Object();

	var levid = "a"+qm_get_level(a);
	var ex = false;
	var cx = false;	
	

	
	if (qmv.tree_collapse)
	{
		
		var mobj = qm_get_menu(a);
		var ds = mobj.getElementsByTagName("DIV");
		for (var i=0;i<ds.length;i++)
		{
			
			if (ds[i].style.display=="block" && ds[i]!=a)
			{
				var go = true;

				var cp = a[qp];
				while (!qm_a(cp))
				{
					if (ds[i]==cp) go = false;
					cp = cp[qp];
				
				
				}

				if (go)
				{
					cx = true;
					q.co["a"+i] = ds[i];					

					qmv_tree_uo(ds[i],true);
					
				}

			}	

		}
		
	}
	
	
	if (a.style.display=="block")	
	{
		
		cx = true;
		q.co["b"] = a;

		
		var d = a.getElementsByTagName("DIV");
		for (var i=0;i<d.length;i++)
		{

			if (d[i].style.position == "relative")
			{
				q.co["b"+i] = d[i];
				qmv_tree_uo(d[i],true);
			}

		}
		

		a.qmtreecollapse = 1;
		qmv_tree_uo(a,true);

		if (window.qmv_ibullets_hover)
			qmv_ibullets_hover(null,a.idiv);
		
	}
	else
	{
		ex = true;

		a.style.display = "block";
		q.eh = a.offsetHeight;
		a.style.height = "0px";

		qm_arc("qmfv",a,true);
		qm_arc("qmfh",a);

		a.qmtreecollapse = 0;
		q.eo = a;
		
	}
	
	

	qmwait = true;
	qm_vtree_item_expand(ex,cx,levid);
	
	qmv_adjust_setbox_shadow();
	
}




function qm_vtree_item_expand(expand,collapse,levid)
{

	var q = qmad.qmvtree;
	var go = false;
	var cs = 1;
	
	

	if (collapse)
	{

		for (var i in q.co)
		{
			if (!q.co[i]) continue;

			if (!q.co[i].style.height && q.co[i].style.display == "block")
			{
				q.co[i].style.height = (q.co[i].offsetHeight)+"px";
				q.co[i].qmtreeht = parseInt(q.co[i].style.height);
			}
			

			cs = parseInt((q.co[i].offsetHeight/parseInt(q.co[i].qmtreeht))*q.cstep);
			if (q.ctype==1)
				cs = q.cstep-cs+1;
			else if (q.ctype==2)
				cs = cs+1;
			else if (q.ctype==3)
				cs = q.cstep;

			if (q.ctype && parseInt(q.co[i].style.height)-cs>0)
			{

				q.co[i].style.height = parseInt(q.co[i].style.height)-cs+"px";
				go = true;

			}
			else
			{
				q.co[i].style.height = "";
				q.co[i].style.display = "none";
			
				qm_arc("qmfh",q.co[i],true);
				qm_arc("qmfv",q.co[i]);

				
				q.co[i]=null;		
			}
			
			
		}

	}

	if (expand)
	{
		cs = parseInt((q.eo.offsetHeight/q.eh)*q.estep);
		if (q.etype==2)
			cs = q.estep-cs;
		else if (q.etype==1)
			cs = cs+1;
		else if (q.etype==3)
			cs = q.estep;
			
		
		if (q.etype && q.eo.offsetHeight<(q.eh-cs))
		{
			
			q.eo.style.height = parseInt(q.eo.style.height)+cs+"px";
			go = true;
		
		}
		else
		{
			
			q.eo.qmtreeh = q.eo.style.height;
			q.eo.style.height = "";
			
			

			


			var fs = document.getElementById("qmvi_tree_menu_container");

			var ot = 0;
			var wo = q.eo;
			while (!qm_a(wo))
			{
				ot += wo.offsetTop;
				wo = wo[qp];
			}

			var nsadd = 0;
			var ns;
			if (ns = qmv_lib_get_nextsibling_atag(q.eo))
				nsadd = ns.offsetHeight;


			var pos = ot+q.eo.offsetHeight+nsadd-fs.scrollTop;
			if (pos>fs.offsetHeight)
			{

				

				fs.scrollTop = (pos-fs.offsetHeight)+fs.scrollTop;

			}

			
		}

		
	}

	
	if (go)
	{

		q.timer = setTimeout("qm_vtree_item_expand("+expand+","+collapse+",'"+levid+"')",5);
	}
	else 
	{
		qmwait = false;
		clearTimeout(q.timer);
		q.timer = null;
		
	}

}



function qmv_ibullets_init(is_setbox,is_template)
{
	
	if (!qmad.qmvibullets)
	{
		if (window.attachEvent)
			document.attachEvent("onmouseover",qmv_ibullets_hover_off);
		else if (window.addEventListener)
			document.addEventListener("mouseover",qmv_ibullets_hover_off,false);

		qmad.qmvibullets = new Object();
	}
	
	var q = qmad.qmvibullets;

	var a,b;
	
	if (is_setbox)
		a = document.getElementById("qmsetbox");
	else if (is_template)
		a = document.getElementById("qmvt2");
	else
		a = document.getElementById("qmvtree");
				
	var ss = qmad.qmvtree;
	if (is_setbox)
		ss = qmad.qmsetbox;
	else if (is_template)
	{
		
		ss = qmad.qmvt2;
	}


	

	if (ss && (ss.ibullets_main_image || ss.ibullets_sub_image))
	{	


		q.mimg = ss.ibullets_main_image;
		if (q.mimg)
		{
				
			q.mimg_a = ss.ibullets_main_image_active;
			qmv_ibullets_preload(q.mimg_a);
			q.mimg_h = ss.ibullets_main_image_hover;
			qmv_ibullets_preload(q.mimg_a);

			q.mimgwh = eval("new Array("+ss.ibullets_main_image_width_height+")");
			q.mpos = eval("new Array("+ss.ibullets_main_position+")");
			q.mright = ss.ibullets_main_right;
		}
		
		q.simg = ss.ibullets_sub_image;
		if (q.simg)
		{
			q.simg_a = ss.ibullets_sub_image_active;
			qmv_ibullets_preload(q.simg_a);				
			q.simg_h = ss.ibullets_sub_image_hover;
			qmv_ibullets_preload(q.simg_h);

			q.simgwh = eval("new Array("+ss.ibullets_sub_image_width_height+")");
			q.spos = eval("new Array("+ss.ibullets_sub_position+")");
			q.sright = ss.ibullets_sub_right;
		}
			
		q.type = ss.ibullets_apply_to;

		
		qmv_ibullets_init_items(a,true);
			
	}
		

			



}

function qmv_ibullets_preload(src)
{
	
		
	d = document.createElement("DIV");
	d.style.display = "none";
	d.innerHTML = "<img src="+src+" width=1 height=1>";
	document.body.appendChild(d);
	
	
	
}


function qmv_ibullets_init_items(a,main)
{

	
	var q = qmad.qmvibullets;
	var aa,pf;
			

	aa = a.childNodes;
	for (var j=0;j<aa.length;j++)
	{
		if (aa[j].tagName=="A" && aa[j].cdiv)
		{
			
			if (window.attachEvent)
				aa[j].attachEvent("onmouseover",qmv_ibullets_hover);
			else if (window.addEventListener)
				aa[j].addEventListener("mouseover",qmv_ibullets_hover,false);


			if (q.type!="all")
			{
				if (q.type=="parent" && !aa[j].cdiv)
					continue;
					
				if (q.type=="non-parent" && aa[j].cdiv)
					continue;
			}

			if (main)
				pf = "m";
			else
				pf = "s";
				
			if (q[pf+"img"])
			{
				var ii = document.createElement("IMG");
				ii.setAttribute("src",q[pf+"img"]);
				ii.setAttribute("width",q[pf+"imgwh"][0]);
				ii.setAttribute("height",q[pf+"imgwh"][1]);
				ii.style.borderWidth = "0px";
				ii.style.position = "absolute";
				
				
				var ss = document.createElement("SPAN");
				ss.setAttribute("isibullet",1); 
				ss.style.display = "block";
				ss.style.position = "relative";
				ss.style.fontSize = "1px";
				ss.style.lineHeight = "0px";
				
				if (q[pf+"right"])
				{
					aa[j].style.position = "relative";
					ss.style.position = "absolute";
					ss.style.width = "0px";
					ss.style.left=q[pf+"right"];
				}
				else
					ss.style.left = q[pf+"pos"][0]+"px";

				ss.style.top = q[pf+"pos"][1]+"px";
	
				ss.appendChild(ii);				
				
				aa[j].qmibullet = aa[j].insertBefore(ss,aa[j].firstChild);	
				aa[j]["qmibullet"+pf+"a"] = q[pf+"img_a"];
				aa[j]["qmibullet"+pf+"h"] = q[pf+"img_h"];
				aa[j].qmibulletorig = q[pf+"img"];

				
				
			}
			
			if (aa[j].getAttribute("initshow"))
			{
				
				qmv_ibullets_active(aa[j]);
			}	
				
			if (aa[j].cdiv) 
				new qmv_ibullets_init_items(aa[j].cdiv);
	
		}

	}

}

function qmv_ibullets_hover(e,targ)
{
	if (!targ)
	{
		e = window.event || e;
		var targ = e.srcElement || e.target;
		while (targ && targ.tagName!="A")
			targ = targ[qp];

		if (!targ) return;
	}

	var ch = qmad.qmvibullets.lasth;
	if (ch && ch!=targ)
	{
		qmv_ibullets_hover_off(null,ch);
	}

	if (targ.className.indexOf("qmactive")+1)
		return;

	var wo = targ.qmibullet;
	var ma = targ.qmibulletmh;
	var sa = targ.qmibulletsh;
	
	if (wo && (ma || sa))
	{
		var ti = ma;
		if (sa && sa!=undefined) ti = sa;
		if (ma && ma!=undefined) ti = ma;
				
		wo.firstChild.src = ti;
		qmad.qmvibullets.lasth = targ;
	}

}


function qmv_ibullets_hover_off(e,o)
{

	if (!o) o = qmad.qmvibullets.lasth;

	if (o && o.className.indexOf("qmactive")==-1)
	{
		if (o.firstChild && o.firstChild.firstChild)
			o.firstChild.firstChild.src = o.qmibulletorig;
	}

}


function qmv_ibullets_active(a,hide)
{

	var wo = a.qmibullet;
	var ma = a.qmibulletma;
	var sa = a.qmibulletsa;
	
	
	if (!hide && a.className.indexOf("qmactive")==-1)
		return;

	if (hide && a.idiv)
	{
		
		var o = a.idiv;
		
		if (o && o.qmibulletorig)
		{
			
			o.firstChild.firstChild.src = o.qmibulletorig;


		}	
		
	}
	else
	{
		
		if (wo && (ma || sa))
		{
			var ti = ma;
			if (sa && sa!=undefined) ti = sa;
			if (ma && ma!=undefined) ti = ma;
		
				
			wo.firstChild.src = ti;
		}

	}


}




//************************** Working with create settings / menu settings

function qmv_load_menu_settings_to_tree()
{

	var ms = document.getElementById("qmvtree_menu_settings")
	var inps = ms.getElementsByTagName("INPUT");
	var t;
	
	
	
	var a = document.getElementById("qm"+qmv.id);

	for (var i=0;i<inps.length;i++)
	{
		
		
		var cname = inps[i].getAttribute("cname");
		if (cname)
		{
			
			if (cname=="isvertical")
			{
				
				var isv = qmv_lib_is_menu_vertical(qmv.id);
				

				if (!isv)
					inps[i].value = false;
				else
					inps[i].value = true;
				


			}
			else if (cname=="showdelay")
			{

				//inps[i].value = qmv.ms_show_timer;
				
				inps[i].value = qmv.ms_show_timer["qm"+qmv.id];

				//inps[i].value = qmv.cur_item.qmts;
				//alert(qmv.cur_item.qmts);

			}
			else if (cname=="hidedelay")
			{
				
				//inps[i].value = qmv.ms_hide_timer;
				
				inps[i].value = document.getElementById("qm"+qmv.id).th;


			}
			else if (cname=="onclick")
			{
				
				
				if (a.oc)
					inps[i].value = a.oc;
				else
					inps[i].value = false;



			}
			else if (cname=="leftsided")
			{
				
				if (a.rl)
					inps[i].value = true;
				else
					inps[i].value = false;

			}
			else if (cname=="hsubs")
			{
								
				if (a.sh)
					inps[i].value = true;
				else
					inps[i].value = false;


			}
			else if (cname=="flushleft")
			{
				
				if (a.fl)
					inps[i].value = true;
				else
					inps[i].value = false;


			}
			else if (cname=="flushtop")
			{
				
				if (a.ft)
					inps[i].value = true;
				else
					inps[i].value = false;


			}


		}


		inps[i].prev_value = inps[i].value;

	}



}

function qmv_evt_update_texturl(a)
{

	
	if (a.id == "qmv_texturl_field")
	{
		
		if (qmv.texturl_state=="text")
			qmv_evt_update_texturl_text(a.value)
		else
		{
			
			qmvi_update_anchor_settings(a,"href");
		}
		
	}
	else
	{
		qmv_evt_update_texturl_text(a.value)
	}


}

function qmv_evt_update_texturl_text(val)
{
	
	if (qmad.br_ie)
	{	
		
		var b = qmv.cur_item.cloneNode(true);
		
		b.onclick = qmv.cur_item.onclick;
		b.onmouseover = qmv.cur_item.onmouseover;
		b.className = qmv.cur_item.className;
		b.qmts = qmv.cur_item.qmts;
		b.cdiv = qmv.cur_item.cdiv;
		b.ondblclick = qmv.cur_item.ondblclick;
		b.oncontextmenu = qmv.cur_item.oncontextmenu;

		
		
		qmv_evt_update_texturl_text2(b,val);
		qmv.cur_item.parentNode.replaceChild(b,qmv.cur_item);

		qmv_sync_for_ie_undo_report_items(qmv.cur_item,b);

		qmv.cur_item = b;
		if (b.cdiv)
			b.cdiv.idiv = b;

	}
	else
		qmv_evt_update_texturl_text2(qmv.cur_item,val);
		

	

}


function qmv_evt_update_texturl_text2(obj,val)
{

	
	var aobj = new Array();		
	var robj = new Array();		
	var s;

	

	s = obj.childNodes;
	for (var i=0;i<s.length;i++)
	{

		if (s[i].getAttribute && s[i].getAttribute("qmvbefore"))
		{
			
			robj.push(obj.removeChild(s[i]));
			i--;
		}
	
	}
	

	
	s = obj.childNodes;
	for (var i=0;i<s.length;i++)
	{
		if (s[i].getAttribute && s[i].getAttribute("qmvafter"))
		{
			aobj.push(obj.removeChild(s[i]));
			i--;
		}
			
	}

	
	
	obj.innerHTML = val;


	for (var i=0;i<robj.length;i++)
	{
		var ni = obj.insertBefore(robj[i],obj.firstChild);

		if (ni.className.indexOf("qmritem")+1)
			obj.hasritem = ni;
	}


	for (var i=0;i<aobj.length;i++)
		obj.appendChild(aobj[i]);





}

function qmv_evt_dividers_adjust_orientation(mo)
{
	if (!mo)
		mo = document.getElementById("qm"+qmv.id);


	var sp = mo.getElementsByTagName("SPAN");
	for (var i=0;i<sp.length;i++)
	{

		if (sp[i].className.indexOf("qmdivider")+1)
		{

			if (sp[i][qp].ch)
			{
				qm_arc("qmdividerx",sp[i]);
				qm_arc("qmdividery",sp[i],true);


			}
			else
			{

				qm_arc("qmdividery",sp[i]);
				qm_arc("qmdividerx",sp[i],true);


			}


		}




	}



}


function qmv_evt_titles_adjust_orientation(mo)
{
	if (!mo)
		mo = document.getElementById("qm"+qmv.id);


	var got_one;

	var sp = mo.getElementsByTagName("SPAN");
	for (var i=0;i<sp.length;i++)
	{

		if ((sp[i].className.indexOf("qmtitle")+1) || (sp[i].className.indexOf("qmcbox")+1))
		{
			

			if (sp[i][qp].ch)
			{
				
				sp[i][qp].removeChild(sp[i]);
				got_one = true;
				i--;
			}
			

		}

	}
	
	

	if (got_one)
	{
		
		qmv_hide_pointer("qm"+qmv.id);
		qm_oo(new Object(),mo.getElementsByTagName("A")[0]);

		qmv_show_dialog("alert",null,"Existing titles and content boxes have been removed from the horizontal main menu.  Titles and content boxes may be applied to vertically oriented main menus only.",480);			
		return;

	}

}





function qmv_evt_update_menu_settings(value,rule,sname,cname,dtype)
{

	if (cname=="isvertical")
	{



		
		var mo = document.getElementById("qm"+qmv.id);

		var ma = mo.childNodes;
		for (var i=0;i<ma.length;i++)
		{
			if (ma[i].tagName=="A")
			{

				if (value.toLowerCase()=="false")
				{
					ma[i].style.cssFloat = "";
					ma[i].style.styleFloat = "";
				}
				else
				{

					ma[i].style.cssFloat = "none";
					ma[i].style.styleFloat = "none";

				}


			}


		}

		if (value.toLowerCase()=="false")
			mo.ch = 1;
		else
			mo.ch = 0;


		qmv_evt_dividers_adjust_orientation(mo);
		qmv_evt_titles_adjust_orientation(mo);
		
	}
	else if (cname=="showdelay")
	{

		//qmv.ms_show_timer = value;
		qmv.ms_show_timer["qm"+qmv.id] = value;


	}
	else if (cname=="hidedelay")
	{

		//qmv.ms_hide_timer = value;
		document.getElementById("qm"+qmv.id).th = value;

	}
	else if (cname=="onclick")
	{
		
		var a = document.getElementById("qm"+qmv.id)[qp].getElementsByTagName("DIV");
		
		for (var i=0;i<a.length;i++)
		{
	
			if (value.toLowerCase()!='false')
				a[i].oc = value;
			else
				a[i].oc = false;

		}
		

	}
	else if (cname=="leftsided")
	{

		var a = document.getElementById("qm"+qmv.id);	

		value = qmv_lib_parse_value(value,dtype);
		var sval = 0;
		if (value) sval = 1;
		qmv_evt_update_menu_setting_attributes(a,"rl",sval)

		a.rl = sval;

	}
	else if (cname=="hsubs")
	{
		var a = document.getElementById("qm"+qmv.id);

		value = qmv_lib_parse_value(value,dtype);
		var sval = 0;
		if (value) sval = 1;
		
		qmv_evt_update_menu_setting_attributes(a,"sh",sval,true)


		a.sh = sval;
		if (sval)
		{
			qmv_show_dialog("alert",null,"Warning!&nbsp;&nbsp;Horizontal sub items may wrap and stack vertically if there is not enough horizontal space alloted in your HTML for the menu.  Second level sub menus must not exceed the width of thier parents menu width or they will wrap.<br><br>To completely avoid wrapping, define a fixed with for all subs under the sub container styles(CSS Styles --&gt; Subs --&gt; Container), or define individual widths using inline styles.<br>",570);
			qm_arc("qmsh",a,true);
		}
		else
			qm_arc("qmsh",a);


		qmv_evt_dividers_adjust_orientation(a);
		qmv_evt_titles_adjust_orientation(a);

	}
	else if (cname=="flushleft")
	{
		var a = document.getElementById("qm"+qmv.id);		
		
		value = qmv_lib_parse_value(value,dtype);
		var sval = 0;
		if (value) sval = 1;
		qmv_evt_update_menu_setting_attributes(a,"fl",sval)

		a.fl = sval;

	}
	else if (cname=="flushtop")
	{
		var a = document.getElementById("qm"+qmv.id);		
		
		value = qmv_lib_parse_value(value,dtype);
		var sval = 0;
		if (value) sval = 1;
		qmv_evt_update_menu_setting_attributes(a,"ft",sval)
		a.ft = sval;


	}
	

}

function qmv_evt_update_menu_setting_attributes(obj,name,value,isch,lev)
{

	obj[name] = value;
	
	if (isch && lev)
		obj.ch = value;
	
	if (!lev) lev=1;

	var a = obj.childNodes;
	for (var i=0;i<a.length;i++)
	{
		
		if (a[i].tagName=="A")
		{
			if (a[i].cdiv)
				qmv_evt_update_menu_setting_attributes(a[i].cdiv,name,value,isch,lev+1)

		}
	}


}




//************************** Working with CSS Styles

function qmv_find_update_tree_value(type,rule,cname,value,getval,skip_filter_update,getinput)
{

	var a;
	if (type=="css")
		var a = document.getElementById("qmvtree_css_styles").getElementsByTagName("DIV");
	else if (type=="addon")
		var a = document.getElementById("qmvtree_addon_settings").getElementsByTagName("DIV");
	else if (type=="inline")
		var a = document.getElementById("qmvtree_inline_styles").getElementsByTagName("DIV");
	else if (type=="iextra")
		var a = document.getElementById("qmvtree_item_extra_settings").getElementsByTagName("DIV");
	else if (type=="settings")
		var a = document.getElementById("qmvtree_menu_settings")[qp].getElementsByTagName("DIV");
	else if (type=="individuals")
		var a = document.getElementById("qmvtree_individuals").getElementsByTagName("DIV");
			
	
	
	for (var i=0;i<a.length;i++)
	{
		if (type=="addon")
		{
			var cr = a[i].getAttribute("addontype");
			if (cr!=rule) 
				continue;

		}
		else
		{
			var cr = a[i].getAttribute("rule");
			if (cr!=rule) 
				continue;
		}

		
		var aa = a[i].childNodes;
		for (var j=0;j<aa.length;j++)
		{
			if (aa[j].tagName=="A")
			{

				var inp = aa[j].getElementsByTagName("INPUT")[0];
				if (inp)
				{
					
					if (inp.getAttribute("cname")==cname)
					{	
						if (getval)
							return inp.value;

						if (getinput)
							return inp;	


						inp.value = value;

						var dt = inp.getAttribute("dtype");
						if (dt && dt=="color")
						{
							qmv_color_build_button_set(inp);

							if (inp.value)
								qmvi_color_recent_add(inp,true);
							else
								qmvi_color_recent_remove(inp);
						}

						if (!skip_filter_update && type=="css" && document.getElementById("qmvtree_filter").cdiv.style.display=="block")
							qmv_filter_init2();
						

						return inp;
					}

				}

			}
		}		



	}

}





function qmv_evt_update_css_style(value,rule,sname,cname,kill,inheritrule,fromspin)
{

	
	
	
	var match = false;
	
	var c=0;
	while (qmv["style_rules"+c])
	{

		var st;
		var r = qmv["style_rules"+c];

		for (var i=0;i<r.length;i++)
		{
			st = r[i].selectorText;
			st = st.split(",");
			st = st[0];
				

			if (st.toLowerCase() == rule)
			{
			
				if (!value && r[i].style.removeAttribute)
				{
					if (!r[i].style.removeAttribute(cname))
						r[i].style[cname] = "";
				}
				else
					r[i].style[cname] = value;

				
				match = true;
				//break;
			}	

		}

		//if (match) break;
		c++;
	}

	

	if (!match)
	{

		var nval = sname+":"+value+";";

		if (qmv.styles_addtype=="addrule")
			qmv.style_rules_sheet0.addRule(rule,nval);
		else if (qmv.styles_addtype=="insertrule")
			qmv.style_rules_sheet0.insertRule(rule+" {"+nval+"}",r.length);

		qmv_update_styles_object();

	}

	
	if (!kill && (rule.indexOf("qmactive")+1 || rule.indexOf("qmpersistent")+1) && rule.indexOf("body")+1)
		qmv_evt_update_css_style(value,rule+":hover",sname,cname,true);
	
	
}




function qmv_inherit_style_question(rule,cname,value,srcinp)
{

	

	qmv.tinherit = new Object();
	var count = 0;

	var rs = rule.split("|");
	for (var k=0;k<rs.length;k++)
	{

		var atype = "";
		var frule = "";
		var ftype = 1;
		var rss =  rs[k].split("@");
		if (rss.length>1)
		{
			frule = rss[1];
			ftype = rss[0];
		}
		else
			frule = rs[k]

		
		if (frule.indexOf("addon")+1)
		{
			var ts = frule.split(":");
			if (ts.length>1)
			{
				frule = ts[0];
				atype = ts[1];

				//now map the cnames
				if (atype=="round_corners")
				{
					if (cname=="borderColor") cname="rcorner_border_color";
					if (cname=="backgroundColor") cname="rcorner_bg_color";



				}

			}

		}


		

		var a;
		if (ftype==4)		
			a = document.getElementById("qmvtree_ritem").getElementsByTagName("DIV");
		else if (ftype==5)
			a = document.getElementById("qmvtree_addon_settings").getElementsByTagName("DIV");
		else
			a = document.getElementById("qmvtree_css_styles").getElementsByTagName("DIV");

		for (var i=0;i<a.length;i++)
		{

					
			var addontype = "";
			var cr = a[i].getAttribute("rule");
			if (cr!=frule) 
				continue;

			if (atype && (addontype = a[i].getAttribute("addontype")))
			{
				
				if (atype!=addontype)
					continue;
			}


			
			
			var aa = a[i].childNodes;
			for (var j=0;j<aa.length;j++)
			{
				if (aa[j].tagName=="A")
				{

					var inp = aa[j].getElementsByTagName("INPUT")[0];
					if (inp)
					{

						
						if (inp.getAttribute("cname")==cname)
						{	

							
							if ((ftype==1 || ftype==2) && (inp.value && qmv_css_get_default_style_val(inp)!=inp.value))
								break;
							
							
							if ((ftype==1 || ftype==2) && (cname=="fontSize" || cname=="color" || !value))
								break;

							if (ftype==4 && !qmv.addons.ritem["on"+qmv.id])
								break;
	
							
							if (ftype==5 && !qmv.addons.round_corners["on"+qmv.id])
								break;


							var sobj = qmv.tinherit["rule"+count] = new Object;
							sobj.inp = inp;
							sobj.type = ftype;
							sobj.defstate = "checked";
							sobj.value = value;
							sobj.cname = cname;
							sobj.srcinp = srcinp;
							sobj.sname = srcinp.getAttribute('sname');

							if (ftype==1)
								sobj.desc = '<span style="color:#0033cc">Inherited By:</span> Sub Menu Items';
							else if (ftype==2)	
								sobj.desc = '<span style="color:#0033cc">Inherited By:</span> Sub Menu Containers';
							else if (ftype==3)
							{
								sobj.desc = '<span style="color:#0033cc">Apply To:</span> Active Styles';
								sobj.defstate = "";
							}
							else if (ftype==4)
							{
								sobj.desc = '<span style="color:#0033cc">Remove and Apply To:</span> Rounded Item Add-On';
								sobj.defstate = "";
							}
							else if (ftype==5)
							{
								sobj.desc = '<span style="color:#0033cc">Remove and Apply To:</span> Rounded Subs Add-On';
								sobj.defstate = "checked";
							}

							count++;
							

						}

					}


				}
			}
		}

	}


	if (count>0)
	{
		
		//qmv_show_dialog("inherit",null,"use message dialog");
		//(type,owner,message,w,code,code1,defbutton,defval,from_event_log,ftop)
		qmv_show_dialog("inherit",null,null,null,null,null,null,null,null,true);

	}


}


function qmv_inherit_style_question_okapply()
{

	


	var tic=0;
	var tic_obj;
	while (tic_obj = qmv.tinherit["rule"+tic])
	{
		

		var cb = document.getElementById("qmvi_inherit_options"+tic);
		if (cb)
		{
			
			var inp = tic_obj.inp;

			if (tic_obj.type==1 || tic_obj.type==2)
			{
				
				if (cb.checked)
				{
					inp.value = "";
					qmv_evt_update_tree_value(inp,false,true,false,true,false,tic_obj.srcinp.isfilter);
				}
				else
				{
					inp.value = qmv_css_get_default_style_val(inp);
					qmv_evt_update_tree_value(inp,false,true,false,true,false,tic_obj.srcinp.isfilter);

				}
			}
			else if ((tic_obj.type==4) || (tic_obj.type==5))
			{
				if (cb.checked)
				{


					inp.value = tic_obj.srcinp.value;
					qmv_evt_update_tree_value(inp,false,true,false,true,false,tic_obj.srcinp.isfilter);
					

					tic_obj.srcinp.value = "";
					qmv_evt_update_tree_value(tic_obj.srcinp,false,true,false,true,false,tic_obj.srcinp.isfilter);

					
				}

			}
			else
			{
				if (cb.checked)
				{
					inp.value = tic_obj.value;
					qmv_evt_update_tree_value(inp,false,true,false,true,false,tic_obj.srcinp.isfilter);
				}
			
			}



		}

		tic++;
	}



}



function qmv_css_get_default_style_val(inp)
{

	var dtype = inp.getAttribute("dtype");
	var cname = inp.getAttribute("cname");




	if (cname=="width")
		return "auto";
	else if (cname=="borderStyle")
		return "none";
	else if (cname=="fontFamily")
		return "Arial";
	else if (cname=="textAlign")
		return "left";
	else if (cname=="fontWeight")
		return  "normal";
	else if (cname=="fontStyle")
		return  "normal";
	else if (cname=="textDecoration")
		return  "none"
	else if (cname=="backgroundImage")
		return  "none";
	else if (cname=="backgroundPosition")
		return  "0% 0%";
	else if (cname=="backgroundRepeat")
		return  "repeat";
	else if (dtype=="color")
		return  "transparent";
	else if (dtype.indexOf("edge")+1)
		return  "0px";
	else if (dtype=="unit")
		return  "0px";
	else
		return "";


}



function qmv_check_addon_compatability_apply(remove_only)
{
	

	
	for (var i=0;i<qmv.inc.length;i++)
	{
		
		var cb = document.getElementById("qmv_iadd_"+qmv.inc1[i]);
		if (cb)
		{
			
			cb.checked = false;
			qmv_evt_addremove_addon(new Object(),cb);
		}

	}


	if (!remove_only)
	{	
		var cb = document.getElementById("qmv_iadd_"+qmv.inc2);
		cb.checked = true;
		qmv_evt_addremove_addon(new Object(),cb);
		qmv_setbox_update_addon_check(cb);
	}

}

function qmv_check_addon_compatability(addon)
{

	if (addon.compat=="all")
		return;


	qmv.inc = new Array();
	qmv.inc1 = new Array();
	for (i in qmv.addons)
	{
			
		if (qmv.addons[i]!=addon && qmv.addons[i].compat!="all" && qmv.addons[i]["on"+qmv.id] && addon.compat.indexOf(i+"")==-1)
		{		
			qmv.inc.push(qmv.addons[i]);				
			qmv.inc1.push(i+"");
		}

		if (qmv.addons[i] == addon)
			qmv.inc2 = i;
	}


	if (qmv.inc.length)
	{
		var wt = "";
		if (qmv.inc.length>1)
			wt += "The "+addon.desc+" addon is not compatible with the following...";
		else
			wt += "The "+addon.desc+" addon is not compatible with the following...";

		wt += '<br>';
		wt += '<br>';
		for (var i=0;i<qmv.inc.length;i++)
			wt += "<div style='margin-left:30px;color:#dd3300;'>"+qmv.inc[i].desc+"</div>";

		wt += '<br>';
		if (qmv.inc.length>1)
			wt += "Would you like to apply "+addon.desc+" and remove the incompatable add-ons.";
		else
			wt += "Would you like to apply "+addon.desc+" and remove the incompatable add-on.";

		wt += '<br><br>';


		qmv_show_dialog("question-yesno",null,wt,500,"qmv_check_addon_compatability_apply()",null,null,null,null,true);

		return true;

	}

}


function qmv_evt_update_addon(value,rule_obj,sname,cname,dtype,inp,skip_update)
{
	
	

	var q = qmad["qm"+qmv.id];
	
	if (q)
	{
		
		
		q[cname] = qmv_lib_parse_value(value,dtype,false,true);

		
		var pdiv = inp.parentNode;
		while (pdiv.tagName!="DIV" || (pdiv.idiv && !pdiv.idiv.getElementsByTagName("INPUT")[0]))
			pdiv = pdiv.parentNode;

		
		
		var go = true;	
		if (inp.getAttribute("addondefault"))
		{
			

			var cb = pdiv.idiv.getElementsByTagName("INPUT")[0];
			//q[cname] = qmv_lib_parse_value(value,dtype,true);

			
			if (cb)
			{
				if (q[cname] || typeof q[cname]=="number")
				{
					
					if (qmv_check_addon_compatability(qmv.addons[pdiv.getAttribute("addontype")]))
					{
						cb.checked = false;	
						return;
					}
					
					cb.checked = true;
					qmv.addons[pdiv.getAttribute("addontype")]["on"+qmv.id] = true;
					

				}
				else
				{
					
					if (!inp.getAttribute("skipdefaultoff"))
					{	
						
						var toff = true;
						var addor;
						if (addoa = pdiv.getAttribute("addor"))
						{
						
							addoa = addoa.split("|");
							for (var j=0;j<addoa.length;j++)
							{
								
								if (qmv_find_update_tree_value("addon",pdiv.getAttribute("addontype"),addoa[j],null,true))
									toff = false;		
							}
						}
										

						if (toff)
						{
							go = false;
							cb.checked = false;
							qmv.addons[pdiv.getAttribute("addontype")]["on"+qmv.id] = false;

							//update the effect
							if (window["qmv_update_"+pdiv.getAttribute("addontype")])
							{
								eval("qmv_update_"+pdiv.getAttribute("addontype")+"(true,'"+dtype+"')");
								qmv_update_all_addons(pdiv.getAttribute("addontype"));
							}	
					
						}
					}
		
				}
			}

		}

		
		
		//update the effect
		if (!skip_update && go && window["qmv_update_"+pdiv.getAttribute("addontype")])
		{
			eval("qmv_update_"+pdiv.getAttribute("addontype")+"(null,'"+dtype+"')");
			qmv_update_all_addons(pdiv.getAttribute("addontype"));
		}



	}




}




function qmv_evt_update_inline_style(value,rule_obj,sname,cname)
{
	

	if (!value && rule_obj.style.removeAttribute)
	{
		if (!(rule_obj.style.removeAttribute(cname)))
			rule_obj.style[cname] = value;

	}
	else
		rule_obj.style[cname] = value;

	
	
}


function qmv_load_addon_settings_to_tree()
{


	var q;
	if (!qmad["qm"+qmv.id])
		q = qmad["qm"+qmv.id] = new Object();
	else
		q = qmad["qm"+qmv.id];

	
	
	var a = document.getElementById("qmvtree_addon_settings").getElementsByTagName("DIV");
	for (var i=0;i<a.length;i++)
	{

		var tr = a[i].getAttribute("rule");
		if (!tr || tr!="addon") continue;
			


		if (a[i].idiv)
		{
			var inp = a[i].idiv.getElementsByTagName("INPUT")[0];
			var atype = a[i].getAttribute("addontype");

			qmv_load_addon_status(inp,atype);
						
		}
		
		inp = a[i].getElementsByTagName("INPUT");
		for (var j=0;j<inp.length;j++)
		{
			var cname;
			if (cname = inp[j].getAttribute("cname"))
			{

				
				if (q[cname]!=null && q[cname]!=undefined)
					inp[j].value = q[cname];
				else
					inp[j].value = "";




				if (inp[j].getAttribute("dtype") == "color")
				{
					qmvi_color_recent_add(inp[j]);
					qmv_color_build_button_set(inp[j]);
				}


				inp[j].rule = tr;
				inp[j].prev_value = inp[j].value;
			}

		}
		
	}


	var i;
	for (i in qmv.addons)
	{
		
		if (qmv.addons[i]["on"+qmv.id])
			qmv["questionasked_"+i] = true;
		else
			qmv["questionasked_"+i] = false;
		

		if (qmv.addons[i].initialize)
			eval("qmv_initialize_"+i+"()");		

	}





}


function qmv_addon_set_all_status()
{

	for (m=0;m<10;m++)
	{

		if (!document.getElementById("qm"+m))
			continue;


		for (i in qmv.addons)
		{
	
			if ((qmv.addons[i]["on"+m]==null || qmv.addons[i]["on"+m]==undefined) && qmv.addons[i].ontest)
			{
				

				var ot = qmv.addons[i].ontest.split("|");
				var ogo = false;
				for (var e=0;e<ot.length;e++)
				{	
					
					if (qmad["qm"+m][ot[e]])
						ogo = true;			
				}
				
				if (ogo)
				{
					
					qmv.addons[i]["on"+m] = true;
				}
				else
					qmv.addons[i]["on"+m] = false;

			}
	
		}

	}
			
}


function qmv_load_addon_status(inp,atype)
{


	var q = qmad["qm"+qmv.id];
	
	if (inp && atype && q)
	{
				
		if ((qmv.addons[atype]["on"+qmv.id]==null || qmv.addons[atype]["on"+qmv.id]==undefined) && qmv.addons[atype].ontest)
		{	
					
			var ot = qmv.addons[atype].ontest.split("|");
			var ogo = false;
			for (var e=0;e<ot.length;e++)
			{	
				
				if (q[ot[e]])
					ogo = true;			
			}
		
			if (ogo)
			{
						
				qmv.addons[atype]["on"+qmv.id] = true;
				inp.checked = true;
			}
			else
			{
				
				qmv.addons[atype]["on"+qmv.id] = false;
				inp.checked = false;
			}
		}
		else
		{

			if (qmv.addons[atype]["on"+qmv.id])
				inp.checked = true;
			else
				inp.checked = false;


		}
			
	}				

}

function qmv_evt_update_item_extra_remove_margin_padding()
{

	var inp;
	inp = qmv_find_update_tree_value("css","#qm[i] a","padding","",false,true);
	qmv_evt_update_tree_value(inp);
	inp = qmv_find_update_tree_value("css","#qm[i] a","margin","",false,true)
	qmv_evt_update_tree_value(inp);

}

function qmv_evt_update_item_extra(value,sname,cname,rule,dtype,inp)
{



	if (rule=="image")
	{
		
		var g = qmv.cur_item.getElementsByTagName("IMG");
		var img;

		for (var i=0;i<g.length;i++)
		{
			if (g[i].className.indexOf("qm-is")+1)
			{
				img = g[i];
				break;			
			}
		}


		value = qmv_lib_parse_value(value,dtype);		
		if (value || cname!="staticimage")
		{
			if (!img)
			{

				if (cname=="staticimage")
				{


					var ni = document.createElement("IMG");
					ni.setAttribute("src",value);
					ni.setAttribute("width",100);
					ni.setAttribute("height",25);
					ni.setAttribute("qmvafter",1);
				
					var nic = "qm-is";
					if (qmv_lib_parse_value(qmv_find_update_tree_value("iextra",rule,"hoverimage",null,true),dtype))
						nic += " qm-ih";

					if (qmv_lib_parse_value(qmv_find_update_tree_value("iextra",rule,"activeimage",null,true),dtype))
						nic += " qm-ia";

					ni.className = nic;

					var t;
					if (t = qmv_lib_parse_value(qmv_find_update_tree_value("iextra",rule,"width",null,true),dtype))
						ni.setAttribute("width",t);

					var t;
					if (t = qmv_lib_parse_value(qmv_find_update_tree_value("iextra",rule,"height",null,true),dtype))
						ni.setAttribute("height",t);

					var t;
					if (t = qmv_lib_parse_value(qmv_find_update_tree_value("iextra",rule,"alt",null,true),dtype))
						ni.setAttribute("alt",t);


					qmv.cur_item.appendChild(ni);
			
					
					qmv.cur_item.qmvstext = qmv_set_texturl_field(qmv.cur_item,true);
					qmvi_change_item_text(qmv.cur_item,"");


					qm_image_switch(qmv.cur_item,false,false,true);
					qm_image_switch(qmv.cur_item,true,false);

				
					if (qm_a(qmv.cur_item[qp]) && (qmv_find_update_tree_value("css","#qm[i] a","padding",null,true) || qmv_find_update_tree_value("css","#qm[i] a","margin",null,true)))
						qmv_show_dialog("question-yesno",null,"Your main menu items contain margins or padding values, these values will create a gap between your image based items.<br><br>Would you like to remove all padding and margin values.",450,"qmv_evt_update_item_extra_remove_margin_padding()");

					
					qmv.addons.image["on"+qmv.id] = true;
						
				}
				else
					qmv_show_dialog("alert",null,"First specify a static image, without a static image defined, additional item specific image settings will not be saved.",450);
				
			

			}
			else
			{

				if (cname=="staticimage")
				{
					
					img.setAttribute("src",value);
					qm_oo(new Object(),qmv.cur_item,false);
					
				}
				else if (cname=="hoverimage")
				{
					
					if (value && img.className.indexOf("qm-ih")==-1)
					{
						qm_arc("qm-ih",img,true);
						qm_image_switch(qmv.cur_item,false,false,true);
						qm_image_switch(qmv.cur_item,true,false);
					}
					else
					{
						qm_arc("qm-ih",img);
						qm_image_switch(qmv.cur_item,false,true);
						qm_image_switch(qmv.cur_item,true,false);	
					}
					
				}
				else if (cname=="activeimage")
				{

					if (value && img.className.indexOf("qm-ia")==-1)
					{
						qm_arc("qm-ia",img,true);
						qm_image_switch(qmv.cur_item,true,false);
					}
					else
					{
						qm_arc("qm-ia",img);
						qm_image_switch(qmv.cur_item,false,true);
						qm_image_switch(qmv.cur_item,false,false,true);
						
					}
					
				}
				else if (cname=="width")
				{
					
					img.setAttribute("width",value);

				}
				else if (cname=="height")
				{
					
					img.setAttribute("height",value);

				}
				else if (cname=="alt")
				{
					if (value)
						img.setAttribute("alt",value);
					else
						img.removeAttribute("alt");

				}
				

			}

		}
		else
		{
			
			if (img)
			{

				qmv.cur_item.removeChild(img);
				if (!qmv_set_texturl_field(qmv.cur_item,true)) qmvi_change_item_text(qmv.cur_item,qmv.cur_item.qmvstext);
				
				var keep = false;
				var ims = document.getElementById("qm"+qmv.id).getElementsByTagName("IMG");
				for (var k=0;i<ims.length;k++)
				{
					if (ims[k].className.indexOf("qm-is")+1)
					{
						keep = true;
						break;
					}

				}

				
				if (!keep) qmv.addons.image["on"+qmv.id]= false;
					
			}
			

		}
	



	}
	else if (rule=="sopen")
	{

		value = qmv_lib_parse_value(value,dtype);
		var ca = qmv.cur_item[qp].idiv;

		if (ca)
		{
			if (value)
			{

				
				var cb = document.getElementById("qmv_iadd_sopen");
				if (!cb.checked)
				{
					cb.checked = true;
					qmv_evt_addremove_addon(new Object(),cb);
				}


				qm_arc("qm-startopen",ca,true)

			}
			else
			{
				qm_arc("qm-startopen",ca);
				qmv_update_extra_check_sopen_on();
			}

		}
		else
		{
			
			qmv_show_dialog("alert",null,"The main menu container is visible by default, please select a sub menu container before applying this value.",480);
			inp.value = "";
		}


	}
	
	
}

function qmv_evt_update_item_title_innerHTML(a,val)
{

	
	if (qmad.br_ie)
	{	
		
		var b = a.cloneNode(true);
		
		b.onclick = a.onclick;
		b.className = a.className;
		b.ondblclick = a.ondblclick;
		b.oncontextmenu = a.oncontextmenu;
				
		b.innerHTML = val;

		a.parentNode.replaceChild(b,a);	

	}
	else
	{
		a.innerHTML = val;

	}
		
}

function qmv_update_extra_check_sopen_on()
{

	var a = document.getElementById("qm"+qmv.id);
	a = a.getElementsByTagName("DIV");
	var on = false;
	for (var i=0;i<a.length;i++)
	{
		if (a[i].idiv && a[i].idiv.className.indexOf("qm-startopen")+1)
			on = true;

	}

	qmv.addons.sopen["on"+qmv.id] = on;
	
}


function qmv_load_item_extras_to_tree()
{




	var a = document.getElementById("qmvtree_item_extra_settings").getElementsByTagName("DIV");
	for (var i=0;i<a.length;i++)
	{

		var tr = a[i].getAttribute("rule");

		var aa = a[i].childNodes;
		for (var j=0;j<aa.length;j++)
		{

			if (aa[j].tagName=="A")
			{
				var inp = aa[j].getElementsByTagName("INPUT")[0];
				if (inp)
				{
					
					inp.rule = tr;					

					var cname = inp.getAttribute("cname");
					if (tr=="image")
					{

						inp.value = "";
						var img = qmv.cur_item.getElementsByTagName("IMG");
						for (var i=0;i<img.length;i++)
						{
							if (img[i].className.indexOf("qm-is")+1)
							{
								if (cname=="staticimage")
								{
									inp.value = qm_image_base(img[i],true);
									break;
								}
		
								if (cname=="width")
								{
									inp.value = img[i].getAttribute("width");
									break;
								}

								if (cname=="height")
								{
									inp.value = img[i].getAttribute("height");
									break;
								}

								if (cname=="alt")
								{
									inp.value = img[i].getAttribute("alt");
									break;
								}

								if (cname=="hoverimage")
								{
									if (img[i].className.indexOf("qm-ih")+1)
										inp.value = "true";
									else 
										inp.value = "false";
	
									break;
								}

							
								if (cname=="activeimage")
								{
									if (img[i].className.indexOf("qm-ia")+1)	
										inp.value = "true";
									else
										inp.value = "false";

									break;
								}
							}

						}


					}
					else if (tr=="sopen")
					{
						var cname = inp.getAttribute("cname");
						if (cname=="sopen")
						{
							var ca = qmv.cur_item[qp].idiv;
							if (ca)
							{
								if (ca.className.indexOf("qm-startopen")+1)
								{
									qmv.addons.sopen["on"+qmv.id] = true;
									inp.value = "true";
								}
								else
									inp.value = "false";

							}
							else
								inp.value = "";
						}
						
		
				
					}
				}	

			}



		}


	}


}

function qmv_load_inline_styles_to_tree()
{
	
	var a = document.getElementById("qmvtree_inline_styles").getElementsByTagName("DIV");
	for (var i=0;i<a.length;i++)
	{
		var tr = a[i].getAttribute("rule");

		var obj = qmv.cur_item;
		if (tr.indexOf("parent")+1)
			obj = obj.parentNode;


		if (!obj) continue;

		var aa = a[i].childNodes;
		for (var j=0;j<aa.length;j++)
		{

			if (aa[j].tagName=="A")
			{
				
				var inp = aa[j].getElementsByTagName("INPUT")[0];
				if (inp)
				{
					var cname = inp.getAttribute("cname");
					if (!cname) continue;

					var val = obj.style[cname];
					if (val)
					{
						if (qmad.br_ie)
							inp.value = val;
						else
							inp.value = qmv_load_css_styles_firefox_fix(val,inp.getAttribute("dtype"))
						
					}
					else
						inp.value = "";



					var dtype = inp.getAttribute("dtype");
					if (dtype == "color")
						qmv_color_build_button_set(inp);
										
			

					inp.rule_obj = obj;
					inp.prev_value = inp.value;
				}
			}

		}
		
	}

}

function qmv_load_title_applied_to_tree()
{
	var a = document.getElementById("qmvtree_item_titles").childNodes;
	for (var i=0;i<a.length;i++)
	{
		
		if (a[i].tagName=="A")
		{
				
			var inp = a[i].getElementsByTagName("INPUT")[0];
			if (inp)
			{
				var cname = inp.getAttribute("cname");
				if (!cname) continue;

				if (cname=="apply")
				{	
					

					var sd;
					if (sd = qmv_lib_get_previoussibling_span(qmv.cur_item,"qmtitle"))
						inp.value = true;
					else
						inp.value = false;



				}
				else if (cname=="text")
				{
					
					var sd;
					if (sd = qmv_lib_get_previoussibling_span(qmv.cur_item,"qmtitle"))
					{
						if (!sd.innerHTML)
							inp.value = "";
						else
							inp.value = sd.innerHTML;

					}
					else 
						inp.value = "";


				}
				

				inp.prev_value = inp.value;

			}

		}

	}
	
}


function qmv_load_cbox_applied_to_tree()
{
	var a = document.getElementById("qmvtree_content_boxes").childNodes;
	
	for (var i=0;i<a.length;i++)
	{
		
		if (a[i].tagName=="A")
		{
				
			var inp = a[i].getElementsByTagName("INPUT")[0];
			if (inp)
			{
				var cname = inp.getAttribute("cname");
				if (!cname) continue;

				if (cname=="apply")
				{	
					
					
					var sd;
					if (sd = qmv_lib_get_previoussibling_span(qmv.cur_item,"qmtitle"))
						inp.value = true;
					else
						inp.value = false;



				}
				else if (cname=="text")
				{
					
					var sd;
					if (sd = qmv_lib_get_previoussibling_span(qmv.cur_item,"qmtitle"))
					{
						if (!sd.innerHTML)
							inp.value = "";
						else
							inp.value = sd.innerHTML;

					}
					else 
						inp.value = "";


				}
				

				inp.prev_value = inp.value;

			}

		}

	}
	
}


function qmv_load_divider_applied_to_tree()
{



	var a = document.getElementById("qmvtree_item_dividers").childNodes;
	for (var i=0;i<a.length;i++)
	{
		
		if (a[i].tagName=="A")
		{
				
			var inp = a[i].getElementsByTagName("INPUT")[0];
			if (inp)
			{
				var cname = inp.getAttribute("cname");
				if (!cname) continue;

				if (cname=="apply")
				{	

					var sd;
					if (sd = qmv_lib_get_previoussibling_span(qmv.cur_item,"qmdivider"))
						inp.value = true;
					else
						inp.value = false;
	

				}

				inp.prev_value = inp.value;

			}

		}

	}
	
}

function qmv_load_box_styles_to_tree()
{
	
	var a = document.getElementById("qmvtree_box").getElementsByTagName("DIV");	
	qmv_load_styles_to_tree(null,a);
}

function qmv_load_ritem_styles_to_tree()
{
	
	var a = document.getElementById("qmvtree_ritem").getElementsByTagName("DIV");	
	qmv_load_styles_to_tree(null,a);
}

function qmv_load_hoverfill_styles_to_tree()
{
	
	var a = document.getElementById("qmvtree_hoverfill").getElementsByTagName("DIV");	
	qmv_load_styles_to_tree(null,a);
}

function qmv_load_title_styles_to_tree()
{
	
	var a = document.getElementById("qmvtree_item_titles").getElementsByTagName("DIV");	
	qmv_load_styles_to_tree(null,a);
}

function qmv_load_cbox_styles_to_tree()
{
	
	var a = document.getElementById("qmvtree_content_boxes").getElementsByTagName("DIV");	
	qmv_load_styles_to_tree(null,a);
}

function qmv_load_stripe_styles_to_tree()
{
	
	var a = document.getElementById("qmvtree_item_stripes").getElementsByTagName("DIV");	
	qmv_load_styles_to_tree(null,a);
}



function qmv_load_divider_styles_to_tree()
{
	
	var a = document.getElementById("qmvtree_item_dividers").getElementsByTagName("DIV");	
	qmv_load_styles_to_tree(null,a);
}

function qmv_load_styles_to_tree(id,tree_obj)
{
	

	var a;
	if (!tree_obj)
		a = document.getElementById("qmvtree_css_styles").getElementsByTagName("DIV");	
	else
		a = tree_obj;

	for (var i=0;i<a.length;i++)
		a[i].stylesloaded = null;



	var c = 0;
	while (qmv["style_rules"+c])
	{

		//var rules = qmv.style_rules;
		var rules = qmv["style_rules"+c];
		//var rules = qmv["style_rules"+0];
		if (!id) id = qmv.id;

				
		for (var i=0;i<rules.length;i++)
		{	

			var st = rules[i].selectorText.toLowerCase();
			if (st.indexOf(".qmmc")==0 || st.indexOf(".qmclear")==0)
				continue;

			
			if (st.indexOf("#qm")+1 && st.indexOf("#qm"+id)==-1)
				continue;


			
			qmv_load_styles_to_tree_node(rules[i],st,null,a);

		}
	
		c++;
	}


	for (var i=0;i<a.length;i++)
	{

		var tr = a[i].getAttribute("rule");
		if (tr)
		{
			var tr = tr.replace("[i]",qmv.id);
			qmv_load_style_set_rule_desc(a[i],tr);
			
			if (!a[i].stylesloaded)
				qmv_load_styles_to_tree_node(null,tr,true,a);

		}
	}


	

}

function qmv_load_style_set_rule_desc(a,tr)
{

	if (a.idiv.getAttribute("ruledesc"))
	{
		var as = a.idiv.getElementsByTagName("SPAN");
		for (var j=0;j<as.length;j++)
		{
			if (as[j].getAttribute("isruledesc"))
				as[j].innerHTML = a.idiv.getAttribute("ruledesc")+"&nbsp;&nbsp;<span class='qmvtree-rule'>[&nbsp;"+tr.replace("body","")+"&nbsp;]</span>";

		}
					
	}


}


function qmv_load_styles_to_tree_node(rule,st,force_noval,a,test)
{

	
	st = st.split(",");
	st = st[0];	
		
	for (var i=0;i<a.length;i++)
	{
		var origrule = a[i].getAttribute("rule");
		var tr = origrule;
		if (tr && tr!="addon")
		{

			tr = tr.replace("[i]",qmv.id);
			
			

			if (tr==st)
			{
				
				
				a[i].stylesloaded = 1;

				var aa = a[i].childNodes;
				for (var j=0;j<aa.length;j++)
				{
					if (aa[j].tagName=="A")
					{

						var cname = aa[j].getAttribute("cname");
						if (!cname)
							continue;
						
						var val = "";
						if (!force_noval)
							var val = rule.style[cname];

						var inp = aa[j].getElementsByTagName("INPUT")[0];
						var dtype = inp.getAttribute("dtype");
						if (val)
						{
							if (qmad.br_ie)
								inp.value = val;
							else
								inp.value = qmv_load_css_styles_firefox_fix(val,inp.getAttribute("dtype"));

							
							if (dtype == "color")
								qmvi_color_recent_add(inp);
												
							
						}
						else
							inp.value = val;


						if (dtype=="color")
							qmv_color_build_button_set(inp);

						var ir;
						if (ir = a[i].getAttribute("inheritrule"))
							inp.setAttribute("inheritrule",ir);
						
						
						inp.origrule = origrule;
						inp.rule = tr;
						inp.prev_value = inp.value;

						

					}


				}


			}	


		}


		
		
	}	

}





function qmv_color_build_button_set(inp)
{



	a = inp[qp];
	while (a && a.tagName && a.tagName!="A")
		a = a[qp];

	
	var s = a.getElementsByTagName("SPAN");

	if (s.length>0)
	{
		s = s[s.length-1];

		if (inp.value)
		{
			s.style.backgroundColor = inp.value;
			s.style.borderColor = "#333333";
			s.innerHTML = "";
		}
		else
		{
			s.style.backgroundColor = "";
			s.style.borderColor = "";
			s.innerHTML = "...";
		}
	}

}


function qmv_convert_color_to_hex(value)
{

	var rval = value;
	var cv = value.split(") ");
	if (cv.length==4)
	{
			
		if (cv[0]==cv[1] && cv[0]==cv[2] && cv[3].indexOf(cv[0])+1)
			rval = cv[0];
			
	}

	var rl = rval.toLowerCase();
	if (rl!="transparent" && rl.indexOf("rgb")+1)
		rval = qmv_color_parse_split(cv[0],true);
	

	return rval;
}


function qmv_load_css_styles_firefox_fix(value,dtype)
{

	

	var rval = value;


	if (dtype=="color")
	{
		
		rval = qmv_convert_color_to_hex(value);
			

	}

	var cv = value.split(" ");
	if (cv.length==4)
	{
		if (cv[0]==cv[1] && cv[0]==cv[2] && cv[0]==cv[3])
			rval = cv[0];	
	}
	


	return rval;

}



//************************** Visual Interface Event Handlers




function qmv_a(o)
{


	
	
	if (qmv.preview_mode)
		return;

		
	var m = qm_get_menu(o);
	if (m.id=="qm99" || m.id=="qm98") return;
	if (qmv.anchor_dialog_visible) qmv_save_anchor_settings();


	qmv.cur_item = o;
		
	qmv_set_texturl_field(o);
	if (qmv.anchor_dialog_visible)qmv_url_init();
	qmv_load_inline_styles_to_tree()
	qmv_load_item_extras_to_tree();
	qmv_load_title_applied_to_tree();
	qmv_load_cbox_applied_to_tree();
	qmv_load_divider_applied_to_tree();

	
	var id;
	if (m.id && (id = m.id.substring(2)) && !isNaN(id = parseInt(id)))
	{	

		if (qmv.id==-1 || qmv.id != id)
		{
			

			qmv.force_id_update = false;
			qmvi_save_report_object();
			
			qmv.color_recent = new Array();

			
			
			qmv.id = id;
			qmv_load_styles_to_tree();
			qmv_load_menu_settings_to_tree();
			qmv_load_addon_settings_to_tree();
			qmv_load_title_styles_to_tree();
			qmv_load_cbox_styles_to_tree();
			qmv_load_stripe_styles_to_tree();
			qmv_load_divider_styles_to_tree();
			qmv_load_box_styles_to_tree();
			qmv_load_ritem_styles_to_tree();
			qmv_load_hoverfill_styles_to_tree();
			qmv_load_custom_styles_to_tree();

			if (document.getElementById("qmvtree_filter").cdiv.style.display=="block")
				qmv_filter_init2();
				
			var a = document.getElementById("qmvtree_color_shortcuts");
			if (a.style.display=="block")
				qmv_shortcut_init(a);

			qmv_setbox_update_quick_color();
			qmvi_initialize_report_object();

			

		}
	
	}


	qmv_position_pointer(true);
	qmv_hide_context();
	qmv_setbox_update_individual();



	if (document.getElementById("qmvacc_apply_allitems"))
		qmv_custom_class_list_change(new Object());


	if (!qmv.qmvi_kb_focus_menu)
		qmv.qmvi_kb_focus_menu = document.getElementById("qmvi_kb_focus_menu");

	qmv.qmvi_kb_focus_menu.focus();


	
}



function qmv_hide_pointer(id)
{
	
	var po;
	if ((po = qmv.pointer) && (po = po[id]) && (po = po.a))
		po.style.display = "none";

}

function qmv_position_pointer(show)
{



	if (!qmv) return;

	var po = qmv.pointer["qm"+qmv.id].a;


	if (!qmv.cur_item.offsetWidth)
		return;

	//position the pointer
	var lt = qmv_lib_get_position_relative_to_main_menu_container(qmv.cur_item);
	po.style.left = (lt[0]-1)+"px";
	po.style.top = (lt[1]-1)+"px";
	

	var sp = po.getElementsByTagName("SPAN");
	var sw = qmv.cur_item.offsetWidth;
	var sh = qmv.cur_item.offsetHeight;
	
	sp[0].style.width = (sw+1)+"px";

	sp[1].style.width = (sw+1)+"px";
	sp[1].style.top = (sh+1)+"px";
	
	if (sw-1>=0)
	{
		sp[2].style.height = (sh-1)+"px";
		sp[2].style.top = "1px";

		sp[3].style.height = (sh-1)+"px";
		sp[3].style.top = "1px";
		sp[3].style.left = (sw+1)+"px";
	}


	if (show && !qmv.interface_hide_selected_box)
	{
		if (!qmv.addons.pointer["on"+qmv.id])
			po.style.display = "block";

		for (i in qmv.pointer)
		{
			if (i+""!="qm"+qmv.id && qmv.pointer[i]!=null)
				 qmv_hide_pointer(i+"");
		}
	
	}


}

function qmv_check_texturl_build()
{

	if (qmv.texturl_state=="text" && qmv.cur_item.className.indexOf("qmdivider")+1)
	{
		qmv_show_dialog("alert",null,"Custom text may not be applied to divider items.",400);
		return false;
	}


	return true; 

}



function qmv_set_texturl_field(a,gettext,publish,for_undo)
{
	
	
	

	var tuf = document.getElementById("qmv_texturl_field");
	

	if (qmv.texturl_state=="text" || gettext || publish)
	{
		var b = a.cloneNode(true);
		var after = qmv_atag_text_remove_objects(b,publish,for_undo);
	

		if (gettext)
		{
			if (for_undo)
				return b.innerHTML.replace(/\n/g,"")+after;
			else
				return b.innerHTML.replace(/\n/g,"");
		}
		else if (publish)
			return b.innerHTML.replace(/\n/g,"")+after;
		else
		{

			var sv = b.innerHTML;
			sv = sv.replace(/\n/g,"");

			tuf.value = sv;
			tuf.prev_value = tuf.value;

								
			if (a.className.indexOf("qmdivider")+1 && !tuf.value)
				qmv_texturl_enable_disable(tuf,true);
			else
				qmv_texturl_enable_disable(tuf,false);

		}

	
	}
	else
	{
		var tv1 = a.getAttribute("href",2);
		if (tv1==null)
			tv1 = "";		
		
		tuf.value = tv1;
		tuf.prev_value = tuf.value;

		if (a.className.indexOf("qmdivider")+1 || a.className.indexOf("qmtitle")+1 || a.className.indexOf("qmcbox")+1)
			 qmv_texturl_enable_disable(tuf,true);
		else
			 qmv_texturl_enable_disable(tuf,false);

	}

}

function qmv_texturl_enable_disable(tuf,disable)
{

	if (disable)
	{
		tuf[qp].style.backgroundColor = "#eeeeee";
		tuf[qp].style.borderStyle = "dotted";
		tuf.disabled = true;
	}
	else
	{
		tuf.disabled = false;
		tuf[qp].style.backgroundColor = "";
		tuf[qp].style.borderStyle = "";	

	}

}

function qmv_atag_text_remove_objects(a,publish,for_undo)
{
	
	
	var rval = "";
	var s = a.childNodes;
	for (var i=0;i<s.length;i++)
	{
		

		
		if (s[i].getAttribute && (s[i].getAttribute("qmvbefore") || s[i].getAttribute("qmvafter")))
		{



			if (publish || for_undo)
			{
				
				

				if (s[i].getAttribute("qmvafter"))
				{
					
					if (s[i].className && s[i].className.indexOf("qm-is")+1)
					{
						
						if (for_undo)
						{
							//used for reporting string
							rval += '[image: '+qm_image_base(s[i],true)+']';

						}
						else
						{
							
							rval = '<img ';
						
							talt = s[i].getAttribute("alt",2);
							if (!talt)
								talt = "";
							else
								talt = ' alt="'+talt+'"';							

							rval += ' class="'+s[i].className+'" src="'+qm_image_base(s[i],true)+'" width="'+s[i].getAttribute("width",2)+'" height="'+s[i].getAttribute("height",2)+'"'+talt+'>';
						}

					}
					

				}


			}


			a.removeChild(s[i]);
			i--;
		}
		

	}

	return rval;

}


function qmv_evt_update_tree_value(a,fromspin,skip_validate,skip_update,skip_inherit,is_quickcolor,skip_filter_update,skip_mirror,is_undo,skip_update_addons)
{


		
	
	if (a.value==a.prev_value)
		return;


	try
	{
		var dt = a.getAttribute("dtype");
		

		if (!skip_validate)
		{
		
			
			if (a.value && dt)
			{
		
				var range = a.getAttribute("range");
				var oops = false;
				var oops_range = false;
			
				var t;
				var es;
				if (dt=="int")
				{
					t = parseInt(a.value);
					if (isNaN(t))
						oops = true;		

					a.value = t;

				
					if (!oops && range)
					{
						es = range.replace("x",t);
						es = es.replace("x",t);		
						if (eval(es))
							oops_range=true;

					}
			
				}
				else if (dt=="unit")
				{
					if (a.value.toLowerCase()!="auto")
					{
				
						t = parseInt(a.value);
						var r = parseFloat(a.value);
						if (isNaN(t) && isNaN(r))
							oops = true;
						else if (!qmv_lib_get_units(a.value))
							a.value = a.value+"px";

						if (isNaN(t))
							t = r;
					
						if (!oops && range)
						{
							es = range.replace("x",t);
							es = es.replace("x",t);	
							if (eval(es))
								oops_range=true;

						}
					
					}

				}
				else if (dt=="bool")
				{
					t = a.value.toLowerCase();
					if (t && t!="false")
						a.value = "true";

				}
				else if (dt=="float")
				{

					t = parseFloat(a.value);
					if (isNaN(t))
						oops = true;


				
					if (!oops && range)
					{
						es = range.replace("x",t);
						es = es.replace("x",t);	
						if (eval(es))
							oops_range=true;
					
					}
				}
				else if (dt.indexOf("edge")+1)
				{
					

					if (dt.indexOf("borderwidth")+1 || dt.indexOf("margin")+1 || dt.indexOf("padding")+1)
					{	
						
						if (t = a.value.replace(/\,/g," "))
						{
							if (isNaN(parseInt(t)) && isNaN(parseFloat(t)))
							{
								oops = true;

							}
							else
							{
						
								if (t.indexOf(" ")==-1)
								{
								
									if (!qmv_lib_get_units(t))
										a.value = t+"px";
								}
								else
								{
									var tt = "";
									t = t.split(" ");
									for (var k=0;k<t.length;k++)
									{
										if (t[k] && !qmv_lib_get_units(t[k]))
											t[k] = t[k]+"px";

									}
	
									var count = 0;
									for (var k=0;k<t.length;k++)
									{
										if (count>3 || !t[k]) continue;
									
										tt+=t[k]+" ";
										count++	
									}	
		
									a.value = tt.substring(0,tt.length-1);
	
								}
							}
						}

					}
				}
				else if (dt == "styleimage")
				{
				
					if (a.value && a.value.toLowerCase().indexOf("url(")==-1)
						a.value = "url("+a.value+")";

					if (a.value && a.value.indexOf(")")==-1)
						a.value = a.value+")";
					
					a.value = a.value.replace(/\ /g,"%20");

				}
				else if (dt == "color")
				{

					if (!isNaN(parseInt(a.value,16)))
					{
						
						a.value = "#"+a.value;
					}


				}

			
				if (oops || oops_range)
				{

				
					a.value = a.prev_value;
	
					var show_range = "";	
					if (oops_range)
					{
						if (range=="x<0 || x>1")
							show_range = "<br><br>The valid range for this settings is between 0 and 1.";
						else if (range=="x<0")
							show_range = "<br><br>The value for this setting must be greater than 0.";
						else if (range=="x<0 || x>50")
							show_range = "<br><br>The valid range for this settings is between 0 and 50.";
						else if (range=="x<0 || x>20")
							show_range = "<br><br>The valid range for this settings is between 0 and 20.";
						else if (range=="x<0 || x>10")
							show_range = "<br><br>The valid range for this settings is between 0 and 10.";
				
					}

					if (!fromspin)
					{
						qmv_show_dialog("alert",null,"The value you selected or entered is invalid."+show_range,450);	
						return;
					}
	
				}
	
			
			}
		
		}

		
		
		
		var cat = a.getAttribute("category");
		

		if (a.iseditcolor)
		{
		
					
			var compare = a.prev_value.toLowerCase();
			for (var i=0;i<qmv.color_recent.length;i++)
			{
					
				if (qmv.color_recent[i].value==compare)
				{
							
					qmv.color_recent[i].inp.value = a.value;
					qmv_evt_update_tree_value(qmv.color_recent[i].inp,false,false,false,true,true);

					if (!a.value || a.value.toLowerCase()=="transparent")
						i--;

				}

			}

			a.prev_value = a.value;

			
			var ta = document.getElementById("qmvtree_color_shortcuts");
			if (ta.style.display=="block")
				qmv_shortcut_init(ta);	
			
			
			
			qmv_setbox_update_quick_color();
			return;

		}

		if (dt && dt=="color")
			qmv_color_build_button_set(a);
						
		
		var undo_inp = a;
		
		

		if (cat=="create")
			qmv_evt_update_menu_settings(a.value,a.rule,a.getAttribute("sname"),a.getAttribute("cname"),a.getAttribute("dtype"));
		else if (cat=="inline")
			qmv_evt_update_inline_style(a.value,a.rule_obj,a.getAttribute("sname"),a.getAttribute("cname"));
		else if (cat=="texturl")
		{

							

			var dlg = a.getAttribute("dlginp");
			if (!dlg || dlg=="text")
				qmv_evt_update_texturl(a);
			else
				qmvi_update_anchor_settings(a,dlg);


					
		}
		else if (cat=="addon")
		{
			

			if (!skip_mirror)
				qmv_evt_update_addon(a.value,a.rule_obj,a.getAttribute("sname"),a.getAttribute("cname"),a.getAttribute("dtype"),a,skip_update);
			//else
				//return;

		}
		else if (cat=="css")
		{

			if (!skip_mirror)
				qmv_evt_update_css_style(a.value,a.rule,a.getAttribute("sname"),a.getAttribute("cname"),null,null,fromspin);

			if (a.isfilter)
			{
				var rinp = qmv_find_update_tree_value("css",a.origrule,a.getAttribute("cname"),a.value,false,true);
				rinp.prev_value = a.value;
				undo_inp = rinp;
			}
			else if (!skip_filter_update && document.getElementById("qmvtree_filter").cdiv.style.display=="block")
			{
				qmv_filter_init2();
			}
			

			if (a.origrule.indexOf("qmpersistent")+1 && !qmv.addons.sopen_auto["on"+qmv.id])
			{
			
				qmv_show_dialog("question-yesno",null,"Persistent styles apply to all menu items which have URL links which match the location of the web page displaying the menu.<br><br>The persistent state add-on must be enabled and published with your menu for the styles to display, would you like to enable the persistent state add-on?",500,"qmv_context_cmd(new Object(),'addon_sopen_auto')");	

			}

			
			
		}
		else if (cat=="iextra")
		{
			if (!skip_mirror)
				qmv_evt_update_item_extra(a.value,a.getAttribute("sname"),a.getAttribute("cname"),a.rule,a.getAttribute("dtype"),a);
			//else
				//return;
		}
		


		
		
		if (!is_undo && !a.mirror)
		{
						
			qmvi_report_add_line("edits","undo","tree",cat,"",undo_inp,a.prev_value);
		}


		

		if (!skip_inherit && !fromspin && !is_quickcolor)
		{
			var ir = a.getAttribute("inheritrule");
			if (ir)
				qmv_inherit_style_question(ir,a.getAttribute("cname"),a.value,a);
			
		}


		
		
		if (cat!="addon" && !skip_update_addons)
		{
			var iefix = false;
			if (cat=="css" && qmad.br_ie)
				iefix = true;

			qmv_set_all_subs_to_default_position(true,iefix);
			qmv_update_all_addons();
		}


		if (!skip_mirror)
		{
			if (a.mirror)
			{
				
				a.mirror.value = a.value;
				qmv_evt_update_tree_value(a.mirror,null,null,null,null,null,null,true);
			}
			else
			{

				
				var sb = document.getElementById("qmvi_setbox");
				if (sb.style.visibility == "visible")
				{
					var sbi = sb.getElementsByTagName("INPUT");
					for (var i=0;i<sbi.length;i++)
					{
						if (sbi[i].mirror==a)
						{
							sbi[i].value = a.value;
							qmv_evt_update_tree_value(sbi[i],null,null,null,null,null,null,true);

							break;
						}

					}

				}

			}
		}


		

		qmv_position_addon_tools();
		qmv_position_pointer();
		a.prev_value = a.value;


				
		if (dt && !a.iseditcolor && !a.isfilter && !a.mirror)
		{
			
			if (dt=="color")
			{
				if (a.value)
					qmvi_color_recent_add(a,true);
				else
					qmvi_color_recent_remove(a);
			}

		}

		

		if (dt && dt=="color" && !is_quickcolor && !a.mirror)
		{
			
			var ta = document.getElementById("qmvtree_color_shortcuts");
			if (ta.style.display=="block")
				qmv_shortcut_init(ta);

			qmv_setbox_update_quick_color();
			
		}


	
	}
	catch(e)
	{
		
		if (a.prev_value)
		{
			
			qmv_show_dialog("warning-undo",a,"Invalid Value: The value you entered is not valid.",450)
			a.value = a.prev_value;
			return true;
		}

	}
	
	

	var code = a.getAttribute("code");
	if (!is_undo && code)
		eval(code);


	if (qmv.vdesign_tab!="design")
		qmvi_vd_tab_update_content();

			
	qmv.changed = true;
	
}




function qmv_evt_update_tree_value_enter(e,a)
{

	e = e || window.event;


	if (e.keyCode==13)
		qmv_evt_update_tree_value(a);
		
	

}



function qmv_evt_title_mousedown(e,src,type,isrel)
{
	

	
	e = e || window.event;
				
	qmv.title_mdown = true;
	qmv.title_prev_x = e.screenX;
	qmv.title_prev_y = e.screenY;
	qmv.title_move_shadow = false;
	qmv.title_type = type;
	qmv.title_relative = isrel;

	if (!type)
	{
		if (qmv.interface_full)
			return;

		qmv.title_obj = document.getElementById("qmvi");
		qmv.title_adjust_floating_window = true;
	}
	else
	{
		if (type==1)
		{
			qmv.title_obj = document.getElementById("qmvi_dialog");
			qmv.title_move_shadow = document.getElementById("qmvi_dialog_shadow");;
		}
		else if (type==2)
		{
			qmv.title_obj = document.getElementById("qmvi_msg_dialog");
			qmv.title_move_shadow = document.getElementById("qmvi_msg_dialog_shadow");
		}
		else if (type==3)
		{
			qmv.title_obj = document.getElementById("qmvi_help_dialog");
			qmv.title_move_shadow = document.getElementById("qmvi_help_dialog_shadow");
		}
		else if (type==4)
		{
			qmv.title_obj = document.getElementById("qmvi_setbox");
			qmv.title_move_shadow = document.getElementById("qmvi_setbox_shadow");
		}
		else if (type==5)
		{
			qmv.title_obj = document.getElementById("qmvi_logon");
			qmv.title_move_shadow = document.getElementById("qmvi_logon_shadow");
		}
		else if (type==6)
		{
			qmv.title_obj = document.getElementById("qmvi_ftop_dialog");
			qmv.title_move_shadow = document.getElementById("qmvi_ftop_dialog_shadow");
		}
		else
		{
			qmv.title_obj = type;
			
		}
	}

	
	src.style.cursor = "move";

	qm_kille(e);
	return false;

}



function qmv_evt_title_mousemove(e,src)
{
	
	e = e || window.event;	
	var m = qmv.title_obj;	
	if (!m) return;

	if (qmv.title_mdown)
	{
		
				
		var xdif = qmv.title_prev_x-e.screenX;
		var ydif = qmv.title_prev_y-e.screenY;
	
		if (qmv.title_relative)
		{

			m.style.left = (parseInt(m.style.left)-xdif)+"px";
			m.style.top = (parseInt(m.style.top)-ydif)+"px";

		}
		else
		{
			m.style.left = (m.offsetLeft-xdif)+"px";
			m.style.top = (m.offsetTop-ydif)+"px";
		}
		

		if (qmv.title_move_shadow)
		{
			
			qmv.title_move_shadow.style.left = parseInt(m.style.left)+3+"px";
			qmv.title_move_shadow.style.top =  parseInt(m.style.top)+3+"px";
		}

		
		qmv.title_prev_x = e.screenX;
		qmv.title_prev_y = e.screenY;


		qmv.title_moved = true;		

		if (qmad.br_ie)
			src.setCapture(true);

		
		qm_kille(e);
		return false;
		
	}

}


function qmv_evt_title_mouseup(e,src)
{
	
	if (qmv.title_adjust_floating_window) qmv_auto_size_interface_height();
		

	qmv.title_mdown = false;
	if (qmv.title_moved && qmad.br_ie)
		src.releaseCapture(true);
	
	
	src.style.cursor = "";
	
	
	
}


function qmv_evt_move_fixcapture(e)
{
	e = e || widow.event;	
	

	if (qmv.title_mdown)
	{
		
		qmv_evt_title_mousemove(e,document.getElementById("qmvi_title"))
	}
	
	if (qmv.container_moved)
		qmv_container_mouse_move(e,qmv.container_obj);


	if (qmv.addontools_moved)
		qmv_addontools_mouse_move(e,qmv.addontools_obj);

}

function qmv_evt_fix_mouse_up(e)
{

	if (!qmv.preview_mode) qm_la = null;
	
	if (qmv.color_vals && qmv.color_vals.bright_down)
		qmv_color_brightness_mouseup(e,document.getElementById("qmvi_color_bright_bar"))

	if (qmv.color_vals && qmv.color_vals.hs_down)
		qmv_color_huesaturation_mouseup(e,document.getElementById("qmvi_color_hs_div"))


	if (qmv.addontools_moved)
		qmv_addontools_mouse_up(e,qmv.addontools_obj);


}


function qmv_evt_kill_click(e)
{

	e = e || event;

	qm_kille(e,true);
	return false;

}

function qmv_chrome_save()
{

	parent.xqmv_save();

}

function qmv_chrome_save_as()
{

	parent.xqmv_save_as();

}

function qmv_evt_bb_click(type)
{


	if (type=="add" || type=="insert" || type=="delete" || type=="addsub" || type=="moveup" || type=="movedown" || type=="copyitem" || type=="pasteitem")
	{

		qmv_modify_items(type);

	}
	else if (type=="addmenu")
	{

		qmv_add_new_menu();

	}
	else if (type=="deletemenu")
	{

		qmv_delete_menu();
	}
	else if (type=="save")
	{

		if (qmv.is_chrome)
		{
		
			qmv_chrome_save();
		}
		else
		{

			if (!qmv.is_online && !qmad.br_ie)
				qmv_evt_menu_item_click('save');
			else
				qmv_show_dialog("save_account");

		}

	}
	else if (type=="publish")
	{

		qmv_evt_menu_item_click('quick_publish');

	}
	else if (type=="publish_auto")
	{

		qmv_show_dialog("publish_auto");

		//qmv_savegen();
		//qmvi_alert_features_locked();

	}
	else if (type=="preview")
	{

		qmv_evt_menu_item_click('preview');

	}
	else if (type=="specs")
	{
		qmv_context_cmd(new Object(),'specs');

	}
	else if (type=="insert_divider")
	{
		qmv_context_cmd(new Object(),'insert_divider');

	}
	else if (type=="insert_cbox")
	{
		qmv_context_cmd(new Object(),'insert_cbox');

	}
	else if (type=="insert_title")
	{
		qmv_context_cmd(new Object(),'insert_title');

	}	
	else if (type=="style_divider")
	{
		qmv_context_cmd(new Object(),'divider_styles');

	}
	else if (type=="style_title")
	{
		qmv_context_cmd(new Object(),'title_styles');
	}
	else if (type=="style_cbox")
	{
		qmv_context_cmd(new Object(),'cbox_styles');
	}
	else if (type=="quickcolors")
	{
		qmv_context_cmd(new Object(),'quick_color_edits');
	}
	


}

function qmv_evt_addremove_addon(e,a)
{

	e = e || event;
	

	var at = a.parentNode;
	while (at.tagName!="A")
		at = at.parentNode;

	
	var add_type = at.cdiv.getAttribute("addontype");


	

	if (a.checked)
	{
		
		
		var inp = at.cdiv.getElementsByTagName("INPUT");
		for (var i=0;i<inp.length;i++)
		{

			var ad = inp[i].getAttribute("addondefault");
			if (ad)
			{
				
				if ((ad!="blank" && !inp[i].value) || (!isNaN(parseInt(inp[i].value)) && !parseInt(inp[i].value)))
				{
					inp[i].value = ad;
					qmv_evt_update_tree_value(inp[i],null,true,true)
					
				}

			}	


		}

		
		if (add_type=="ritem")
		{

			qmv_show_dialog("alert",null,"Rounded items are recommended for advanced users. Each rounded item sits on top of the standard menu item, tweaking the position and look of the rounded items requires a good working knowledge of adjusting menu padding, margins, and colors.<br><br>Because the rounded items are position absolute, you will have to adjust the standard setting margins and padding to adjust how the items appear next to each other. If your rounded items are bigger than the standard items, they may overlap in the subs, use padding to increase the standard item sizing which will also adjust the rounded item positioning.<br><br>Because rounded items sit within the existing menu items, any item square borders or colors will be visible at the rounded sub corners edges, these options are typically turned off to achieve the desired effect.  You can use the CSS styles or the included quick options in the rounded item add-on settings to adjust these styles.<br><br>It's easiest to work from a rounded item template rather than applying this add-on to an existing menu.",500);


		}


		if (qmv_check_addon_compatability(qmv.addons[add_type]))
		{
			
			a.checked = false;
			qmv_setbox_update_addon_check(a);

			qm_kille(e,true);
			return;
		}

		
		qmv.addons[add_type]["on"+qmv.id] = true;

		
		if (window["qmv_update_"+add_type])
			eval("qmv_update_"+add_type+"()");


		
		if (a[qp].cdiv.style.display!="block")
			qm_vtree_item_click(a[qp].cdiv);
		

	}
	else
	{
		
		if (window["qmv_update_"+add_type])
			eval("qmv_update_"+add_type+"(true)");


		qmv.addons[add_type]["on"+qmv.id] = false;
		
		

	}

	
	qmv_setbox_update_addon_check(a);

	qmv_position_pointer();
	qmv_update_all_addons(add_type);

	
	qm_kille(e,true);

}


function qmv_evt_menu_item_click(type,a,e)
{
	
	
	if (a && a.className.indexOf("qmdisabled")+1)
	{
		

		if (type=="save_account_quick" || type=="open_account_quick" || type=="open_account" || type=="save_account")
			qmv_show_dialog("alert",null,"This feature is only accessible when logged in through the online visual interface at www.opencube.com.<br><br>You are currently accessing the interface through a remote web page.",350);


		if (e) qm_kille(e);
		return;
	}

	
	if (type=="options")
	{
		qmv_show_dialog("options");

	}
	else if (type=="new")
	{
		
		qmvi_template_show_dialog_new();

	}
	else if (type=="open")
	{
		
		qmv_show_dialog("open");

	}	
	else if (type=="preview")
	{
		qmv_preview_menu();

	}
	else if (type=="publish")
	{
		
		if (!qmv.access_type)
			qmvi_user_register();	
		else
			qmv_show_dialog("publish1");

	}
	else if (type=="quick_publish")
	{
		
		if (!qmv.access_type)
			qmvi_user_register();	
		else
		{
			qmv_show_dialog("quick_publish");
			qmvi_alert_features_locked();
		}

	}
	else if (type=="save")
	{
		
		qmv_show_dialog("save");

	}
	else if (type=="save chrome")
	{
		
		qmv_chrome_save();


	}
	else if (type=="save chrome as")
	{
		
		qmv_chrome_save_as();


	}
	else if (type=="open chrome")
	{
		
		parent.xqmv_open();


	}
	else if (type=="save_account_quick")
	{
		
		qmvi_save_to_account();

	}
	else if (type=="save_account")
	{
		qmv_show_dialog("save_account");

	}
	else if (type=="open_account_quick")
	{
				
		qmvi_open_from_account();

	}
	else if (type=="open_account")
	{

		if (!qmv.access_type)
			qmvi_user_register();	
		else
			qmv_show_dialog("open_account");
		
	}
	else if (type=="publish_auto")
	{

		
		qmv_show_dialog("publish_auto");
		

	}
	else if (type=="dreamweaver_extension")
	{

		
		var msg = ''

		msg += 'Access your accounts saved menus and automatically publish them directly in Dreamweaver with the QuickMenu extension.';
		msg += '<br><br>';
		msg += '<a style="color:#0033dd" href="http://www.opencube.com/download/quickmenu.mxp">Download QuickMenu Extenstion for Dreamweaver (.mxp)</a>';
		msg += '<br><br>';
		msg += 'After installation, choose \'Insert\' --&gt; \'Visual CSS QuickMenu...\' from Dreamweavers main menu.<br><br><span style="color:#666666;">Note: To install, choose \'Help\' --&gt; \'Manage Extensions...\' in Dreamweaver. You may have to close and re-open Dreamweaver after installing the extension.</span>';

		qmv_show_dialog("alert",null,msg,460);

	}
	else if (type=="quick_publish_inline")
	{

		if (!qmv.access_type)
			qmvi_user_register();	
		else
		{
			qmv_show_dialog("quick_publish_inline");
			qmvi_alert_features_locked();
		}
		

	}
	else if (type=="create_component")
	{
		if (!qmv.access_type)
			qmvi_user_register();	
		else
		{
			qmv_show_dialog("create_component");
			qmvi_alert_features_locked();
		}

	}
	else if (type=="import")
	{


		
		var ir = document.createElement("SPAN");
		ir.style.position = "absolute";
		ir.style.visibility = "hidden";
		document.body.appendChild(ir);
		ir.innerHTML = '<iframe onreadystatechange="qmvi_iframe_loaded(event)" id="qmvi_temp_iframe" src="http://www.opencube.com"></iframe>'
		
	}
	else if (type=="help")
	{
		
		qmv_show_dialog("help-index",null,"help-index.html");

	}
	else if (type.indexOf("iface_switch")+1)
	{
		if (type.indexOf("full")+1 && !qmv.interface_full)
			qmv_set_interface_mode("full");
		else if (type.indexOf("inpage")+1 && qmv.interface_full)
			qmv_set_interface_mode("inpage");
	}
	else if (type=="dev_tplate_css")
	{

		qmv_show_dialog("devpubcss");


	}
	else if (type=="dev_save_src_to_db")
	{

		qmvi_save_source_code();

	}
	else if (type=="save_images")
	{

		qmv_show_dialog("save_images");


	}
	else if (type=="html_page")
	{

		qmv_view_html_page();


	}


	
}

function qmvi_iframe_loaded(e)
{

	e = e || window.event;
	var ifobj = document.getElementById("qmvi_temp_iframe");
	var iwin = null;

	if (ifobj.readyState && ifobj.readyState!="interactive")
		return;

	

}




function qm_kille(e,skip_default)
{

	
	if (!e) e = event;
	e.cancelBubble = true;
	if (e.stopPropagation)
		 e.stopPropagation();

	
	if (!skip_default)
	{
		
		if (e.preventDefault)
			e.preventDefault();

		e.returnValue = false;
	}
}


function qmv_tree_oo(e,o,nt)
{
	

	e = e || window.event;
	if (e.button!=0) return;

	if (!o) o=this;

	qmv_hide_context();

	
	if (window.qmwait) return;
	

	var a = o;
	if (a[qp].isrun) return;
		
		
	var b = o;	
	if (b.cdiv)
	{
	
				
		qm_arc("qmactive",o,true);
		
		qm_vtree_item_click(b.cdiv);
		qmv_ibullets_active(o,false);
		b.cdiv.style.visibility ="inherit";
		

	}
	


	
	qm_kille(e);
	

}

function qmv_tree_uo(a,go)
{
	
	
	if (!go && a.qmtree) return;

	
	qmv_ibullets_active(a,true);

	a.style.visibility = "";
	qm_arc("qmactive",a.idiv);
	

}


function qmv_evt_build_button_click(a,spin)
{

	var fa = a.parentNode;
	while (fa.tagName!="A" && fa.tagName!="TBODY")
		fa = fa.parentNode;


	var inp = fa.getElementsByTagName("INPUT")[0];


	
	if (!spin)
	{
		qmv_show_build_dialog(inp.getAttribute("dtype"),inp);

	}
	else
	{

		inp.prev_value = inp.value;
		inp.value = qmv_spin_value(spin,inp.getAttribute("dtype"),inp.value);
		qmv_evt_update_tree_value(inp,true);

	}

}



//************************** utilites library


function qmv_lib_get_position_relative_to_main_menu_container(obj)
{

	var l = obj.offsetLeft;
	var t = obj.offsetTop;	

	while (!qm_a(obj = obj[qp]))
	{
		var bs = qm_lib_get_computed_style(obj,"border-style","borderStyle");
				
		var bt = 0;
		var bl = 0;
		if (qmad.br_fox || (bs && bs.toLowerCase()!="none"))
		{
			bt = qm_lib_get_computed_style(obj,"border-top-width","borderTopWidth",true);
			bl = qm_lib_get_computed_style(obj,"border-left-width","borderLeftWidth",true);
		}
		
		
		l += obj.offsetLeft+bl;
		t += obj.offsetTop+bt;
		
	}


	return new Array(l,t);

}

function qm_lib_get_computed_style(obj,sname,jname,isint)
{
	var v;
	if (document.defaultView && document.defaultView.getComputedStyle)
		v = document.defaultView.getComputedStyle(obj, null).getPropertyValue(sname);
	else if (obj.currentStyle)
		v = obj.currentStyle[jname];		

	if (isint)
	{
		if (v && !isNaN(v = parseInt(v)))
			return v;
		else
			return 0;
	}

	return v;
}

function qmv_lib_get_units(checkval)
{

	checkval = checkval.toLowerCase();

	if (checkval.indexOf("px")+1)
		return "px";
	else if (checkval.indexOf("em")+1)
		return "em";
	else if (checkval.indexOf("cm")+1)
		return "cm";
	else if (checkval.indexOf("mm")+1)
		return "mm";
	else if (checkval.indexOf("in")+1)
		return "in";
	else if (checkval.indexOf("pt")+1)
		return "pt";
	else if (checkval.indexOf("ex")+1)
		return "ex";
	else if (checkval.indexOf("pc")+1)
		return "pc";
	else if (checkval.indexOf("%")+1)
		return "%";	
	
	return "";

}


function qmv_lib_get_menu_count()
{

	var count = 0;

	for (var i=0;i<10;i++)
	{

		if (document.getElementById("qm"+i))
			count++;
	}
	

	return count;
}

function qmv_lib_get_new_menu_id()
{

	var i = 0;
	while (document.getElementById("qm"+i))
		i++;
	

	return i;
}

function qmv_lib_update_add_rule_styles(style,rules,search,value,append)
{
	
	for (var i=0;i<rules.length;i++)
	{
		
		if (rules[i].selectorText.toLowerCase() == search)
		{
			

			if (append)
			{
				rules[i].style.cssText+=value;
			}
			else
				rules[i].style.cssText = value;

			return;
		}	

	}	
	

	var ss = search.split(",");
	for (var i=0;i<ss.length;i++)
	{


		if (style.addRule)
			style.addRule(ss[i],value);
		else if (style.insertRule)
			style.insertRule(ss[i]+" {"+value+"}",0);

	}
	

	qmv_update_styles_object();

}

function qmv_lib_update_remove_rule(style,rules,search,value)
{

		
	for (var i=0;i<rules.length;i++)
	{

		if (rules[i].selectorText.toLowerCase().split(",")[0] == search)
		{

			if (qmad.br_s3 || qmad.br_chrome || qmad.br_s4)
			{
				rules[i].style.cssText = null;
			}
			else
			{
				
				if (style.removeRule)
					style.removeRule(i);
				else
					style.deleteRule(i);
			}
			
				
			return true;
		}	

	}	

	
	


}



function qmv_lib_parse_value(value,dtype,rfalse,rnull)
{

	var rv;

	if (dtype=="int")
	{
		
		if (value)
		{
			
			rv = parseInt(value);
			if (!isNaN(rv)) return rv;
			
		}
		
		if (rfalse)		
			return false;
		else if (rnull)
			return null;
		else
			return 0

	}
	else if (dtype=="float")
	{

		if (value)
		{
			
			rv = parseFloat(value);
			if (!isNaN(rv)) return rv;

		}
				
		if (rfalse)		
			return false;
		else if (rnull)
			return null;
		else
			return 0


	}
	else if (dtype=="bool")
	{

		if (value+"".toLowerCase()=="false")
			return false;
		else if (value+"".toLowerCase()=="true")
			return true;
		else if (value)
			return true;

		if (rnull)
			return null;
		else
			return false;

	}
	else if (dtype=="corners-bool-array")
	{
		if (value)
			return eval("new Array("+value+")");
		else if (rnull)
			return null;
		else if (rfalse)
			return false;
		else
			return "";	

	}

	return value;


}



function qm_get_level(a)
{

	lev = 0;
	while (!qm_a(a) && (a=a[qp]))
		lev++;


	return lev;

}

function qm_index(a)
{
		
	return qm_get_menu(a).id.substring(2);


}

function qm_get_menu(a)
{

	while (!qm_a(a) && (a=a[qp]))
		continue;


	return a;

}


function qmv_lib_get_qm_stylesheet(searchfor,first_only)
{

	
	if (!searchfor)
		searchfor = ".qmclear";


	var ss = document.styleSheets;
	var robj = new Object();

	for (var i=0;i<ss.length;i++)
	{
		if (qmad.br_ie)
		{
			
			if (ss[i].cssText && ss[i].cssText.toLowerCase().indexOf(searchfor)+1)
				robj["ss"+i] = ss[i];
							
			
		}
		else
		{
			var rules = ss[i].cssRules;
			if (rules)
			{
				for (var j=0;j<rules.length;j++)
				{
					if (rules[j].selectorText.toLowerCase().indexOf(searchfor)+1)
					{
						robj["ss"+i] = ss[i];
						break;
					}

				}
			}

		}


	}


	if (!first_only)
	{
		var i;
		var c = 0;
		for (i in robj)
			c++;
	

		if (c>0)
			return robj;
	}
	else
	{

		var i;
		for (i in robj)
			return robj[i];

	}
	

}




function qmv_lib_is_menu_vertical(id)
{
	
	var fa = document.getElementById("qm"+id).getElementsByTagName("A");

	if (fa.length>0)
	{
		var isv = fa[0].style.styleFloat || fa[0].style.cssFloat;
		return isv;
	}
	else
		return true;
	

}


function qmv_lib_get_window_dimensions()
{

	var dh = 0;
	var dw = 0;
	if (window.innerHeight)
	{
		dh = window.innerHeight;
		dw = window.innerWidth;

	}
	else
	{
		dh = document.documentElement.clientHeight;
		dw = document.documentElement.clientWidth;
	}
		
	return new Array(dw,dh);

}

function qmv_lib_center_element_in_window(a)
{
	
	var wd = qmv_lib_get_window_dimensions();
	var dw = wd[0];
	var dh = wd[1];


	var qw = a.offsetWidth;
	var qh = a.offsetHeight;

	var d;
	var st = 0;
	var sl = 0;
	if (d = document.documentElement)
	{
		st = d.scrollTop;
		sl = d.scrollLeft;
	}


	if (qmad.br_ie && !qmad.br_strict)
	{
		a.style.top = 50+"px";
		a.style.left = 50+"px";

	}
	else
	{
		a.style.top = (parseInt((dh-qh)/2)+st)+"px";
		a.style.left = (parseInt((dw-qw)/2)+sl)+"px";
	}

}


function qmv_lib_insert_after(ins,obj)
{

	
	/*
	var a;
	if (a = qmv_lib_get_nextsibling_atag_or_span(obj))
		return obj.parentNode.insertBefore(ins,a);
	else
		return obj.parentNode.appendChild(ins);
	
	*/

	var a;
	if (a = obj.nextSibling)
	{
		if (obj.nextSibling.idiv)
		{
			if (a.nextSibling)
				return obj.parentNode.insertBefore(ins,a.nextSibling);
			else
				return obj.parentNode.appendChild(ins);

		}
		else
			return obj.parentNode.insertBefore(ins,a);

	}
	else
		return obj.parentNode.appendChild(ins);

	

}

function qmv_lib_get_nextsibling_atag(a)
{

	ps = a.nextSibling;
	while (ps && ps.tagName!="A")
		ps = ps.nextSibling;


	return ps;
}

function qmv_lib_get_previoussibling_atag(a)
{

	ps = a.previousSibling;
	while (ps && ps.tagName!="A")
		ps = ps.previousSibling;


	return ps;
}


function qmv_lib_get_nextsibling_atag_or_span(a)
{
	
	
	ps = a.nextSibling;
	while (ps)
	{
		
		if (ps.tagName=="SPAN")
		{
			
			
			
			if (ps.className.indexOf("qmtitle")+1)
				break;	
			
			if (ps.className.indexOf("qmdivider")+1)
				break;	
			
			if (ps.className.indexOf("qmcbox")+1)
				break;	
				
		}

		if (ps.tagName=="A")
			break;

		ps = ps.nextSibling;

	}


	


	if (!ps || (ps.tagName!="SPAN" && ps.tagName!="A")) ps = null;

	return ps;
}

function qmv_lib_get_previoussibling_atag_or_span(a)
{

	ps = a.previousSibling;
	while (ps)
	{
		
		if (ps.tagName=="SPAN")
		{
			
			if (ps.className.indexOf("qmtitle")+1)
				break;	

			if (ps.className.indexOf("qmdivider")+1)
				break;

			if (ps.className.indexOf("qmcbox")+1)
				break;		
				
		}

		if (ps.tagName=="A")
			break;

		ps = ps.previousSibling;

	}

	
	if (!ps || (ps.tagName!="SPAN" && ps.tagName!="A")) ps = null;
	

	return ps;

}


function qmv_lib_get_nextsibling_span(a,classname)
{

	ps = a.nextSibling;
	while (ps && ps.tagName!="A")
	{
		
		if (ps.tagName=="SPAN")
		{
			
			if (classname && ps.className.indexOf(classname)+1)
				break;	

			if (!classname)
				break;
		
		}

		ps = ps.nextSibling;

	}

	if (!ps || ps.tagName!="SPAN") ps = null;

	return ps;
}

function qmv_lib_get_previoussibling_span(a,classname)
{

	ps = a.previousSibling;
	while (ps && ps.tagName!="A")
	{
		
		if (ps.tagName=="SPAN")
		{
			
			if (classname && ps.className.indexOf(classname)+1)
				break;	

			if (!classname)
				break;
		
		}

		ps = ps.previousSibling;

	}

	if (!ps || ps.tagName!="SPAN") ps = null;

	return ps;
}




//dialog functions


function qmv_show_build_dialog(dtype,owner)
{

	var type = "zoom";

	
	if (dtype=="color")
		type = "color";
	else if (dtype=="texturl")
	{
		if (qmv.texturl_state=="url")	
			type = "url";
	}
	else if (dtype.indexOf("edge")+1)
	{


		type = "edge";
		qmv.edge = new Object();
		qmv.edge.title = "Edge Properties";
		qmv.edge.width = 280;
		qmv.edge.dtype = "unit";


		if (dtype.indexOf("borderwidth")+1)
		{
			qmv.edge.title = "Border Width"
	
		}
		else if (dtype.indexOf("padding")+1)
		{
			qmv.edge.title = "Padding"


		}
		else if (dtype.indexOf("margin")+1)
		{
			qmv.edge.title = "Margin"

		}
		
		
	}
	else if (dtype=="bool")
	{
		type="multi";
		qmv.multi = new Object();
		qmv.multi.show = new Array("true","false");
		qmv.multi.vals = new Array("true","false");
		qmv.multi.title = "True / False";
		qmv.multi.desc = "True / False"

	}	
	else if (dtype=="styleimagerepeat")
	{

		type="multi";
		qmv.multi = new Object();
		qmv.multi.show = new Array("repeat","no-repeat");
		qmv.multi.vals = new Array("repeat","no-repeat");
		qmv.multi.title = "Background Repeat";
		qmv.multi.desc = "Repeat"



	}
	else if (dtype=="visibility")
	{

		type="multi";
		qmv.multi = new Object();
		qmv.multi.show = new Array("visible","inherit","hidden");
		qmv.multi.vals = new Array("visible","inherit","hidden");
		qmv.multi.title = "Set Visibility";
		qmv.multi.desc = "Visibility"



	}
	else if (dtype=="styleimageposition")
	{
		type="multi";
		qmv.multi = new Object();
		qmv.multi.show = new Array("top left","top center", "top right", "center left", "center center", "center right", "bottom left", "bottom center", "bottom right");
		qmv.multi.vals  = new Array("top left","top center", "top right", "center left", "center center", "center right", "bottom left", "bottom center", "bottom right");
		qmv.multi.title = "Background Position";
		qmv.multi.desc = "Background"


	}
	else if (dtype=="fontfamily")
	{
		type="multi";
		qmv.multi = new Object();
		qmv.multi.show = new Array("Arial","Times New Roman", "Verdana", "Georgia", "Comic Sans MS", "Courier New");
		qmv.multi.vals  = new Array("Arial","Times New Roman", "Verdana", "Georgia", "Comic Sans MS", "Courier New");
		qmv.multi.title = "Font Family";
		qmv.multi.desc = "Font"
	}				
	else if (dtype=="textdecoration")
	{
		type="multi";
		qmv.multi = new Object();
		qmv.multi.show = new Array("none","underline","overline","line-through" ,"blink");
		qmv.multi.vals  = new Array("none","underline","overline","line-through" ,"blink");
		qmv.multi.title = "Text Decoration";
		qmv.multi.desc = "decoration"
	}
	else if (dtype=="onclick")
	{
		type="multi";
		qmv.multi = new Object();
		qmv.multi.show = new Array("false","all","all-always-open","lev2","main");
		qmv.multi.vals  = new Array("false","all","all-always-open","lev2","main");
		qmv.multi.title = "onClick";
		qmv.multi.desc = "onClick Options"
	}
	else if (dtype=="fontweight")
	{
		type="multi";
		qmv.multi = new Object();
		qmv.multi.show = new Array("normal","bold","bolder","lighter");
		qmv.multi.vals  = new Array("normal","bold","bolder","lighter");
		qmv.multi.title = "Font Weight";
		qmv.multi.desc = "Weight"

	}
	else if (dtype=="fontstyle")
	{
		type="multi";
		qmv.multi = new Object();
		qmv.multi.show = new Array("normal","italic","oblique");
		qmv.multi.vals  = new Array("normal","italic","oblique");
		qmv.multi.title = "Font Style";
		qmv.multi.desc = "Style"

	}
	else if (dtype=="borderstyle")
	{
		type="multi";
		qmv.multi = new Object();
		qmv.multi.show = new Array("none","dotted","dashed","solid","double","groove","ridge","inset","outset");
		qmv.multi.vals  = new Array("none","dotted","dashed","solid","double","groove","ridge","inset","outset");
		qmv.multi.title = "Border Style";
		qmv.multi.desc = "Style"

	}
	else if (dtype=="ibullets-apply")
	{
		type="multi";
		qmv.multi = new Object();
		qmv.multi.show = new Array("parents","non-parent","all");
		qmv.multi.vals  = new Array("parent","non-parent","all");
		qmv.multi.title = "Apply Bullets To These Items";
		qmv.multi.desc = "Apply"

	}
	else if (dtype=="hoverfill-apply")
	{
		type="multi";
		qmv.multi = new Object();
		qmv.multi.show = new Array("parents","non-parent","all");
		qmv.multi.vals  = new Array("parent","non-parent","all");
		qmv.multi.title = "Apply hover fill effect To These Items";
		qmv.multi.desc = "Apply"

	}
	else if (dtype=="hoverfill-direction")
	{
		type="multi";
		qmv.multi = new Object();
		qmv.multi.show = new Array("center","up","down","right","left");
		qmv.multi.vals  = new Array("center","up","down","right","left");
		qmv.multi.title = "Hover Fill Direction";
		qmv.multi.desc = "Direction"

	}
	else if (dtype=="hoverfill-type")
	{
		type="multi";
		qmv.multi = new Object();
		qmv.multi.show = new Array("none","grow","fade");
		qmv.multi.vals  = new Array("none","grow","fade");
		qmv.multi.title = "Hover Fill Animation Type";
		qmv.multi.desc = "Animation Type"

	}
	else if (dtype=="tabscss-type")
	{
		type="multi";
		qmv.multi = new Object();
		qmv.multi.show = new Array("angled","rounded");
		qmv.multi.vals  = new Array("angled","rounded");
		qmv.multi.title = "Tab Style Type";
		qmv.multi.desc = "Type"

	}
	else if (dtype=="corners-bool-array")
	{

		type = "edge";
		qmv.edge = new Object();
		qmv.edge.title = "Apply to Corners";
		qmv.edge.width = 330;
		qmv.edge.dtype = "bool";
		qmv.edge.corners = true;
		qmv.edge.array = true;
	}
	else if (dtype=="treeanimationtype")
	{

		type="multi";
		qmv.multi = new Object();
		qmv.multi.show = new Array("none", "acceleration", "deceleration", "normal");
		qmv.multi.vals  = new Array(0,1,2,3);
		qmv.multi.title = "Tree Animation Styles";
		qmv.multi.desc = "Animation"

	}
	else if (dtype=="textalign")
	{

		type="multi";
		qmv.multi = new Object();
		qmv.multi.show = new Array("left", "center", "right");
		qmv.multi.vals  = new Array("left", "center", "right");
		qmv.multi.title = "Text Alignment";
		qmv.multi.desc = "Alignment"

	}
	else if (dtype=="verticalalign")
	{

		type="multi";
		qmv.multi = new Object();
		qmv.multi.show = new Array("top", "middle", "bottom");
		qmv.multi.vals  = new Array("top", "middle", "bottom");
		qmv.multi.title = "Vertical Alignment";
		qmv.multi.desc = "Alignment"

	}
	else if (dtype=="ibcss-type")
	{

		type="multi";
		qmv.multi = new Object();
		qmv.multi.show = new Array("none","arrow", "arrow head", "arrow head (separated)","open v arrow","open v arrow head","opan v arrow head (separated)","square","square w/ inner","raised square");
		qmv.multi.vals  = new Array("none","arrow","arrow-head","arrow-gap","arrow-v","arrow-head-v","arrow-gap-v","square","square-inner","square-raised");
		qmv.multi.title = "Bullet Shapes";
		qmv.multi.desc = "Shape"

	}
	else if (dtype=="ibcss-direction")
	{

		type="multi";
		qmv.multi = new Object();
		qmv.multi.show = new Array("up","down","right","left");
		qmv.multi.vals  = new Array("up","down","right","left");
		qmv.multi.title = "Bullet Direction";
		qmv.multi.desc = "Direction"

	}
	else if (dtype=="bump-direction")
	{

		type="multi";
		qmv.multi = new Object();
		qmv.multi.show = new Array("none","up","down","right","left");
		qmv.multi.vals  = new Array("none","up","down","right","left");
		qmv.multi.title = "Bump Direction";
		qmv.multi.desc = "Direction"

	}
	else if (dtype=="palign")
	{

		type="multi";
		qmv.multi = new Object();
		qmv.multi.show = new Array("top or left","bottom or right");
		qmv.multi.vals  = new Array("top-or-left","bottom-or-right");
		qmv.multi.title = "Pointer Location";
		qmv.multi.desc = "Location"

	}
	else if (dtype=="box-position")
	{

		type="multi";
		qmv.multi = new Object();
		qmv.multi.show = new Array("center","top","left","top-left");
		qmv.multi.vals  = new Array("center","top","left","top-left");
		qmv.multi.title = "Pointer Location";
		qmv.multi.desc = "Location"

	}
	else if (dtype=="ritem-apply")
	{

		type="multi";
		qmv.multi = new Object();
		qmv.multi.show = new Array("main","sub","main-sub","parents","titles","dividers");
		qmv.multi.vals  = new Array("main","sub","main-sub","parents","titles","dividers");
		qmv.multi.title = "Apply Rounding";
		qmv.multi.desc = "Apply Rounded Items"

	}
	else if (dtype=="font-variant")
	{

		type="multi";
		qmv.multi = new Object();
		qmv.multi.show = new Array("normal","small-caps");
		qmv.multi.vals  = new Array("normal","small-caps");
		qmv.multi.title = "Font Variant";
		qmv.multi.desc = "Font Variant"

	}
	else if (dtype=="display")
	{

		type="multi";
		qmv.multi = new Object();
		qmv.multi.show = new Array("block","inline","none");
		qmv.multi.vals  = new Array("block","inline","none");
		qmv.multi.title = "Display";
		qmv.multi.desc = "Display"

	}
	else if (dtype=="treecollapse")
	{

		type="multi";
		qmv.multi = new Object();
		qmv.multi.show = new Array("false","sync","chain","fixed-height");
		qmv.multi.vals  = new Array("false","sync","chain","fixed-height");
		qmv.multi.title = "Auto Close";
		qmv.multi.desc = "Auto Close Style";

	}		
	else if (dtype.indexOf("image")+1)
	{

		type="image";
		

	}


	


	qmv_show_dialog(type,owner);

}

function qmv_set_publish_menus_object()
{
	
	if (!qmv.publish)
	{
		qmv.publish = new Object();
		
		
		qmv.publish.css_type = "inpage";
		qmv.publish.code_type = "inpage";
		qmv.publish.structure_type = "inpage";
		
	}

	qmv.publish.smenus = new Array();
	qmv.publish.smenus_pos=0;

	for (var i=0;i<10;i++)
	{

		if (document.getElementById("qm"+i))
			qmv.publish.smenus.push(i);
			
	}


}


function qmv_show_dialog(type,owner,message,w,code,code1,defbutton,defval,from_event_log,ftop)
{

	
	var ih = "";
	var title = "Visual QuickMenu";
	var width = w;
	if (!width) width = 300;

	
	var mg = "";
	if (message) mg = "msg_";
	if (ftop) mg = "ftop_"
	if (message && message.indexOf("help-")+1) mg = "help_";

	
	if (defval==null || defval==undefined) defval = "";

	var buttons = "ok|cancel|apply";


	if (type=="color")
	{
		buttons = "OK|Cancel|Apply";
		title = "Color Picker";
		width = 420;
	
		
			ih += '<div style="padding:5px;">';
			ih += '<table cellpadding=0 cellspacing=0 border=0 width=100%><tr>';

				ih += '<td style="text-align:left;vertical-align:top;padding-right:15px;">';

					ih += '<table cellpadding=0 cellspacing=0 border=0><tr>';
					
						//hue saturation rainbow

						ih += '<td style="padding-right:15px;">';
						ih += '<div style="position:relative;">'
						ih += '<img id="qmvi_color_hs_down" width=8 height=6 src="'+qmv.base+'images/color_arrow_down.gif" style="position:absolute;display:block;margin-top:-8px;margin-left:-3px">';
						ih += '<img id="qmvi_color_hs_right" width=6 height=8 src="'+qmv.base+'images/color_arrow_right.gif" style="position:absolute;display:block;margin-top:-3px;margin-left:-8px">';
						ih += '<div class="qmvi-colordialog-border" style="position:relative;">';

						ih += '<div id="qmvi_color_hs_div" onselectstart="qm_kille(event)" onmouseup="qmv_color_huesaturation_mouseup(event,this)" onmousedown="qmv_color_huesaturation_mousedown(event,this)" onmousemove="qmv_color_huesaturation_mousemove(event,this)" style="position:relative;display:block;background-image:url('+qmv.base+'images/rgb.jpg);width:175px;height:187px;position:relative;overflow:hidden;">';	
						ih += '<div id="qmvi_color_hs_crosshair" style="width:19px;height:19px;background-image:url('+qmv.base+'images/color_crosshair.gif);position:absolute;display:block;margin-top:-10px;margin-left:-10px"></div>';
						ih += '</div>';

						ih += '</div>'
	
						ih += '</div>';
						ih += '</div>';
						ih += '</td>';


						//brightness rainbow

						ih += '<td style="">';
						ih += '<div class="qmvi-colordialog-border" style="position:relative;">';	
						ih += '<img id="qmvi_color_bright_right" width=6 height=8 src="'+qmv.base+'images/color_arrow_right.gif" style="position:absolute;margin-top:-3px;margin-left:-8px">';	
						ih += '<div onselectstart="qm_kille(event)" id="qmvi_color_bright_bar" onmouseup="qmv_color_brightness_mouseup(event,this)" onmousedown="qmv_color_brightness_mousedown(event,this)" onmousemove="qmv_color_brightness_mousemove(event,this)" style="position:relative;width:10px;height:187px;">';

							for (k=0;k<17;k++)
								ih += '<div class="qmvi-colordialog-brightbar-parts">&nbsp;</div>';

						ih += '</div>';
						ih += '</div>';
						ih += '</td>';

					ih += '</tr></table>';
					

				ih += '</td>';	



				ih += '<td style="vertical-align:top;width:100%;">';

					//color indicator
					ih += '<div onclick="qmvi_color_open_recent(this)" id="qmvi_color_indicator" class="qmvi-colordialog-border" style="text-align:right;height:25px;background-color:#000000;">';

					if (qmv.color_recent && qmv.color_recent.length)
						ih += '<img style="margin-top:3px;margin-right:3px;" src="'+qmv.base+'images/color_plus.gif" width=11 height=11>';

					ih += '</div>';

					ih += '<div id="qmvi_color_recent" class="qmvi-colordialog-border" style="border-top-width:0px;visibility:hidden;position:absolute;background-color:#888888;">';
					ih += '</div>';
				

					ih += '<div style="font-size:1px;height:20px;"></div>';


					//value display
					ih += '<div>';
						ih += '<table cellpadding=0 cellspacing=0 border=0 width="100%" style=""><tr>';



							//rgb values
							
							ih += '<td style="">';

								
								ih += '<form id="qmvi_color_switches" style="display:block;margin:0px;padding:0px;">';
								ih += '<table cellpadding=0 cellspacing=0 border=0>';

									ih += '<tr>';
									ih += '<td id="qmvi_cdialog_rtext" class="qmvi-common qmvi-colordialog-titles" style="width:45px;padding-right:10px;text-align:right;">Red:</td>';
									ih += '<td style="width:35px;"><input onkeypress="qmv_color_field_onchange_enter(event,this)" onfocus="this.pvalue = this.value" onchange="qmv_color_field_onchange(event,this)" class="qmvi-common qmvi-colordialog-inputs" id="qmv_cdialog_r" type="text" style="width:30px;"></td>'
									ih += '<td style="width:15px">&nbsp;</td>';
									ih += '<td style="padding-right:2px;"><input onfocus="if (!qmad.br_ie)blur()" tabindex=-1 onclick="qmv_color_set_fields()" name="qmvi_color_switch" type="radio" checked value="RGB"></td>'
									ih += '<td style="width:20px;" class="qmvi-common qmvi-colordialog-titles" style="text-align:left;">RGB</td>';
									ih += '</tr>';
									
									ih += '<tr><td style="font-size:1px;height:2px;">&nbsp;</td></tr>';

									ih += '<tr>';
									ih += '<td id="qmvi_cdialog_gtext" class="qmvi-common qmvi-colordialog-titles" style="padding-right:10px;text-align:right;">Green:</td>';
									ih += '<td><input onkeypress="qmv_color_field_onchange_enter(event,this)" onfocus="this.pvalue = this.value" onchange="qmv_color_field_onchange(event,this)" class="qmvi-common qmvi-colordialog-inputs" id="qmv_cdialog_g" type="text" style="width:30px;"></td>'
									ih += '<td style="width:15px">&nbsp;</td>';
									ih += '<td style="padding-right:2px;"><input onfocus="if (!qmad.br_ie)blur()" tabindex=-1 onclick="qmv_color_set_fields()" name="qmvi_color_switch" type="radio" value="HEX"></td>'
									ih += '<td class="qmvi-common qmvi-colordialog-titles" style="text-align:left;">HEX</td>';
									ih += '</tr>';
									
									ih += '<tr><td style="font-size:1px;height:2px;">&nbsp;</td></tr>';

									ih += '<tr>';
									ih += '<td id="qmvi_cdialog_btext" class="qmvi-common qmvi-colordialog-titles" style="padding-right:10px;text-align:right;" >Blue:</td>';
									ih += '<td><input onkeypress="qmv_color_field_onchange_enter(event,this)" onfocus="this.pvalue = this.value" onchange="qmv_color_field_onchange(event,this)" class="qmvi-common qmvi-colordialog-inputs" id="qmv_cdialog_b" type="text" style="width:30px;"></td>'
									ih += '<td style="width:15px">&nbsp;</td>';
									ih += '<td style="padding-right:2px;"><input onfocus="if (!qmad.br_ie)blur()" tabindex="-1" onclick="qmv_color_set_fields()" name="qmvi_color_switch" type="radio" value="HSB"></td>'
									ih += '<td class="qmvi-common qmvi-colordialog-titles" style="text-align:left;">HSB</td>';
									ih += '</tr>';
																	
								
								ih += '</table>';
								ih += '</form>';
									
							ih += '</td>';
							
						ih += '</tr></table>';

					ih += '</div>';


					
					if (qmad.br_ie)
						ih += '<div style="font-size:1px;height:5px;"></div>';	
					else
						ih += '<div style="font-size:1px;height:15px;"></div>';	
					

					ih += '<div>';

						ih += '<fieldset class="qmvi-colordialog-border qmvi-colordialog-titles" style="margin:0px;padding:10px;text-align:center;"><legend class="qmvi-common" style="color:#0033dd;margin:0px;">Apply Value As</legend>';

						if (qmad.br_ie)
							ih += '<div style="font-size:1px;height:5px;"></div>';	

						ih += 'HEX:&nbsp;<input onfocus="if (!qmad.br_ie)blur()" tabindex="-1" id="qmvi_color_apply_type_hex" name="qmvi_color_apply_type" value="HEX" checked type="radio" style="margin-bottom:-1px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;RGB:&nbsp;<input onfocus="if (!qmad.br_ie)blur()" tabindex="-1" id="qmvi_color_apply_type_rgb" name="qmvi_color_apply_type" value="RGB" type="radio" style="margin-bottom:-1px;">';

						ih += '</fieldset>';

					ih += '</div>'


				ih += '</td>';	

			

			ih += '</tr></table>';
			ih += '</div>';


			
		

	}
	else if (type=="save")
	{

		if (!qmv.access_type)
		{
			qmvi_user_register();	
			return;
		}
		

		
		buttons = "Done";
		title = "Save Menu";
		width = 600;

		

		ih += '<div style="padding:5px;">';

			ih += '<div class="qmvi-publish-title" style="margin-bottom:20px;">Copy QuickMenu Contents to a New HTML Document</div>';

			

			ih += '<div class="qmvi-common qmvi-dialog-input-title" style="padding-bottom:4px;color:#333333;">Paste the contents below to a blank document with a .html extension (use NotePad, FrontPage, Dreamweaver, or similar).  Open in a browser to test and visually edit the saved menu.</div>';



			ih += '<table celpadding=0 cellspacing=0><tr><td><div class="qmvi-common qmvi-dialog-input-title" onclick="qmv_publish_focus_input(event,document.getElementById(\'qmvi_publish_save_content\'))" style="color:#0033dd;margin:10px 6px 4px 0px;cursor:default;"><img src="'+qmv.base+'images/color_arrow_right.gif" width=6 height=8 style="margin-right:4px;">Select Contents</div></td></tr></table>';

			ih += '<div class="qmvtree-input-container-dialog" style="height:200px;">';
			ih += '<textarea wrap="off" onkeypress="qm_kille(event,true)" id="qmvi_publish_save_content" class="qmvtree-input qmvtree-input-dialog" style="height:200px;"></textarea>';
			ih += '</div>';

			

		ih += '</div>';


		


	}
	else if (type=="puboptions")
	{

		buttons = "OK|Apply|Cancel";
		title = "Edit Options";
		width = 460;

		
		ih += '<div style="padding:5px;">';

			ih += '<div id="qmvap_edit_title" defval="'+defval+'" class="qmvi-publish-title" style="margin-bottom:20px;">Edit Folder / File Options</div>';
			
			ih += '<table celpadding=0 cellspacing=0><tr>';
	
				ih += '<td><div class="qmvi-common qmvi-dialog-input-title" onclick="" style="margin:0px 0px 2px 0px;cursor:pointer;">Folder:</div></td>';
				ih += '<td style="width:5px;"></td>';
				ih += '<td><div class="qmvi-common qmvi-dialog-input-title" onclick="" style="margin:0px 0px 2px 0px;cursor:pointer;">(</div></td>';
				ih += '<td style="-moz-user-select:none;"><div class="qmvi-common qmvi-dialog-input-title" onclick="qmv_apub_edit_set_document_root()" style="color:#0033dd;margin:0px 0px 2px 0px;cursor:pointer;"><img src="'+qmv.base+'images/color_arrow_right.gif" width=6 height=8 style="margin-right:4px;">Set As Document Root</div></td>';
				ih += '<td style="width:5px;"></td>';
				ih += '<td style="-moz-user-select:none;"><div class="qmvi-common qmvi-dialog-input-title" onclick="qmv_apub_edit_custom_folder()" style="color:#0033dd;margin:0px 0px 2px 0px;cursor:pointer;"><img src="'+qmv.base+'images/color_arrow_right.gif" width=6 height=8 style="margin-right:4px;">Specify Custom Folder</div></td>';
				ih += '<td><div class="qmvi-common qmvi-dialog-input-title" onclick="" style="margin:0px 0px 2px 0px;cursor:pointer;">)</div></td>';

			ih += '</tr></table>';

			ih += '<div class="qmvtree-input-container-dialog">';
			ih += '<input id="qmvap_edit_folder" class="qmvtree-input qmvtree-input-dialog" value=""></input>';
			ih += '</div>';


			if (defval.indexOf("img")+1)
				ih += '<div style="display:none;">';

				ih += '<div class="qmvi-common qmvi-dialog-input-title" onclick="" style="margin:15px 0px 2px 0px;cursor:pointer;">File Name:</div>'
				ih += '<div class="qmvtree-input-container-dialog">';
				ih += '<input id="qmvap_edit_filename" class="qmvtree-input qmvtree-input-dialog" value=""></input>';
				ih += '</div>';

			if (defval.indexOf("img")+1)
				ih += '</div>';

			

		ih += '</div>';

	}
	else if (type=="publish_auto")
	{



		buttons = "Save|Close";
		title = "Auto Publish";
		width = 700;

		

		ih += '<div style="padding:5px;">';

			//ih += '<div class="qmvi-publish-title" style="margin-bottom:20px;">Publish QuickMenu Contents To Your Document(s)</div>';

			

			//ih += '<div class="qmvi-common qmvi-dialog-input-title" style="padding-bottom:4px;color:#333333;">Paste the contents below to a blank document with a .html extension (use NotePad, FrontPage, Dreamweaver, or similar).  Open in a browser to test and visually edit the saved menu.</div>';



			ih += '<div style="padding:10px 4px 15px 4px;">';
			ih += '<table cellpadding=0 cellspacing=0 border=0 style="width:100%;">';
			ih += '<tr>';

				ih += '<td style="vertical-align:top;width:30%;">';

					ih += '<div class="qmvi-publish-title" style="font-weight:bold;color:#444444;">Publish All Sections To...</div>';
					ih += '<div style="margin-top:10px;">';
					ih += '<table cellpadding=0 cellspacing=0 border=0>';


						ih += '<tr>';
						ih += '<td style="vertical-align:top;"><input onclick="qmv_apub_check(this,\'pall1\')" id="qmvap_pall1" type="checkbox"></td>';
						ih += '<td><div style="width:6px;">&nbsp;</div></td>';
						ih += '<td class="qmvi-common qmvi-dialog-input-title" style="color:#222222;text-align:left;">My Document';
							ih += '<br><span id="qmvap_pall1_desc" style="color:#666666;">(publish all inline)</span>';
							ih += '</td>';
						ih += '</tr>';


						ih += '<tr><td style="height:10px;font-size:1px;"></td></tr>';	


						ih += '<tr>';
						ih += '<td style="vertical-align:top;"><input onclick="qmv_apub_check(this,\'pall2\')" id="qmvap_pall2" type="checkbox"></td>';
						ih += '<td><div style="width:6px;">&nbsp;</div></td>';
						ih += '<td class="qmvi-common qmvi-dialog-input-title" style="color:#222222;text-align:left;">One External File <span onclick="qmv_pub_show_warning_validation_dialog()" style="color:#666666;cursor:pointer;">(<img src="'+qmv.base+'images/qmv_r_icon_warnings.gif" width=9 height=9>)</span>';
							ih += '<br><span onclick="qmv_apub_edit(\'pall2\')" style="color:#666666;font-weight:bold;cursor:pointer;">[Edit]</span>&nbsp;-&nbsp;<span id="qmvap_pall2_desc" style="color:#666666;">(document root)</span>';
							ih += '</td>';
						ih += '</tr>';

						
						

					ih += '</table>';
					ih += '</div>';

				ih += '</td>';


				ih += '<td><div style="width:5%;">&nbsp;</div></td>';

				ih += '<td style="vertical-align:top;width:32%;">';

					ih += '<div class="qmvi-publish-title" style="font-weight:bold;color:#444444;">Custom Publish Externally...</div>';
					ih += '<div style="margin-top:10px;">';
					ih += '<table cellpadding=0 cellspacing=0 border=0>';

						ih += '<tr>';
						ih += '<td style="vertical-align:top;"><input onclick="qmv_apub_check(this,\'cpub1\')" id="qmvap_cpub1" type="checkbox"></td>';
						ih += '<td><div style="width:6px;">&nbsp;</div></td>';
						ih += '<td class="qmvi-common qmvi-dialog-input-title" style="color:#222222;text-align:left;">CSS Style Sheet';
							ih += '<br><span onclick="qmv_apub_edit(\'cpub1\')" style="color:#666666;font-weight:bold;cursor:pointer;">[Edit]</span>&nbsp;-&nbsp;<span id="qmvap_cpub1_desc" style="color:#666666;">(publish inline)</span>';
							ih += '</td>';
						ih += '</tr>';

						
						ih += '<tr><td style="height:10px;font-size:1px;"></td></tr>';	


						ih += '<tr>';
						ih += '<td style="vertical-align:top;"><input onclick="qmv_apub_check(this,\'cpub2\')" id="qmvap_cpub2" type="checkbox"></td>';
						ih += '<td><div style="width:6px;">&nbsp;</div></td>';
						ih += '<td class="qmvi-common qmvi-dialog-input-title" style="color:#222222;text-align:left;">Code / Script';
							ih += '<br><span onclick="qmv_apub_edit(\'cpub2\')" style="color:#666666;font-weight:bold;cursor:pointer;">[Edit]</span>&nbsp;-&nbsp;<span id="qmvap_cpub2_desc" style="color:#666666;">(publish inline)</span>';
							ih += '</td>';
						ih += '</tr>';


						ih += '<tr><td style="height:10px;font-size:1px;"></td></tr>';	


						ih += '<tr>';
						ih += '<td style="vertical-align:top;"><input onclick="qmv_apub_check(this,\'cpub3\')" id="qmvap_cpub3" type="checkbox"></td>';
						ih += '<td><div style="width:6px;">&nbsp;</div></td>';
						ih += '<td class="qmvi-common qmvi-dialog-input-title" style="color:#222222;text-align:left;">Menu Structure <span onclick="qmv_pub_show_warning_validation_dialog()" style="color:#666666;cursor:pointer;">(<img src="'+qmv.base+'images/qmv_r_icon_warnings.gif" width=9 height=9>)</span>';
							ih += '<br><span onclick="qmv_apub_edit(\'cpub3\')" style="color:#666666;font-weight:bold;cursor:pointer;">[Edit]</span>&nbsp;-&nbsp;<span id="qmvap_cpub3_desc" style="color:#666666;">(publish inline)</span>';
							ih += '</td>';
						ih += '</tr>';

						
						


					ih += '</table>';
					ih += '</div>';

				ih += '</td>';;


				ih += '<td><div style="width:5%;">&nbsp;</div></td>';

				ih += '<td style="vertical-align:top;width:30%;">';

					ih += '<div class="qmvi-publish-title" style="font-weight:bold;color:#444444;">Move Image Files...</div>';
					ih += '<div style="margin-top:10px;">';
					ih += '<table cellpadding=0 cellspacing=0 border=0>';

						ih += '<tr>';
						ih += '<td style="vertical-align:top;"><input onclick="qmv_apub_check(this,\'img1\')" id="qmvap_img1" type="checkbox"></td>';
						ih += '<td><div style="width:6px;">&nbsp;</div></td>';
						ih += '<td class="qmvi-common qmvi-dialog-input-title" style="color:#222222;text-align:left;">Template Images';
							ih += '<br><span onclick="qmv_apub_edit(\'img1\')" style="color:#666666;font-weight:bold;cursor:pointer;">[Edit]</span>&nbsp;-&nbsp;<span id="qmvap_img1_desc" style="color:#666666;">(document root)</span>';
							ih += '</td>';
						ih += '</tr>';


						ih += '<tr><td style="height:10px;font-size:1px;"></td></tr>';	


						ih += '<tr>';
						ih += '<td style="vertical-align:top;"><input onclick="qmv_apub_check(this,\'img2\')" id="qmvap_img2" type="checkbox"></td>';
						ih += '<td><div style="width:6px;">&nbsp;</div></td>';
						ih += '<td class="qmvi-common qmvi-dialog-input-title" style="color:#222222;text-align:left;">My Images';
							ih += '<br><span onclick="qmv_apub_edit(\'img2\')" style="color:#666666;font-weight:bold;cursor:pointer;">[Edit]</span>&nbsp;-&nbsp;<span id="qmvap_img2_desc" style="color:#666666;">(do not move)</span>';
							ih += '</td>';
						ih += '</tr>';

					


					ih += '</table>';
					ih += '</div>';

				ih += '</td>';;



			ih += '</tr>';
			ih += '</table>';
			ih += '</div>';


			//ih += '<div style="height:15px;font-size:1px;"></div>'



			ih += '<table celpadding=0 cellspacing=0><tr>';
	
				ih += '<td style="-moz-user-select:none;"><div class="qmvi-common qmvi-dialog-input-title" onclick="qmv_apub_open_document()" style="color:#0033dd;margin:10px 6px 4px 0px;cursor:pointer;"><img src="'+qmv.base+'images/color_arrow_right.gif" width=6 height=8 style="margin-right:4px;">Open Document</div></td>';
				ih += '<td style="width:10px;"></td>';
				ih += '<td style="-moz-user-select:none;"><div class="qmvi-common qmvi-dialog-input-title" onclick="qmv_apub_insert_atcursor(event,document.getElementById(\'qmvi_publish_auto_document\'))" style="color:#444;margin:10px 6px 4px 0px;cursor:pointer;"><span style="color:#333333;">[&nbsp;&nbsp;</span><img src="'+qmv.base+'images/color_plus.gif" width=11 height=11 style="margin-bottom:-1px;margin-right:3px;">Insert At Cursor</div></td>';
				ih += '<td style="width:2px;font-size:1px;"></td>';
				ih += '<td style="-moz-user-select:none;"><div class="qmvi-common qmvi-dialog-input-title" onclick="qmv_apub_remove_menu(event,document.getElementById(\'qmvi_publish_auto_document\'))" style="color:#444;margin:10px 6px 4px 0px;cursor:pointer;"><img src="'+qmv.base+'images/color_minus.gif" width=11 height=11 style="margin-bottom:-1px;margin-right:3px;">Remove</div></td>';
				ih += '<td style="width:2px;font-size:1px;"></td>';
				ih += '<td style="-moz-user-select:none;"><div class="qmvi-common qmvi-dialog-input-title" onclick="qmv_apub_find_text(event,document.getElementById(\'qmvi_publish_auto_document\'))" style="color:#444;margin:10px 6px 4px 0px;cursor:pointer;"><img src="'+qmv.base+'images/check_red.gif" width=11 height=9 style="margin-bottom:0px;margin-right:2px;">Find<span style="color:#333333;">&nbsp;&nbsp;]</span></div></td>';
				

			ih += '</tr></table>';

			ih += '<div class="qmvtree-input-container-dialog" style="height:300px;">';
			ih += '<textarea wrap="off" onkeypress="qm_kille(event,true)" ondblclick="qmv_apub_insert_atcursor(event,document.getElementById(\'qmvi_publish_auto_document\'))" id="qmvi_publish_auto_document" class="qmvtree-input qmvtree-input-dialog" style="height:300px;"></textarea>';
			ih += '</div>';

			ih += '<div style="position;relative;font-size:1px;height:1px;width:1px;">';
				ih += '<div style="margin:2px 0px 0px 2px;position:absolute;font-size:11px;color:#444444;">Menu ID: <span id="qmvi_publish_auto_st_menuid"></span><br><span id="qmvi_publish_auto_st_filename"></span></div>';
			ih += '</div>';

			

		ih += '</div>';


		


	}
	else if (type=="preview")
	{
		
		
		buttons = "Close";
		title = "Preview Menu";
		
		
		var wd = qmv_lib_get_window_dimensions();
		width = wd[0]-100;
		var ihh = wd[1]-200;
		var ihw = width-42;

		
		ih += '<div style="padding:10px;">';

			ih += '<div style="margin-bottom:5px;">';			
				ih += '<table cellpadding=0 cellspacing=0 border=0 style="width:100%"><tr>';
				ih += '<td style="vertical-align:middle;white-space:nowrap;"><img src="'+qmv.base+'images/qmv_v_b_down_hover.gif" width=13 height=14 style="margin-bottom:-3px;"></td>';
				ih += '<td><div style="font-size:1px;width:5px;"></div></td>';
				ih += '<td style="vertical-align:middle;padding-top:1px;white-space:nowrap;"><div class="qmvi-dialog-input-title">Preview Menu</div></td>';

				ih += '<td style="width:100%;"></td>';

				


				if (!(qmad.br_ie && !qmad.br_ie7))
				{
					ih += '<td style="vertical-align:middle;white-space:nowrap;"><div class="qmvi-dialog-input-title">JavaScript Enabled:&nbsp;</div></td>';
					ih += '<td style="vertical-align:middle;"><input id="qmvi_preview_javascript_enabled" type="radio" onclick="qmv_preview_update(event,this)" name="qmvi_je_1" checked></input></td>';
					ih += '<td style=""><div style="font-size:1px;width:10px;"></div></td>';
					ih += '<td style="vertical-align:middle;white-space:nowrap;"><div class="qmvi-dialog-input-title">JavaScript Disabled:&nbsp;</div></td>';
					ih += '<td style="vertical-align:middle;"><input id="qmvi_preview_javascript_disabled" onclick="qmv_preview_update(event,this)" name="qmvi_je_1" type="radio"></input></td>';
				}


				ih += '<td style=""><div style="font-size:1px;width:5px;"></div></td>';
				ih += '</tr></table>';
			ih += '</div>';
			
			ih += '<div class="" style="border-style:solid;border-width:1px;border-color:#777777;">';
			ih += "<iframe id='qmvi_preview_iframe' onmouseover='qmv_fix_iframe_title_drag()'  frameborder=none style='border-style:none;background-color:#ffffff;width:"+ihw+"px;height:"+ihh+"px;margin:0px;padding:0px;'></iframe>";
			ih += '</div>';

		ih += '</div>';


	}
	else if (type=="create_component")
	{

		
		buttons = "Done";
		title = "Create Component";
		width = 600;

		

		ih += '<div style="padding:5px;">';

			ih += '<div class="qmvi-publish-title" style="margin-bottom:20px;">Create a New HTML Document With a Manually Customizable Menu</div>';
			

			ih += '<div class="qmvi-common qmvi-dialog-input-title" style="padding-bottom:4px;color:#333333;">Paste the contents below to a blank document with a .html extension (use NotePad, FrontPage, Dreamweaver, or similar).</div>';


			ih += '<table celpadding=0 cellspacing=0><tr><td><div class="qmvi-common qmvi-dialog-input-title" onclick="qmv_publish_focus_input(event,document.getElementById(\'qmvi_publish_component_content\'))" style="color:#0033dd;margin:10px 6px 4px 0px;cursor:default;"><img src="'+qmv.base+'images/color_arrow_right.gif" width=6 height=8 style="margin-right:4px;">Select Contents</div></td></tr></table>';

			ih += '<div class="qmvtree-input-container-dialog" style="height:200px;">';
			ih += '<textarea wrap="off" onkeypress="qm_kille(event,true)" id="qmvi_publish_component_content" class="qmvtree-input qmvtree-input-dialog" style="height:200px;"></textarea>';
			ih += '</div>';

			

		ih += '</div>';


		


	}
	else if (type=="save_images")
	{

		

		buttons = "Done";
		title = "Publish Images";
		width = 500;
		
		var st = "Save Image As...";
		if (qmad.br_ie)
			st = "Save Picture As...";	

		ih += '<div style="padding:5px;">';

			ih += '<div class="qmvi-publish-title" style="margin-bottom:20px;">Publish Template Based Menu Images</div>';

			ih += '<div class="qmvi-common qmvi-dialog-input-title" style="padding-bottom:20px;color:#333333;"><font style="font-weight:bold;color:#0033dd;">1:</font>&nbsp;&nbsp;Create a new folder, titled \'qmimages\', in the same location as the HTML pages containing your menu.<br><br><font style="font-weight:bold;color:#0033dd;">2:</font>&nbsp;&nbsp;Save the images below to the new folder by right clicking each image and selecting the \''+st+'\' option.</div>';

			ih += '<div id="qmvi_save_images_container" onselectstart="qm_kille(event);return false;" class="qmvtree-input-container-dialog qmvi-no-focus" style="-moz-user-select:none;height:200px;overflow-y:scroll;">';
			ih += '</div>';


		ih += '</div>';


	}	
	else if (type=="devpubcss")
	{

		
		buttons = "Done";
		title = "Developer Publish CSS";
		width = 600;

		

		ih += '<div style="padding:5px;">';

		
			ih += '<table celpadding=0 cellspacing=0><tr><td><div class="qmvi-common qmvi-dialog-input-title" onclick="qmv_publish_focus_input(event,document.getElementById(\'qmvi_publish_devpub_content\'))" style="color:#0033dd;margin:10px 6px 4px 0px;cursor:default;"><img src="'+qmv.base+'images/color_arrow_right.gif" width=6 height=8 style="margin-right:4px;">Select Contents</div></td></tr></table>';

			ih += '<div class="qmvtree-input-container-dialog" style="height:200px;">';
			ih += '<textarea wrap="off" onkeypress="qm_kille(event,true)" id="qmvi_publish_devpub_content" class="qmvtree-input qmvtree-input-dialog" style="height:200px;"></textarea>';
			ih += '</div>';

			

		ih += '</div>';


		


	}
	else if (type=="import")
	{

		
		buttons = "Generate Menu|Cancel";
		title = "Import Menu";
		width = 600;

		

		ih += '<div style="padding:5px;">';

			ih += '<div class="qmvi-publish-title" style="margin-bottom:20px;">Import Third Party Menu Structures</div>';

			
			ih += '<div class="qmvi-common qmvi-dialog-input-title" style="padding-bottom:4px;color:#333333;">Paste the contents of an existing list based (&lt;UL&gt;&lt;LI&gt;) menu structure below.  Note: Not all structures can be imported, some structures will be limited to the main menu items only.</div>';

			ih += '<div class="qmvtree-input-container-dialog" style="height:200px;">';
			ih += '<textarea wrap="off" onkeypress="qm_kille(event,true)" id="qmvi_import_stucture_content" class="qmvtree-input qmvtree-input-dialog" style="height:200px;"></textarea>';
			ih += '</div>';

			

		ih += '</div>';


	}
	else if (type=="open")
	{

		
		buttons = "Open|Cancel";
		title = "Open Menu";
		width = 460;

		

		ih += '<div style="padding:5px;">';

			ih += '<div class="qmvi-publish-title" style="margin-bottom:20px;">Open Published or Saved Menu</div>';
			
			ih += '<div class="qmvi-common qmvi-dialog-input-title" style="padding-bottom:10px;color:#333333;">Type the URL address (<span style="color:#0033dd;">http://www.my_domain.com/my_document.html</span>) of a saved menu document or page containing a published menu.</div>';

			ih += '<div class="qmvtree-input-container-dialog">';
			ih += '<input id="qmvi_open_menu_url" class="qmvtree-input qmvtree-input-dialog" value="http://www.my_domain.com/my_document.html"></input>';
			ih += '</div>';

			

		ih += '</div>';


	}	
	else if (type=="publish1")
	{


		
		if (qmv.access_type && qmv.access_type!="roam")
			qmvi_check_menu_features();
		
		
		qmv_set_publish_menus_object();

		buttons = "Next|Cancel";
		title = "Publish Wizard";
		width = 600;
		
		qmv.publish.page = 1;


		ih += '<div style="padding:15px 10px 10px 10px;">';
		

			ih += '<div class="qmvi-publish-title" style="margin-bottom:20px;">This wizard produces the code sections necessary to run QuickMenu in your documents.</div>';

			ih += '<div style="padding-bottom:10px;">';

				ih+='<div style="width:100px;text-align:center;white-space:nowrap;position:absolute;left:250px;font-size:12px;padding:2px 0px 2px 0px;background-color:#d3d1dd;border-width:1px;border-color:#aaaaaa;border-style:solid;">In Page</div>';
				ih+='<div style="width:100px;text-align:center;white-space:nowrap;position:absolute;left:400px;font-size:12px;padding:2px 0px 2px 0px;background-color:#d3d1dd;border-width:1px;border-color:#aaaaaa;border-style:solid;"">External File</div>';

			ih += '</div>';

			ih += '<div style="padding:30px 20px 10px 20px;">'


				ih += '<table cellpadding=0 cellspacing=0 border=0 style="">';


					ih += '<tr>';
 
						ih += '<td class="qmvi-common qmvi-dialog-input-title" style="color:#222222;width:180px;text-align:right;">CSS Style Sheet:</td>';
						ih += '<td><div style="width:70px;">&nbsp;</div></td>';
						ih += '<td style="width:100px;"><input id="qmvi_publish_css_inpage" name="qmvi_publish_css" type="radio"></td>';
						ih += '<td><div style="width:55px;">&nbsp;</div></td>';
						ih += '<td style="width:100px;"><input id="qmvi_publish_css_external" name="qmvi_publish_css" type="radio"></td>';

					ih += '</tr>';

					ih += '<tr><td><div style="font-size:1px;height:15px;"></div></td></tr>'

					ih += '<tr>';

						ih += '<td class="qmvi-common qmvi-dialog-input-title" style="color:#222222;width:180px;text-align:right;">Menu Code / Add-ons:</td>';
						ih += '<td><div style="width:70px;">&nbsp;</div></td>';
						ih += '<td style="width:100px;"><input id="qmvi_publish_code_inpage" name="qmvi_publish_code" type="radio"></td>';
						ih += '<td><div style="width:55px;">&nbsp;</div></td>';
						ih += '<td style="width:100px;"><input id="qmvi_publish_code_external" name="qmvi_publish_code" type="radio"></td>';

					ih += '</tr>';
					
					ih += '<tr><td><div style="font-size:1px;height:15px;"></div></td></tr>'

					ih += '<tr>';

						ih += '<td class="qmvi-common qmvi-dialog-input-title" style="color:#222222;width:180px;text-align:right;">Menu Structure:</td>';
						ih += '<td><div style="width:70px;">&nbsp;</div></td>';
						ih += '<td style="width:100px;"><input id="qmvi_publish_structure_inpage" name="qmvi_publish_structure" type="radio"></td>';
						ih += '<td><div style="width:55px;">&nbsp;</div></td>';
						ih += '<td style="width:100px;"><input onclick="qmv_warn_external_pure(\'qmvi_publish_structure_type_pure\')" id="qmvi_publish_structure_external" name="qmvi_publish_structure" type="radio"></td>';

					ih += '</tr>';

					


				ih += '</table>';

			ih += '</div>'


			ih += '<div style="font-size:1px;height:25px;"></div>';
			
			ih += '<div style="padding-bottom:10px;">';

				ih+='<div style="width:100px;text-align:center;white-space:nowrap;position:absolute;left:250px;font-size:12px;padding:2px 0px 2px 0px;background-color:#d3d1dd;border-width:1px;border-color:#aaaaaa;border-style:solid;">Pure CSS</div>';
				ih+='<div style="width:100px;text-align:center;white-space:nowrap;position:absolute;left:400px;font-size:12px;padding:2px 0px 2px 0px;background-color:#d3d1dd;border-width:1px;border-color:#aaaaaa;border-style:solid;"">Hybrid</div>';

			ih += '</div>';

			ih += '<div style="padding:30px 20px 10px 20px;">'


				ih += '<table cellpadding=0 cellspacing=0 border=0 style="">';


					ih += '<tr>';
 
						ih += '<td class="qmvi-common qmvi-dialog-input-title" style="color:#222222;width:180px;text-align:right;">(<span style="cursor:help;color:#ff3300;" onclick="qmv_html_structure_help()">?</span>) HTML Structure Type:</td>';
						ih += '<td><div style="width:70px;">&nbsp;</div></td>';
						ih += '<td style="width:100px;"><input onclick="qmv_warn_external_pure(\'qmvi_publish_structure_external\')" id="qmvi_publish_structure_type_pure" name="qmvi_publish_struct_type" type="radio"></td>';
						ih += '<td><div style="width:55px;">&nbsp;</div></td>';
						ih += '<td style="width:100px;"><input id="qmvi_publish_structure_type_hybrid" name="qmvi_publish_struct_type" type="radio" checked></td>';

					ih += '</tr>';

				ih += '</table>';

			ih += '</div>'

			ih += '<div style="font-size:1px;height:10px;"></div>';

		ih += '</div>';


		qmv_track_it("publish_type");


	}
	else if (type=="publish2")
	{

		
		buttons = "Previous|Next|Cancel";
		title = "Publish Wizard";
		width = 600;

		qmv.publish.page = 2;


		ih += '<div style="padding:5px;">';

			ih += '<div class="qmvi-publish-title" style="margin-bottom:20px;">CSS Stylesheet</div>';

			if (qmv.publish.css_type=="external")
			{

				ih += '<div class="qmvi-common qmvi-dialog-input-title" style="padding-bottom:4px;color:#333333;"><font style="font-weight:bold;">1:</font> Copy this stylesheet file reference to your documents head (&lt;HEAD&gt;&lt;/HEAD&gt;).  Change the file name and location reference (href=\'<font style="color:#dd3300;">quickmenu_styles.css</font>\') to match the new .css file you will create below.</div>';

				ih += '<div style="padding:0px 15px 0px 15px;">';
					ih += '<table celpadding=0 cellspacing=0><tr><td><div class="qmvi-common qmvi-dialog-input-title" onclick="qmv_publish_focus_input(event,document.getElementById(\'qmvi_publish_stylesheet_file_reference\'))" style="color:#0033dd;margin:10px 6px 4px 0px;cursor:default;"><img src="'+qmv.base+'images/color_arrow_right.gif" width=6 height=8 style="margin-right:4px;">Select Contents</div></td></tr></table>';
					ih += '<div class="qmvtree-input-container" style="height:16px;">';
					ih += '<input id="qmvi_publish_stylesheet_file_reference" class="qmvtree-input qmvtree-input-dialog" style="" value="<!--[START-LC]--><link rel=\'stylesheet\' type=\'text/css\' href=\'quickmenu_styles.css\'/><!--[END-LC]-->">';
					ih += '</div>';
				ih += '</div>';

				ih += '<div style="font-size:1px;height:30px;"></div>';

				ih += '<div class="qmvi-common qmvi-dialog-input-title" style="padding-bottom:4px;color:#333333;"><font style="font-weight:bold;">2:</font> Paste the styles below to a new plain text file with a name, location and .css extension to match the file reference in step 1.  (Use Notepad or similar to ensure a plain text format.)</div>';

				ih += '<div style="padding:0px 15px 0px 15px;">';
					ih += '<table celpadding=0 cellspacing=0><tr><td><div class="qmvi-common qmvi-dialog-input-title" onclick="qmv_publish_focus_input(event,document.getElementById(\'qmvi_publish_stylesheet_content\'))" style="color:#0033dd;margin:10px 6px 4px 0px;cursor:default;"><img src="'+qmv.base+'images/color_arrow_right.gif" width=6 height=8 style="margin-right:4px;">Select Contents</div></td></tr></table>';
					ih += '<div class="qmvtree-input-container-dialog" style="height:200px;">';
					ih += '<textarea wrap="off" onkeypress="qm_kille(event,true)" id="qmvi_publish_stylesheet_content" class="qmvtree-input qmvtree-input-dialog" style="height:200px;">'+qmv_pubgen_css(true)+'</textarea>';
					ih += '</div>';
				ih += '</div>';

				ih += '<div style="font-size:1px;height:10px;"></div>';
			}
			else
			{

				ih += '<div class="qmvi-common qmvi-dialog-input-title" style="padding-bottom:4px;color:#333333;">Paste the style sheet below within the head (&lt;HEAD&gt;paste here&lt;/HEAD&gt;) of your HTML document. </div>';

				ih += '<div style="padding:0px 15px 0px 15px;">';
					ih += '<table celpadding=0 cellspacing=0><tr><td><div class="qmvi-common qmvi-dialog-input-title" onclick="qmv_publish_focus_input(event,document.getElementById(\'qmvi_publish_stylesheet_content\'))" style="color:#0033dd;margin:10px 6px 4px 0px;cursor:default;"><img src="'+qmv.base+'images/color_arrow_right.gif" width=6 height=8 style="margin-right:4px;">Select Contents</div></td></tr></table>';
					ih += '<div class="qmvtree-input-container-dialog" style="height:200px;">';
					ih += '<textarea wrap="off"onkeypress="qm_kille(event,true)" id="qmvi_publish_stylesheet_content" class="qmvtree-input qmvtree-input-dialog" style="height:200px;">'+qmv_pubgen_css(false)+'</textarea>';
					ih += '</div>';
				ih += '</div>';

			}

		ih += '</div>';

		qmv_track_it("publish_css");


	}
	else if (type=="publish3")
	{

		
		buttons = "Previous|Next|Cancel";
		title = "Publish Wizard";
		width = 600;

		qmv.publish.page = 3;


		ih += '<div style="padding:5px;">';

			ih += '<div class="qmvi-publish-title" style="margin-bottom:20px;">Menu Code / Add-on\'s</div>';

			if (qmv.publish.code_type=="external")
			{

				ih += '<div class="qmvi-common qmvi-dialog-input-title" style="padding-bottom:4px;color:#333333;"><font style="font-weight:bold;">1:</font> Copy this JavaScript file reference to your documents head (&lt;HEAD&gt;&lt;/HEAD&gt;). Change the file name and location reference (src=\'<font style="color:#dd3300;">quickmenu.js</font>\') to match the new .js file you will create below.</div>';

				ih += '<div style="padding:0px 15px 0px 15px;">';
					ih += '<table celpadding=0 cellspacing=0><tr><td><div class="qmvi-common qmvi-dialog-input-title" onclick="qmv_publish_focus_input(event,document.getElementById(\'qmvi_publish_javascript_file_reference\'))" style="color:#0033dd;margin:10px 6px 4px 0px;cursor:default;"><img src="'+qmv.base+'images/color_arrow_right.gif" width=6 height=8 style="margin-right:4px;">Select Contents</div></td></tr></table>';
					ih += '<div class="qmvtree-input-container" style="height:16px;">';
					ih += '<input type="text" onkeypress="qm_kille(event,true)" id="qmvi_publish_javascript_file_reference" class="qmvtree-input qmvtree-input-dialog" style="" value="<!--[START-LJ]--><scr'+'ipt type=\'text/javascript\' src=\'quickmenu.js\'></scr'+'ipt><!--[END-LJ]-->">';
					ih += '</div>';
				ih += '</div>';

				ih += '<div style="font-size:1px;height:30px;"></div>';

				ih += '<div class="qmvi-common qmvi-dialog-input-title" style="padding-bottom:4px;color:#333333;"><font style="font-weight:bold;">2:</font> Paste the script below to a new plain text file with a name, location and .js extension to match the file reference in step 1.  (Use Notepad or similar to ensure a plain text format.)</div>';

				ih += '<div style="padding:0px 15px 0px 15px;">';
					ih += '<table celpadding=0 cellspacing=0><tr><td><div class="qmvi-common qmvi-dialog-input-title" onclick="qmv_publish_focus_input(event,document.getElementById(\'qmvi_publish_javascript_content\'))" style="color:#0033dd;margin:10px 6px 4px 0px;cursor:default;"><img src="'+qmv.base+'images/color_arrow_right.gif" width=6 height=8 style="margin-right:4px;">Select Contents</div></td></tr></table>';
					ih += '<div class="qmvtree-input-container-dialog" style="height:200px;">';
					ih += '<textarea wrap="off" onkeypress="qm_kille(event,true)" id="qmvi_publish_javascript_content" class="qmvtree-input qmvtree-input-dialog" style="height:200px;">'+qmv_pubgen_javascript(true)+'</textarea>';
					ih += '</div>';
				ih += '</div>';

				ih += '<div style="font-size:1px;height:10px;"></div>';
			}
			else
			{

				ih += '<div class="qmvi-common qmvi-dialog-input-title" style="padding-bottom:4px;color:#333333;">Paste the script below within the head (&lt;HEAD&gt;&lt;/HEAD&gt;) of your HTML document. </div>';

				ih += '<div style="padding:0px 15px 0px 15px;">';
					ih += '<table celpadding=0 cellspacing=0><tr><td><div class="qmvi-common qmvi-dialog-input-title" onclick="qmv_publish_focus_input(event,document.getElementById(\'qmvi_publish_javascript_content\'))" style="color:#0033dd;margin:10px 6px 4px 0px;cursor:default;"><img src="'+qmv.base+'images/color_arrow_right.gif" width=6 height=8 style="margin-right:4px;">Select Contents</div></td></tr></table>';
					ih += '<div class="qmvtree-input-container-dialog" style="height:200px;">';
					ih += '<textarea wrap="off"onkeypress="qm_kille(event,true)" id="qmvi_publish_javascript_content" class="qmvtree-input qmvtree-input-dialog" style="height:200px;">'+qmv_pubgen_javascript(false)+'</textarea>';
					ih += '</div>';
				ih += '</div>';

			}

		ih += '</div>';

		qmv_track_it("publish_code");

	}
	else if (type=="publish4")
	{

				
		buttons = "Previous|Next|Cancel";
		title = "Publish Wizard";
		width = 600;

		qmv.publish.page = 4;


		ih += '<div style="padding:5px;">';

			ih += '<div class="qmvi-publish-title" style="margin-bottom:20px;">Menu Structure ['+qmv_pubgen_get_number_word(qmv.publish.smenus_pos+1)+' Menu]</div>';

			if (qmv.publish.structure_type=="external")
			{

				ih += '<div class="qmvi-common qmvi-dialog-input-title" style="padding-bottom:4px;color:#333333;"><font style="font-weight:bold;">1:</font> Paste the JavaScript file reference below inside a valid HTML tag within the body (&lt;BODY&gt;&lt;/BODY&gt;) of your web page.  The menu will position itself as a block level element at the point of insertion, similar to a table or div.<br><br>Change the file reference (src=\'<font style="color:#dd3300">qm_structure'+(qmv.publish.smenus_pos)+'.js</font>\') to correctly point to the location and name of the new .js file you will create in step 2.</div>';

				ih += '<div style="padding:0px 15px 0px 15px;">';
					ih += '<table celpadding=0 cellspacing=0><tr><td><div class="qmvi-common qmvi-dialog-input-title" onclick="qmv_publish_focus_input(event,document.getElementById(\'qmvi_publish_javascript_file_reference\'))" style="color:#0033dd;margin:10px 6px 4px 0px;cursor:default;"><img src="'+qmv.base+'images/color_arrow_right.gif" width=6 height=8 style="margin-right:4px;">Select Contents</div></td></tr></table>';
					ih += '<div class="qmvtree-input-container" style="height:16px;">';
					ih += '<input type="text" onkeypress="qm_kille(event,true)" id="qmvi_publish_javascript_file_reference" class="qmvtree-input qmvtree-input-dialog" style="" value="<!--[START-LS'+(qmv.publish.smenus_pos)+']--><scr'+'ipt type=\'text/javascript\' src=\'qm_structure'+(qmv.publish.smenus_pos)+'.js\'></scr'+'ipt><!--[END-LS'+(qmv.publish.smenus_pos)+']-->">';
					ih += '</div>';
				ih += '</div>';

				ih += '<div style="font-size:1px;height:30px;"></div>';

				ih += '<div class="qmvi-common qmvi-dialog-input-title" style="padding-bottom:4px;color:#333333;"><font style="font-weight:bold;">2:</font> Paste the script below to a new plain text file with a name, location and .js extension to match the file reference in step 1.  (Use Notepad or similar to ensure a plain text format.)</div>';

				ih += '<div style="padding:0px 15px 0px 15px;">';
					ih += '<table celpadding=0 cellspacing=0><tr><td><div class="qmvi-common qmvi-dialog-input-title" onclick="qmv_publish_focus_input(event,document.getElementById(\'qmvi_publish_structure_content\'))" style="color:#0033dd;margin:10px 6px 4px 0px;cursor:default;"><img src="'+qmv.base+'images/color_arrow_right.gif" width=6 height=8 style="margin-right:4px;">Select Contents</div></td></tr></table>';
					ih += '<div class="qmvtree-input-container-dialog" style="height:200px;">';
					ih += '<textarea wrap="off" onkeypress="qm_kille(event,true)" id="qmvi_publish_structure_content" class="qmvtree-input qmvtree-input-dialog" style="height:200px;"></textarea>';
					ih += '</div>';
				ih += '</div>';

				ih += '<div style="font-size:1px;height:10px;"></div>';
			}
			else
			{

				ih += '<div class="qmvi-common qmvi-dialog-input-title" style="padding-bottom:4px;color:#333333;">Paste this HTML inside a valid tag within the body (&lt;BODY&gt;&lt;/BODY&gt;) of your web page.  The menu positions itself as a block level element at the point of insertion, similar to a table or div.</div>';

				ih += '<div style="padding:0px 15px 0px 15px;">';
					ih += '<table celpadding=0 cellspacing=0><tr><td><div class="qmvi-common qmvi-dialog-input-title" onclick="qmv_publish_focus_input(event,document.getElementById(\'qmvi_publish_structure_content\'))" style="color:#0033dd;margin:10px 6px 4px 0px;cursor:default;"><img src="'+qmv.base+'images/color_arrow_right.gif" width=6 height=8 style="margin-right:4px;">Select Contents</div></td></tr></table>';
					ih += '<div class="qmvtree-input-container-dialog" style="height:200px;">';
					ih += '<textarea wrap="off"onkeypress="qm_kille(event,true)" id="qmvi_publish_structure_content" class="qmvtree-input qmvtree-input-dialog" style="height:200px;"></textarea>';
					ih += '</div>';
				ih += '</div>';

			}

		ih += '</div>';

		qmv_track_it("publish_structure");


	}
	else if (type=="publish5")
	{

		buttons = "Previous|Next|Cancel";
		title = "Publish Wizard";
		width = 600;

		qmv.publish.page = 5;


		ih += '<div style="padding:5px;">';


			if (!qmv.pure)
			{
				ih += '<div class="qmvi-publish-title" style="margin-bottom:10px;">Optional Noscript Support</div>';
				ih += '<div style="padding:10px;">';


					ih += '<div class="qmvi-common qmvi-dialog-input-title" style="padding-bottom:4px;color:#333333;">You have chosen the hybrid menu stucture which will enable a functional main menu only (no subs) in the absense of JavaScript.  Use the \'Pure CSS\' menu type option for complete menu functionality (mains and subs) in browsers with JavaScript disabled.</div>';
					ih += '<div style="font-size:1px;height:10px;"></div>';

					ih += '<div class="qmvi-common qmvi-dialog-input-title" style="padding-bottom:4px;color:#333333;">You can optionally make all your links accessible with the hybrid menu type you have choosen.  Links will be presented in a scrollable window for users who have turned off JavaScript in the browser.  If you do not include the tag below, only the main items will be functional when JavaScript is disabled.</div>';

					ih += '<div style="padding:0px 15px 0px 15px;">';
						ih += '<table celpadding=0 cellspacing=0><tr><td><div class="qmvi-common qmvi-dialog-input-title" onclick="qmv_publish_focus_input(event,document.getElementById(\'qmvi_publish_structure_content\'))" style="color:#0033dd;margin:10px 6px 4px 0px;cursor:default;"><img src="'+qmv.base+'images/color_arrow_right.gif" width=6 height=8 style="margin-right:4px;">Select Contents</div></td></tr></table>';
						ih += '<div class="qmvtree-input-container-dialog" style="height:65px;">';
						ih += '<textarea wrap="off"onkeypress="qm_kille(event,true)" id="qmvi_publish_structure_content" class="qmvtree-input qmvtree-input-dialog" style="height:65px;">'+qmv_pubgen_noscript_tag()+'</textarea>';
						ih += '</div>';
					ih += '</div>';

				ih += '</div>';
			}


			
			if (qmv.free_use)
			{

				ih += '<div style="font-size:1px;height:20px;"></div>';
				ih += '<div class="qmvi-publish-title" style="margin-bottom:10px;">Optional <span style="color:#dd3300;">Free Use</span> Link</div>';
				ih += '<div style="padding:10px;">';

					ih += '<div class="qmvi-common qmvi-dialog-input-title" style="padding-bottom:4px;color:#333333;">To disable the purchase reminder and use the menu for free (no time limits or restrictions!) add this link anywhere within the body of your web page.</div>';

					ih += '<div style="padding:0px 15px 0px 15px;">';
						ih += '<table celpadding=0 cellspacing=0><tr><td><div class="qmvi-common qmvi-dialog-input-title" onclick="qmv_publish_focus_input(event,document.getElementById(\'qmvi_publish_structure_content_free\'))" style="color:#0033dd;margin:10px 6px 4px 0px;cursor:default;"><img src="'+qmv.base+'images/color_arrow_right.gif" width=6 height=8 style="margin-right:4px;">Select Contents</div></td></tr></table>';
						ih += '<div class="qmvtree-input-container-dialog" style="height:65px;">';
						ih += '<textarea wrap="off"onkeypress="qm_kille(event,true)" id="qmvi_publish_structure_content_free" class="qmvtree-input qmvtree-input-dialog" style="height:65px;">'+qmv_pubgen_free_use_link()+'</textarea>';
						ih += '</div>';
					ih += '</div>';

				ih += '</div>';

			}

		ih += '</div>';

		


	}
	else if (type=="publish6")
	{

		buttons = "Previous|Finished";
		title = "Publish Wizard";
		width = 600;

		qmv.publish.page = 6;


		ih += '<div style="padding:5px;">';

			ih += '<div class="qmvi-publish-title" style="margin-bottom:10px;">Finished</div>';


			ih += '<div style="padding:10px;">';

				ih += '<div class="qmvi-common qmvi-dialog-input-title" style="padding-bottom:4px;color:#333333;font-weight:bold;color:#dd3300;">Congratulations!</div>';
				ih += '<div style="font-size:1px;height:10px;"></div>';

				ih += '<div class="qmvi-common qmvi-dialog-input-title" style="padding-bottom:4px;color:#333333;">Your menu is ready to view, open your document in a browser to test the menu.  If the menu is not working, double check all file references and your insertion point within the body for accuracy.</div>';
				ih += '<div style="font-size:1px;height:20px;"></div>';

				ih += '<div class="qmvi-common qmvi-dialog-input-title" style="padding-bottom:4px;color:#333333;text-decoration:underline;">How do I edit my published menu?</div>';
				ih += '<div style="font-size:1px;height:10px;"></div>';

				ih += '<div class="qmvi-common qmvi-dialog-input-title" style="padding-bottom:4px;color:#333333;">To edit the published menu open the visual interface and choose...  \'File\' --&gt; \'Open\' --&gt; \'From Live Web Page\'  Input the http:// address of the HTML document with the menu you wish to edit.</div>';
				ih += '<div style="font-size:1px;height:10px;"></div>';

				ih += '<div class="qmvi-common qmvi-dialog-input-title" style="padding-bottom:4px;color:#333333;">You can also manually edit the published menu with a text editor, the styles and structure are all standard CSS and HTML.  Add-ons use simple to understand script based parameter names. Your manual edits will be preserved when opening the menu with the online visual tool.</div>';
				


				/*
				ih += '<div style="padding:0px 15px 0px 15px;">';
					ih += '<table celpadding=0 cellspacing=0><tr><td><div class="qmvi-common qmvi-dialog-input-title" onclick="qmv_publish_focus_input(event,document.getElementById(\'qmvi_publish_congrats_visual_tag\'))" style="color:#0033dd;margin:10px 6px 4px 0px;cursor:default;"><img src="'+qmv.base+'images/color_arrow_right.gif" width=6 height=8 style="margin-right:4px;">Select Contents</div></td></tr></table>';
					ih += '<div class="qmvtree-input-container" style="height:16px;">';
					ih += '<input onblur="qmv_publish_blur_input(event,this)" onfocus="qmv_publish_focus_input(event,this)" type="text" onkeypress="qm_kille(event,true)" class="qmvtree-input qmvtree-input-dialog" style="" id="qmvi_publish_congrats_visual_tag" value="<sc'+'ript type=\'text/javascript\' src=\'http://www.opencube.com/qmv7/qm_visual.js\'></scr'+'ipt>">';
					ih += '</div>';
				ih += '</div>';
				*/

			ih += '</div>';

		ih += '</div>';


		qmv_track_it("publish_done");


	}
	else if (type=="publish10")
	{

		


		buttons = "Previous|Next|Cancel";
		title = "Publish Wizard";
		width = 600;

		qmv.publish.page = 10;


		ih += '<div style="padding:5px;">';

			ih += '<div class="qmvi-publish-title" style="margin-bottom:20px;">Compact Publish to Single External File</div>';
			
			ih += '<div class="qmvi-common qmvi-dialog-input-title" style="padding-bottom:4px;color:#333333;"><font style="font-weight:bold;">1:</font> Paste the JavaScript file reference below inside a valid HTML tag within the body (&lt;BODY&gt;&lt;/BODY&gt;) of your web page.  The menu will position itself as a block level element at the point of insertion, similar to a table or div.<br><br>Change the file reference (src=\'<font style="color:#dd3300">quickmenu.js</font>\') to correctly point to the location and name of the new .js file you will create below.</div>';

			ih += '<div style="padding:0px 15px 0px 15px;">';
				ih += '<table celpadding=0 cellspacing=0><tr><td><div class="qmvi-common qmvi-dialog-input-title" onclick="qmv_publish_focus_input(event,document.getElementById(\'qmvi_publish_javascript_file_reference\'))" style="color:#0033dd;margin:10px 6px 4px 0px;cursor:default;"><img src="'+qmv.base+'images/color_arrow_right.gif" width=6 height=8 style="margin-right:4px;">Select Contents</div></td></tr></table>';
				ih += '<div class="qmvtree-input-container" style="height:16px;">';
				ih += '<input type="text" onkeypress="qm_kille(event,true)" id="qmvi_publish_javascript_file_reference" class="qmvtree-input qmvtree-input-dialog" style="" value="<!--[START-LX'+qmv.id+']--><scr'+'ipt type=\'text/javascript\' src=\'quickmenu.js\'></scr'+'ipt><!--[END-LX'+qmv.id+']-->">';
				ih += '</div>';
			ih += '</div>';

			ih += '<div style="font-size:1px;height:20px;"></div>';

			ih += '<div class="qmvi-common qmvi-dialog-input-title" style="padding-bottom:4px;color:#333333;"><font style="font-weight:bold;">2:</font> Paste the script below to a new plain text file with a name, location and .js extension to match the file reference in step 1.  (Use Notepad or similar to ensure a plain text format.)</div>';

			ih += '<div style="padding:0px 15px 0px 15px;">';
				ih += '<table celpadding=0 cellspacing=0><tr><td><div class="qmvi-common qmvi-dialog-input-title" onclick="qmv_publish_focus_input(event,document.getElementById(\'qmvi_publish_javascript_content\'))" style="color:#0033dd;margin:10px 6px 4px 0px;cursor:default;"><img src="'+qmv.base+'images/color_arrow_right.gif" width=6 height=8 style="margin-right:4px;">Select Contents</div></td></tr></table>';
				ih += '<div class="qmvtree-input-container-dialog" style="height:200px;">';
				ih += '<textarea wrap="off" onkeypress="qm_kille(event,true)" id="qmvi_publish_javascript_content" class="qmvtree-input qmvtree-input-dialog" style="height:200px;">'+qmv_pubgen_all_external(true)+'</textarea>';
				ih += '</div>';
			ih += '</div>';

			ih += '<div style="font-size:1px;height:10px;"></div>';
			
		ih += '</div>';


		qmv_track_it("publish_external");

	}
	else if (type=="quick_publish")
	{

		qmv_set_publish_menus_object();

		buttons = "Previous|Next|Cancel";
		title = "Quick Publish (external file)";
		width = 600;



		var c = qmv_lib_get_menu_count();
		if (c>1)
		{

			buttons = "Close";
			title = "Quick Publish";
			width = 500;


			ih += '<div style="padding:5px;">';	

				ih += 'Warning! Quick publish is not compatible with multiple menu systems, to publish multiple menus instead use the \'Custom Publish Wizard\'.';			

			ih += '</div>';

		}
		else
		{

			buttons = "Done";
			title = "Quick Publish (external file)";
			width = 640;
			
			var spure = qmv.pure;
			qmv.pure = false;
		
			ih += '<div style="padding:5px;">';	

				ih += '<div class="qmvi-publish-title" style="margin-bottom:20px;">Compact Publish to Single External File</div>';
			
				ih += '<div class="qmvi-common qmvi-dialog-input-title" style="padding-bottom:4px;color:#333333;"><font style="font-weight:bold;">1:</font> Paste the JavaScript file reference below inside a valid HTML tag within the body (&lt;BODY&gt;&lt;/BODY&gt;) of your web page.  The menu will position itself as a block level element at the point of insertion, similar to a table or div. Point the reference (src=\'<font style="color:#dd3300">quickmenu.js</font>\') to the location and name of the new .js file you will create below.</div>';

				ih += '<div style="padding:0px 15px 0px 15px;">';
					ih += '<table celpadding=0 cellspacing=0><tr><td><div class="qmvi-common qmvi-dialog-input-title" onclick="qmv_publish_focus_input(event,document.getElementById(\'qmvi_publish_javascript_file_reference\'))" style="color:#0033dd;margin:10px 6px 4px 0px;cursor:default;"><img src="'+qmv.base+'images/color_arrow_right.gif" width=6 height=8 style="margin-right:4px;">Select Contents</div></td></tr></table>';
					ih += '<div class="qmvtree-input-container" style="height:16px;">';
					ih += '<input type="text" onkeypress="qm_kille(event,true)" id="qmvi_publish_javascript_file_reference" class="qmvtree-input qmvtree-input-dialog" style="" value="<!--[START-LX'+qmv.id+']--><scr'+'ipt type=\'text/javascript\' src=\'quickmenu.js\'></scr'+'ipt><!--[END-LX'+qmv.id+']-->">';
					ih += '</div>';
				ih += '</div>';

				ih += '<div style="font-size:1px;height:20px;"></div>';

				ih += '<div class="qmvi-common qmvi-dialog-input-title" style="padding-bottom:4px;color:#333333;"><font style="font-weight:bold;">2:</font> Paste the script below to a new plain text file with a name, location and .js extension to match the file reference in step 1.  (Use Notepad or similar to ensure a plain text format.)</div>';

				ih += '<div style="padding:0px 15px 0px 15px;">';
					ih += '<table celpadding=0 cellspacing=0><tr><td><div class="qmvi-common qmvi-dialog-input-title" onclick="qmv_publish_focus_input(event,document.getElementById(\'qmvi_publish_javascript_content\'))" style="color:#0033dd;margin:10px 6px 4px 0px;cursor:default;"><img src="'+qmv.base+'images/color_arrow_right.gif" width=6 height=8 style="margin-right:4px;">Select Contents</div></td></tr></table>';
					ih += '<div class="qmvtree-input-container-dialog" style="height:200px;">';
					ih += '<textarea wrap="off" onkeypress="qm_kille(event,true)" id="qmvi_publish_javascript_content" class="qmvtree-input qmvtree-input-dialog" style="height:200px;">'+qmv_pubgen_all_external(true)+'</textarea>';
					ih += '</div>';
				ih += '</div>';


				ih += '<div style="font-size:1px;height:20px;"></div>';
				ih += '<div class="qmvi-common qmvi-dialog-input-title" style="padding-bottom:4px;color:#333333;"><font style="font-weight:bold;">Warning:</font> This quick publish option does not save SEO content or use pure CSS for no-script browsers.  Use the custom publish wizard or the quick publish (inline) options under the \'File\' menu to enable these features.</div>';
				ih += '<div style="font-size:1px;height:10px;"></div>';
			
			ih += '</div>';


			qmv.pure = spure;
		}

		

	}
	else if (type=="quick_publish_inline")
	{

		qmv_set_publish_menus_object();

		buttons = "Previous|Next|Cancel";
		title = "Quick Publish";
		width = 600;



		var c = qmv_lib_get_menu_count();
		if (c>1)
		{

			buttons = "Close";
			title = "Quick Publish";
			width = 500;


			ih += '<div style="padding:5px;">';	

				ih += 'Warning! Quick publish is not compatible with multiple menu systems, to publish multiple menus instead use the \'Custom Publish Wizard\'.';			

			ih += '</div>';

		}
		else
		{

			buttons = "Done";
			title = "Quick Publish (inline HTML)";
			width = 640;
			
			ih += '<div style="padding:5px;">';	

				ih += '<div class="qmvi-publish-title" style="margin-bottom:20px;">Compact Inline Publish Direct to HTML Source Code</div>';
			
				ih += '<div class="qmvi-common qmvi-dialog-input-title" style="padding-bottom:4px;color:#333333;">Paste the code below between the body tags of your documents source HTML or within a body level include.  The menu will position itself within the flow of your document at the point of insertion, this is similar to manually adding an IMG, DIV, or Table tag in your HTML.<br><br></div>';

				ih += '<div style="padding:0px 15px 0px 15px;">';
					ih += '<table celpadding=0 cellspacing=0><tr><td><div class="qmvi-common qmvi-dialog-input-title" onclick="qmv_publish_focus_input(event,document.getElementById(\'qmvi_publish_javascript_content_inline\'))" style="color:#0033dd;margin:10px 6px 4px 0px;cursor:default;"><img src="'+qmv.base+'images/color_arrow_right.gif" width=6 height=8 style="margin-right:4px;">Select Contents</div></td></tr></table>';
					ih += '<div class="qmvtree-input-container-dialog" style="height:200px;">';
					ih += '<textarea wrap="off" onkeypress="qm_kille(event,true)" id="qmvi_publish_javascript_content_inline" class="qmvtree-input qmvtree-input-dialog" style="height:200px;">'+qmv_pubgen_all_external(true,true)+'</textarea>';
					ih += '</div>';
				ih += '</div>';


				ih += '<div style="font-size:1px;height:20px;"></div>';
				ih += '<div class="qmvi-common qmvi-dialog-input-title" style="padding-bottom:4px;color:#333333;"><font style="font-weight:bold;">Warning:</font> This quick publish feature puts style tags within the body of your document.  If your site has strict validation requirements use the custom publish wizard (\'File\' --> \'Custom Publish\').</div>';
				ih += '<div style="font-size:1px;height:10px;"></div>';
			
			ih += '</div>';

		
		}

		

	}
	else if (type=="url")
	{


		buttons = "OK|Cancel|Apply";
		title = "Anchor Properties";
		width = 350;
		

		ih += '<div style="padding:5px;">';

			ih += '<div class="qmvi-common qmvi-dialog-input-title" style="margin-bottom:2px;">Text / HTML</div>';
			ih += '<div class="qmvtree-input-container" style="height:16px;margin-bottom:10px;">';
			ih += '<input type="text" onkeypress="qm_kille(event,true)" category="texturl" dlginp="text" id="qmvi_df_urlp_text" class="qmvtree-input" style="">';
			ih += '</div>';




			ih += '<table celpadding=0 cellspacing=0><tr>';
	
				ih += '<td><div class="qmvi-common qmvi-dialog-input-title" style="margin:0px 0px 2px 0px;">Hyperlink</div></td>';
				ih += '<td style="width:5px;"></td>';

				if (qmv.is_chrome)
				{
					ih += '<td><div class="qmvi-common qmvi-dialog-input-title" onclick="" style="margin:0px 0px 2px 0px;cursor:pointer;">(</div></td>';
					ih += '<td style="-moz-user-select:none;"><div class="qmvi-common qmvi-dialog-input-title" onclick="qmv_chrome_choose_file(document.getElementById(\'qmvi_df_urlp_url\'))" style="color:#0033dd;margin:0px 0px 2px 0px;cursor:pointer;"><img src="'+qmv.base+'images/color_arrow_right.gif" width=6 height=8 style="margin-right:4px;">Choose File</div></td>';
					ih += '<td><div class="qmvi-common qmvi-dialog-input-title" onclick="" style="margin:0px 0px 2px 0px;cursor:pointer;">)</div></td>';
				}

			ih += '</tr></table>';


			//ih += '<div class="qmvi-common qmvi-dialog-input-title" style="margin-bottom:2px;">URL</div>';
			ih += '<div class="qmvtree-input-container" style="height:16px;margin-bottom:10px;">';
			ih += '<input type="text" onkeypress="qm_kille(event,true)" category="texturl" dlginp="url"  id="qmvi_df_urlp_url" class="qmvtree-input" style="">';
			ih += '</div>';

			ih += '<div class="qmvi-common qmvi-dialog-input-title" style="margin-bottom:2px;">Target</div>';
			ih += '<div class="qmvtree-input-container" style="height:16px;margin-bottom:10px;">';
			ih += '<input type="text" onkeypress="qm_kille(event,true)" category="texturl" dlginp="target"  id="qmvi_df_urlp_target" class="qmvtree-input" style="">';
			ih += '</div>';
			
			ih += '<div class="qmvi-common qmvi-dialog-input-title" style="margin-bottom:2px;">Title Text (Displays as Tooltip)</div>';
			ih += '<div class="qmvtree-input-container" style="height:16px;margin-bottom:10px;">';
			ih += '<input type="text" onkeypress="qm_kille(event,true)" category="texturl" dlginp="title"  id="qmvi_df_urlp_title" class="qmvtree-input" style="">';
			ih += '</div>';

		ih += '</div>';


	}
	else if (type=="multi")
	{

		buttons = "OK|Cancel|Apply";
		title = qmv.multi.title;
		width = 330;
		

		ih += '<div style="padding:5px;">';

			ih += '<div class="qmvi-common qmvi-dialog-input-title" style="margin-bottom:2px;">'+qmv.multi.desc+'</div>';
			ih += '<div style="margin-bottom:10px;">';
				ih += '<select id="qmvi_multi_value" class="qmvi-common qmvtree-input-container" style="width:300px;height:20px;font-size:12px">';


					for (var k=0;k<qmv.multi.show.length;k++)
					{

						ih += '<option value="'+qmv.multi.vals[k]+'">'+qmv.multi.show[k]+'</option>';

					}

				ih += '</select>';
			ih += '</div>';

		ih += '</div>';

	}
	else if (type=="edge")
	{
		

		buttons = "OK|Cancel|Apply";
		title = qmv.edge.title;
		width = qmv.edge.width;
		

		ih += '<div style="padding:5px;">';


			ih += '<table cellpadding=0 cellspacing=0 border=0 width="100%" style="">';

				ih += '<tr>';

					if (qmv.edge.corners)
					{
						ih += qmv_dialog_edge_part("Top",qmv.edge.dtype,"Top Left");
						ih += '<td><div style="width:20px;"></div></td>'					
						ih += qmv_dialog_edge_part("Left",qmv.edge.dtype,"Bottom Left");

					}
					else
					{
						ih += qmv_dialog_edge_part("Top",qmv.edge.dtype);
						ih += '<td><div style="width:20px;"></div></td>'					
						ih += qmv_dialog_edge_part("Left",qmv.edge.dtype);
					}

				ih += '<tr>';


				ih += '<tr><td><div style="font-size:1px;height:20px;"></div></td></tr>';

				ih += '<tr>';

					if (qmv.edge.corners)
					{
						ih += qmv_dialog_edge_part("Bottom",qmv.edge.dtype,"Bottom Right");
						ih += '<td><div style="width:20px;"></div></td>'					
						ih += qmv_dialog_edge_part("Right",qmv.edge.dtype,"Top Right");
					}
					else
					{
						ih += qmv_dialog_edge_part("Bottom",qmv.edge.dtype);
						ih += '<td><div style="width:20px;"></div></td>'					
						ih += qmv_dialog_edge_part("Right",qmv.edge.dtype);

					}

				ih += '<tr>';
			
			ih += '</table>';


		ih += '</div>';

	}
	else if (type=="inherit")
	{

		

		buttons = "OK|Cancel|Apply";
		title = "Style Duplication and Inheritance";
		width = 420;
		

		ih += '<div style="padding:5px;">';

			ih += '<div class="qmvi-publish-title" style="margin-bottom:10px;">Apply the <span style="font-weight:bold;">'+qmv.tinherit.rule0.sname+'</span> style to the following.</div>';

			ih += '<div style="padding:10px 20px 00px 20px;">';
			ih += '<table cellpadding=0 cellspacing=0 border=0 style="">';


				var tic=0;
				var tic_obj;
				while (tic_obj = qmv.tinherit["rule"+tic])
				{
				
					ih += '<tr>';
 
						ih += '<td><input id="qmvi_inherit_options'+tic+'" type="checkbox" '+tic_obj.defstate+' ></td>';
						ih += '<td><div style="width:10px;">&nbsp;</div></td>';
						ih += '<td class="qmvi-common qmvi-dialog-input-title" style="color:#222222;text-align:left;">'+tic_obj.desc+'</td>';

					ih += '</tr>';

					ih += '<tr><td><div style="font-size:1px;height:5px;"></div></td></tr>'

					tic++;
				}


			ih += '</table>';
			ih += '</div>';

			ih += '<div style="font-size:1px;height:10px;"></div>';	

		ih += '</div>';

		

	}
	else if (type=="options")
	{

		buttons = "OK|Cancel|Apply";;
		title = "Options";
		width = 400;
		
		ih += '<div style="padding:5px;">';


			if (qmv.is_installed_version && !qmv.is_chrome)
			{
			
				ih += '<div class="qmvi-publish-title" style="margin-bottom:10px;">Unlock Visual QuickMenu</div>';

				ih += '<div style="padding:5px;">';
	
					ih += '<div class="qmvi-common qmvi-dialog-input-title" style="margin-bottom:2px;">Paste Unlock Code Here</div>';
					ih += '<div class="qmvtree-input-container" style="height:16px;margin-bottom:10px;">';
					ih += '<input type="text" onkeypress="qm_kille(event,true)" id="qmvi_df_options_unlock" class="qmvtree-input" style="">';
					ih += '</div>';

				ih += '</div>';
			}
			

			//ih += '<div style="padding:5px;">';

				//ih += 'Free Use <span style="color:#333333;">(requires link to opencube in HTML page <span onclick="qmvi_options_free_use_info()" style="cursor:pointer;cursor:hand;text-decoration:underline;color:#dd3300;">?</span>)</span>&nbsp;<input onfocus="if (!qmad.br_ie)blur()" tabindex="-1" id="qmvi_dg_options_free_use" value="HEX" type="checkbox" style="margin-bottom:-1px;">'
				//ih += '<div style="font-size:1px;height:10px;"></div>';	
				
			//ih += '</div>';


			ih += '<div style="font-size:1px;height:10px;"></div>';			
			ih += '<div class="qmvi-publish-title" style="margin-bottom:10px;">Interface Settings</div>';
			
				ih += '<div style="padding:5px 5px 0px 5px;">';

					ih += '<table cellpadding=0 cellspacing=0><tr>';
					ih += '<td><input onfocus="if (!qmad.br_ie)blur()" tabindex="-1" id="qmvi_dg_options_auto_collapse" value="HEX" type="checkbox"></td><td class="qmvi-common qmvi-dialog-input-title">&nbsp;Auto Collapse Tree Menu</td>'
					ih += '</tr></table>';
								
				ih += '</div>';

				ih += '<div style="padding:5px 5px 0px 5px;">';

					ih += '<table cellpadding=0 cellspacing=0><tr>';
					ih += '<td><input onfocus="if (!qmad.br_ie)blur()" tabindex="-1" id="qmvi_dg_options_hide_selected_box" value="HEX" type="checkbox"></td><td class="qmvi-common qmvi-dialog-input-title">&nbsp;Hide Item Selected Box</td>'
					ih += '</tr></table>';
						
				ih += '</div>';

			ih += '<div style="font-size:1px;height:10px;"></div>';	




			if (qmv.is_chrome)
			{
				ih += '<div style="font-size:1px;height:10px;"></div>';			
				ih += '<div class="qmvi-publish-title" style="margin-bottom:10px;">Advanced Settings</div>';
			
					ih += '<div style="padding:5px 5px 0px 5px;">';
	
						ih += '<table cellpadding=0 cellspacing=0><tr>';
						ih += '<td><input onclick="qmvi_check_obfuscate_source_code(document.getElementById(\'qmvi_dg_options_show_source\'))" onfocus="if (!qmad.br_ie)blur()" tabindex="-1" id="qmvi_dg_options_show_source" value="HEX" type="checkbox" checked></td><td class="qmvi-common qmvi-dialog-input-title">&nbsp;Obfuscate Source Code</td>'
						ih += '</tr></table>';
								
					ih += '</div>';

				
	
				ih += '<div style="font-size:1px;height:10px;"></div>';	
			}


			ih += '<div style="font-size:1px;height:10px;"></div>';	

		ih += '</div>';


	}
	else if (type=="save_account")
	{

		if (!qmv.access_type)
		{
			qmvi_user_register();	
			return;
		}


		buttons = "Save|Cancel";
		title = "Save Menu to My Account";
		width = 400;
		
		ih += '<div style="padding:5px;">';

			ih += '<div class="qmvi-publish-title" style="margin-bottom:10px;">Save Options (Active Menu)</div>';

			ih += '<div style="padding:10px 20px 00px 20px;">';
			ih += '<table cellpadding=0 cellspacing=0 border=0 style="">';


				ih += '<tr>';
 
					ih += '<td><input qmtype="quicksave" id="qmvi_savetype_options1" onclick="qmv_save_account_dialog_toggle(this)" name="qmvi_savetype_options" type="radio" checked value="select"/></td>';
					ih += '<td><div style="width:20px;">&nbsp;</div></td>';
					ih += '<td onclick="document.getElementById(\'qmvi_savetype_options1\').checked = true;qmv_save_account_dialog_toggle(document.getElementById(\'qmvi_savetype_options1\'))" class="qmvi-common qmvi-dialog-input-title" style="cursor:'+qmv.cursor+';color:#222222;text-align:left;">Quick Save</td>';


				ih += '</tr>';

				ih += '<tr><td><div style="font-size:1px;height:5px;"></div></td></tr>'

				ih += '<tr>';

					ih += '<td><input id="qmvi_savetype_options2" onclick="qmv_save_account_dialog_toggle(this)" name="qmvi_savetype_options" type="radio" value="all"/></td>';
					ih += '<td><div style="width:20px;">&nbsp;</div></td>';
					ih += '<td onclick="document.getElementById(\'qmvi_savetype_options2\').checked = true;qmv_save_account_dialog_toggle(document.getElementById(\'qmvi_savetype_options2\'))" class="qmvi-common qmvi-dialog-input-title" style="cursor:'+qmv.cursor+';color:#222222;text-align:left;">Save This Menu As...</td>';

				ih += '</tr>';
					
	
			ih += '</table>';
			ih += '</div>';

			ih += '<div style="font-size:1px;height:15px;"></div>';	


			ih += '<div id="qmvi_as_expcol" style="display:none;">';				
				ih += '<div style="padding:5px;">';
	
					ih += '<div class="qmvi-common qmvi-dialog-input-title" style="margin-bottom:2px;">Save As Name</div>';
					ih += '<div class="qmvtree-input-container" style="height:16px;margin-bottom:10px;">';
					ih += '<input type="text" onfocus="document.getElementById(\'qmvi_as_mysaves\').selectedIndex=-1" onkeypress="qm_kille(event,true)" id="qmvi_as_savename" class="qmvtree-input" style=""/>';
					ih += '</div>';

				ih += '</div>';
			

			
				ih += '<div style="padding:5px;">';
	
					ih += '<div class="qmvi-common qmvi-dialog-input-title" style="height:auto;margin-bottom:2px;position:relative;">My Saved Menus';
						ih += '<div class="qmvi-common qmvi-dialog-input-title" onclick="qmvi_delete_saved_menu(event,document.getElementById(\'qmvi_as_mysaves\'),false)" style="position:absolute;z-index:1;top:0px;width:100%;text-align:right;color:#0033dd;cursor:default;"><img src="'+qmv.base+'images/color_arrow_right.gif" width=6 height=8 style="margin-right:4px;">Delete Selected</div>';
					ih += '</div>';

					ih += '<div class="qmvtree-input-container" style="padding:0px;height:auto;margin-bottom:10px;">';
					ih += '<select onclick="document.getElementById(\'qmvi_as_savename\').value = this.value" type="text" onkeypress="qm_kille(event,true)" id="qmvi_as_mysaves" class="qmvtree-input" size=8 style="padding:5px;width:100%;border-width:0px;border-style:none;border-color:#ffffff;position:relative;display:block;height:auto;"/>';
					ih +='<option>Loading...</option>';
					ih += '</select>';
					ih += '</div>';

				ih += '</div>';
			ih += '</div>';


		ih += '</div>';


	}
	else if (type=="open_account")
	{


	
		buttons = "Open|Cancel";
		title = "Open Saved Menu (My Account)";
		width = 400;
		
		ih += '<div style="padding:5px;">';

			
			ih += '<div style="padding:5px;">';
	
				ih += '<div class="qmvi-common qmvi-dialog-input-title" style="height:auto;margin-bottom:2px;position:relative;">My Saved Menus';
					ih += '<div class="qmvi-common qmvi-dialog-input-title" onclick="qmvi_delete_saved_menu(event,document.getElementById(\'qmvi_as_mysaves\'),true)" style="position:absolute;z-index:1;top:0px;width:100%;text-align:right;color:#0033dd;cursor:default;"><img src="'+qmv.base+'images/color_arrow_right.gif" width=6 height=8 style="margin-right:4px;">Delete Selected</div>';
				ih += '</div>';

				ih += '<div class="qmvtree-input-container" style="padding:0px;height:auto;margin-bottom:10px;">';
				ih += '<select type="text" onkeypress="qm_kille(event,true)" id="qmvi_as_mysaves" class="qmvtree-input" size=8 style="padding:5px;width:100%;border-width:0px;border-style:none;border-color:#ffffff;position:relative;display:block;height:auto;"/>';
				ih +='<option>Loading...</option>';
				ih += '</select>';
				ih += '</div>';

			ih += '</div>';


		ih += '</div>';


	}
	else if (type=="subposition")
	{

		buttons = "OK|Cancel";;
		title = "Sub Menu Positioning";
		width = 400;
		
		ih += '<div style="padding:5px;">';

			ih += '<div class="qmvi-publish-title" style="margin-bottom:10px;">Positioning Options</div>';

			ih += '<div style="padding:10px 20px 00px 20px;">';
			ih += '<table cellpadding=0 cellspacing=0 border=0 style="">';


				ih += '<tr>';
 
					ih += '<td><input id="qmvi_pos_options1" name="qmvi_pos_options" type="radio" checked value="select"></td>';
					ih += '<td><div style="width:20px;">&nbsp;</div></td>';
					ih += '<td class="qmvi-common qmvi-dialog-input-title" style="color:#222222;text-align:left;">Apply to this sub menu only</td>';


				ih += '</tr>';

				ih += '<tr><td><div style="font-size:1px;height:5px;"></div></td></tr>'

				ih += '<tr>';

					ih += '<td><input id="qmvi_pos_options2" name="qmvi_pos_options" type="radio" value="all"></td>';
					ih += '<td><div style="width:20px;">&nbsp;</div></td>';
					ih += '<td class="qmvi-common qmvi-dialog-input-title" style="color:#222222;text-align:left;">Apply to all sub menus</td>';

				ih += '</tr>';
					
				ih += '<tr><td><div style="font-size:1px;height:5px;"></div></td></tr>'

				ih += '<tr>';

					ih += '<td><input id="qmvi_pos_options3" name="qmvi_pos_options" type="radio" value="reset"></td>';
					ih += '<td><div style="width:20px;">&nbsp;</div></td>';
					ih += '<td class="qmvi-common qmvi-dialog-input-title" style="color:#222222;text-align:left;">Reset this sub to it\'s default position</td>';


				ih += '</tr>';

				ih += '<tr><td><div style="font-size:1px;height:5px;"></div></td></tr>'

				ih += '<tr>';

					ih += '<td><input id="qmvi_pos_options4" name="qmvi_pos_options" type="radio" value="reset all"></td>';
					ih += '<td><div style="width:20px;">&nbsp;</div></td>';
					ih += '<td class="qmvi-common qmvi-dialog-input-title" style="color:#222222;text-align:left;">Reset all subs to thier default positions</td>';


				ih += '</tr>';	


			ih += '</table>';
			ih += '</div>';

			ih += '<div style="font-size:1px;height:10px;"></div>';	

		ih += '</div>';


	}
	else if (type=="import_where")
	{


		buttons = "OK|Cancel";;
		title = "Import Menu Options";
		width = 420;
		
		ih += '<div style="padding:5px;">';

			ih += '<div style="padding:5px;">';	

				ih += 'Where would you like to apply the new menu structure?';

			ih += '</div>';

		

			ih += '<div style="padding:10px 20px 00px 20px;">';
			ih += '<table cellpadding=0 cellspacing=0 border=0 style="">';


				ih += '<tr>';
 
					ih += '<td><input name="qmviiw001" id="qmvi_import_where_selected" type="radio" checked></td>';
					ih += '<td><div style="width:10px;">&nbsp;</div></td>';
					ih += '<td class="qmvi-common qmvi-dialog-input-title" style="color:#222222;text-align:left;">Apply to the selected menu.</td>';

				ih += '</tr>';

				ih += '<tr><td><div style="font-size:1px;height:5px;"></div></td></tr>'
				
				ih += '<tr>';
 
					ih += '<td><input name="qmviiw001" id="qmvi_import_where_additional" type="radio"></td>';
					ih += '<td><div style="width:10px;">&nbsp;</div></td>';
					ih += '<td class="qmvi-common qmvi-dialog-input-title" style="color:#222222;text-align:left;">Apply as an additional menu.</td>';


				ih += '</tr>';
	

			ih += '</table>';
			ih += '</div>';

			ih += '<div style="font-size:1px;height:10px;"></div>';	

		ih += '</div>';
		

		
	}
	else if (type=="hoverfill_on")
	{


		buttons = "OK|Cancel";;
		title = "Apply Item Transparency";
		width = 400;
		
		ih += '<div style="padding:5px;">';

			ih += '<div style="padding:5px;">';	

				ih += 'The Hover Fill effect works by animating elements below the menu items.  Item background colors must be set transparent or they will block the Hover Fill from displaying.<br><br>Select the sections of your menu to remove item colors from, or you may manually set colors transparent with the CSS style settings.';			

			ih += '</div>';

		

			ih += '<div style="padding:10px 20px 00px 20px;">';
			ih += '<table cellpadding=0 cellspacing=0 border=0 style="">';


				ih += '<tr>';
 
					ih += '<td><input id="qmvi_hoverfill_main" type="checkbox" checked></td>';
					ih += '<td><div style="width:10px;">&nbsp;</div></td>';
					ih += '<td class="qmvi-common qmvi-dialog-input-title" style="color:#222222;text-align:left;">Main Menu Items</td>';


				ih += '</tr>';

				ih += '<tr><td><div style="font-size:1px;height:5px;"></div></td></tr>'
				
				ih += '<tr>';
 
					ih += '<td><input id="qmvi_hoverfill_sub" type="checkbox" checked></td>';
					ih += '<td><div style="width:10px;">&nbsp;</div></td>';
					ih += '<td class="qmvi-common qmvi-dialog-input-title" style="color:#222222;text-align:left;">Sub Menu Items</td>';


				ih += '</tr>';
	

			ih += '</table>';
			ih += '</div>';

			ih += '<div style="font-size:1px;height:10px;"></div>';	

		ih += '</div>';


	}
	else if (type=="structure")
	{

		buttons = "OK|Cancel";;
		title = "Menu Structure";
		width = 300;
		
		ih += '<div style="padding:5px;">';

			ih += '<div class="qmvi-publish-title" style="margin-bottom:10px;">HTML Structure Type (<span style="cursor:help;color:#ff3300;" onclick="qmv_html_structure_help()">?</span>)</div>';

			ih += '<div style="padding:10px 20px 00px 20px;">';
			ih += '<table cellpadding=0 cellspacing=0 border=0 style="">';


				ih += '<tr>';
 
					ih += '<td><input id="qmvi_structure_type1_pure" name="qmvi_structure_type1" type="radio" checked value="select"></td>';
					ih += '<td><div style="width:20px;">&nbsp;</div></td>';
					ih += '<td class="qmvi-common qmvi-dialog-input-title" style="color:#222222;text-align:left;">Pure CSS Structure (&lt;UL&gt;&lt;LI&gt;)</td>';


				ih += '</tr>';

				ih += '<tr><td><div style="font-size:1px;height:5px;"></div></td></tr>'

				ih += '<tr>';

					ih += '<td><input id="qmvi_structure_type1_hybrid" name="qmvi_structure_type1" type="radio" value="all"></td>';
					ih += '<td><div style="width:20px;">&nbsp;</div></td>';
					ih += '<td class="qmvi-common qmvi-dialog-input-title" style="color:#222222;text-align:left;">Hybrid Structure (&lt;DIV&gt;&lt;A&gt;)</td>';

				ih += '</tr>';
					
				


			ih += '</table>';
			ih += '</div>';

			ih += '<div style="font-size:1px;height:10px;"></div>';	

		ih += '</div>';


	}
	else if (type=="custom_rule")
	{

		if (owner)
		{
			buttons = "Delete Rule|Update Rule|Cancel";
			title = "Edit Custom CSS Rule";
		}
		else
		{
			buttons = "Add Rule|Cancel";
			title = "Add Custom CSS Rule";
		}

		
		width = 510;
		

		ih += qmv_custom_rule_dialog_content();


	}
	else if (type=="apply_custom_class")
	{

		buttons = "Add|Remove|Close";
		title = "Add / Remove Custom Classes";
		
		
		width = 400;
		

		ih += qmv_custom_class_dialog_content();


	}
	else if (type=="applydividers")
	{

		

		buttons = "OK|Apply|Cancel";;
		title = "Globally Apply / Remove Dividers";
		width = 410;
		
		ih += '<div style="padding:5px;">';

			ih += '<div class="qmvi-publish-title" style="margin-bottom:10px;">Dividers are applied to your existing items only, if your menu changes after using this feature you can re-apply the dividers with this dialog at any time.  Before the dividers are applied, any existing dividers are automatically removed.<br><br>Apply Dividers Where?</div>';

			ih += '<div style="padding:5px 20px 00px 20px;">';
			ih += '<table cellpadding=0 cellspacing=0 border=0 style="">';


				ih += '<tr>';
 
					ih += '<td><input id="qmvi_gld_main" name="qmvi_gld_main" type="checkbox" onclick="qmvi_gld_submain_checked(this)" value="select"></td>';
					ih += '<td><div style="width:7px;">&nbsp;</div></td>';
					ih += '<td nowrap class="qmvi-common qmvi-dialog-input-title" style="color:#222222;text-align:left;white-space:nowrap;">Main Menu</td>';

					ih += '<td><div style="width:40px;">&nbsp;</div></td>';	

					ih += '<td><input id="qmvi_gld_sub" name="qmvi_gld_sub" type="checkbox" onclick="qmvi_gld_submain_checked(this)" checked value="select"></td>';
					ih += '<td><div style="width:7px;">&nbsp;</div></td>';
					ih += '<td nowrap class="qmvi-common qmvi-dialog-input-title" style="color:#222222;text-align:left;white-space:nowrap;">Sub Menus</td>';

					ih += '<td><div style="width:40px;">&nbsp;</div></td>';	

					ih += '<td><input id="qmvi_gld_none" name="qmvi_gld_none" type="checkbox" onclick="qmvi_gld_none_checked(this)" value="select"></td>';
					ih += '<td><div style="width:7px;">&nbsp;</div></td>';
					ih += '<td nowrap class="qmvi-common qmvi-dialog-input-title" style="color:#222222;text-align:left;white-space:nowrap;">Remove</td>';


				ih += '</tr>';
	

			ih += '</table>';
			ih += '</div>';

			ih += '<div style="font-size:1px;height:30px;"></div>';	


			
			ih += '<div class="qmvi-publish-title" style="margin-bottom:10px;">Add Extra Dividers...</div>';

			ih += '<div style="padding:5px 20px 00px 20px;">';
			ih += '<table cellpadding=0 cellspacing=0 border=0 style="">';


				ih += '<tr>';
 
					ih += '<td><input id="qmvi_gld_above" name="qmvi_gld_above" type="checkbox" value="select"></td>';
					ih += '<td><div style="width:8px;">&nbsp;</div></td>';
					ih += '<td class="qmvi-common qmvi-dialog-input-title" style="color:#222222;text-align:left;">Before the first item in the group.</td>';


				ih += '</tr>';

				ih += '<tr><td><div style="font-size:1px;height:5px;"></div></td></tr>'

				ih += '<tr>';

					ih += '<td><input id="qmvi_gld_below" name="qmvi_gld_below" type="checkbox" value="all"></td>';
					ih += '<td><div style="width:8px;">&nbsp;</div></td>';
					ih += '<td class="qmvi-common qmvi-dialog-input-title" style="color:#222222;text-align:left;">After the last item in the group.</td>';

				ih += '</tr>';
	

			ih += '</table>';
			ih += '</div>';

			ih += '<div style="font-size:1px;height:20px;"></div>';	


		ih += '</div>';


	}
	else if (type=="applystripes")
	{



		buttons = "OK|Apply|Cancel";;
		title = "Globally Apply Item Striping";
		width = 410;
		
		ih += '<div style="padding:5px;">';

			ih += '<div class="qmvi-common qmvi-dialog-input-title" style="margin-bottom:10px;">Striping applies unique styles to every other item, this helps the user individualize a vertical list of options.</div>';
			ih += '<div style="font-size:1px;height:10px;"></div>';	
			
			ih += '<div class="qmvi-publish-title" style="margin-bottom:10px;">Apply Stripes Starting With...</div>';
			ih += '<div style="padding:5px 20px 0px 20px;">';
			ih += '<table cellpadding=0 cellspacing=0 border=0 style="">';


				ih += '<tr>';
 
					ih += '<td><input id="qmvi_stripe_where_first" name="qmvi_stripe_where" type="radio" value="select"></td>';
					ih += '<td><div style="width:8px;">&nbsp;</div></td>';
					ih += '<td class="qmvi-common qmvi-dialog-input-title" style="color:#222222;text-align:left;">The First Item in the Group</td>';


				ih += '</tr>';

				ih += '<tr><td><div style="font-size:1px;height:5px;"></div></td></tr>'

				ih += '<tr>';

					ih += '<td><input id="qmvi_stripe_where_second" name="qmvi_stripe_where" type="radio" value="all"></td>';
					ih += '<td><div style="width:8px;">&nbsp;</div></td>';
					ih += '<td class="qmvi-common qmvi-dialog-input-title" style="color:#222222;text-align:left;">The Second Item in the Group</td>';

				ih += '</tr>';

				ih += '<tr><td><div style="font-size:1px;height:5px;"></div></td></tr>'

				ih += '<tr>';

					ih += '<td><input id="qmvi_stripe_where_remove" name="qmvi_stripe_where" type="radio" value="all"></td>';
					ih += '<td><div style="width:8px;">&nbsp;</div></td>';
					ih += '<td class="qmvi-common qmvi-dialog-input-title" style="color:#222222;text-align:left;">Remove All Stripes</td>';

				ih += '</tr>';
	

			ih += '</table>';
			ih += '</div>';

			ih += '<div style="font-size:1px;height:20px;"></div>';	


		ih += '</div>';


	}
	else if (type=="splash")
	{
		
		
		buttons = "<< Previous|Next >>|Close";
		title = "Welcome To Visual QuickMenu";
		width = 612;
		

		qmv.dyk_num = 1;
		qmv.dyk_max = 20;
		
		
		ih += '<div style="padding:10px;">';

			ih += '<div style="margin-bottom:15px;">';			
				ih += '<table cellpadding=0 cellspacing=0 border=0><tr>';
				ih += '<td style="vertical-align:top;"><div style="font-size;1px;height:16px;width:16px;background-image:url('+qmv.base+'help/images/oc_logo.gif);"></div></td>';
				ih += '<td><div style="font-size:1px;width:5px;"></div></td>';
				ih += '<td style="vertical-align:top;padding-top:1px;"><div class="qmvi-dialog-input-title">Did You Know?</div></td>';
				ih += '</tr></table>';
			ih += '</div>';
			
			ih += '<div class="" style="border-style:solid;border-width:1px;border-color:#777777;">';
			ih += "<iframe id='qmvi_dyk_tips' onmouseover='qmv_fix_iframe_title_drag()'  frameborder=none style='border-style:none;background-color:#ffffff;width:570px;height:300px;margin:0px;padding:0px;'></iframe>";
			ih += '</div>';

		ih += '</div>';


	}
	else if (type=="specs")
	{
		
		
		buttons = "Close";
		title = "QuickMenu Specs [All Menus]";
		width = 400;
		var tsize = 0;
		var t;	
		var is_addons = false;	


		ih += '<div style="padding:5px;">';


			ih += '<div class="qmvi-dialog-input-title" style="margin-bottom:15px;">The minimum total size represents the size of the menu if using the \'Quick Publish\' feature. Custom publish options may add 1K - 2k of extra size to your menu.</div>';

			ih += '<div class="qmvi-publish-title" style="border-width:1px;padding:3px;border-style:solid;border-color:#888888;background-color:#d5d5d5;color:#333333">CSS</div>';
			ih += '<div style="padding:10px 10px 10px 10px;background-color:#ffffff;border-color:#888888;border-width:0px 1px 0px 1px;border-style:solid;">';
			ih += '<table cellpadding=0 cellspacing=0 width=100%>';	

			t = qmv_pubgen_get_core_css().length;
			t = qmv_lib_get_kilobytes(t,true);
			tsize += parseFloat(t);	
			ih += '<tr>';
			ih += '<td style="vertical-align:top;color:#444444;width:100%;font-size:13px;">Core CSS:</td>'
			ih += '<td><div style="font-size:1px;width:15px;"></div></td>'
			ih += '<td style="color:#222222;width:50px;text-align:right;vertical-align:top;padding-bottom:2px;white-space:nowrap;font-size:13px;" nowrap>'+t+'</td>'
			ih += '</tr>';

			t = qmv_pubgen_css().length;
			t = qmv_lib_get_kilobytes(t,true);
			tsize += parseFloat(t);
			ih += '<tr>';

			ih += '<td style="vertical-align:top;color:#444444;font-size:13px;">Custom Menu Styles (All):</td>'
			ih += '<td><div style="font-size:1px;width:15px;"></div></td>'
			ih += '<td style="color:#222222;width:50px;text-align:right;vertical-align:top;padding-bottom:2px;white-space:nowrap;font-size:13px;">'+t+'</td>'
			ih += '</tr>';

			ih += '</table>';
			ih += '</div>';



			ih += '<div class="qmvi-publish-title" style="border-width:1px;padding:3px;border-style:solid;border-color:#888888;background-color:#d5d5d5;color:#333333">JavaScript</div>';
			ih += '<div style="padding:10px 10px 10px 10px;background-color:#ffffff;border-color:#888888;border-width:0px 1px 0px 1px;border-style:solid;">';
			ih += '<table cellpadding=0 cellspacing=0 width=100%>';
			
			t = qmv_get_source_code_core().length;
			t = qmv_lib_get_kilobytes(t,true);
			tsize += parseFloat(t);	
			ih += '<tr>';
			
			ih += '<td style="vertical-align:top;color:#444444;width:100%;font-size:13px;">Core Menu Code:</td>'			
			ih += '<td><div style="font-size:1px;width:15px;"></div></td>'
			ih += '<td style="color:#222222;width:50px;text-align:right;vertical-align:top;padding-bottom:2px;white-space:nowrap;font-size:13px;" nowrap>'+t+'</td>'
			
			ih += '</tr>';


			if (qmv.pure)
			{	
				

				t = qmv_get_pure_css_javascript().length;
				t = qmv_lib_get_kilobytes(t,true);
				tsize += parseFloat(t);	
				ih += '<tr>';
			
				ih += '<td style="vertical-align:top;color:#444444;width:100%;font-size:13px;">Pure CSS / Hybrid Converter:</td>'			
				ih += '<td><div style="font-size:1px;width:15px;"></div></td>'
				ih += '<td style="color:#222222;width:50px;text-align:right;vertical-align:top;padding-bottom:2px;white-space:nowrap;font-size:13px;" nowrap>'+t+'</td>'
			
				ih += '</tr>';
			}

			/*
			if (qmv.unlock_type && qmv.unlock_type=="single")
			{	
				

				t = qmv_get_unlock_statement().length;
				t = qmv_lib_get_kilobytes(t,true);
				tsize += parseFloat(t);	
				ih += '<tr>';
			
				ih += '<td style="vertical-align:top;color:#444444;width:100%;font-size:13px;">Single Site Unlock:</td>'			
				ih += '<td><div style="font-size:1px;width:15px;"></div></td>'
				ih += '<td style="color:#222222;width:50px;text-align:right;vertical-align:top;padding-bottom:2px;white-space:nowrap;font-size:13px;" nowrap>'+t+'</td>'
			
				ih += '</tr>';
			}
			*/

			t = qmv_specs_get_addon_html();
			if (t[1]) is_addons = true;
			tsize += t[1];
			ih += t[0];


			ih += '</table>';
			ih += '</div>';


			
			ih += '<div class="qmvi-publish-title" style="border-width:1px;padding:3px;border-style:solid;border-color:#888888;background-color:#d5d5d5;color:#333333">HTML</div>';
			ih += '<div style="padding:10px 10px 15px 10px;background-color:#ffffff;border-color:#888888;border-width:0px 1px 0px 1px;border-style:solid;">';
			ih += '<table cellpadding=0 cellspacing=0 width=100%>';	

			for (var p=0;p<10;p++)
			{
				if (document.getElementById("qm"+p))
				{
					t = qmv_pubgen_structure(null,null,null,null,p+"l").length;
					t = qmv_lib_get_kilobytes(t,true);
					tsize += parseFloat(t);
					ih += '<tr>';
					ih += '<td style="vertical-align:top;color:#444444;font-size:13px;">Menu Structure '+p+':</td>'
					ih += '<td><div style="font-size:1px;width:15px;"></div></td>'
					ih += '<td style="color:#222222;width:50px;text-align:right;vertical-align:top;padding-bottom:2px;white-space:nowrap;font-size:13px;" nowrap>'+t+'</td>'

					ih += '</tr>';
				}
			}

			ih += '</table>';
			ih += '</div>';
	
			ih += '<div class="qmvi-publish-title" style="font-weight:normal;border-width:1px;padding:3px;padding-right:15px;border-style:solid;border-color:#888888;background-color:#d5d5d5;color:#333333;text-align:right;">Minimum Total Size</div>';
			ih += '<div style="padding:10px 10px 10px 10px;background-color:#ffffff;border-color:#888888;border-width:0px 1px 1px 1px;border-style:solid;">';
			ih += '<table cellpadding=0 cellspacing=0 width=100%>';	





			var spure = qmv.pure;
			qmv.pure = false;
			qmv_set_publish_menus_object();
			var tquick = qmv_lib_get_kilobytes(qmv_pubgen_all_external(true).length,true);
			qmv.pure = spure;


			//t = qmv_lib_get_kilobytes(parseInt(tsize*1024),true);
			ih += '<tr>';
			ih += '<td align=right style="color:#dd3300;width:100%;text-align:right;vertical-align:top;white-space:nowrap;font-size:13px;">'+tquick+'</td>'
			ih += '</tr>';

			ih += '</table>';
			ih += '</div>';


		ih += '</div>';


	}
	else if (type=="zoom")
	{
		

		buttons = "OK|Cancel|Apply";
		title = "Text Zoom";
		width = 560;
		
		
		ih += '<div class="qmvtree-input-container-dialog" style="height:290px;">';
		ih += '<textarea  onkeypress="qm_kille(event,true)" id="qmvi_df_zoomt" class="qmvtree-input" style="height:290px;position:relative;width:100%;"></textarea>';
		ih += '</div>';

	}
	else if (type=="warning-undo")
	{

		buttons = "OK";
		title = "Warning!";
		
		ih = message;

	}
	else if (type=="alert")
	{

		buttons = "OK";
		ih = message;

		if (!from_event_log)
		{
			if (ih.toLowerCase().indexOf("warning")+1)
				qmvi_report_add_line("warnings","warnings","","",ih,width);
			else
				qmvi_report_add_line("info","info","","",ih,width);
		}

	}	
	else if (type=="question-okcancel")
	{

		buttons = "OK|Cancel";
		ih = message;
	}
	else if (type=="question-yesno")
	{

		buttons = "Yes|No";
		ih = message;
	}
	else if (type=="question-yesnocancel")
	{

		buttons = "Yes|No|cancel";
		ih = message;
	}	
	else if (type=="question-okcancel-input")
	{

		buttons = "ok|cancel";
		
		
		ih += '<div style="padding:5px;">';
	
			ih += '<div class="qmvi-common qmvi-dialog-input-title" style="margin-bottom:2px;">'+message+'</div>';
			ih += '<div class="qmvtree-input-container" style="height:16px;margin-bottom:10px;">';
			ih += '<input type="text" onkeypress="qm_kille(event,true)" value="'+defval+'" id="qmvi_ok_input" class="qmvtree-input" style="">';
			ih += '</div>';

		ih += '</div>';



	}
	else if (type=="question-okcancel-input2")
	{

		buttons = "ok|cancel";
		
		
		ih += '<div style="padding:5px;">';
	
			var msg = message.split("|");
			var df = defval.split("|");
			

			ih += '<div class="qmvi-common qmvi-dialog-input-title" style="margin-bottom:2px;">'+msg[0]+'</div>';

			ih += '<div class="qmvi-common qmvi-dialog-input-title" style="margin-bottom:2px;margin-top:15px;">'+msg[1]+'</div>';

			ih += '<div class="qmvtree-input-container" style="height:16px;margin-bottom:10px;">';
			ih += '<input type="text" onkeypress="qm_kille(event,true)" value="'+df[0]+'" id="qmvi_ok_input1" class="qmvtree-input" style="">';
			ih += '</div>';

			ih += '<div class="qmvi-common qmvi-dialog-input-title" style="margin-bottom:2px;">'+msg[2]+'</div>';

			ih += '<div class="qmvtree-input-container" style="height:16px;margin-bottom:10px;">';
			ih += '<input type="text" onkeypress="qm_kille(event,true)" value="'+df[1]+'" id="qmvi_ok_input2" class="qmvtree-input" style="">';
			ih += '</div>';

		ih += '</div>';



	}
	else if (type=="find text")
	{

		buttons = "Find Next|Close";
		title = "Find Text";
		width = 400;
				

		ih += '<div style="padding:10px 5px 5px 5px;">';
	

			if (qmv.is_chrome)
			{
				
				ih += '<table celpadding=0 cellspacing=0><tr>';
	
					ih += '<td><div class="qmvi-common qmvi-dialog-input-title" onclick="" style="margin:0px 0px 2px 0px;cursor:pointer;">Find What?</div></td>';
					
				ih += '</tr></table>';

			}
			else
			{
				ih += '<div class="qmvi-common qmvi-dialog-input-title" style="margin-bottom:2px;">Define images relative to this document or use absolute (http://...) paths.  We recommend using absolute paths if you plan on publishing to a different folder structure.  This way images will be visible while designing and after publishing.<br><br>Image URL</div>';
			}

			ih += '<div class="qmvtree-input-container" style="height:16px;margin-bottom:10px;">';
			ih += '<input type="text" onkeypress="qm_kille(event,true)" value="'+defval+'" id="qmvi_find_text" class="qmvtree-input" style="">';
			ih += '</div>';

		ih += '</div>';

	}
	else if (type=="image")
	{

		buttons = "ok|cancel|apply";

		if (qmv.is_chrome)
			title = "Image File / URL";
		else
			title = "Image URL";

		width = 540;
		
		

		ih += '<div style="padding:5px;">';
	



			if (qmv.is_chrome)
			{
				ih += '<div class="qmvi-common qmvi-dialog-input-title" style="margin-bottom:20px;">Use the \'choose image file\' option below or type an absolute (http://...) path.  Use absolute paths if you plan on changing your sites folder structure.  This way images will be visible regardless of their final location.</div>';
				
				ih += '<table celpadding=0 cellspacing=0><tr>';
	
					ih += '<td><div class="qmvi-common qmvi-dialog-input-title" onclick="" style="margin:0px 0px 2px 0px;cursor:pointer;">Image File / URL</div></td>';
					ih += '<td style="width:5px;"></td>';
					ih += '<td><div class="qmvi-common qmvi-dialog-input-title" onclick="" style="margin:0px 0px 2px 0px;cursor:pointer;">(</div></td>';
					ih += '<td style="-moz-user-select:none;"><div class="qmvi-common qmvi-dialog-input-title" onclick="qmv_apub_choose_image_file(document.getElementById(\'qmvi_dg_image\'))" style="color:#0033dd;margin:0px 0px 2px 0px;cursor:pointer;"><img src="'+qmv.base+'images/color_arrow_right.gif" width=6 height=8 style="margin-right:4px;">Choose Image File</div></td>';
					ih += '<td><div class="qmvi-common qmvi-dialog-input-title" onclick="" style="margin:0px 0px 2px 0px;cursor:pointer;">)</div></td>';

				ih += '</tr></table>';

			}
			else
			{
				ih += '<div class="qmvi-common qmvi-dialog-input-title" style="margin-bottom:2px;">Define images relative to this document or use absolute (http://...) paths.  We recommend using absolute paths if you plan on publishing to a different folder structure.  This way images will be visible while designing and after publishing.<br><br>Image URL</div>';
			}

			ih += '<div class="qmvtree-input-container" style="height:16px;margin-bottom:10px;">';
			ih += '<input type="text" onkeypress="qm_kille(event,true)" value="'+defval+'" id="qmvi_dg_image" class="qmvtree-input" style="">';
			ih += '</div>';

		ih += '</div>';

	}
	else if (type.indexOf("help")+1)
	{

		
		buttons = "close";
		title = "Help";
		if (qmad.br_fox)
			width = 634;
		else
			width = 630;


		var rn = document.getElementById("qmvi_help_iframe");
		if (rn)	rn[qp].removeChild(rn);

		
		var uh = 400;
		if (type=="help-about")
			uh = 260;
		
		
		ih += "<div style='padding:5px;'>";
		ih += "<div>";

		if (message.indexOf("about.html")==-1)
		{
		
			ih += "<div class='qmvi-common' style='margin:0px 0px 6px 0px;'>";	

				ih += "<table cellspacing=0 cellpadding=0 border=0><tr>"			
			
					if (!qmv.is_chrome)
					{
						ih+="<td><div title='Back' onclick=\"qmvi_help_navigate('back')\" class='qmv-icon-buttons' style='padding:0px;font-size:1px;width:18px;height:18px;background-image:url("+qmv.base+"images/help_back.gif);'></div></td>";
						ih+="<td><div title='Forward' onclick=\"qmvi_help_navigate('forward')\" class='qmv-icon-buttons' style='padding:0px;font-size:1px;width:18px;height:18px;background-image:url("+qmv.base+"images/help_forward.gif);'></div></td>";
						ih+="<td><div style='font-size:1px;width:5px;'></div></td>";
					}
					ih+="<td><div title='Home' onclick=\"qmvi_help_navigate('home')\" class='qmv-icon-buttons' style='padding:0px;font-size:1px;width:18px;height:18px;background-image:url("+qmv.base+"images/help_home.gif);'></div></td>";
				
				ih += "</tr></table>";		
		
			ih += "</div>";
		}


		if (!qmv.helpnum)
			qmv.helpnum=1;
		else
			qmv.helpnum++;	

		qmv.base+"help/"+message.substring(5)
		ih += "<iframe src='"+qmv.base+"help/"+message.substring(5)+"' id='qmvi_help_iframe"+qmv.helpnum+"' name='qmvi_help_iframe_window"+qmv.helpnum+"' onmouseover='qmv_fix_iframe_title_drag()' style='background-color:#ffffff;width:600px;height:"+uh+"px;margin:0px;padding:0px;'></iframe>";
		
				
		ih += "</div>";
		ih += "</div>";

	}

	
	
	document.getElementById("qmvi_"+mg+"dialog_content").innerHTML = ih;
	document.getElementById("qmvi_"+mg+"dialog_title").innerHTML = title;


	//set the buttons
	var bc = document.getElementById("qmvi_"+mg+"dialog_buttons");
	var bs = buttons.split("|");
	var bt = "";
	var addtrue = "";
	if (message) addtrue = ",true";	
	if (message && message.indexOf("help-")+1) addtrue = ",false,true";
	if (ftop) addtrue = ",false,false,true";
		
	for (var i=0;i<bs.length;i++)
		bt += '<input id="qmv_dialog_button'+i+'" onclick="qmv_dialog_button_click(this'+addtrue+')" class="qmvi-common qmvi-dialog-button" type="button" value="'+bs[i]+'">';


	bc.innerHTML = bt;


	var qmd = document.getElementById("qmvi_"+mg+"dialog");
	var shadow = document.getElementById("qmvi_"+mg+"dialog_shadow");



	qmd.buttons = buttons;
	qmd.type = type;
	qmd.owner = owner;
	qmd.code = code;
	qmd.code1 = code1;

	qmd.style.width = width+"px";
	qmv_lib_center_element_in_window(qmd);
	qmd.style.visibility = "visible";

		
	shadow.style.width = qmd.offsetWidth+"px";
	shadow.style.height = qmd.offsetHeight+"px";
	shadow.style.top = parseInt(qmd.style.top)+3+"px";
	shadow.style.left = parseInt(qmd.style.left)+3+"px";
	shadow.style.visibility = "visible";


	qmv.anchor_dialog_visible = false;	

	

	if (type=="color")
		qmv_color_init(owner.value);
	else if (type=="url")
	{
		qmv.anchor_dialog_visible = true;
		qmv_url_init();
	}
	else if (type=="multi")
		qmv_multi_init(qmd);
	else if (type=="edge")
		qmv_edge_init(qmd);
	else if (type=="preview")
	{
		qmv_preview_init();
		
	}
	else if (type.indexOf("publish")+1)
	{
		

		if (type=="publish_auto")
		{
			qmv_apub_init();
			document.getElementById("qmvi_publish_auto_st_menuid").innerHTML = "qm"+qmv.id;
		}
		else if (type.indexOf("quick_publish")==-1)
		{
	
			qmv_publish_init(qmd);
			if (type=="publish4")
			{
				var isext = false;
				if (qmv.publish.structure_type=="external") isext = true;

				var is_title = false;
				if (!isext) is_title = true;

				document.getElementById("qmvi_publish_structure_content").value = qmv_pubgen_structure(isext,null,null,is_title);

			}
	

		}
		

	}
	else if (type=="puboptions")
	{

		qmv_apub_puboptions_init(defval);

	}
	else if (type=="options")
		qmv_options_init(qmd);
	else if (type=="save_account")
		qmv_save_account_dialog_init(qmd);
	else if (type=="open_account")
		qmv_open_account_dialog_init(qmd);	
	else if (type=="image")
		qmv_image_init(qmd);
	else if (type=="save")
	{
		document.getElementById("qmvi_publish_save_content").value = qmv_savegen();
		qmv_track_it("save");

		qmvi_alert_features_locked();

	}
	else if (type=="create_component")
	{
		document.getElementById("qmvi_publish_component_content").value = qmv_savegen(true);
		qmv_track_it("save");
	}
	else if (type.indexOf("devpub")+1)
	{
		if (type.indexOf("css")+1)
			document.getElementById("qmvi_publish_devpub_content").value = qmvi_tplate_devpublish_css();
		
	}
	else if (type=="zoom")
	{
		
		document.getElementById("qmvi_df_zoomt").value = owner.value;		
	}
	else if (type=="splash")
	{

		var tb0 = document.get
