/*************************************
 * Adam Spanier                      *
 * http://www.myscaryresume .com     *
 * adam@thecrazyspaniers.com         *
 *************************************/
function css_switcher(browser,version,os,path) {
	
	d = document;
	
	switch(browser){
		case "Firefox":
			
			switch(os){
				case "Windows":
					d.write('<link rel = "stylesheet" type = "text\/css" href = "' + path + 'style.fixers/ff.fix.win.css" />');
				break;
				
				case "Mac":
					d.write('<link rel = "stylesheet" type = "text\/css" href = "' + path + 'style.fixers/ff.fix.mac.css" />');
				break;
			}
			
		break;
		
		case "Explorer":
			
			switch(os){
				case "Windows":
					
					if(version < 6){
						d.write('<link rel = "stylesheet" type = "text\/css" href = "' + path + 'style.fixers/ie55.fix.win.css" />');
					}else if(version >= 6){
						
						d.write('<link rel = "stylesheet" type = "text\/css" href = "' + path + 'style.fixers/ie.fix.win.css" />');
						
						if(version == 6){
							d.write('<link rel = "stylesheet" type = "text\/css" href = "' + path + 'style.fixers/ie6.fix.win.css" />');
						}else if(version == 7){
							d.write('<link rel = "stylesheet" type = "text\/css" href = "' + path + 'style.fixers/ie7.fix.win.css" />');
						}
					}
				
				break;
				
				case "Mac":
					d.write('<link rel = "stylesheet" type = "text\/css" href = "' + path + 'style.fixers/ie.fix.mac.css" />');
				break;
			}
			
		break;
		
		case "Opera":
			
			switch(os){
				case "Windows":
					d.write('<link rel = "stylesheet" type = "text\/css" href = "' + path + 'style.fixers/op.fix.win.css" />');
				break;
				
				case "Mac":
					d.write('<link rel = "stylesheet" type = "text\/css" href = "' + path + 'style.fixers/op.fix.mac.css" />');
				break;
			}
			
		break;
		
		case "Safari":
			
			switch(os){
				case "Windows":
					d.write('<link rel = "stylesheet" type = "text\/css" href = "' + path + 'style.fixers/saf.fix.win.css" />');
				break;
				
				case "Mac":
					d.write('<link rel = "stylesheet" type = "text\/css" href = "' + path + 'style_fixers/saf.fix._mac.css" />');
				break;
			}
			
		break;
		
		default:
			alert("An unknown browser");
		break;
		
	}
	
}
