var nDegreeType = 1;    // default to bachelor      
	var nCategoryType = 2;  // default to Business
	var nConcentration = 7; // default to Account & Finance
	
	var _Concentrations = "2:7,Accounting & Finance^13,Business Administration & Business Management^66,Communications^" +
			"15,Contract Management^81,Customer Service^16,E Business^80,Economics^47,Entrepreneurship^17,Healthcare Management^" +
			"75,Hospitality Management^19,Human Resources^20,International Business^21,IT Management^77,Leadership^1,Marketing^" +
			"76,Organizational Management^23,Project Management^63,Six Sigma^78,Sports & Entertainment Business^" +
			"79,Supply Chain Management#9:70,Animation^71,Fashion^49,Graphic Design & Multimedia^51,Interior Design^" +
			"52,Video Game Dev & Design^69,Visual Communication^50,Web Development & Design#3:55,Computer Security^" +
			"56,Corrections^57,Crime Scene^58,Criminal Justice (General)^59,Forensics^60,Homeland Security^" +
			"61,Law Enforcement, Policing & Investigation^62,Public Safety & Security#5:46,Adult Education^" +
			"41,Curriculum & Instruction^37,Education/Teaching (General)^42,Instructional Technology^" +
			"39,Leadership & Administration^72,Special Education#6:82,Health Informatics^43,Healthcare Admin & Mgmt^" +
			"83,Medical and Dental Specialties^84,Medical Assisting^68,Medical Billing and Coding^44,Nursing^" +
			"85,Physical and Occupational Therapy^86,Public Health#15:10,Counseling^9,Psychology#16:73,Law & Legal^74,Paralegal#"+
			"4:33,Computer Science^35,Database Technology^25,Info. Technology / Computer Systems^29,Internet & Website Development^"+
			"36,Management Info Systems^26,Network Admin & Security^27,Programming^30,Software Engineering^"+
			"28,Tech Project Management^31,Technology Management^34,Technology/E Business^48,Telecommunications#20:#10:#17:#18:#19:#22:"
			
	function fillConcentration(catId, ctrlID)
	{
		nCategoryType = catId;
		var sConcentrationArray = _Concentrations.split("#");
		for(var i=0; i<sConcentrationArray.length; i++)
		{
			var sTempArray = sConcentrationArray[i].split(":");
			if(parseInt(sTempArray[0]) == parseInt(catId))
			{
				populateControl(sTempArray[1].toString(), ctrlID);
			}
		}
	}

	function populateControl(values, ctrlID) {
		document.getElementById(ctrlID).length = 0;
		document.getElementById(ctrlID).disabled = true;
		
		if (values == "") {
			nConcentration = 0;
			var newOption = new Option("All", "0");
			document.getElementById(ctrlID).options[0] = newOption;
		}
		else {
			var options = values.split("^");
			for (var i = 0; i < options.length; i++) {
				var tempValues = options[i].split(",");
				initializeVariables(i, tempValues[0]);
				var newOption = new Option(tempValues[1], tempValues[0]);
				document.getElementById(ctrlID).options[i] = newOption;
			}
		}

		document.getElementById(ctrlID).disabled = false;
	}
	
	function initializeVariables(counter, value)
	{
		if(counter == 0)
		{
			nConcentration = value;
		}
	}

	function getCategories(typeValue)
	{
		nDegreeType = typeValue;
	}

	function getDegreesType(typeValue)
	{
		nDegreeType = typeValue;
	}

	function getCategoriesType(typeValue)
	{
		nConcentration = 0;
		nCategoryType = typeValue;
	}

	function GetConcentrationValue(concentrationValue)
	{
		nConcentration = concentrationValue;
	}

	function redirect()
	{
		var sURL = "http://www.exploredegrees.com/widget.aspx?CategoryId="+ nCategoryType +"&CtrnId="+ nConcentration +"&DegreeType="+ nDegreeType +"&Key=expdeg_widget&C=CA7151144537";
        window.open(sURL,"myWindow");
	}
      //For widget-bnw.htm

	function setVisible(obj)
	    {
	    obj = document.getElementById(obj);
	    //obj.style.visibility = (obj.style.visibility == 'visible') ? 'hidden' : 'visible';
	    obj.style.display = (obj.style.visibility == 'block') ? 'none' : 'block';
	    }
	    function closeDiv(id)
	    {
	    document.getElementById(id).style.visibility='hidden';
	    hideLightbox();
	    }
function redirectBNW()
{
	var sURL = "http://www.exploredegrees.com/widget.aspx?CategoryId="+ nCategoryType +"&CtrnId="+ nConcentration +"&DegreeType="+ nDegreeType +"&Key=yahwgt&C=CA7151144537";
    window.open(sURL,"myWindow");    
}

function redirectNCF()
{
	var sURL = "http://www.exploredegrees.com/widget.aspx?CategoryId="+ nCategoryType +"&CtrnId="+ nConcentration +"&DegreeType="+ nDegreeType +"&Key=tbmel_APINCFedu&C=CA7151144537";	
    window.location.href = sURL;
}
function redirectBlackPlanet()
{
	var sURL = "http://www.exploredegrees.com/widget.aspx?CategoryId="+ nCategoryType +"&CtrnId="+ nConcentration +"&DegreeType="+ nDegreeType +"&Key=tbmel_APIBlackPlanet&C=CA7151144537";	
    window.location.href = sURL;
}
function redirectLocalHires()
{
	var sURL = "http://www.exploredegrees.com/widget.aspx?CategoryId="+ nCategoryType +"&CtrnId="+ nConcentration +"&DegreeType="+ nDegreeType +"&Key=tbmel_APILoHiEM&C=CA7151144537";	
    window.location.href = sURL;
}

function redirectOrangeGirl200x200()
	{
		var sURL = "http://www.exploredegrees.com/widget.aspx?CategoryId="+ nCategoryType +"&CtrnId="+ nConcentration +"&DegreeType="+ nDegreeType +"&Key=tbmel_APIWIDGETORANGE200200&C=CA7151144537";
        window.open(sURL,"myWindow");
	}


function redirectOrangeGirl728x90()
	{
		var sURL = "http://www.exploredegrees.com/widget.aspx?CategoryId="+ nCategoryType +"&CtrnId="+ nConcentration +"&DegreeType="+ nDegreeType +"&Key=yahwgt&C=CA7151144537";
        window.open(sURL,"myWindow");
	}