
//About Us
var AboutUs = new Array();		
AboutUs[0] = "../Downloads/Downloads/Data-World-Company-Profile-2009-10.pdf | Data World Profile (PDF 311 KB)";

var Policy = new Array();		
Policy[0] = "../Downloads/Downloads/policy_Black Economic Empowerment Policy.pdf | Black Economic Empowerment Policy (PDF 85 KB)";
Policy[1] = "../Downloads/Downloads/policy_Corporate Social Investment.pdf | Corporate Social Investment Policy (PDF 126 KB)";
Policy[2] = "../Downloads/Downloads/policy_Employment Equity Policy.pdf | Employment Equity Policy (PDF 81 KB)";
Policy[3] = "../Downloads/Downloads/policy_Training Policy1.pdf | Skills Development Plan (PDF 79 KB)";


var Awards = new Array();		
Awards[0] = "../Downloads/Downloads/awards_TopBlackICTCompany.pdf | ITC Achievers Award (PDF 171 KB)";
Awards[1] = "../Downloads/Downloads/awards_ImpumeleloTopEmpowermentCompany.pdf | Top 300 Empowerment Companies (PDF 261 KB)";
Awards[2] = "../Downloads/Downloads/awards_TopBlackICTCompany.pdf | ITC Achievers Award (PDF 171 KB)";
Awards[3] = "../Downloads/Downloads/awards_EsriUserConference.pdf | Esri User Conference (PDF 121 KB)";

var Social = new Array();		
Social[0] = "../Downloads/Downloads/policy_Social Investment Policy.pdf | Corporate Social Investment Policy (PDF 122 KB)";
Social[1] = "../Downloads/Downloads/socialRes_charities.pdf | All Charities Supported (PDF 350 KB)";

var Contacts = new Array();		
Contacts[0] = "../Downloads/Downloads/Avaya.pdf | Avaya one_X Deskphone Value Edition 1616 IP Telephone User Guide (PDF 342 KB)";


//Products
var VA = new Array();

var ArmChair = new Array();	

var pRoute = new Array();	
pRoute[0] = "../Downloads/Downloads/ProductsProute.pdf | pRoute Transport Routing System (PDF 1.45MB)";


var buffalo = new Array();	
buffalo[0] = "../Downloads/Downloads/Buffalo Product Brochure.pdf | Buffalo Product Brochure (PDF 590KB)";


var leopard = new Array();	

var Planet = new Array();		
Planet[0] = "../Downloads/Downloads/PlanetWise _v0.2.pdf | PlanetWise Environmental Solutions (PDF 1.96MB)";
Planet[1] = "../Downloads/Downloads/CITES_ Functional Overview .pdf | PlanetWise CITES - Functional Overview (PDF 137KB)";
Planet[2] = "../Downloads/Downloads/Solution Framework.pdf | Solution Framework Overview (PDF 136KB)";
Planet[3] = "../Downloads/Downloads/Green_Hospitality_ Functional Overview .pdf | Green Hospitality Functional Overview (PDF 119KB)";
Planet[4] = "../Downloads/Downloads/AirWaterWaste_ Functional Overview.pdf | Air, Water & Waste Management - Functional Overview (PDF 114KB)";
Planet[5] = "../Downloads/Downloads/AgriculturePermitting_FunctionalOverview.pdf | Agriculture Permitting - Functional Overview (PDF 117KB)";
Planet[6] = "../Downloads/Downloads/Co2Management_FunctionalOverview.pdf | Co2 Management - Functional Overview (PDF 118KB)";

//Services
var Bespoke = new Array();		



//Downloads List
var DL = new Array();
DL[0] = AboutUs;
DL[1] = Awards;
DL[2] = Policy;
DL[3] = Social;
DL[4] = VA;
DL[5] = ArmChair;
DL[6] = pRoute;
DL[7] = buffalo;
DL[8] = leopard;
DL[9] = Bespoke;
DL[10] = Planet;
DL[11] = Contacts;

//Code
var DownloadList = "dpDownloads";

function CLEAR_Droplist()
{
	for (var i= document.getElementById(DownloadList).options.length-1;i>-1;i--) 
		document.getElementById(DownloadList).options[i] = null;

	var defaultt = document.createElement("OPTION");
	defaultt.text = "- Downloads -";
	defaultt.value = "-1";
	document.getElementById(DownloadList).options.add(defaultt);	
}


function RESET_Droplist()
{
	for (var i= document.getElementById(DownloadList).options.length-1; i>-1; i--) 
	{	
		if (document.getElementById(DownloadList).options[i].value == "-1")
			document.getElementById(DownloadList).options[i].selected = true;
	}
}


function TRIM_String(sString) 
{
	while (sString.substring(0,1) == ' ')
	{
	sString = sString.substring(1, sString.length);
	}
	while (sString.substring(sString.length-1, sString.length) == ' ')
	{
	sString = sString.substring(0,sString.length-1);
	}
	return sString;
}


function LOAD_PageDownloads(DownloadListID)
{
	CLEAR_Droplist();
	var PageDownloads = DL[DownloadListID];
    var item;
    var ListItem;
    
	for (var i= 0; i< PageDownloads.length; i++) 
	{
	    ListItem = PageDownloads[i].split('|');
		item = document.createElement("OPTION");
		item.text = TRIM_String(ListItem[1]);
		item.value = TRIM_String(ListItem[0]);
		document.getElementById(DownloadList).options.add(item);	
	}
}


function GET_Download()
{
    var download;
    var printWin;
	if (document.getElementById(DownloadList).value != "-1")
	{
        download = document.getElementById(DownloadList).value;
        printWin = window.open(download, null, "height=400, width=400, directories=no, location=no, menubar=no, resizable=yes, scrollbars=yes, status=no, titlebar=yes, toolbar=no, top=100");  
        
        RESET_Droplist();   
    }
}




