// ACTIONS
function openWindow(name, param) {
	// OPENS WINDOW
	var the_params="", the_file="", the_name="";
	switch(name) {
		// DZAT MEDIA PLAYER
		case "player": 
			the_file 	= par + "/mediaplayer/?f=" + escape("");
			the_name 	= "dzatmediaplayer";
			break;
		case "balitaexpress": 
			the_file 	= par + "/w/balitaexpress.php?" + param;
			the_name 	= "balitaexpress";
			break;
		case "programskeds": 
			the_file 	= par + "/w/programskeds.php";
			the_name 	= "programskeds";
			break;
		case "events_pgwin": 
			the_file 	= par + "/w/events_pgwin.php?" + param;
			the_name 	= "events_pgwin";
			break;
		case "brArchive": 
			the_file 	= par + "/mediaplayer/?f=" + escape("brArchiveWin.php?" + param);
			the_name 	= "dzatmediaplayer";
			break;
	}
	if(the_file) {
		w = window.open(the_file, the_name, 
				   ((the_params) ? the_params : "height=200, width=200, statusbar=0, addressbar=0, toolbar=0, resizable=0, scrollbars=1")
				   );
		w.focus();
	}
}

function CreateBookmarkLink() {
	// FROM http://labnol.blogspot.com/2006/01/add-to-favorites-ie-bookmark-firefox.html
	// ADD BOOKMARK DESIGNED TO BE "compatible" WITH ALL BROWSERS
	title = "DZAT 1512 KHz"; 
	  // Blogger - Replace with <$BlogItemTitle$> 
	  // MovableType - Replace with <$MTEntryTitle$>
	
	url = "http://www.dzat1512.com";
	  // Blogger - Replace with <$BlogItemPermalinkURL$> 
	  // MovableType - Replace with <$MTEntryPermalink$>
	  // WordPress - <?php bloginfo('url'); ?>
	
		if (window.sidebar) { // Mozilla Firefox Bookmark
			window.sidebar.addPanel(title, url,"");
		} else if( window.external ) { // IE Favorite
			window.external.AddFavorite( url, title); }
		else if(window.opera && window.print) { // Opera Hotlist
			return true; }
 }