<?xml version="1.0" ?>
<klip>
	<owner>
		<author>GAYS about</author>
		<copyright>Copyright © 1998 - 2007 GAYS about. Alle Rechte vorbehalten.</copyright>
		<email>redaktion@gays-about.net</email>
		<web>http://www.gays-about.net</web>
	</owner>
	<identity>
		<title>GAYS about</title>
		<uniqueid>ga20040322130839</uniqueid>
		<version>2.04</version>
		<lastmodified>2007.09.30:1703</lastmodified>
		<description>Nachrichten, Reportagen, Trends, Tipps und mehr für Lesben, Schwule, Transgender und Freunde.</description>
		<keywords>gays about homosexuell homo lesbisch schwul gay queer community chat magazin nachrichten informationen infos news</keywords>
	</identity>
	<locations>
		<defaultlink>http://www.gays-about.net</defaultlink>
		<contentsource></contentsource>
		<icon>http://www.gays-about.net/res/klipfolio/logo.gif</icon>
		<banner>http://www.gays-about.net/res/klipfolio/banner.gif</banner>
		<help></help>
		<kliplocation>http://www.gays-about.net/gays-about.klip</kliplocation>
	</locations>
	<requires>
		<version>3.0</version>
	</requires>
	<setup>
		<refresh>30</refresh>
		<referer>klipfolio_v2.02</referer>
		<country>de</country>
		<language>de</language>
		<codepage></codepage>
		<report>true</report>
	</setup>
	<messages>
		<loading></loading>
		<nodata></nodata>
	</messages>
	<style>
		item {
			type: item;
		}
		image {
			itemcol: 1;
			noterow: 1;
			notelabel: false;
			type: image;
			height: 3;
		}
		title {
			itemcol: 2;
			noterow: 3;
			notelabel: false;
			emphasis: strong;
		}
		description {
			noterow: 4;
			notelabel: false;
		}
		category {
			noterow: 2;
			notelabel: false;
		}
		date {
			noterow: 5;
			label: 'Stand';
		}
		author {
			noterow: 6;
			label: 'Autor';
		}
		link {
			type: link;
		}
		guid {
			key: override;
		}
	</style>
	<klipscript>
		<![CDATA[
var categories = new Array (
	"+Artikel im Magazin", "http://www.gays-about.net/magazin.food",
	"+Beiträge in den Foren", "http://www.gays-about.net/foren.food"
);

var checkbox_objects = new Array ();

function onLoad() {
	Setup.addTab("Rubriken");
	Setup[0].addText('Über welche Rubriken möchtest du informiert werden?');
	configured = (Prefs.getPref('configured') == 'true');
	for (var i = 0; i < categories.length / 2; i++) {
		is_checked = (categories [2*i][0] == '+');
		if (!configured && is_checked) {
			Prefs.setPref ("cbx"+i, 'true');
		}
		checkbox_objects[i] = Setup[0].addCheckbox(is_checked ? categories[2 * i].substring(1) : categories[2 * i]);
		checkbox_objects[i].onClick = cbxClick;
		checkbox_objects[i].idx = i;
		checkbox_objects[i].checked = (configured ? (Prefs.getPref("cbx" + i) == 'true') : is_checked);
	}
}

function cbxClick(state) {
	Prefs.setPref('configured', 'true');
	Prefs.setPref("cbx" + this.idx, (state ? "true" : "false"));
	for (var i = 0; i < Items.length; ++i) {
		if (Items[i].extra == '' + this.idx) {
			if (state) {
				Items[i].hidden = false;

			} else {
				Items[i].hidden = true;
			}
		}
	}
	if (state) {
		Klip.requestRefresh();
	}
}

function onRefresh() {
	for (var i = 0; i < Items.length; i++) {
		Items[i].tagged = true;
	}
	result = false;
	for (var i = 0; i < checkbox_objects.length; i++) {
		if (checkbox_objects[i].checked) {
			result = getData(categories[2 * i + 1], '' + i) || result;
		}
	}
	return result;
}

function getData(url, idx) {
	req = Engines.HTTP.newRequest(url);
	if (req.send()) {
		Engines.KlipFood.process(req.response);
		for (var i = 0; i < Items.length; i++) {
			if (!Items[i].tagged) {
				Items[i].extra = idx;
				Items[i].tagged = true;
			}
		}
		return true;
	}
	return false;
}
		]]>
	</klipscript>
</klip>
