/*
Name: gb_eventpreview.js
Description: Uses Greybox framework for EventPreview signup
Dependancy: Greybox, BrowserDetect

Modification History:
who		date		what
dahh	2010/04/27	Original, uses BrowserDetect for Win/FF which gets a JS popup
*/

GB_eventpreviewSignup = function(caption, url, /* optional */ height, width, callback_fn) {
    var options = {
        caption: caption,
        height: height || 590,
        width: width || 680,
        fullscreen: false,
        show_loading: false,
        callback_fn: callback_fn
    }
    if (BrowserDetect.browser == "Firefox" && BrowserDetect.OS == "Windows") {
    	var win = window.open(url,"eventpreviewSignup", "height="+height+",width="+width);
    	return false;
    } else {
    	var win = new GB_Window(options);
    	return win.show(url);
    }
}

