var navName = navigator.appName ;
var brVer = navigator.userAgent; var brNum; var reg = new RegExp('/');

function verNumIE(source) {
   var brVerId = brVer.indexOf('MSIE');
   brNum = brVer.substr(brVerId+5,1);
   if(brNum==7){
    var mapTop = document.getElementById("map_dl");
    mapTop.className += " map-align";
    var temp = document.getElementById("menu-item");
    temp.removeChild(document.getElementById("menu-deco"));
    var newdiv = document.createElement('div');
    var divIdName = 'myDiv';
    newdiv.setAttribute('id',divIdName);
    if(source=='venture')
    {
    newdiv.className += "gv_left_menu_sel_deco_IE7_venture";
    }
    else if(source=='product')
    {
    newdiv.className += "gv_left_menu_sel_deco_IE7_product";
    }
    else if(source=='service')
    {
    newdiv.className += "gv_left_menu_sel_deco_IE7_service";
    }
    else if(source=='partner')
    {
    newdiv.className += "gv_left_menu_sel_deco_IE7_partner";
    }
    mapTop.appendChild(newdiv);
    }
}
function verNumOt() {
   var brVerId = brVer.search(reg);
   brNum = brVer.substring(brVerId+1);
}

function setLocLabel(pos)
{
	var mydd = document.getElementById('gv_main_location_label');
	if(pos=="melbourne")
	{
		mydd.style.backgroundImage="url(styles/images/6_mel_aus.png)";		
	}
    else if(pos=="sydney")
	{
		mydd.style.backgroundImage="url(styles/images/5_sydney_aus.png)";		
	}    
    else if(pos=="hobart")
	{
		mydd.style.backgroundImage="url(styles/images/7_hobart_aus.png)";		
	}    
    else if(pos=="vietnam")
	{
		mydd.style.backgroundImage="url(styles/images/4_hcmc_vietnam.png)";		
	}    
    else if(pos=="kolkata")
	{
		mydd.style.backgroundImage="url(styles/images/3_kolkata_india.png)";		
	}    
    else if(pos=="southCarolina")
	{
		mydd.style.backgroundImage="url(styles/images/2_south_carolina_usa.png)";		
	}    
    else if(pos=="pennsylvania")
	{
		mydd.style.backgroundImage="url(styles/images/1_pennsylvania_usa.png)";		
	}
    else if(pos=="none")
	{
		mydd.style.backgroundImage="none";		
	}    
	    
}
function productSelect()
{
    var url = document.location.href;    
    var para = url.substring(url.lastIndexOf('?')+1,url.length);    
    if(para =="casegenix")
    {
        document.getElementById('product_a_aa').className='gv_product_roleover_aa_active';
    }
    else if(para =="lcp-optimiser")
    {
        document.getElementById('product_a_ab').className='gv_product_roleover_ab_active';
    }
    else if(para =="cdms")
    {
        document.getElementById('product_a_ac').className='gv_product_roleover_ac_active';
    }
    else if(para =="xid3")
    {
        document.getElementById('product_a_ba').className='gv_product_roleover_ba_active';
    }
    else if(para =="phylotrax")
    {
        document.getElementById('product_a_bb').className='gv_product_roleover_bb_active';
    }
    else if(para =="biogenix")
    {
        document.getElementById('product_a_bc').className='gv_product_roleover_bc_active';
    }
    else if(para =="genix-bpm")
    {
        document.getElementById('product_a_ca').className='gv_product_roleover_ca_active';
    }
    else if(para =="survey-management-system")
    {
        document.getElementById('product_a_cb').className='gv_product_roleover_cb_active';
    }
    else if(para =="genix-solutions")
    {
        document.getElementById('product_a_cc').className='gv_product_roleover_cc_active';
    }
    if(document.getElementById('gv_opt_content').offsetHeight < 295)
    {
      document.getElementById('gv_opt_content').style.height="295px";
    }
    if (navigator.appName == 'Microsoft Internet Explorer') {
        verNumIE('product') ;
    } 
}
function serviceSelect()
{
    var url = document.location.href;    
    var para = url.substring(url.lastIndexOf('?')+1,url.length);    
    if(para =="genix-consulting")
    {
        document.getElementById('service_a_aa').className='gv_service_roleover_aa_active';
    }    
    if(document.getElementById('gv_opt_content').offsetHeight < 295)
    {
      document.getElementById('gv_opt_content').style.height="295px";
    }
    if (navigator.appName == 'Microsoft Internet Explorer') {
        verNumIE('service') ;
    } 
    
}
function partnerSelect()
{
    var url = document.location.href;    
    var para = url.substring(url.lastIndexOf('?')+1,url.length);    
    if(para =="commercial-partners")
    {
        document.getElementById('partner_a_aa').className='gv_partner_roleover_aa_active';
    }
    else if(para =="technology-partners")
    {
        document.getElementById('partner_a_ab').className='gv_partner_roleover_ab_active';
    }
    else if(para =="research-partners")
    {
        document.getElementById('partner_a_ac').className='gv_partner_roleover_ac_active';
    }
    if(document.getElementById('gv_opt_content').offsetHeight < 295)
    {
      document.getElementById('gv_opt_content').style.height="295px";
    }
    if (navigator.appName == 'Microsoft Internet Explorer') {
        verNumIE('partner') ;
    } 
    
}

