
$(document).ready(function(){ 
// to do a jquery server-sice include using
// <div class="includeFile">url/to/included/file.htm</div>
//
// used in software for standalone products, tnav, ip product license pages
if ( $('div.includeFile').length > 0 ) {
	var divInclude = 'div.includeFile';
	var numIncludes = $(divInclude).length;
	for (i = 0; i < numIncludes; i++)
	{
   		var includeUrl = $(divInclude+':eq('+i+')').text();
   		$(divInclude+':eq('+ i +')').load(includeUrl, function()
		{ //callback function after page is loaded
			if ( $(".featureTable").length > 0 ) {
				$(".featureTable tr:odd").addClass("stripe");
				var h, s;
			} // end if .featureTable
			if ( $(".overviewLCol").length > 0 ) {
				// used for standalone tools pages
				// resizes images with a max width of 470px
				$(".overviewLCol .includeFile img").each(function() 
				{
       			 if($(this).width() > 470) 
					{
						h=$(this).height()/$(this).width()*470;
            			$(this).attr({height : h });
						$(this).attr({width : "470"});
						//s="<div><a href='"+$(this).attr("src")+"' class='thickbox'></a></div>";
						//sLink="<a href='"+$(this).attr("src")+"' class='thickbox'>Click to enlarge</a>";
            			//$(this).wrap(s).css({'border':'none','text-decoration':'none'});
						//$(this).after(sLink);
			        }
    			});
			} // end if .overviewLCol      
		}); // end callback function for divInclude
	 } // end for loop
} // end if div.includeFile
/*
$(function(){
	$.extend($.fn.disableTextSelect = function() {
		return this.each(function(){
			if($.browser.mozilla){//Firefox
				$(this).css('MozUserSelect','none');
			}else if($.browser.msie){//IE
				$(this).bind('selectstart',function(){return false;});
			}else{//Opera, etc.
				$(this).mousedown(function(){return false;});
			}
		});
	});

if ( $('.noSelect').length > 0 ) {
	$('.noSelect').disableTextSelect();//No text selection on elements with a class of 'noSelect'
	}
});
*/

});