function runjQuery() {  
	var totalNavItems = $("#primary-nav li").length;
	var navWidth = $("#primary-nav").width() - 1;
	var totalNavItemsWidth = 0;
if(totalNavItems==1){
	$("#p-nav").hide();
}else if(totalNavItems<5)
{
	$("#primary-nav li").each(
		function(i,elem)
		{
		if(elem)
			{
			var currentItemWidth = $("#primary-nav li:eq("+i+")").width();
			$(elem).width(currentItemWidth + 25).addClass("block");
			$("#primary-nav li:eq(" + i + ") a").css("padding", "0 0 0 4px");
		}
	});
	$("#primary-nav li:last").addClass("last");
}else{
	$("#primary-nav li").each(function(i,elem){totalNavItemsWidth +=$(elem).width();});
	
	$("#primary-nav li").each(
		function(i,elem)
		{
		if(elem)
			{
			var currentItemWidth = $("#primary-nav li:eq("+i+")").width();
			var currentItemNewWidth = currentItemWidth + ((navWidth - totalNavItemsWidth) / totalNavItems);
			
			$(elem).width(currentItemNewWidth).addClass("block");
		}
	});
}
	$(".commsec-table")	.wrap("<div class='commsec-table-holder'></div>")
						.before("<div class='commsec-table-top'></div>")
						.after("<div class='commsec-table-bottom'></div>");
	
	$(".side-panel:first").addClass("first");
	$(".commsec-table tr:even").addClass("alt");
	$(".commsec-table tr:last-child").addClass("last-row");
	$(".commsec-table tr td:first-child").addClass("first");
	$(".commsec-table tr td:last-child").addClass("last");
	$(".commsec-table").pngFix();

	if($("#col-side").height() == 0) {
		$("#col-main").width("660px");
	}
	$("a[href^='http']").each(function(i,elem) {
        $(elem).click(function() {
           pageTracker._trackPageview(promoName + "/outgoing/"+$(elem).attr('href'));
        });       
    });
	$("a[href*='flash_player.aspx']").each(function(i,elem) {
        $(elem).click(function() {
           pageTracker._trackPageview("/flash/"+$(elem).attr('href'));
        });       
    });

    $("a[href$='pdf'][href$='doc'][href$='xls'][href$='jpg'][href$='gif'][href$='ppt']").each(function(i,elem) {
        $(elem).click( function() {
        
           pageTracker._trackPageview("/downloads/"+$(elem).attr('href'));
        });       
    });

	
	$("#flash-homebanner #flashBannerAd").width("912px").height("352px");

	if($("#date").width() > 0) {
		$("body").addClass("with-date");
	}
};


/*
 * Popup window script 
 *  
 * Example markup 
 * <a href="mypage.html" onclick="popUpWin(this.href,'console',660,520);return false;" title="Open popup window">Link text</a>
 */
var newWindow = null;
function closeWin(){
	if (newWindow != null){
		if(!newWindow.closed)
			newWindow.close();
	}
}

function popUpWin(url, type, strWidth, strHeight){
	closeWin();
	if (type == "fullScreen"){
		strWidth = screen.availWidth - 10;
		strHeight = screen.availHeight - 160;
	}
	var tools="";
	if (type == "standard" || type == "fullScreen") tools = "resizable,toolbar=yes,location=yes,scrollbars=yes,menubar=yes,width="+strWidth+",height="+strHeight+",top=0,left=0";
	if (type == "console") tools = "resizable,toolbar=no,location=no,scrollbars=yes,width="+strWidth+",height="+strHeight+",left=0,top=0";
	newWindow = window.open(url, 'newWin', tools);
	newWindow.focus();
}