 $(document).ready(function(){
           
        $.jtabber({
            mainLinkTag: "#pdnewnav a", // much like a css selector, you must have a 'title' attribute that links to the div id name
            activeLinkClass: "selected", // class that is applied to the tab once it's clicked
            hiddenContentClass: "hiddencontent", // the class of the content you are hiding until the tab is clicked
            showDefaultTab: 1, // 1 will open the first tab, 2 will open the second etc.  null will open nothing by default
            showErrors: true, // true/false - if you want errors to be alerted to you
            effect: 'fade', // null, 'slide' or 'fade' - do you want your content to fade in or slide in?
            effectSpeed: 'medium' // 'slow', 'medium' or 'fast' - the speed of the effect
        })
           
        })
		
		
		 $(document).ready(function(){
	$("#displayVersion a")
  .filter(":nth-child(2)")
    .css('background-image','none')
    .css('color','#cc6600');
	  })
		
	
		 
		 function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

 $(document).ready(function(){
		$('.priceBoxTop a:eq(1)').addClass('pdbuypackagebustyle'); 
		  })
		 
		 $(document).ready( function() {
   
    $('a.popup').click( function() {
        window.open( $(this).attr('href'),'','scrollbars=yes,width=870,height=650' );
        return false;
    })
   
   
})
	 
		 $(document).ready(function(){
$('.priceBoxBottom a').removeAttr("style");
	    $('iframe.pdcomparisonchart').attr('allowtransparency', 'true');
});
		 
		 
	//	 
//		 
//		 // PRELOADER:
//		 
//		 jQuery.preloadImages = function()
//{
//  for(var i = 0; i<arguments.length; i++)
//  {
//    jQuery("<img>").attr("src", arguments[i]);
//  }
//}
//
//$.preloadImages("http://atl.img.digitalriver.com/v2.0-img/page-builder/Symantec/images/pdpage2009_features_tab_bg_dark.jpg");
//
//


$(document).ready(function(){
      $("a.pd09comparebutton").hide(); 
	
      $("#pdnewnav a:eq(3)").hide(); 
	  $("a.pd09comparebutton").css("display", "none"); 

   // PUT THESE LINES BACK WHEN COMPARE CHART IS READY:   $(".pdccharton a.pd09comparebutton").show(); 
//	
//      $("div.pdccharton#pdnewnav a:eq(3)").show(); 
//	  $(".pdccharton a.pd09comparebutton").css("display", "block"); 
	  });



// TOOLTIP CODE:


/*			
		Function: rzTooltip()
		Author: Francois Levesque ( cfabort (at) critical-web (dot) com )			
		
		Description: Creates a tooltip containing the matched object's title attribute. Will show on mouseover
		
		Usage: $("myElement").rzTooltip();			
*/

(function () {

	$.fn.rzTooltip=function () {

		rzTooltip_title='';
		
		// check to see if the tooltip exists
		if (!$("#rzTooltip").length) {
			// if not, create it and the iframe
			
			$("body").append("<div id='rzTooltip'><div id='rzTooltip_header'></div><div id='rzTooltip_body'></div></div>");
			$("#rzTooltip").css({ top: -1000, left: -1000, position: 'absolute', zIndex: 100 });
			$("body").append("<iframe id='rzTooltip_iframe'></iframe>");
			$("#rzTooltip_iframe").css({ top: -1000, left: -1000, position: 'absolute', zIndex: 50, opacity: 0 });
			
		}

		// loop over matched elements
		return this.each(function () {
			
			$(this).mouseover(function () {
				// apply mouseover event
				
				// shortcut var
				var tooltip=$("#rzTooltip");
				
				// make sure the tooltip is off-screen
				tooltip.css({
					top: -1000,
					left: -1000
				});

				// backup the elements title
				rzTooltip_title=$(this).attr("title");
				
				// create an array containing the different title strings, separated by a pipe (|)
				var title=rzTooltip_title.split("|");
			
				// empty the title attribute (override the brower's insight)
				$(this).attr("title", "");
				
				// populate the tooltip header
				$("#rzTooltip_header").html(title[0]);
				
				// empty the tooltip body
				$("#rzTooltip_body").empty();
				
				// populate the tooltip body by looping over the title array
				for (var i=1; i<title.length; i++)
					$("#rzTooltip_body").append("<p>" + title[i] + "</p>");
				
				// create browser-specific max width and height vars
				var maxWidth, maxHeight;
				if ($.browser.msie) {
					maxWidth=document.documentElement.scrollWidth;
					maxHeight=document.documentElement.scrollHeight;
				} else {
					maxWidth=Math.max($('html').width(), $(window).width()-30);
					maxHeight=Math.max($('html').height(), $(window).height()-30);
				}
				
				// get position (make sure the tooltip isn't out of bounds
				var dims={
					t: ($(this).offset().top + tooltip.height() > maxHeight - 10 ? $(this).offset().top+$(this).height()-tooltip.height() : $(this).offset().top),
					l: ($(this).offset().left + $(this).width() + tooltip.width() > maxWidth - 10 ? $(this).offset().left-tooltip.width()-10 : $(this).offset().left + $(this).width())
				};
				
				// place the tooltip
				tooltip.css({ top: dims.t, left: dims.l });
				
				// place and size the iframe to hide undesirable dropdowns in IE
				$("#rzTooltip_iframe").css({ top: dims.t, left: dims.l, height: tooltip.height(), width: tooltip.width() });

			}).mouseout(function () {
				// apply mouseout events
				
				// take the tooltip and iframe off-screen
				$("#rzTooltip,#rzTooltip_iframe").css({ top: -1000, left: -1000 });
				
				// reset the element's title
				$(this).attr("title", rzTooltip_title);
			});

		});
	};
})();
		
		/* JQUERY FOR TOOLTIPS:
*/

$(document).ready(function () {
   $(".tooltip[@title]").rzTooltip();
});
