jQuery(document).ready(function () {
	  var linkDownloadAppStore = "http://itunes.apple.com/id/app/star-for-iphone/id411438189?mt=8";
	  var linkDownloadAndroidMarket = "https://market.android.com/details?id=com.star.tablet.wsvga&feature=search_result";
	  var _gaq = _gaq || [];
	  _gaq.push(['_setAccount', 'UA-24695361-2']);
	  _gaq.push(['_setDomainName', '.samuel.co.id']);
	  _gaq.push(['_trackPageview']);
	
	  (function() {
	    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
	    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
	    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
	  })();
	
	jQuery.extend(jQuery.browser,
	{ SafariMobile: navigator.userAgent.toLowerCase().match(/iP(hone|ad)/i) }
    );
		
    if (jQuery.browser.SafariMobile) {        
		jQuery('#titleNonClient,#contentNonClient,#txtBrowserNotDetectNonClient, #linkStarNonClient').hide();
		jQuery("#linkStarClient a").attr("href",linkDownloadAppStore);
    }else {
		if(navigator.userAgent.match(/Android/i)) {
			jQuery('#linkStarClient a, #linkStarNonClient a').attr("href",linkDownloadAndroidMarket);
    	}
		jQuery(".browserNotDetected").hide();
    }
});

