function RunFoo()
{
   document.write('<object type="application/x-shockwave-flash" data="http://www.arabdetroit.com/musicplayer.swf?&song_url=http://www.arabdetroit.com/images/wotd/131.mp3&" width="17" height="17">\n');
   document.write('<param name="movie" value="http://www.arabdetroit.com/musicplayer.swf?&song_url=http://www.arabdetroit.com/images/wotd/131.mp3&" />\n');
   document.write('<img src="noflash.gif" width="17" height="17" alt="" />\n');
   document.write('</object>\n');
}

// Arab Detroit Radio

var win=null;
function NewWindow(mypage,myname,w,h,scroll,pos){
if(pos=="random"){LeftPosition=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;}
if(pos=="center"){LeftPosition=(screen.width)?(screen.width-w)/2:100;TopPosition=(screen.height)?(screen.height-h)/2:100;}
else if((pos!="center" && pos!="random") || pos==null){LeftPosition=0;TopPosition=20}
settings='width='+w+',height='+h+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no';
win=window.open(mypage,myname,settings);}

// Send to friend script

function newWindow(mypage,myname,w,h,features){
  if(screen.width){
  var winl = (screen.width-w)/2;
  var wint = (screen.height-h)/2;
  }else{winl = 0;wint =0;}
  if (winl < 0) winl = 0;
  if (wint < 0) wint = 0;
  var settings = 'height=' + h + ',';
  settings += 'width=' + w + ',';
  settings += 'top=' + wint + ',';
  settings += 'left=' + winl + ',';
  settings += features;
  win = window.open(mypage,myname,settings);
  win.window.focus();}
      