var initPage = function() {
	/** web track download content btn* */
	jQuery('.track-btn').click(trackBtn);
	var wm_qtip = '<div class="tip_title">Point your Camera Phone here</div>';
	wm_qtip += '<div class="tip_content">*To begin using the Tag Reader, you will need to download '
			+ '<a href="http://www.microsoft.com/tag/content/download/">Microsoft Tag</a> '
			+ 'first. Mobile Browser please go to <a href="http://gettag.mobi/">http://gettag.mobi/</a>';
	wm_qtip += '<img src="/download/eSobi_Mobile_SWM.jpeg" width="210px" height="210px" /></div>';

	var android_qtip = '<div class="tip_title">Point your Camera Phone here</div>';
	android_qtip += '<div class="tip_content">&#42; If you do not have QR Code Reader on your mobile device'
			+ ',please download from <a href="http://code.google.com/p/zxing/">http://code.google.com/p/zxing/</a> first.';
	android_qtip += '<img src="/download/eSobi_Mobile_Android.png" width="210px" height="210px" /></div>';

	var android_tip = '<div class="tip_content">Before you begin, please make sure that the <strong>[Unknown sources]</strong> button ';
	android_tip += 'within <strong>[Setting]</strong>, <strong>[Application]</strong> is checked on your Android device.</div>';
	android_tip += '<div class="tip_content margin-top">Once the setting has been completed, please link to eSobi official website <strong>Downloads</strong> – <strong>eSobi Mobile for Android</strong> using your mobile browser';
	android_tip += ', click on one of the preferred regions to proceed download.</div>';

	jQuery('#qrCode').qtip({
		content : wm_qtip,
		position : {
			corner : {
				tooltip : 'bottomMiddle',
				target : 'topMiddle'
			}
		},
		hide : {
			fixed : true
		// Make it fixed so it can be hovered over
		},
		style : {
			border : {
				width : 3
			},
			width : 233,
			tip : true, // Give it a speech bubble tip with automatic corner
			// detection
			name : 'dark' // And style it with the preset dark theme
		}
	});

	jQuery('#android_qrCode').qtip({
		content : android_qtip,
		position : {
			corner : {
				tooltip : 'bottomMiddle',
				target : 'topMiddle'
			}
		},
		hide : {
			fixed : true
		},
		style : {
			border : {
				width : 3
			},
			width : 234,
			tip : true,
			name : 'dark'
		}
	});

	jQuery('#android_tip').qtip({
		content : android_tip,
		position : {
			corner : {
				tooltip : 'bottomLeft',
				target : 'topRight'
			}
		},
		hide : {
			fixed : true
		},
		style : {
			border : {
				width : 3
			},
			width : 234,
			tip : true,
			name : 'dark'
		}
	});
};

jQuery(document).ready(initPage);
