﻿$(document).ready( function(){

// GLOBAL READMODE/EDITMODE
// toggle editmode and readmode classes per editing status
	if($('#MSOLayout_InDesignMode').val() == '1') 
		$('html').addClass('editmode');
	else
		$('html').addClass('readmode');

// GLOBAL DEV & TEST
// use dev and test watermarks in the background when not in prod
	if(window.location.href.toLowerCase().indexOf("http://dev") != -1){
		$('html').addClass('dev');
	} else if(window.location.href.toLowerCase().indexOf("http://test") != -1){	
		$('html').addClass('test');
	}

// General scripts
	$("a[href$=pdf]").addClass("pdfFileLink").attr({ target: "_blank" });
	$("#layoutContent.homeLayout").parent().addClass('sixtyfive');
	$("#layoutContent.pageLayout").parent().addClass('seventyfive');
	$("#sidebarSection").children('table').addClass('sidebarZone');
	$("#sidebarSection2").children('table').addClass('sidebarZone');
});
