/**
File     : lpPageInformation.js
Author   : nils@onsite.no 
Date     : 20080625
Copyright: OnSite Solutions AS http://www.onsite.no                                      
Comment  : Collect page information to be sent with the vgo request
------------------------------------------------------------
SVN properties                                              
------------------------------------------------------------
 $LastChangedDate$                                           
 $Revision: $                                                  
 $Author:  $                                                    
 $HeadURL: https://svn.onsite.no/lp3/autotagger/auto.js $#                                                  
 $Id:  $                                                        
------------------------------------------------------------
 */
/*
  fpn = fromPageName
  fpt = fromPageType
 */
function pageInformation(lpAutoConfig) {
    var pageInfo = new Object();
    if(typeof lpPageInformationPageType != 'undefined' && lpPageInformationPageType) {
	pageInfo['fpt']=escape(lpPageInformationPageType);
    }
    if(typeof lpPageInformationPageTitle != 'undefined' && lpPageInformationPageTitle) {
	pageInfo['fpn']=lpPageInformationPageTitle;
    }
    else if(document.title!='') {
	pageInfo['fpn']=document.title;
    }
    if(pageInfo['fpn']!=null) {
	pageInfo['fpn']=pageInfo['fpn'].replace(/\"/g,'&#34');
	pageInfo['fpn']=pageInfo['fpn'].replace(/\;/g,'&#59');
	pageInfo['fpn']=escape(pageInfo['fpn']);
    }
    return pageInfo;
}
