 function right(e) {
      if (navigator.appName =='Netscape'&&
      (e.which ==3|| e.which ==2))
      return false;
      else if (navigator.appName == 'Microsoft Internet Explorer' &&
      (event.button == 2|| event.button ==3)) {
      alert("Thank you visiting this page,\n\n Thank's.");
      return false;
      }
      return true;
      }
      {
      document.onmousedown=right;
      if (document.layers) window.captureEvents(Event.MOUSEDOWN);
      window.onmousedown=right;
      }

function high(which2){    
theobject=which2    
highlighting=setInterval("highlightit(theobject)",50)    
}    
function low(which2){    
clearInterval(highlighting)    
which2.filters.alpha.opacity=20    
}    
    
        
function highlightit(cur2){    
if (cur2.filters.alpha.opacity<100)    
cur2.filters.alpha.opacity+=5    
else if (window.highlighting)    
clearInterval(highlighting)    
}    

var str="my null";
var movieName = "carphoto";
//崁入flash物件 id 設成這名稱
function carphoto_DoFSCommand(command, args){
    do_something();   
}
function thisMovie(movieName) {
if (navigator.appName.indexOf ("Microsoft") !=-1) {
  return window[movieName]
} else {
  return document[movieName]
}
}
function do_something(){
var str=document.URL;
var strend=0;
strend=str.indexOf('&',str.indexOf('id=',0)+3);
if (strend==-1) strend=str.length+1;
var myid=str.substring(str.indexOf("id=",0)+3,strend); 
thisMovie(movieName).SetVariable("/:photoid",myid);
//  
}

function register() {
window.open('http://104net.net/system/register.php?bgcolor=FFFFFF&head=CCCCCC&even=EEEEEE','register','height=560,width=760')
}

function viewbgcolor(bgcolorname) { //v2.0
  theURL="http://104net.net/"+bgcolorname+"&bgcolor=FFFFFF";
  window.open(theURL,'viewbgcolor','scrollbars=yes,width=800,height=600,left=0,top=0');
}

function viewwin(winname) { //v2.0
  theURL="http://104net.net/"+winname;
  window.open(theURL,'viewwin','scrollbars=no,width=800,height=600,left=0,top=0');
}

function video(videoname) { //v2.0
  theURL="http://www.104net.net/taipeisprings/videos/"+videoname;
  window.open(theURL,'video','scrollbars=no,width=242,height=206,left=0,top=0');
}
