var TutvWidget = {
	cols : 1,
	width : 300,
	height : 300,
	num : 6,
	category : 0,
	title : '',
	author : '',
	images : 'false',
	
	init : function(prm) {
		for (var n in this) { if (prm[n] && n != 'init' && n != 'test') this[n] = prm[n]; }
		var params = '';
		for (var p in this) { if (p != 'init' && p != 'test') params = params + p + '=' + this[p] + '&'; }
		params = params.substr(0, (params.length - 1));
		if (this.height < 200) this.height=200;
		if (this.width < 100) this.width=100;
		document.write('<iframe src="http://tu.tv/widgets/widget.php?'+params+'" width="'+this.width+'px" height="'+this.height+'px" style="border: 0px none;" frameborder="0"></iframe>');
	},
	test : function(prm) {
		for (var n in this) { if (prm[n] && n != 'init' && n != 'test') this[n] = prm[n]; }
		var params = '';
		for (var p in this) { if (p != 'init' && p != 'test') params = params + p + '=' + this[p] + '&'; }
		params = params.substr(0, (params.length - 1));
		if (this.height < 200) this.height=200;
		if (this.width < 100) this.width=100;
		return '<iframe src="http://tu.tv/widgets/widget.php?'+params+'" width="'+this.width+'px" height="'+this.height+'px" style="border: 0px none;" frameborder="0"></iframe>';
		
	}
};

