// JavaScript Document


function open_tell_a_friend_window()
{
	window.open('tell_a_friend_box.php', 'tellafriend_script','scrollbars=1,statusbar=1,resizable=1,width=380,height=450');
}


var min=8;
var max=18;
function increaseFontSize() {
 
   var p = document.getElementsByTagName('p');
   for(i=0;i<p.length;i++) {
 
      if(p[i].style.fontSize) {
         var s = parseInt(p[i].style.fontSize.replace("px",""));
      } else {
 
         var s = 12;
      }
      if(s!=max) {
 
         s += 1;
      }
      p[i].style.fontSize = s+"px"
 
   }
}
function decreaseFontSize() {
   var p = document.getElementsByTagName('p');
   for(i=0;i<p.length;i++) {
 
      if(p[i].style.fontSize) {
         var s = parseInt(p[i].style.fontSize.replace("px",""));
      } else {
 
         var s = 12;
      }
      if(s!=min ) {
 
         s -= 1;
      }
      p[i].style.fontSize = s+"px"
 
   }
}

function resetFontSize() {
   var p = document.getElementsByTagName('p');
    jQuery('p').css("font-size", "12px");
}

function addBookmark(url,title) 
{
    if (window.sidebar) 
    {
        window.sidebar.addPanel(title, url,"");
    } 
    else if( document.all ) 
    {
        window.external.AddFavorite( url, title);
    } 
    else if( window.opera && window.print ) 
    {
        return true;
    } 
    else if( document.layers ) 
    {
        window.alert( 'Please click OK and then press Ctrl+D to create a bookmark or \n click Bookmarks | Add Bookmark' );
    } 
    else 
    {
        window.alert( 'Please use your browser\'s bookmarking facility to create a bookmark' );
    }
}

/*jQuery(function() {
       var val = jQuery('.heading_tab').html();
       jQuery('title').html(val);
});*/
