function getBrowser(){
	
	var browser = navigator.appName;
	
	if(browser.indexOf('Microsoft') >= 0){
	
		document.write("<link rel=\"stylesheet\" href=\"../../css/_pri_ie.css\" />");
		
	}else{
	
		document.write("<link rel=\"stylesheet\" href=\"../../css/_pri.css\" />");
		
	}
	
}	

//XML RELATED

function loadTestimonial(){
	
	//Variables to store file locations, random file name array and file extention
	var path;
	path = "";
	var ext;
	ext = ".xml";
	var file = Array();
	file.push('andy_m');
	file.push('neil_b');
	
	//select random file random() * total_files + lowest possible number
	loadDoc = path + file[Math.floor(Math.random() * file.length + 0)] + ext;

	//load xml
	
	if(window.ActiveXObject){
			
			var xml = new ActiveXObject("Microsoft.XMLDOM");
			xml.async = false; //force file to be downloaded first
			xml.load(loadDoc);
	}
	else if(document.implementation && document.implementation.createDocument){
		
		var xml = document.implementation.createDocument("", "doc", null);
		xml.load(loadDoc);
	}
	
	var nodes = xml.getElementsByTagName('person')[0].childNodes[0].firstChild.nodeValue;
	var nodes2 = xml.getElementsByTagName('person')[0].childNodes[1].firstChild.nodeValue;
	document.write(nodes);
	document.write(nodes2);
}
		
function detectFlash(){
	
		if(navigator.mimeTypes.length > 0){
		
			return navigator.mimeTypes['application/x-shockwave-flash'].enabledPlugin != null;
			
		}else if(window.ActiveXObject){
		
			try{
			
				new ActiveXObject('ShockwaveFlash.ShockwaveFlash');
				return true;
				
			}catch(oError){
			alert('error');
				return false;
					
			}
			
		}else{
			
				return false;
				
		}	
		
}


	