$(function() {
	
	$.fn.qtip.styles.definition = {
		fontSize:'0.9em',
		width:400,
		padding:'10px',
		border: {
			radius: 5
		},
		tip: 'bottomMiddle',
		name: 'dark'
	}
	
	$.fn.qtip.styles.item = {
		backgroundColor:'#ecfad1',
		fontSize:'0.8em',
		width:400,
		padding:'10px',
		border: {
			color: '#6c704b',
			radius: 5
		},
		tip: 'leftMiddle',
		name: 'light'
	}
	
	$.fn.qtip.styles.donors = {
		backgroundColor:'#d7f798',
		fontSize:'0.9em',
		width:200,
		padding:'10px',
		border: {
			color: '#65910f',
			radius: 5
		},
		tip: 'bottomMiddle',
		name: 'light'
	}
	
	// DONORS DELIVERY DEFINITION
	$("a.donatehover.delivery").qtip({
		content: '<strong>Donors:</strong><ul><li>Miley Cyrus</li><li>Limp Bizkit</li></ul>',
		position: {
			corner: {
				target: 'topMiddle',
				tooltip: 'bottomMiddle'
			}
		},
		style: 'donors'
	});
	
	// FERTILIZER DEFINITION
	$("a.itemhover.fertilizer").qtip({
		content: 'An instrumental agricultural input for our farmers, fertilizer can assist in doubling and tripling yearly harvest yields. Increased yields result in more income for farmers, enabling them to provide for their families and improve their communities.',
		position: {
			corner: {
				target: 'rightMiddle',
				tooltip: 'leftMiddle'
			},
			adjust: {
				x: 10
			}
		},
		style: 'item'
	});
	
	// FIELD TOOLS DEFINITION
	$("a.itemhover.fieldtools").qtip({
		content: 'By providing farmers with essential tools such as fertilizer distributor packs and small coffee de-pulpers, we can greatly increase the efficiency in which farmers tend to their fields.  This leaves them with time to increase the size and scope of their businesses.',
		position: {
			corner: {
				target: 'rightMiddle',
				tooltip: 'leftMiddle'
			},
			adjust: {
				x: 10
			}
		},
		style: 'item'
	});
	
	// SOLAR DRIER DEFINITION
	$("a.itemhover.solardrier").qtip({
		content: 'Similar to a greenhouse, solar dyers help farmers quickly and effectively dry coffee. This both improves quality and prevents the potential ruin of thousands of pounds from rainwater.  All these improvements directly relate to increased incomes for farmers.',
		position: {
			corner: {
				target: 'rightMiddle',
				tooltip: 'leftMiddle'
			},
			adjust: {
				x: 10
			}
		},
		style: 'item'
	});
	
	// GRAIN SILO DEFINITION
	$("a.itemhover.grainsilo").qtip({
		content: 'By enabling farmers the ability to store goods for long periods of time, they can keep food for consumption and control the time of year they sell goods. By choosing when they sell, farmers can get a much better price for their product and receive a balanced stream of income through the year.',
		position: {
			corner: {
				target: 'rightMiddle',
				tooltip: 'leftMiddle'
			},
			adjust: {
				x: 10
			}
		},
		style: 'item'
	});
	
	// LARGE GRAIN SILO DEFINITION
	$("a.itemhover.largergrainsilo").qtip({
		content: 'By enabling farmers the ability to store goods for long periods of time, they can keep food for consumption and control the time of year they sell goods. By choosing when they sell, farmers can get a much better price for their product and receive a balanced stream of income through the year.',
		position: {
			corner: {
				target: 'rightMiddle',
				tooltip: 'leftMiddle'
			},
			adjust: {
				x: 10
			}
		},
		style: 'item'
	});
	
	// BOYD DEFINITION
	$("a.itemhover.boyd").qtip({
		content: 'Andrew works full time as UMF’s Director of US Operations. Supporting his salary will help him live in the US while fundraising, marketing Microloan Coffee, coordinating service projects, and cultivating partnerships with the villages of La Unión.',
		position: {
			corner: {
				target: 'rightMiddle',
				tooltip: 'leftMiddle'
			},
			adjust: {
				x: 10
			}
		},
		style: 'item'
	});
	
	// MARTIR DEFINITION
	$("a.itemhover.martir").qtip({
		content: 'Martir works full time as a Field Officer for UMF. Supporting his salary will enable him to conduct loan meetings, hold training sessions, and assist with the development of community projects. Martir was born and raised in La Unión and cares deeply for the community.',
		position: {
			corner: {
				target: 'rightMiddle',
				tooltip: 'leftMiddle'
			},
			adjust: {
				x: 10
			}
		},
		style: 'item'
	});
	
	// GILBERTO DEFINITION
	$("a.itemhover.gilberto").qtip({
		content: 'Gilberto works full time in Honduras as a Field Officer for UMF.  Supporting his salary will enable him to conduct loan meetings, and organize and conduct UMF’s training sessions.  Gilberto was born and raised in La Unión and is deeply passionate about alleviating poverty.',
		position: {
			corner: {
				target: 'rightMiddle',
				tooltip: 'leftMiddle'
			},
			adjust: {
				x: 10
			}
		},
		style: 'item'
	});
	
	// CHARLIE DEFINITION
	$("a.itemhover.charlie").qtip({
		content: 'Charlie works full time in Honduras as UMF’s Manager of Finance.  Supporting his salary will enable him monitor UMF’s financial activity.  He was initially drawn to UMF because of his desire to help the disadvantaged rural farmers that UMF works with.',
		position: {
			corner: {
				target: 'rightMiddle',
				tooltip: 'leftMiddle'
			},
			adjust: {
				x: 10
			}
		},
		style: 'item'
	});
	
	// DAN DEFINITION
	$("a.itemhover.dan").qtip({
		content: 'Dan works full time in Honduras as UMF’s Manager of Community Relations.  With extensive personal and academic experience in world politics and Latin American cultures, his role is essential for Unión MicroFinanza’s bi-cultural endeavor to prosper.',
		position: {
			corner: {
				target: 'rightMiddle',
				tooltip: 'leftMiddle'
			},
			adjust: {
				x: 10
			}
		},
		style: 'item'
	});
	
	// MIKE DEFINITION
	$("a.itemhover.mike").qtip({
		content: 'Mike works full time in Honduras as UMF’s Director of Honduran Operations.  He oversees the microfinance activities and administration of UMF Honduras, and he supervises the supply-side operations of Microloan Coffee.',
		position: {
			corner: {
				target: 'rightMiddle',
				tooltip: 'leftMiddle'
			},
			adjust: {
				x: 10
			}
		},
		style: 'item'
	});
	
	// PATRICK DEFINITION
	$("a.itemhover.patrick").qtip({
		content: 'Patrick works full time in Honduras and the US as UMF’s Director of Operations.  Supporting his salary enables him to manage the coordination of American and Honduran, corporate and governmental donors, and strategy for coffee sales and the microfinance program.',
		position: {
			corner: {
				target: 'rightMiddle',
				tooltip: 'leftMiddle'
			},
			adjust: {
				x: 10
			}
		},
		style: 'item'
	});
	
	// BRET DEFINITION
	$("a.itemhover.bret").qtip({
		content: 'Bret works full time in Honduras as UMF’s Manager of Technology.  Supporting Bret enables him to keep UMF on the cutting edge of technology, from our website to research programs to our microloan tracking system.',
		position: {
			corner: {
				target: 'rightMiddle',
				tooltip: 'leftMiddle'
			},
			adjust: {
				x: 10
			}
		},
		style: 'item'
	});
	
	// PLANE DEFINITION
	$("a.itemhover.plane").qtip({
		content: 'For UMF’s North American employees who work full time in Honduras, it is difficult for them to see their families throughout the year.  These funds allow staff members to take a well-deserved break and have time with their families a few times a year.',
		position: {
			corner: {
				target: 'rightMiddle',
				tooltip: 'leftMiddle'
			},
			adjust: {
				x: 10
			}
		},
		style: 'item'
	});
	
	// GILBERTO DEFINITION
	$("a.itemhover.gilberto").qtip({
		content: 'Gilberto works full time in Honduras as a Field Officer for UMF.  Supporting his salary will enable him to conduct loan meetings, and organize and conduct UMF’s training sessions.  Gilberto was born and raised in La Unión and is deeply passionate about alleviating poverty.',
		position: {
			corner: {
				target: 'rightMiddle',
				tooltip: 'leftMiddle'
			},
			adjust: {
				x: 10
			}
		},
		style: 'item'
	});
	
	// GILBERTO DEFINITION
	$("a.itemhover.gilberto").qtip({
		content: 'Gilberto works full time in Honduras as a Field Officer for UMF.  Supporting his salary will enable him to conduct loan meetings, and organize and conduct UMF’s training sessions.  Gilberto was born and raised in La Unión and is deeply passionate about alleviating poverty.',
		position: {
			corner: {
				target: 'rightMiddle',
				tooltip: 'leftMiddle'
			},
			adjust: {
				x: 10
			}
		},
		style: 'item'
	});
	
	// MOTO DEFINITION
	$("a.itemhover.moto").qtip({
		content: 'The current UMF motorcycle is old and prone to frequent breakdowns—and can be dangerous to ride in rough weather. A new motorcycle will help our loan officers reach villages safely and effectively, while reducing the cost of maintenance.',
		position: {
			corner: {
				target: 'rightMiddle',
				tooltip: 'leftMiddle'
			},
			adjust: {
				x: 10
			}
		},
		style: 'item'
	});
	
	// TRAINING DEFINITION
	$("a.itemhover.training").qtip({
		content: 'From the paper we print loan applications on, to the materials needed to conduct training sessions, these supplies are essential to actually getting loans and information into the hands of our farmers.',
		position: {
			corner: {
				target: 'rightMiddle',
				tooltip: 'leftMiddle'
			},
			adjust: {
				x: 10
			}
		},
		style: 'item'
	});
	
	// MOTO MAINTENANCE DEFINITION
	$("a.itemhover.motomaintenance").qtip({
		content: 'All the villages we work in are connected by steep, ill-kept dirt roads and paths.  The terrain creates a great deal of wear and tear on our motorcycle, resulting in the need for constant upkeep.',
		position: {
			corner: {
				target: 'rightMiddle',
				tooltip: 'leftMiddle'
			},
			adjust: {
				x: 10
			}
		},
		style: 'item'
	});
	
	// MOTO GAS DEFINITION
	$("a.itemhover.motogas").qtip({
		content: 'Without gas, we could not get our motorcycle from village to village.  Our loan officers would have to walk many hours over mountain paths to reach our farmers.',
		position: {
			corner: {
				target: 'rightMiddle',
				tooltip: 'leftMiddle'
			},
			adjust: {
				x: 10
			}
		},
		style: 'item'
	});
	
	// HORSE DEFINITION
	$("a.itemhover.horse").qtip({
		content: 'For closer villages, a horse is one of the most economical forms of transportation in the region.  Horses can also reach houses on steep paths and in rainy conditions that would be impossible with a motorcycle or truck.',
		position: {
			corner: {
				target: 'rightMiddle',
				tooltip: 'leftMiddle'
			},
			adjust: {
				x: 10
			}
		},
		style: 'item'
	});
	
	// HORSE CARE DEFINITION
	$("a.itemhover.horsecare").qtip({
		content: 'From booster shots to horse shoes and saddles, we want to make sure that our horse is given the best possible care.',
		position: {
			corner: {
				target: 'rightMiddle',
				tooltip: 'leftMiddle'
			},
			adjust: {
				x: 10
			}
		},
		style: 'item'
	});
	
	// TRAINING FACILITY DEFINITION
	$("a.itemhover.trainingfacility").qtip({
		content: 'We have one building used for our house, office and warehouse.  A new facility is essential for our growth.  It will provide a place to store fertilizer, train farmers and begin the process towards helping farmers achieve the maximum quality in their products.',
		position: {
			corner: {
				target: 'rightMiddle',
				tooltip: 'leftMiddle'
			},
			adjust: {
				x: 10
			}
		},
		style: 'item'
	});
	
	// DELIVERY VEHICLE DEFINITION
	$("a.itemhover.delivery").qtip({
		content: 'A delivery vehicle will enable us to transport large amounts of coffee, deliver it to our customers, and provide airport travel to our service groups going to Honduras. A larger vehicle will decrease the frequency of trips and thus the substantial amount of money needed for gas.',
		position: {
			corner: {
				target: 'rightMiddle',
				tooltip: 'leftMiddle'
			},
			adjust: {
				x: 10
			}
		},
		style: 'item'
	});
	
	// COFFEE MARKETING DEFINITION
	$("a.itemhover.coffeemarketing").qtip({
		content: 'From videos to signs, brochures and displays—the more materials we have to get the word out about Microloan Coffee, the more people will get to enjoy a great coffee.  This will result in more funds for our work and increased recognition of the quality coffee from La Unión, Honduras.',
		position: {
			corner: {
				target: 'rightMiddle',
				tooltip: 'leftMiddle'
			},
			adjust: {
				x: 10
			}
		},
		style: 'item'
	});
	
	// VEHICLE MAINTENANCE DEFINITION
	$("a.itemhover.deliverymaintenance").qtip({
		content: 'With every vehicle comes maintenance.  We would like to have the resources to keep our delivery vehicle in peak condition in an effort to avoid mechanical problems that might occur throughout the year.',
		position: {
			corner: {
				target: 'rightMiddle',
				tooltip: 'leftMiddle'
			},
			adjust: {
				x: 10
			}
		},
		style: 'item'
	});
	
	// INTERNET DEFINITION
	$("a.itemhover.internet").qtip({
		content: 'Communication is key! With a better Internet source in Honduras, we can save time in our daily operations. Constant accesses to email allows us to keep up-to-date, and keep our supporters constantly updated on the farmers, families and villages of La Unión.',
		position: {
			corner: {
				target: 'rightMiddle',
				tooltip: 'leftMiddle'
			},
			adjust: {
				x: 10
			}
		},
		style: 'item'
	});
	
	
	// NODE DEFINITION
	$("a.def.node").qtip({
		content: '<strong>Node</strong>:<br/>The dot in a network graph that represent units which have some presumed connections to one another.  When nodes symbolize people or organizations, scholars often refer to them as agents or actors.',
		position: {
			corner: {
				target: 'topMiddle',
				tooltip: 'bottomMiddle'
			}
		},
		style: 'definition'
	});
	
	// CONNECTIONS DEFINITION
	$("a.def.connections").qtip({
		content: '<strong>Connections</strong>:<br/>The links between nodes in a network.',
		position: {
			corner: {
				target: 'topMiddle',
				tooltip: 'bottomMiddle'
			}
		},
		style: {
			width:300,
			name:'definition'
		}
	});
	
	// ARCS DEFINITION
	$("a.def.arcs").qtip({
		content: '<strong>Arcs</strong>:<br/>The connections between nodes.',
		position: {
			corner: {
				target: 'topMiddle',
				tooltip: 'bottomMiddle'
			}
		},
		style: {
			width:300,
			name:'definition'
		}
	});
	
	// Non-directed Network DEFINITION
	$("a.def.ndn").qtip({
		content: '<strong>Non-directed network</strong>:<br/>A network made up of arcs. The connections between nodes are mutual relationships, like being siblings.',
		position: {
			corner: {
				target: 'topMiddle',
				tooltip: 'bottomMiddle'
			}
		},
		style: {
			name:'definition'
		}
	});
	
	// EDGES DEFINITION
	$("a.def.edges").qtip({
		content: '<strong>Edges</strong>:<br/>When the arcs have direction, they are referred to as edges.  For example, on a survey, if people are asked to name their two closest friends, and Person A names Person B, but Person B does not name Person A, then the analyst may want to specify that the connection between Persons A and B only has direction from A to B.',
		position: {
			corner: {
				target: 'topMiddle',
				tooltip: 'bottomMiddle'
			}
		},
		showEffect:'fade',
		hideEffect:'fade',
		
		style: {
			name:'definition'
		}
	});
	
	// Directed Network DEFINITION
	$("a.def.dn").qtip({
		content: '<strong>Directed network</strong>:<br/>A network made up of edges. The connections between nodes are one-way.',
		position: {
			corner: {
				target: 'topMiddle',
				tooltip: 'bottomMiddle'
			}
		},
		showEffect:'fade',
		hideEffect:'fade',
		
		style: {
			name:'definition'
		}
	});
	
	// Network DEFINITION
	$("a.def.network").qtip({
		content: '<strong>Network</strong>:<br/>The graphic representation of the nodes and arcs for a defined population.',
		position: {
			corner: {
				target: 'topMiddle',
				tooltip: 'bottomMiddle'
			}
		},
		showEffect:'fade',
		hideEffect:'fade',
		
		style: {
			name:'definition'
		}
	});
	
	// Nodal Network Statistics DEFINITION
	$("a.def.nodal").qtip({
		content: '<strong>Nodal network statistics</strong>:<br/>The condensing of information that indicates features about a given node’s position in relation to the rest of the network.  The most common of these statistics are centrality and betweenness.',
		position: {
			corner: {
				target: 'topMiddle',
				tooltip: 'bottomMiddle'
			}
		},
		showEffect:'fade',
		hideEffect:'fade',
		
		style: {
			name:'definition'
		}
	});
	
	// Structural Network Statistics DEFINITION
	$("a.def.structural").qtip({
		content: '<strong>Structural network statistics</strong>:<br/>The condensing of information that indicates features about the overall structure of the network and its generative processes.  Degree distribution, large component, community divisions, and small world properties are the most common forms of structural statistics.',
		position: {
			corner: {
				target: 'topMiddle',
				tooltip: 'bottomMiddle'
			}
		},
		showEffect:'fade',
		hideEffect:'fade',
		
		style: {
			name:'definition'
		}
	});
	
	// Community DEFINITION
	$("a.def.community").qtip({
		content: '<strong>Community</strong>:<br/>The commonality of shared connections between grouped nodes.',
		position: {
			corner: {
				target: 'topMiddle',
				tooltip: 'bottomMiddle'
			}
		},
		showEffect:'fade',
		hideEffect:'fade',
		
		style: {
			name:'definition'
		}
	});
	
	// Bridges DEFINITION
	$("a.def.bridges").qtip({
		content: '<strong>Bridges</strong>:<br/>Nodes that act as connections between communities.',
		position: {
			corner: {
				target: 'topMiddle',
				tooltip: 'bottomMiddle'
			}
		},
		showEffect:'fade',
		hideEffect:'fade',
		
		style: {
			name:'definition'
		}
	});
	
	
	
	$("a.def").click(function() {
		return false;
	});
	
});
