function PDRTJS_RATING_TOP( posts_id, pages_id, comments_id, seq, item_count ) {

	var server = 'http://polldaddy.com';

	function $( id ) {
		return document.getElementById( id );
	}

	this.make_call = function ( url ) {
		
		var s = document.createElement( 'SCRIPT' );
		s.charset = 'utf-8';
		s.src = server + url;
		var h = document.getElementsByTagName( 'head' ).item( 0 );
		h.appendChild( s );
	}

	this.get_top = function( content, period ){

		id = 0;
		
		switch ( content ) {
			case 'posts':
				id = posts_id;
				break;
			case 'pages':
				id = pages_id;
				break;
			case 'comments':
				id = comments_id;
				break;
		}
		
		this.make_call( '/ratings/rating-top.php?id=' + id + '&period=' + period + '&content=' + content + '&seq=' + seq + '&item_count=' + item_count );
	}
	
	this.get_top( 'posts', '7' );
}