function ventureSelect()
{
    var url = document.location.href;    
    var para = url.substring(url.lastIndexOf('?')+1,url.length);    
    if(para =="venture-gv")
    {
        document.getElementById('venture_a_aa').className='gv_venture_roleover_aa_active';
    }
    else if(para =="venture-xs")
    {
        document.getElementById('venture_a_ab').className='gv_venture_roleover_ab_active';
    }
    else if(para =="venture-sc")
    {
        document.getElementById('venture_a_ac').className='gv_venture_roleover_ac_active';
    }
    else if(para =="venture-pt")
    {
        document.getElementById('venture_a_ad').className='gv_venture_roleover_ad_active';
    }
    else if(para =="venture-bw")
    {
        document.getElementById('venture_a_ae').className='gv_venture_roleover_ae_active';
    }    
    if(document.getElementById('gv_opt_content').offsetHeight < 295)
    {
      document.getElementById('gv_opt_content').style.height="295px";
    }
    if (navigator.appName == 'Microsoft Internet Explorer') {
        verNumIE('venture') ;
    } 
}
function setMessage(pos)
{
	var myTitle = document.getElementById('roleover_title');
	var myText = document.getElementById('roleover_content');
    //alert(pos);
	if(pos=="aa")
	{
		myTitle.innerHTML="Workspace";
		myText.innerHTML="The workspace lists all of the tasks currently awaiting completion by the logged on user. Clicking on a task opens the relevant screen/form in the CDMS, with the task showing on the left of the screen.";
	}
	else if(pos=="ab")
	{
		myTitle.innerHTML="Form Generation";
        myText.innerHTML="Based on the Genix PolyForm technology, forms are preconfigured checklist-style question/answer forms that are designed to ensure that all necessary data is captured during the trial/treatment lifecycle. Specific forms can be linked to specific tasks. In some instances the answers the user provides to PolyForm questions can determine the course the workflow takes. Data entered into PolyForms can be transferred to AutoDocs. System administrators can quickly and easily create and adapt PolyForms for use by regular users. This significantly reduces costs and puts control back into the hands of organisation, as the solution can adapt with the business without the need to get developers involved.";
	}
    else if(pos=="ac")
	{
		myTitle.innerHTML="Validation";
        myText.innerHTML="The new PolyForm engine allows users to add validation routines to each of the fields in the forms during set up. These validation routines can ensure that the data entered is within a particular range, format structures are maintained and cross-form changes can be highlighted. The integration of the forms with the alerts engine ensures that alerts can be triggered if invalid responses are entered.";
	}    
    else if(pos=="ad")
	{
		myTitle.innerHTML="Progress Tracking";
        myText.innerHTML="The system is set up to track the progress of activities such as the completion of forms, logging of queries, responses to queries and close out of queries. The tracking capability is linked to the reporting engine that allows tracking reports to be developed.";
	}
    else if(pos=="ba")
	{
		myTitle.innerHTML="Query Management";
        myText.innerHTML="The system drives the query lifecycle in relation to data management issues and ensures that all queries are appropriately tracked from initiation by the monitor through the iterative cycle of responses to the final close out of the queries. The link to the reporting module will allow managers to track the number of queries, time to close out etc.";
	}
    else if(pos=="bb")
	{
		myTitle.innerHTML="CTMS Integration";
        myText.innerHTML="The CDMS is integrated with the Xbio CTMS when required and this interface ensures that there is no need to re-key any data held in the CTMS (procedures associated with a visit, patient IDs etc). The integration leverages a one-way flow of information (from the CTMS application to the CDMS) with CDMS data being committed directly to the database that may be shared with the CTMS.";
	}
    else if(pos=="bc")
	{
		myTitle.innerHTML="User Management";
        myText.innerHTML="User management allows system administrators to set up and maintain roles and permission based frameworks within the system. It facilitates the set up and allocation of users to roles and the maintenance of these relationships as users move between roles or as business imperatives result in changes to user profiles.";
	}
    else if(pos=="bd")
	{
		myTitle.innerHTML="Search Module";
        myText.innerHTML="Finding a patient or form in the CMDS is easy using the search options. Users can search by name, date, type and many other variations — all of which can be configured to suit clients’ needs.";
	}
    else if(pos=="ca")
	{
		myTitle.innerHTML="Doc Assembly Module";
        myText.innerHTML="At certain points the system prompts the user to complete any documentation that may be required or to generate correspondence. Document templates (AutoDocs) for specific scenarios are developed during the analysis phase, and are linked to specific steps in the CDMS lifecycle. These might include letters of acknowledgment, requests for information, etc. AutoDocs can automatically obtain information entered into PolyForms. Once a document is completed the user can send it via email integration to the appropriate recipient, and also save it to the document repository.";
	}
    else if(pos=="cb")
	{
		myTitle.innerHTML="Audit Module";
        myText.innerHTML="The system tracks all activities undertaken by users and logs each event in the audit trail that can be interrogated using the audit module. This allows system administrators to generate reports of system usage and error handling should the need arise.";
	}
    else if(pos=="cc")
	{
		myTitle.innerHTML="Reporting Module";
        myText.innerHTML="A fully configurable reports module enables any type of data to be extracted and presented in a variety of formats (tabular, graphical etc). Report data can be used to monitor team performance, evaluate trends and patterns, and comply with government legislative requirements.";
	}
    else if(pos=="cd")
	{
		myTitle.innerHTML="Content Module";
        myText.innerHTML="The CDMS document management function allows the creation, storage and retrieval of information in multiple formats (text, audio, video, data files etc). Users can set up standard templates and automatically generate third party letters for use at different stages in the lifecycle, maintain version control and store all case-related information together in a content repository that is secure and searchable.";
	}    
}

