/* last modified: 2009-01-13 20:35:29 */

var BaroslizedCounter = {
	'src': '/global/counter/barosl_counter.swf',

	'started': parseInt(new Date().getTime()/1000),

	'on_connect': function() {
		var counter = document.getElementById('barosl_counter');
		if (!counter) return;

		try {
			counter.set_param('url', location.href);
			counter.set_param('started', BaroslizedCounter.started);
		} catch (e) { }
	},

	'count': function(cnt, all_cnt) {
		var output = document.getElementById('barosl_counter_output');
		if (!output) return;

		output.innerHTML = BaroslizedCounter.format_count(cnt, all_cnt);
	},

	'format_count': function(cnt, all_cnt) {
		return '(동접: '+cnt+'명/'+all_cnt+'명)'; // return cnt+'/'+all_cnt;
	}
};

if (typeof(ActiveXObject) == 'function') document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" id="barosl_counter" style="width: 0; height: 0; position: absolute;"><param name="movie" value="'+BaroslizedCounter.src+'" /></object>');
else document.write('<embed src="'+BaroslizedCounter.src+'" type="application/x-shockwave-flash" id="barosl_counter" style="width: 0; height: 0; position: absolute;"></embed>');

BaroslizedCounter.count(0, 0); /* it requires this file to be included AFTER the output element */
