// JavaScript Document
        var pageName = "Travel Insurance, Breast Cancer Travel Insurance, Car Insurance, Home Insurance | Pink Ribbon Foundation – insurepink";
		    var noBookmarkTxt = "Ctrl+D to bookmark us";
        var yesBookmarkTxt = "Add to favourites";
        var bookmarkTitle = "Add us to your favourites!";
        var deliciousTxt = "&nbsp;del.icio.us";
        var deliciousTitle = "Bookmark us on del.icio.us!";
        var seperatorSymbol = "| ";
          
            //Arrange left hand links according to browser and Javascript presence:
            function initPage(){
              setbookmarkText();
              setDeliciousText();
            }
        
            //Only activate the 'save bookmark' functionality for IE. Firefox bookmarks only to sidebar - no good!'
            function setbookmarkText(){
              if (iebrowserdetect()){
                document.getElementById('bookmarkNOjs').innerHTML = "";       
                document.getElementById('bookmarkYESjs').innerHTML = "Add to favourites";
                document.getElementById('bookmarkLogo').src = "theme/images/plusSign.gif";
                document.getElementById('seperator1').innerHTML = seperatorSymbol;        
                document.getElementById('bookmarkYESjs').href = "javascript:addToFavorites()";   
                document.getElementById('bookmarkYESjs').title = bookmarkTitle;     
              }
            }
            
            //Called from 'Add to favourite' button:
            function addToFavorites(){
            var urlAddress = window.location.href;
            var pageName = document.title;
              if (iebrowserdetect()){
                  if (window.external){ //If IE
                    window.external.AddFavorite(urlAddress,pageName);
                    return;
                  }
              }
              else {
                alert("Sorry! Your browser doesn't support this function. Press Ctrl+D to bookmark us.");
              }           
            }
            
            //'delicious' functionality will only be displayed if Javascript is active:
            function setDeliciousText(){
              document.getElementById('deliciousLogo').src = "theme/images/deliciousLogo.gif";
              document.getElementById('deliciousBtn').innerHTML = deliciousTxt;
              document.getElementById('deliciousBtn').title = deliciousTitle;
              document.getElementById('seperator2').innerHTML = seperatorSymbol;                 
            }
            
            //Is the browser IE 5,5 or later?
            function iebrowserdetect(){
              if (navigator.appVersion.indexOf("MSIE")!=-1){
                var temp=navigator.appVersion.split("MSIE");
                var version=parseFloat(temp[1]);
              }
                if (version>=5.5){//NON IE 5.5+ browser will return false                
                  return true;
                }              
              return false;
            }
