function bookmark(anchor){
   if(window.external)
   {
       window.external.AddFavorite(anchor.getAttribute('href'), anchor.getAttribute('title'));
       return false;
   }
   return true;
}

// flash video player functions
var current_playing = ""; 
function sendEvent(swf,typ,prm) { 
  thisMovie(swf).sendEvent(typ,prm); 
};
function getUpdate(typ,pr1,pr2,swf) {
	if ((current_playing != "")&&(swf != "null") && (typ=="state") && (pr1 == 2)) {
		if (swf != current_playing) { 
			sendEvent(current_playing, 'stop');  current_playing=swf;
			sendEvent(swf,'volume','60');
		}
	} else {
		swf = current_playing;
	}
};
function thisMovie(swf) {
  if(navigator.appName.indexOf("Microsoft") != -1) {
    return window[swf];
  } else {
    return document[swf];
  }
};
