$(document).ready(function() {
    //This hides the inline content if JavaScript is supported, but allows it to remain visible if not.
	//<![CDATA[
	//document.write("<style type='text/css'>.hidden{display:none;}<\/style>");
	//]]>
	//Examples of Global Changes
    $.fn.colorbox.settings.bgOpacity = "0.8";
    //Examples of how to assign the ColorBox event to elements.

    $("a[rel='userSignIn']").colorbox({ transition: "elastic", fixedWidth: 400, fixedHeight: 215, initialWidth: "40", initialHeight: "40", iframe: true });
    $("a[rel='userFavorite']").colorbox({ transition: "elastic", fixedWidth: 400, fixedHeight: 200, initialWidth: "40", initialHeight: "40", iframe: true });
    $("a[rel='userReview']").colorbox({ transition: "elastic", fixedWidth: 400, fixedHeight: 300, initialWidth: "40", initialHeight: "40", iframe: true });
	$("a[rel='locatorSendMobile']").colorbox({ transition: "elastic", fixedWidth: 280, fixedHeight: 160, initialWidth: "40", initialHeight: "40", iframe: true });
	$("a[rel='locatorDirections']").colorbox({ transition: "elastic", fixedWidth: 280, fixedHeight: 300, initialWidth: "40", initialHeight: "40", iframe: true });
	$("a[rel='locatorMyMatrixFav']").colorbox({ transition: "elastic", fixedWidth: 280, fixedHeight: 160, initialWidth: "40", initialHeight: "40", iframe: true });
	$("a.singlePopup").colorbox(); // popup for single image
	$("a[rel='slideShow']").colorbox(); // popup for multiple image slidshow
	
	// tooltip
	$(".toolTip").easytooltip("ttDisplay", {border: "2px solid #d31145"}); // can apply global styles here

});
function colorboxClose() {
	$.fn.colorbox.close();
}
function colorboxUserReview(url,title) {
	$.fn.colorbox({ transition: "elastic", fixedWidth: 400, fixedHeight: 300, initialWidth: "40", initialHeight: "40", iframe: true, href: url, title: title, open: true })
}
function colorboxUserSignin(url, title) {
	$.fn.colorbox({ transition: "elastic", fixedWidth: 400, fixedHeight: 215, initialWidth: "40", initialHeight: "40", iframe: true, href: url, title: title, open: true });
}

function reviewLink(){
	location.href= location.href+ '#reviews';
}

<!--Google Analytics-->
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));

try {
var pageTracker = _gat._getTracker("UA-10220001-1");
pageTracker._trackPageview();
} catch(err) {}
<!--End Google Analytics-->
