
function sizeText(size){
    var ver = getInternetExplorerVersion();

    
    var rootTextNode = document.getElementById('wrap');
    if(size == 'small'){
        if ( ver>= 8.0 ){
            rootTextNode.setAttribute("class", "textSmall");
        }else{
            rootTextNode.setAttribute((document.all ? "className" : "class"), "textSmall");
        }        
    } else if(size == 'medium'){
        if ( ver>= 8.0 ){
            rootTextNode.setAttribute("class", "textMedium");
        }else{
            rootTextNode.setAttribute((document.all ? "className" : "class"), "textMedium");
        }
    } else if(size == 'large'){
        if ( ver>= 8.0 ){
            rootTextNode.setAttribute("class", "textLarge");
        }else{
            rootTextNode.setAttribute((document.all ? "className" : "class"), "textLarge");
        }
    }
    return false;
}

// Search box focus effect
function greyInitial(element, colour) {
    var el = document.getElementById(element);
    if (!colour) { colour = "666"; }
    
    if(el != undefined){
        
        var ph = el.getAttribute("value");
        
        //initialize the placeholder text
        el.value=ph;
        el.style.color='#' + colour;
        
        el.onclick = el.onfocus = function(){
            if (this.value == ph){
                this.value='';
            }
            this.style.color='#000';
        }
        
        
        el.onblur = function(){
            if (this.value == ph || this.value == ""){
                this.value=ph;
                this.style.color='#' + colour;
            }
        }
        
    }else{ 
        return; 
    }
}


 function getInternetExplorerVersion()
// Returns the version of Windows Internet Explorer or a -1
// (indicating the use of another browser).
{
   var rv = -1; // Return value assumes failure.
   if (navigator.appName == 'Microsoft Internet Explorer')
   {
      var ua = navigator.userAgent;
      var re  = new RegExp("MSIE ([0-9]{1,}[\.0-9]{0,})");
      if (re.exec(ua) != null)
         rv = parseFloat( RegExp.$1 );
   }
   return rv;
}