function getWindowHeight(){
  var ih=1000;
  if(document.documentElement.clientHeight)ih=document.documentElement.clientHeight;
  if(ih==1000){
    if(window.innerHeight)ih=window.innerHeight;
  }
  if(ih==1000){
    if(document.body.clientHeight)ih=document.body.clientHeight;
  }
  return ih;
}



function getWindowWidth(){
  var iw=2000;
  if(document.documentElement.clientWidth)iw=document.documentElement.clientWidth;
  if(iw==2000){
    if(window.innerWidth)iw=window.innerWidth;
  }
  if(iw==2000){
    if(document.body.clientWidth)iw=document.body.clientHeight;
  }
  return iw;
}



var straplines=new Array()

function addstrapline(){
  var i=Math.round(Math.random()*100)%straplines.length;
  // over-ride this for the home page
  if(location.pathname.indexOf("index.htm")>-1)i=0;
  if(location.pathname.indexOf("htm")==-1)i=0;
  document.write(straplines[i]);
}


function add_to_straplines(str,datestr,year){
  var retstr=str;
  if(arguments.length==3){
    var timenow=new Date();
    var currentyear=timenow.getFullYear();
    if((year+4)>currentyear){
      retstr+=datestr;
    }
  }
  straplines[straplines.length]=retstr;
}



// this one must come first, as the quote on the home page is always this
add_to_straplines("&#145;... a musical mind that is passionate, inventive, spontaneous, yet carefully reasoned and serenely assured.&#146; <i>Boston Globe</i>");

add_to_straplines("&#145;A performance of the music [Shostakovich Cello Concerto No. 1] that was right out of the top drawer.&#146; <i>The Herald</i>", ", November 2008", 2008);

add_to_straplines("&#145;Everything Georgian plays is presented with the most succulent, glowing tone, the phrasing boundlessly ample.&#146; <i>Financial Times</i>");

add_to_straplines("&#145;Here was virtuosity so effortless as simply to bewitch the listener.&#146; <i>Die Welt</i>");

add_to_straplines("&#145;Re-acquaintance confirms the impression that this was the best performance of Tippett&#146;s Triple Concerto I had heard; it remains so.&#146; <i>Daily Telegraph</i>");

add_to_straplines("&#145;Rarely do forces of music, energy and idea find themselves so powerfully in alliance within a single individual.&#146; <i>Boston Globe</i>");

add_to_straplines("&#145;The real news was Karine Georgian&#146;s performance. It seemed to contain both more notes and more beauty than the piece [Tchaikovsky&#146;s Rococo Variations] commonly yields.&#146; <i>The Times</i>");

add_to_straplines("&#145;Karine Georgian&#146;s big, majestic cello tone.&#146; <i>The Times</i>");

add_to_straplines("&#145;A formidable array of talent, technical security, finely shaped phrases and lustrous tone.&#146; <i>Belfast Telegraph</i>");

add_to_straplines("&#145;Georgian played the cello part [Britten&#146;s <i>Cello Symphony</i>] with commitment and driving energy, seeming to gather in particles of energy swept out of the surrounding air.&#146; <i>Sydney Morning Herald</i>");

add_to_straplines("&#145;A musician who has absorbed the material [Kod&aacute;ly&#146;s Sonata] and identified with it fully. <i>New York Times</i>");

add_to_straplines("&#145;Deep, rich and soulful as the best cello playing should be&#146; <i>The Herald</i>", ", October 2009", 2009);

add_to_straplines("&#145;A measured dignity and a feeling of spaciousness unfettered by time ... a very satisfying set [Bach&#146;s Six Cello Suites]. <i>The Strad</i>", ", January 2010", 2010);

add_to_straplines("&#145;A technical virtuosity that takes the breath away.&#146; <i>International Record Review</i>, January 2010");

add_to_straplines("&#145;A most accomplished cellist with a rich, sonorous tone and exemplary intonation.&#146; <i>BBC Music Magazine</i>", ", February 2010", 2010);

