// $cmignore
function popUp(winURL) {
  window.open(winURL,"popup","toolbar=yes,location=yes,directories=no,status=yes,menubar=yes,scrollbars=yes,resizable=yes");
}

$(document).ready(function() {
  	$("#tools a[href$='systems-and-specifications/index.jsp']").click(function() { popUp("/coatings/systems/"); return false;})
	});
$(document).ready(function() {
  	$("a[href$='/tools/spray-equipment-reference-guide/']").click(function() { popUp("http://www.sherwin.com/pro/paint_supply/painting_tool/sprayers/"); return false;})
	});
$(document).ready(function() {
  	$("#tools #content a[href$='/knowledge/'], #services #content a[href$='/knowledge/']").click(function() { popUp("/knowledge/"); return false;})
	});
$(document).ready(function() {
  	$("#sevices-landing a[href$='/contact/']").click(function() { popUp("/contact/?help-type=Sales%20Support"); return false;})
	});

$(document).ready(function() { 
	  $("body a[href$='.pdf']").removeAttr('target'); 
      $("body a[href$='.pdf']").click(function() { window.open($(this).attr('href'));return false;}) 
}); 

$(document).ready(function() {
  	$("#color a[href$='http://www.osha.gov/']").click(function() { window.open($(this).attr('href')); return false;})
	});
$(document).ready(function() {
  	$("#color a[href$='/flash/color_picker.jsp']").click(function() {
		var baseHref	= "http://protective.sherwin.com/";
		var winLoc		= window.location;
		var winString	= winLoc.toString();
		
		if (winString.indexOf("stage-protective.sherwin") > 0) {
			baseHref = "http://stage-protective.sherwin.com/";
		} else if (winString.indexOf("dev-protective.sherwin") > 0) {
			baseHref = "http://dev-protective.sherwin.com/";
		}
		popUp(baseHref + "flash/color_picker.jsp");
		return false;
	});
});

// $/cmignore


