var LayeredSpawner = Class.create();

LayeredSpawner.prototype = {
	initialize:function(TargetURL,WindowName,contentWidth,contentHeight) {
	this.URL = TargetURL;
	this.WindowTag = WindowName;
	this.originWidth = contentWidth;
	this.originHeight = contentHeight;
	this.windowWidth = contentWidth+2;
	this.windowHeight = contentHeight+16;
	},
	
	spawn:function() {
	return gidLib.layeredPopup.openLayeredPopup({str:this.URL,id:this.WindowTag,width:this.windowWidth,height:this.windowHeight});
	},
	
	nonLayeredSpawn:function() {
	window.open(this.URL,this.WindowTag,'status=yes, toolbar=no, location=no, menubar=no, resizable=yes, scrollbars=yes, width='+this.originWidth+',height='+this.originHeight);
	}
};

Event.observe(window,'load',function() {

var FSFRInfo = new LayeredSpawner('/customerService/info.do?cid=22151', 'PiperlimeShip', 337, 235);
$('FSFRLink').onclick = function() {FSFRInfo.spawn(); return false;};

});

