/* --------------------------------------------------------------
FILE: Skin.js
DESCRIPTION: ExtJS Javascript extension for LSMS Private Label.  
TEMPLATE VERSION: 2.0  - Includes defaulting of company name field, and initially making the content invisible before changing it.
CUSTOMER: tbd
LOCATION: /Content/skin/company
PROJECT: LMS Private Label Migration
CREATED:  
AUTHOR: 

Mod Date    Rev #   Author      Description
--------    ------  ----------- ---------------------------------

(c) Copyright 2010 PureSafety
----------------------------------------------------------------- */

(function() {
    if (!Ext) return;

    /* provide an input for the value of the company name input field */
    var cnmod = Ext.query('#CompanyName');       	// Returns an array of matches
	if (cnmod && cnmod[0]) cnmod[0].value   = "VCC";


    /* Suppress the default PureSafety graphic on the login page */
    var pics= Ext.query('.graphicCol');       // Returns an array of matches
    if (pics && pics[0]) {
		pics[0].innerHTML = '';
		pics[0].style.visibility = "visible";
	}



    /* Change the default PureSafety Title and Intro Copy on the login page */
    var elems= Ext.query('.bodyCol');       // Returns an array of matches
    if (elems && elems[0]) {
		elems[0].innerHTML   = "<div class = 'companybodyCol'> </div>";
		elems[0].style.visibility = "visible";
	}



	
})();