add_to_straplines("&#145;A cellist of the front rank.&#146; <i>Musical Opinion</i>", ", January/February 2010", 2010);

add_to_straplines("&#145;Georgian displays a wonderfully rich and velvet tone.&#146; <i>International Record Review</i>", ", November 2007", 2007);

add_to_straplines("&#145;Nothing but praise for the performances by cellist Karine Georgian. <i>International Record Review</i>", ", October 2009", 2009);

add_to_straplines("&#145;Gripping recordings of Martinu complete works for cello and piano from the immensely gifted Russian cellist Karine Georgian.&#146; <A href='http://www.musicweb-international.com'><i>musicweb-international.com</i></a>", ", January 2011", 2011);

add_to_straplines("&#145;Beautiful music of the soul and from the heart.&#146; Michael Tumelty, <i>Herald Scotland</i>", ", April 2011", 2011);





// random image for top LH corner

var lh_images = new Array();
lh_images[0]="<img class=lhimg src='headerpics/KG_346a-tr4-w120.jpg'>"; // NB this must not change as it's forced on home page
lh_images[1]="<img class=lhimg src='headerpics/11tr-w120.jpg'>";
lh_images[2]="<img class=lhimg src='headerpics/black_dress_with_cello_5-tr-w120.jpg'>";
lh_images[3]="<img class=lhimg src='headerpics/profile_with_cello_1-tr-w120.jpg'>";
lh_images[4]="<img class=lhimg src='headerpics/teaching_by_example-tr-w120.jpg'>";
lh_images[5]="<img class=lhimg src='headerpics/three_quarter_garden_4-tr-w120.jpg'>";

function add_lh_image(){
  var i=Math.round(Math.random()*100)%lh_images.length;
  // over-ride this for the home page
  if(location.pathname.indexOf("index.htm")>-1)i=0;
  if(location.pathname.indexOf("htm")==-1)i=0;
  document.write(lh_images[i]);
}


function setOpacity(obj,value){
  obj.style.opacity=value;
  obj.style.filter='alpha(opacity=' + value*100 + ')';
}


function galimg(URL){
  scrollpos= document.body.scrollTop || document.documentElement.scrollTop;
  var winheight=getWindowHeight()-40;
  var suffix="-hw400.jpg";
  if(winheight>600)suffix="-hw600.jpg";
  if(winheight>800)suffix="-hw800.jpg";
  if(winheight>400){       // do nothing on small screens
    var galhtm="";
    galhtm+="<div class=galdisplay onclick=\"galclose()\">";
    galhtm+="<img src=" + URL + suffix + ">";
    galhtm+="<div class=caption onclick=\"galclose();\">close</div>";
    galhtm+="</div>";
    var galdisplay=document.getElementById("galdisplay");
    galdisplay.style.zIndex=100;
    galdisplay.innerHTML=galhtm;
    var maincontentinner=document.getElementById("maincontentinner");
    setOpacity(maincontentinner,0.5);
  }
}


function galclose(){
  var maincontentinner=document.getElementById("maincontentinner");
  setOpacity(maincontentinner,0.99);
  maincontentinner.style.zIndex=10;
  var galdisplay=document.getElementById("galdisplay");
  galdisplay.innerHTML="";
  galdisplay.style.zIndex=-10;
}


var blatstr="";
blatstr+="cel";
blatstr+="log";
blatstr+="old";
blatstr+="@ka";
blatstr+="rin";
blatstr+="ege";
blatstr+="org";
blatstr+="ian";
blatstr+=".co";
blatstr+="m";

var shonablatstr="";
shonablatstr+="sho";
shonablatstr+="na@";
shonablatstr+="sho";
shonablatstr+="nag";
shonablatstr+="all";
shonablatstr+="etl";
shonablatstr+="ypr";
shonablatstr+=".co.";
shonablatstr+="uk";

function blat(){
  var str=blatstr;
  if(arguments.length>0){
    if(arguments[0].indexOf("Shona")==0)str=shonablatstr;
  }
  document.write("<a href='mailto: " + str + "'>" + str + "</a>");
}