function setCasegenixMessage(pos)
{
	var myTitle = document.getElementById('roleover_title');
	var myText = document.getElementById('roleover_content');
    //alert(pos);
	if(pos=="aa")
	{
		myTitle.innerHTML="Case Domian";
		myText.innerHTML="A case is set up as the focus of a Business Process execution. All information that is gathered about a case is added to the case record as the investigation proceeds. Additionally, each case would normally be linked to one or more ‘related parties’ — ie the person(s) under investigation. Each investigation is guided by one or more associated workflows. Workflow tasks assist the investigator to progress the case in a thorough and consistent manner. Cases can be created manually as required, or initiated automatically in response to data from a linked system.";
	}
	else if(pos=="ab")
	{
		myTitle.innerHTML="Related Parties";
        myText.innerHTML="Cases typically are linked to other domain entities. There is a Referrals domain, where initial allegations are recorded and examined. There is also one or more Party domains, where details of the person(s) under investigation are recorded. All of these domains are linked, allowing the user to easily access information during the investigation.";
	}
    else if(pos=="ac")
	{
		myTitle.innerHTML="Entity Relationships";
        myText.innerHTML="Casegenix offers a sophisticated linking function that enables relationships to be created between cases and entities as required. A forthcoming Casegenix feature is the entity relationship diagram – a graphical display of the links between cases and entities.";
	}    
    else if(pos=="ad")
	{
		myTitle.innerHTML="Workspace";
        myText.innerHTML="The workspace lists all of the tasks currently awaiting completion by the logged on user. Clicking on a task opens the relevant case screen, with the task showing on the left of the screen.";
	}
    else if(pos=="ba")
	{
		myTitle.innerHTML="Case Assignment";
        myText.innerHTML="Cases can be manually assigned to users by supervisors or managers for example. The system assists the assignment process by displaying the current workload of every user in the case investigations team. Alternatively, the system can be configured to automatically assign cases to users based on current workload, expertise, experience, and other factors.";
	}
    else if(pos=="bb")
	{
		myTitle.innerHTML="Search Module";
        myText.innerHTML="Finding a case or entity in Casegenix is easy using the search options. Users can search by name, date, type and many other variations — all of which can be configured to suit clients’ needs.";
	}
    else if(pos=="bc")
	{
		myTitle.innerHTML="Workflow Module";
        myText.innerHTML="Workflows are pre-configured business processes that are integrated into the software. Comprised of system (automatic) and human (manual) tasks, they enable clients to integrate their processes into the software itself, thus ensuring that all investigations are handled consistently and according to agreed processes and appropriate regulations. When a case is created, one or more applicable workflows are initiated automatically. As the case proceeds the system may also initiate sub-workflows, depending on the decisions taken during the investigation. Workflows can also be initiated manually if required.";
	}
    else if(pos=="bd")
	{
		myTitle.innerHTML="Task Assignment";
        myText.innerHTML="The workflow engine presents individual tasks (steps in a workflow) to the applicable user(s) as these become due. Each task has an instruction explaining to the user exactly what is required. Some tasks are linked to data capture forms (PolyForms) or to document templates that the investigator can complete and file or dispatch as necessary. Many tasks are automated and completed by the system as they fall due. This is a major benefit that significantly improves productivity. The user can at any time see the tasks completed, the tasks that are ahead, and other information. The system alerts nominated users and/or managers if any tasks are overdue for completion. Reports can also be utilised to highlight overdue tasks. The user records any relevant information as it comes to hand in the Case Diary.";
	}
    else if(pos=="ca")
	{
		myTitle.innerHTML="Doc Assembly Module";
        myText.innerHTML="At certain points the workflow prompts the user to complete any documentation that may be required to move the case forward or to generate correspondence. Document templates (AutoDocs) for specific scenarios are developed during the analysis phase, and are linked to specific steps in the workflow. These might include letters of acknowledgment, requests for information, infringement notices etc.  AutoDocs can automatically obtain information entered into PolyForms (see below). Once a document is completed the user can send it via email integration to the appropriate recipient, and also save it to the document repository.";
	}
    else if(pos=="cb")
	{
		myTitle.innerHTML="Polyforms Module";
        myText.innerHTML="Polyforms are preconfigured checklist-style question and answer forms that are designed to ensure that all necessary data is captured during the case lifecycle. Specific forms can be linked to specific tasks. In some instances the answers the user provides to PolyForm questions can determine the course the workflow takes. Data entered into PolyForms can be transferred to AutoDocs. System administrators can quickly and easily create and adapt PolyForms for use by regular users. This significantly reduces costs and puts control back into the hands of organisation, as the solution can adapt with the business without the need to get developers involved.";
	}
    else if(pos=="cc")
	{
		myTitle.innerHTML="Reporting Module";
        myText.innerHTML="A fully configurable reports module enables any type of data to be extracted and presented in a variety of formats (tabular, graphical etc). Report data can be used by managers to monitor team performance, evaluate trends and patterns, and comply with government legislative requirements.";
	}
    else if(pos=="cd")
	{
		myTitle.innerHTML="Content Module";
        myText.innerHTML="The Casegenix document management function allows the creation, storage and retrieval of information in multiple formats (text, audio, video, data files etc). Users can set up standard templates and automatically generate third party letters for use at different stages in the workflow, maintain version control and store all case-related information together in a content repository that is secure and searchable.";
	}    
}

