var CGInfo = Class.create();
CGInfo.prototype = {
	//  Initialize
	initialize: function(options) {

	    this.options = Object.extend({
		classNames : {
	        flashContainer : 'flashcontent'
	      }
	    }, options || {});
	},
	
	setHeight : function(value){
		$$('#' + this.options.classNames.flashContainer).first().setStyle({
			height: value + "px"
		});
	},
	
	scrollToTop : function(){
		scrollTo( 0, 0 );
	},
	
	openExternal : function(url, width, height){
		lp = ( screen.availWidth - width ) / 2 ;
		tp = ( screen.availHeight - height ) / 2;
		set = 'height=' + height + ', width=' + width + ', top=' + tp + ', left=' + lp + ', scrollbars=no, resizable=no';
		f = window.open( url, "casualgames", set );
	 	f.focus();
	},

	dummy : function(){
	}
}



document.observe('dom:loaded',function(){
	myCGInfo = new CGInfo();
});
