// Selects the "Customer Since" on the Right Side div and adds class
$(document).ready(function() {
	$('#right .cust-list li:nth-child(4)').addClass('italic');
	$("input[name='submit']").css({"cursor" : "pointer"});
	$("input.submit").css({"cursor" : "pointer"});

// Fixes the Background Image Height Problem
	var html_height = $('body').height();
	html_height = html_height;
	$('.content').css({'min-height' : html_height - 75});

// Make all Anchor tags Cursor Hovers
	$('a').css({'cursor' : 'pointer'});
	
// Sets All External Links to Blank Page Target
	$('a[rel*=external]').click( function() {
		window.open(this.href);
		return false;
	});
});

// Fix PINGS
$(document).ready(function() {
var blank = new Image();
 blank.src = '/images/overlay.gif';
 
 $(document).ready(function() {
   var badBrowser = (/MSIE ((5\.5)|6)/.test(navigator.userAgent) && navigator.platform == "Win32");
   if (badBrowser) {
     // get all pngs on page
     $('#letter-paginate').css({'position' : 'relative', 'top' : '15px'});
     $('#nav').css({'width' : '700px'});
     $('img[src$=.png]').each(function() {
       if (!this.complete) {
         this.onload = function() { fixPng(this) };
       } else {
         fixPng(this);
       }
     });
   }
 });
 
 function fixPng(png) {
   // get src
   var src = png.src;
   // set width and height
   if (!png.style.width) { png.style.width = $(png).width(); }
   if (!png.style.height) { png.style.height = $(png).height(); }
   // replace by blank image
   png.onload = function() { };
   png.src = blank.src;
   // set filter (display original image)
   //png.runtimeStyle.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + src + "',sizingMethod='scale')";
 }
});