function checkBack()
{
    
    if (navigator.appName == 'Microsoft Internet Explorer') {
        var brVerId = brVer.indexOf('MSIE');
        brNum = brVer.substr(brVerId+5,1);
       if(brNum==7){
            document.getElementById("map_dl").className += " map-align";   
            var childNodeArray = document.getElementById("gv_opt_content").getElementsByTagName("h1");            
            childNodeArray[0].className = "news-head-pos";                      
        }
    }
    
    var url = document.location.href;    
    var para = url.substring(url.lastIndexOf('?')+1,url.length);    
    var mydd = document.getElementById('gv_news_back');
    var myaa = document.getElementById('gv_news_top');
    var childCount = myaa.getElementsByTagName('a').length;
    var val= 100+(childCount*30);     
    if(para =="news-list")
    {
     	
        mydd.style.height="0px";		
        mydd.innerHTML="";
        document.getElementById('gv_opt_content').style.height=val.toString()+"px";
        
	}    
    
}
function resizeContact(){
	if(document.getElementById('gv_opt_content').offsetHeight < 295)
    {
      document.getElementById('gv_opt_content').style.height="295px";
    }
    if (navigator.appName == 'Microsoft Internet Explorer') {
       var brVerId = brVer.indexOf('MSIE');
        brNum = brVer.substr(brVerId+5,1);
        if(brNum==7){
            document.getElementById("map_dl").className += " map-align";
        }
    } 
}
function load_home(){
    if (navigator.appName == 'Microsoft Internet Explorer') {
        var brVerId = brVer.indexOf('MSIE');
        brNum = brVer.substr(brVerId+5,1);
        if(brNum==7){
            document.getElementById("map_dl").className += " map-home-align";
            document.getElementById("gv_opt_content").className += " map-home-content-align";
        }
    } 
}

