function popupsJ() {
	
	$("a[@href$='pdf'],a.map,a.friend").each(function(intindex){
		$(this).attr({title: $(this).attr("title") + " (opens in a new window)"});
		//$("a[@href$='pdf'],a.map,a.friend").attr({title: this + "(opens in a new window)"}); to delete
		$(this).append(" <img alt='(opens in a new window)' src='images/new-win-icon.gif' border='0'>");
		//$("a[@href$='pdf'],a.map,a.friend").append(" <img alt='(opens in a new window)' src='/i/new-win-icon.gif'>"); to delete
	});
	
	$("a[@href$='pdf']").click(function () { 
//		createPopUp(this, "popper", "resizable,scrollbars");return false;
		createPopUp(this, 'popper', 'width='+screen.width+',height='+screen.height+',top=0,left=0,scrollbars=yes,resizable=yes');return false;
// 		full screen
//		createPopUp(this, "popper", "type=fullWindow,fullscreen,scrollbars=yes");return false;
	});

}

function createPopUp(link, POPname, POPstyle){
	var strProps="";
   	window.open(link.href,POPname,POPstyle);
}

function imageStyle(){
	if($("#home").length != 1)
	{
		$("#content img").each(function(intindex){
			if(this.width > 60){
				$(this).wrap("<span class='imagestyle' style='width:" + (this.width + 12) +"px'><span></span></span>");
			}
		});
		
		//alert($("#clients div").length)
		$("#clients div").each(function(intindex){
				$(this).wrap("<div class='imagestyle' style='width:151px'><div></div></div>");
		});
	}
}

$(document).ready(function(){
	javaScriptEnabled();
	imageStyle();
	popupsJ();
});
function javaScriptEnabled(){
	$("body").addClass("javascript");
}

