    var vol;
    function togglecomments (postid) {
      var whichpost = document.getElementById(postid);
      if (whichpost.className=="commentshown") { whichpost.className="commenthidden"; } else { whichpost.className="commentshown"; }
    }
    function sendEvent(swf,typ,prm) {
      thisMovie(swf).sendEvent(typ,prm);
    };
    function loadFile(swf,obj) {
      thisMovie(swf).loadFile(obj);
    };
	function getUpdate(typ,pr1,pr2,pid) {
		if(typ == "volume") { vol = pr1; };
    if(typ == "time") { time = pr1; };
	};

    function thisMovie(swf) {
      if(navigator.appName.indexOf("Microsoft") != -1) {
        return window[swf];
      } else {
        return document[swf];
      }
    };

    var tempvol;
    function lower() {
      vol-=10;
      if (vol < 0) {
        vol=0;
      };
      sendEvent('jstest','volume',vol)
    };
    function higher() {
      vol+=10
      if (vol > 100) {
       vol=100;
      };
      sendEvent('jstest','volume',vol)
    };
    function mute(){
      if (vol==0) {
       vol=tempvol;
    } else if (vol!=0) {
        tempvol=vol;
        vol=0;
      };
      sendEvent('jstest','volume',vol)
    };
    function forward() {
      time+=5;
      sendEvent('jstest','scrub',time);
    };
    function backward() {
      time-=5;
      sendEvent('jstest','scrub',time);
    };
