$(document).ready(function(){

/* DASHBOARD TOOL TIPS
=============================*/

$('#companylogo').qtip({ 						 
	content: 'Click to visit your website and see any changes you have made.',
	style: { 
		 name: 'cream', 
		 tip: true,
		 padding: 10,
		 border: {
			 width: 3,
			 radius: 8,
		  }
	},
	position: {
		  adjust: { x: 0, y: -5 },
		  corner: {
		  target: 'topMiddle',
		  tooltip: 'bottomMiddle'}
	}
});

$('#dash').qtip({ 						 
	content: 'Goto your Suits You Dashboard.',
	style: { 
		 width: 210,
		 name: 'cream', 
		 tip: true,
		 padding: 10,
		 border: {
			 width: 3,
			 radius: 8,
		  }
	},
	position: {
		  adjust: { x: 0, y: 10 },
		  corner: {
		  target: 'bottomMiddle',
		  tooltip: 'topMiddle'}
	}
});

$('#page-settings').qtip({ 						 
	content: 'Edit this page\'s title, description and keywords. This information is important to search engines.',
	style: { 
		 name: 'cream', 
		 tip: true,
		 padding: 10,
		 border: {
			 width: 3,
			 radius: 8,
		  }
	},
	position: {
		  adjust: { x: 0, y: 10 },
		  corner: {
		  target: 'bottomMiddle',
		  tooltip: 'topMiddle'}
	}
});

$('#site-activity-toolbar').qtip({ 						 
	content: 'View 10 of the most recent activities on your website.',
	style: { 
		 name: 'cream', 
		 tip: true,
		 padding: 10,
		 border: {
			 width: 3,
			 radius: 8,
		  }
	},
	position: {
		  adjust: { x: 0, y: 10 },
		  corner: {
		  target: 'bottomMiddle',
		  tooltip: 'topMiddle'}
	}
});


/* USER MANAGEMENT TOOL TIPS
=============================*/

$('#delete-user').live('mouseover', function(){
	$(this).qtip({ 						 
		content: 'Double click to delete user.',
		overwrite: false, // Make sure another tooltip can't override this one without it being explicitly destroyed
        show: { ready: true }, // Required so the tooltip shows on first mouseover
		style: { 
			 name: 'cream', 
			 tip: true,
			 padding: 10,
			 border: {
				 width: 3,
				 radius: 8,
			  }
		},
		position: {
			  adjust: { x: 5, y: 0},
			  corner: {
			  target: 'rightMiddle',
			  tooltip: 'leftMiddle'}
		}
	});											 
});

$('#edit-user').live('mouseover', function(){
	$(this).qtip({ 						 
		content: 'Single click to edit user.',
		overwrite: false, // Make sure another tooltip can't override this one without it being explicitly destroyed
        show: { ready: true }, // Required so the tooltip shows on first mouseover
		style: { 
			 name: 'cream', 
			 tip: true,
			 padding: 10,
			 border: {
				 width: 3,
				 radius: 8,
			  }
		},
		position: {
			  adjust: { x: -5, y: 0},
			  corner: {
			  target: 'leftMiddle',
			  tooltip: 'rightMiddle'}
		}
	});											 
});

/* FORM TOOL TIPS
=============================*/

$('#versions').live('mouseover', function(){
	$(this).qtip({ 						 
		content: 'Made an accidental change? Not to worry let version control restore your lost data.',
		overwrite: false, // Make sure another tooltip can't override this one without it being explicitly destroyed
        show: { ready: true }, // Required so the tooltip shows on first mouseover
		style: { 
			 name: 'cream', 
			 tip: true,
			 padding: 10,
			 border: {
				 width: 3,
				 radius: 8,
			  }
		},
		position: {
			  adjust: { x: 0, y: -5},
			  corner: {
			  target: 'topMiddle',
			  tooltip: 'bottomMiddle'}
		}
	});											 
});

$('.cancel, .close, #cancel-edit-administrator, #cancel-add-administrator').live('mouseover', function(){
	$(this).qtip({ 						 
		content: 'Becareful! Any changes you have made will be lost!',
		overwrite: false, // Make sure another tooltip can't override this one without it being explicitly destroyed
        show: { ready: true }, // Required so the tooltip shows on first mouseover
		style: { 
			 name: 'cream', 
			 tip: true,
			 padding: 10,
			 border: {
				 width: 3,
				 radius: 8,
			  }
		},
		position: {
			  adjust: { x: 0, y: -5},
			  corner: {
			  target: 'topMiddle',
			  tooltip: 'bottomMiddle'}
		}
	});											 
});

/* EDIT PROJECTS
=============================*/

$('.delete-project').live('mouseover', function(){
	$(this).qtip({ 						 
		content: 'Double click to delete project.',
		overwrite: false, // Make sure another tooltip can't override this one without it being explicitly destroyed
        show: { ready: true }, // Required so the tooltip shows on first mouseover
		style: { 
			 name: 'cream', 
			 tip: true,
			 padding: 10,
			 border: {
				 width: 3,
				 radius: 8,
			  }
		},
		position: {
			  adjust: { x: 5, y: 0},
			  corner: {
			  target: 'rightMiddle',
			  tooltip: 'leftMiddle'}
		}
	});											 
});

$('.delete-image').live('mouseover', function(){
	$(this).qtip({ 						 
		content: 'Double click to delete image.',
		overwrite: false, // Make sure another tooltip can't override this one without it being explicitly destroyed
        show: { ready: true }, // Required so the tooltip shows on first mouseover
		style: { 
			 name: 'cream', 
			 tip: true,
			 padding: 10,
			 border: {
				 width: 3,
				 radius: 8,
			  }
		},
		position: {
			  adjust: { x: 5, y: 0},
			  corner: {
			  target: 'rightMiddle',
			  tooltip: 'leftMiddle'}
		}
	});	
});

$('.edit-project').live('mouseover', function(){
	$(this).qtip({ 						 
		content: 'Single click to edit project.',
		overwrite: false, // Make sure another tooltip can't override this one without it being explicitly destroyed
        show: { ready: true }, // Required so the tooltip shows on first mouseover
		style: { 
			 name: 'cream', 
			 tip: true,
			 padding: 10,
			 border: {
				 width: 3,
				 radius: 8,
			  }
		},
		position: {
			  adjust: { x: -5, y: 0},
			  corner: {
			  target: 'leftMiddle',
			  tooltip: 'rightMiddle'}
		}
	});											 
});


/*$('#project-image-wrapper').live('mouseover', function(){
    
	$(this).qtip({ 						 
		content: 'Double click image to delete.<br />Drag image to change its position.',
		overwrite: false, // Make sure another tooltip can't override this one without it being explicitly destroyed
        show: { ready: true }, // Required so the tooltip shows on first mouseover
		style: { 
			 name: 'cream', 
			 tip: true,
			 padding: 10,
			 border: {
				 width: 3,
				 radius: 8,
			  }
		},
		position: {
			  adjust: { x: -300, y: -30},
			  corner: {
			  target: 'topMiddle',
			  tooltip: 'bottomMiddle'}
		}
	});											 
});*/

/* TOOL TIP BUTTONS
=============================*/

$('#hintstips').live('mouseover', function(){
	$(this).qtip({ 						 
		content: 'Turning hints & tips on and off will reload your page, save any changes before updating to prevent loss of data.',
		overwrite: false, // Make sure another tooltip can't override this one without it being explicitly destroyed
        show: { ready: true }, // Required so the tooltip shows on first mouseover
		style: { 
			 name: 'cream', 
			 tip: true,
			 padding: 10,
			 border: {
				 width: 3,
				 radius: 8,
			  }
		},
		position: {
			  adjust: { x: 0, y: 5},
			  corner: {
			  target: 'topMiddle',
			  tooltip: 'bottomMiddle'}
		}
	});											 
});

/* FAQS TIPS
=============================*/
$('#delete-faqs').live('mouseover', function(){
	$(this).qtip({ 						 
		content: 'Double click to delete FAQ.',
		overwrite: false, // Make sure another tooltip can't override this one without it being explicitly destroyed
        show: { ready: true }, // Required so the tooltip shows on first mouseover
		style: { 
			 name: 'cream', 
			 tip: true,
			 padding: 10,
			 border: {
				 width: 3,
				 radius: 8,
			  }
		},
		position: {
			  adjust: { x: 5, y: 0},
			  corner: {
			  target: 'rightMiddle',
			  tooltip: 'leftMiddle'}
		}
	});											 
});

$('#edit-faqs').live('mouseover', function(){
	$(this).qtip({ 						 
		content: 'Single click to edit FAQ.',
		overwrite: false, // Make sure another tooltip can't override this one without it being explicitly destroyed
        show: { ready: true }, // Required so the tooltip shows on first mouseover
		style: { 
			 name: 'cream', 
			 tip: true,
			 padding: 10,
			 border: {
				 width: 3,
				 radius: 8,
			  }
		},
		position: {
			  adjust: { x: -5, y: 0},
			  corner: {
			  target: 'leftMiddle',
			  tooltip: 'rightMiddle'}
		}
	});											 
});


///////////// END
});
