	var popupWin;

	function popup(url,name,w,h,s,t) {
		var left = ',left=' + ((screen.width/2) - w/2);
		var top = ",top=" + ((screen.height/2) - h/2);
		w = (w) ? 'width=' + w : '';
		h = (h) ? ',height=' + h : '';
		s = (s) ? ',scrollbars=' + s : '';
		t = (t) ? ',status=' + t : '';

		var args = w + h + s + t + left + top + ',menubar=0';

		if(navigator.userAgent.indexOf("MSIE") > -1 && navigator.userAgent.toUpperCase().indexOf("MAC")==-1)
		{
			if(popupWin != null)
				popupWin.close();
		}

		popupWin = window.open(url,name,args);

		return false;
	}
	
	// News Popup
	function displayNewsPopup(address) {
		return popup(address,'popup',400,250,'yes','no');
	}
    
	// Gallery Component Popup
	function displayGalleryImage(address) {
		return popup(address,'galleryImage',100,100,'no','no',',left=150',',top=150');
	}
        
	// MusicBox Popup
	function displayMusicBox(address) {
		return popup(address,'musicbox',993,529,'no','no',',left=150',',top=150');
	}
    
	// MusicBox Popup from ActionScript
	function displayMusicBoxFlash(address) {
		popup(address,'musicbox',993,529,'no','no',',left=150',',top=150');
	}
	
	// Popup from ActionScript
	function popupFlash(url,name,w,h,s,t) {
		popup(url,name,w,h,s,t);
	}
	
    // SonyBMG Gallery Thumbnail Viewer
	function displayThumbGalleryViewer(address) {
		return popup(address,'galleryThumbViewer',765,652,'no','no',',left=150',',top=150');
	}
	
	// SonyBMG Gallery Thumbnail Viewer
	function displayThumbGalleryViewerFlash(address) {
		popup(address,'galleryThumbViewer',765,652,'no','no',',left=150',',top=150');
	}