// Setup
var so;
function setup() {
		so = new SWFObject("KeepCup.swf", "flashObject", "100%", "100%", "9.0.45", "#f7f7f7", true);
  		so.addParam("quality", "high");
		so.addParam("menu", "true");
    	so.addParam("wmode", "window");
    	so.addParam("allowFullScreen", "false");
        so.write("flashElement");
}
// Context Menu Operations
function makeBookmark() {
	if (window.sidebar) { // Mozilla Firefox Bookmark
		window.sidebar.addPanel(document.title, document.URL,"");
	} else if( window.external ) { // IE Favorite
		window.external.AddFavorite(document.URL, document.title);
	}
}
function reloadPage() {
	window.location.reload();
}
// General Operations
function changeHeight(newH) {
	so.height = newH;
	document.getElementById('flashElement').style.height = newH;
}