$(document).ready(function(){

	var rndHdr=Math.floor(Math.random()*4)+1;
	$("#leftCol").toggleClass("l"+rndHdr);
	$("#header").toggleClass("m"+rndHdr);
	$("#rightCol").toggleClass("r"+rndHdr);
   
	$.fn.qtip.styles.dPolo = { // Last part is the name of the style
		padding: 4,
		background: '#FFF',
		color: '#006080',
		textAlign: 'center',
		border: {
		  width: 1,
		  radius: 1,
		  color: '#ACBDDB'
		},
		tip: {
			size: { x: 13, y: 7 }
		}
	}

/* --- */
	
	$("#twitterLink").qtip({
		content: 'Follow us on Twitter',
		position: {
			adjust: { x: -98, y: 4 }
		},
		style: { 
			width: 120,
			tip: {
				corner: 'topMiddle'
			},
			name: 'dPolo'
		}
	});

/* --- */
	
	$("#facebookLink").qtip({
		content: 'Join our Facebook Page',
		position: {
			adjust: { x: -87, y: 4 }
		},
		style: { 
			width: 130,
			tip: {
				corner: 'topMiddle'
			},
			name: 'dPolo' 
		}
	});

/* --- */

	$.fn.qtip.styles.dPolo2 = { // Last part is the name of the style
		width: 170,
		padding: 2,
		background: '#17718C',
		color: '#FFF',
		textAlign: 'center',
		border: {
		  width: 1,
		  radius: 5,
		  color: '#17718C'
		},
		tip: {
			size: { x: 13, y: 7 },
			corner: 'bottomMiddle'
		}
	}
	
	$("#sponsor1, #sponsor1a").qtip({
		content: 'Visit Company Website',
		position: {
			adjust: { y: -160 },
			corner: {
				target: 'topMiddle',
				tooltip: 'bottomMiddle'
			}
		},		   
		style: { 
			name: 'dPolo2'
		 }
	});
	
/* --- */

	$("#sponsor2, #sponsor3, #sponsor4, #sponsor5, #sponsor6, #sponsor7, #sponsor8, #sponsor9, #sponsor10, #sponsor11").qtip({
		content: 'Visit Company Website',
		position: {
			adjust: { y: -110 },
			corner: {
				target: 'topMiddle',
				tooltip: 'bottomMiddle'
			}
		},		   
		style: { 
			name: 'dPolo2'
		 }
	});


});
