// version 1.0.2

/*
Version history:
1.0.2 (2009-08-21)
  Added James' email to email link generator code
1.0.1 (2009-08-17)
  URL corrections and general tidy up
1.0.0 Original unversion release
*/
function CLR() {
  window.status = "";
}
function SetStatus(Msg){
  window.status = Msg;
}

function ShowTube(ShowImg){
  var hd = window.open('','TubeViewer_'+ShowImg, 'width=440,height=120,resizable=1, menubar=0,location=0,toolbar=0');
  hd.focus();
  hd.document.writeln(
    "<html><head><title>SmartieScope:- Now showing Tube "+ShowImg.replace('-','_')+".gif ...........................</title></head>"+
    "<body style='background: url(/smarties/UserFiles/Image/wallpaper/SmartiesGreen.gif)'>"+
    "<span style='color:#ff0000'><b>"+
    ShowImg.toUpperCase()+
    "<img src='/smarties/UserFiles/Image/tubes/"+ShowImg+".gif'></b></body></html>"
  );
  hd.document.close();
}

function ShowTrick(ShowImg)	{
  var hd = window.open('','TrickViewer_'+ShowImg.replace('-','_'), 'width=680,height=420,resizable=1,menubar=0,location=0,toolbar=0');
  hd.focus();
  hd.document.writeln(
    "<html><head><title>SmartieScope:- Now showing Magic Trick "+ShowImg+".gif ...........................</title></head>"+
    "<body style=\"background: url(/smarties/UserFiles/Image/wallpaper/SmartiesGreen.gif)\">"+
    "<span style=\"color:#ff0000;\"><b>"+ShowImg.toUpperCase()+"</b><img src=\"/smarties/UserFiles/Image/"+ShowImg+".gif\" style=\"border: 1px solid #000\"></span></body></html>"
  );
  hd.document.close();
}

function ShowCaBox(ShowImg){
  var hd = window.open('','BoxViewer_'+ShowImg.replace('-','_'), 'width=480,height=460,resizable=1,menubar=0,location=0,toolbar=0');
  hd.focus();
  hd.document.writeln(
    "<html><head><title>SmartieScope:- Now showing Box "+ShowImg+".jpg ...........................</title></head>"+
    "<body>"+
    "<span style=\"color:#ffffff\"><b>"+ShowImg.toUpperCase()+"</b><img src=\"/smarties/UserFiles/Image/"+ShowImg+".jpg\"></body></html>"
  );
  hd.document.close();
}

function ShowXY(ShowImg,x,y){
  var hd = window.open('','XYViewer_'+ShowImg.replace('-','_'), 'width='+x+',height='+y+',resizable=1,menubar=0,location=0,toolbar=0');
  hd.focus();
  hd.document.writeln(
    "<html><head><title>SmartieScope:- Now showing "+ShowImg+".gif ...........................</title></head>"+
    "<body style=\"background: url(/smarties/UserFiles/Image/wallpaper/SmartiesGrey.gif)\">"+
    "<span style=\"color:#ffffff\"><b>"+ShowImg.toUpperCase()+"</b><br /><img src=\"/smarties/UserFiles/Image/"+ShowImg+".gif\"></body></html>"
  );
  hd.document.close();
}

function Team(team){
  TeamViewer=window.open('','TeamViewer','width="400",height="300",resizable=1,menubar=0,location=1,toolbar=0');
  TeamURL="http://www.fa-premier.com/club/" + team + ".fc";
  TeamViewer.focus();
  TeamViewer.document.location=(TeamURL);
  TeamViewer.document.close();
}

function Email(who) {  // To prevent robot junk mail sniffers.
  switch (who) {
    case 'astrid':	document.write("<a href='mail"+"to"+":bs604281"+"@"+"skynet"+"."+"be'>"+"bs604281"+"@"+"skynet"+"."+"be"+"</a>"); break;
    case 'daryl':	document.write("<a href='mail"+"to"+":mdl2"+"@"+"home"+"."+"com'>"+"mdl2"+"@"+"home"+"."+"com"+"</a>"); break;
    case 'james':	document.write("<a href='mail"+"to"+":emm" + "a.209"+"@"+"virg"+"in.net"+"'>emm" + "a.209"+"@"+"virg"+"in.net</a>"); break;
    case 'maria':	document.write("<a href='mail"+"to"+":maria"+"@"+"kumla"+"."+"mail"+"."+"telia"+"."+"com'>"+"maria"+"@"+"kumla"+"."+"mail"+"."+"telia"+"."+"com"+"</a>"); break;
    case 'martin':	document.write("<a href='mail"+"to"+":martin"+"@"+"classaxe"+"."+"com?subject=smarties'>"+"martin"+"@"+"classaxe"+"."+"com"+"</a>"); break;
    case 'olivia':	document.write("<a href='mail"+"to"+":Olivia"+"."+"Wharton"+"@"+"ntlworld"+"."+"com'>"+"Olivia"+"."+"Wharton"+"@"+"ntlworld"+"."+"com"+"</a>"); break;
    case 'paul':	document.write("<a href='mail"+"to"+":Green"+"."+"Van"+"@"+"btinternet"+"."+"com'>"+"Green"+"."+"Van"+"@"+"btinternet"+"."+"com"+"</a>"); break;
    case 'peter':	document.write("<a href='mail"+"to"+":Pete"+"."+"Brooksbank"+"@"+"bigfoot"+"."+"com'>"+"Pete"+"."+"Brooksbank"+"@"+"bigfoot"+"."+"com</a>"); break;
    case 'trond':	document.write("<a href='mail"+"to"+":t-stien"+"@"+"online"+"."+"no'>"+"t-stien"+"@"+"online"+"."+"no"+"</a>"); break;
  }
}
