$(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
	if (typeof($.fn.easytooltip) == 'function') {
		$(".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';
}



