GB_myShow = function(caption, url, votehash, feed, /* optional */ height, width, callback_fn) {
	if (caption.length>68) { caption=caption.substring(0,68) };
	if (getCookie('atn_newwinonly')!=null && getCookie('atn_newwinonly')=='on') {
		goT();
		window.open(BASEURL+"?op=newwinopen&url="+escape(url)+"&votehash="+escape(votehash)+"&linktitle="+escape(caption),'win','location=no,resizable=yes');
		return false;
	}
	var showvotebtns;
	if (!hasvoted(votehash)) { showvotebtns=true } else {showvotebtns=false};
    var options = {
        caption: caption,
        height: height || getDims('y')*0.9,
        width: width || getDims('x')*0.9,
        fullscreen: true,
        show_loading: false,
        callback_fn: myshowcallback_fn,
		allowextopen: true,		
		sharable: true,		
		showvote: showvotebtns,
		votehash: votehash,
		voteupimg: upimg,
		votedownimg: downimg,
		extopenurl: BASEURL+"?op=newwinopen&url="+escape(url)+"&votehash="+escape(votehash)+"&linktitle="+escape(caption)
    }
    var win = new GB_Window(options);
    return win.show(url);
}
GB_myShowAll = function(caption, url, /* optional */ height, width, callback_fn) {
    var options = {
        caption: caption,
        height: height || getDims('y')*0.9,
        width: width || getDims('x')*0.9,
        fullscreen: true,
		allowextopen: false,
		sharable: false,		
        show_loading: true,
        callback_fn: showallcallback_fn,
		showvote: false
    }
    var win = new GB_Window(options);
    return win.show(url);
}
GB_myShowConfig = function(caption, url, /* optional */ height, width, callback_fn) {
    var options = {
        caption: caption,
        height: height || getDims('y')*0.9,
        width: width || getDims('x')*0.9,
        fullscreen: true,
        show_loading: false,
        callback_fn: configcallback_fn,
		showvote: false
    }
    var win = new GB_Window(options);
    return win.show(url);
}
function myshowcallback_fn() {
	goT();
	return false;
}
function configcallback_fn() {
	clearColumns('column','blocklist');
	loadOrder('column');
	if (getVisibleFeeds('blocklist')==0) { // no feeds on screen, load default feed set
        loadDefaultFeeds();loadOrder('column');
	}
	goT();
	return false;
}
function showallcallback_fn() {
	highlightvotes();
	goT();
	return false;
}
