﻿/* ------------------------JQUERY---------------------------- */
$(document).ready(function(){	
	//------------------------------<FONT> TAGS
	//http://stackoverflow.com/questions/278709/allowing-the-font-tag-to-override-css
	$('font[size]').each(function() {
	    var fontSize = this.size;
	    if (fontSize == 1) {
	        $(this).css("font-size", '10px');
	    } else if (fontSize == 2) {
	        $(this).css("font-size", '12px');
	    } else if (fontSize == 3) {
	        $(this).css("font-size", '14px');
	    } else if (fontSize == 4) {
	        $(this).css("font-size", '16px');
	    } else if (fontSize == 5) {
	        $(this).css("font-size", '24px');
	    } else if (fontSize == 6) {
	        $(this).css("font-size", '28px');
	    }
	});
	$('font[face]').each(function() {
	    $(this).css('font-family', this.face);
	});
	$('font[color]').each(function() {
	    $(this).css('color', this.color);
	});
	$('#main .left').css({visibility:'visible'});

	
	//ADMIN - LOGIN
	$('.ms-SPLink img').each(function() {
		if ($(this).attr('src') == '/_layouts/images/menudark.gif') {
			$(this).attr('src','/_layouts/images/b2b/arrow.jpg')
		}
	});
	
	//ADMIN - SITE ACTIONS
	$('.ms-siteactionsmenu img').each(function() {
		if ($(this).attr('src') == '/_layouts/images/whitearrow.gif') {
			$(this).attr('src','/_layouts/images/b2b/arrow.jpg')
		}
	});

	//NAVIGATION
	$(".navWrapper td:last").css({backgroundImage:'none'});
	
	//LANDING PAGE: RIGHT COLUMN
	$('.rlTitle').each(function() {
		var el = $(this);
		el.html(el.html().replace(/Related Links/ig,'<img src="/_layouts/images/b2b/title-relatedlinks.jpg">'));
		el.html(el.html().replace(/Other Links/ig,'<img src="/_layouts/images/b2b/title-otherlinks.jpg">'));
	});

	//BULLETS ON INFORMATION PAGE
	$('.uirSummary p.MsoNoSpacing span span').html('&nbsp;&nbsp;&nbsp;');

	//CASE STUDY LIST HEADER SPACING FOR FIREFOX
	$('.cslContainer table').attr('cellpadding','0');
	$('.cslContainer table').attr('cellspacing','0');
});
