/* serverview.js
 *
 * Codero.com custom server view page controls
 *
 */
function gotoorderlink(o) {
	var vopt43 = ($('#serverprotectplan:checked').length) ? '&vopt[43]=229' : '';
	var vopt27 = ($('#ciscopix501firewall:checked').length) ? '' : '';
	window.open($(o).attr('href') + vopt43 + vopt27);
	return false;
}

$(document).ready(function() {
	$('a[title~=Add Server Protection Plan].tooltip').qtip({
		content: {
			text: $('div#serverprotectplan'),
      title: {
				text: $('div#serverprotectplan').attr('title')
      }
	  },
		hide: {
      fixed: true,
			delay: 350,
      when: {
				target: $('.hideMe')
			}
		},
		style: {
			classes: 'ui-tooltip-youtube ui-tooltip-shadow ui-tooltip-rounded'
		}
	});
	
	$('a[title~=Add Cisco PIX 501 Firewall].tooltip').qtip({
		content: {
			text: $('div#ciscopix501firewall'),
      title: {
				text: $('div#ciscopix501firewall').attr('title')
      }
	  },
		hide: {
      fixed: true,
			delay: 350,
      when: {
				target: $('.hideMe')
			}
		},
		style: {
			classes: 'ui-tooltip-youtube ui-tooltip-shadow ui-tooltip-rounded'
		}
	});
	
	$('a[title~=Compare CPU Benchmark].tooltip').qtip({
		content: {
			text: $('div#cpubenchmarkscore'),
      title: {
				text: $('div#cpubenchmarkscore').attr('title')
      }
	  },
		hide: {
      fixed: true,
			delay: 350,
      when: {
				target: $('.hideMe')
			}
		},
		style: {
			classes: 'ui-tooltip-youtube ui-tooltip-shadow ui-tooltip-rounded'
		}
	});	
});
