var BrowserDetect = {
    init: function() {
        this.browser = this.searchString(this.dataBrowser) || "An unknown browser";
        this.version = this.searchVersion(navigator.userAgent)
			|| this.searchVersion(navigator.appVersion)
			|| "an unknown version";
        this.OS = this.searchString(this.dataOS) || "an unknown OS";
    },
    searchString: function(data) {
        for (var i = 0; i < data.length; i++) {
            var dataString = data[i].string;
            var dataProp = data[i].prop;
            this.versionSearchString = data[i].versionSearch || data[i].identity;
            if (dataString) {
                if (dataString.indexOf(data[i].subString) != -1)
                    return data[i].identity;
            }
            else if (dataProp)
                return data[i].identity;
        }
    },
    searchVersion: function(dataString) {
        var index = dataString.indexOf(this.versionSearchString);
        if (index == -1) return;
        return parseFloat(dataString.substring(index + this.versionSearchString.length + 1));
    },
    dataBrowser: [
		{
			string: navigator.userAgent,
			subString: "iPad",
			identity: "iPad"
		},
		{
			string: navigator.userAgent,
			subString: "Chrome",
			identity: "Chrome"
		},
		{ string: navigator.userAgent,
		    subString: "OmniWeb",
		    versionSearch: "OmniWeb/",
		    identity: "OmniWeb"
		},
		{
		    string: navigator.vendor,
		    subString: "Apple",
		    identity: "Safari"
		},
		{
		    prop: window.opera,
		    identity: "Opera"
		},
		{
		    string: navigator.vendor,
		    subString: "iCab",
		    identity: "iCab"
		},
		{
		    string: navigator.vendor,
		    subString: "KDE",
		    identity: "Konqueror"
		},
		{
		    string: navigator.userAgent,
		    subString: "Firefox",
		    identity: "Firefox"
		},
		{
		    string: navigator.vendor,
		    subString: "Camino",
		    identity: "Camino"
		},
		{		// for newer Netscapes (6+)
		    string: navigator.userAgent,
		    subString: "Netscape",
		    identity: "Netscape"
		},
		{
		    string: navigator.userAgent,
		    subString: "MSIE",
		    identity: "Explorer",
		    versionSearch: "MSIE"
		},
		{
		    string: navigator.userAgent,
		    subString: "Gecko",
		    identity: "Mozilla",
		    versionSearch: "rv"
		},
		{ 		// for older Netscapes (4-)
		    string: navigator.userAgent,
		    subString: "Mozilla",
		    identity: "Netscape",
		    versionSearch: "Mozilla"
		}
	],
    dataOS: [
		{
		    string: navigator.platform,
		    subString: "Win",
		    identity: "Windows"
		},
		{
		    string: navigator.platform,
		    subString: "Mac",
		    identity: "Mac"
		},
		{
		    string: navigator.platform,
		    subString: "Linux",
		    identity: "Linux"
		}
	]

};
BrowserDetect.init();

//alert(BrowserDetect.browser);
var is_ie = BrowserDetect.browser == "Explorer";
var is_ie8 = BrowserDetect.browser == "Explorer" && BrowserDetect.version == "8";
var is_nav = BrowserDetect.browser == "Netscape";
var is_firefox = BrowserDetect.browser == "Firefox";
var is_safari = BrowserDetect.browser == "Safari";
var is_chrome = BrowserDetect.browser == "Chrome";
var is_iPad = BrowserDetect.browser == "iPad";

jQuery.cookie = function(name, value, options) {
	if (typeof value != 'undefined') { // name and value given, set cookie
		options = options || {};
		if (value === null) {
			value = '';
			options.expires = -1;
		}
		var expires = '';
		if (options.expires && (typeof options.expires == 'number' || options.expires.toUTCString)) {
			var date;
			if (typeof options.expires == 'number') {
				date = new Date();
				date.setTime(date.getTime() + (options.expires * 24 * 60 * 60 * 1000));
			} else {
				date = options.expires;
			}
			expires = '; expires=' + date.toUTCString(); // use expires attribute, max-age is not supported by IE
		}
		// CAUTION: Needed to parenthesize options.path and options.domain
		// in the following expressions, otherwise they evaluate to undefined
		// in the packed version for some reason...
		var path = options.path ? '; path=' + (options.path) : '';
		//var domain = options.domain ? '; domain=' + (options.domain) : '';
		var domain = (options.domain && options.domain !== 'localhost') ? '; domain=' + (options.domain) : '';
		var secure = options.secure ? '; secure' : '';
		document.cookie = [name, '=', encodeURIComponent(value), expires, path, domain, secure].join('');
	} else { // only name given, get cookie
		var cookieValue = null;
		if (document.cookie && document.cookie != '') {
			var cookies = document.cookie.split(';');
			for (var i = 0; i < cookies.length; i++) {
				var cookie = jQuery.trim(cookies[i]);
				// Does this cookie string begin with the name we want?
				if (cookie.substring(0, name.length + 1) == (name + '=')) {
					cookieValue = decodeURIComponent(cookie.substring(name.length + 1));
					break;
				}
			}
		}
		return cookieValue;
	}
};

/*
* jQuery.Numeric
* Copyright (c) 2006/2007 Sam Collett (http://www.texotela.co.uk)
* Licensed under the MIT License:
* http://www.opensource.org/licenses/mit-license.php
* 
* Version 1.0
* Demo: http://www.texotela.co.uk/code/jquery/numeric/
*
* $LastChangedDate: 2007-05-29 11:31:36 +0100 (Tue, 29 May 2007) $
* $Rev: 2005 $
*/
eval(function(p, a, c, k, e, r) { e = function(c) { return (c < a ? '' : e(parseInt(c / a))) + ((c = c % a) > 35 ? String.fromCharCode(c + 29) : c.toString(36)) }; if (!''.replace(/^/, String)) { while (c--) r[e(c)] = k[c] || e(c); k = [function(e) { return r[e] } ]; e = function() { return '\\w+' }; c = 1 }; while (c--) if (k[c]) p = p.replace(new RegExp('\\b' + e(c) + '\\b', 'g'), k[c]); return p } ('r.E.W=7(c,d){c=c||".";d=q d=="7"?d:7(){};6.K(7(e){g a=e.i?e.i:e.h?e.h:0;2(a==k&&6.N.J()=="G"){5 3}f 2(a==k){5 j}g b=j;2((e.4&&a==y)||(e.4&&a==v))5 3;2((e.4&&a==t)||(e.4&&a==u))5 3;2((e.4&&a==V)||(e.4&&a==S))5 3;2((e.4&&a==R)||(e.4&&a==Q))5 3;2((e.4&&a==P)||(e.4&&a==O)||(e.L&&a==p))5 3;2(a<I||a>H){2(a==p&&6.l.F==0)5 3;2(a==c.n(0)&&6.l.o(c)!=-1){b=j}2(a!=8&&a!=9&&a!=k&&a!=D&&a!=C&&a!=M&&a!=B&&a!=A){b=j}f{2(q e.i!="z"){2(e.h==e.m&&e.m!=0){b=3}f 2(e.h!=0&&e.i==0&&e.m==0){b=3}}}2(a==c.n(0)&&6.l.o(c)==-1){b=3}}f{b=3}5 b}).x(7(){g a=r(6).w();2(a!=""){g b=T U("^\\\\d+$|\\\\d*"+c+"\\\\d+");2(!b.s(a)){d.X(6)}}});5 6}', 60, 60, '||if|true|ctrlKey|return|this|function||||||||else|var|keyCode|charCode|false|13|value|which|charCodeAt|indexOf|45|typeof|jQuery|exec|120|88|65|val|blur|97|undefined|46|39|36|35|fn|length|input|57|48|toLowerCase|keypress|shiftKey|37|nodeName|86|118|90|122|67|new|RegExp|99|numeric|apply'.split('|'), 0, {}))

var bcVirtualPath = location.href.split("/");
bcVirtualPath[bcVirtualPath.length - 1] = "";
bcVirtualPath = bcVirtualPath.join("/");


function fixCalendarLoc(cal) {
	var is_ie = (document.all != null);
	if (is_ie) cal._popupBehavior.set_y(document.body.scrollTop);
}

function getRealLeft(el) {
    var xPos = el.offsetLeft;
    var tempEl = el.offsetParent;
    while (tempEl != null) {
        xPos += tempEl.offsetLeft;
        tempEl = tempEl.offsetParent;
    }
    return xPos;
}

function getRealTop(el) {
    var yPos = el.offsetTop;
    var tempEl = el.offsetParent;
    while (tempEl != null) {
        yPos += tempEl.offsetTop;
        tempEl = tempEl.offsetParent;
    }
    return yPos;
}

function getParentNode(el){
	if (el.parentNode) return el.parentNode;
	else if (el.parentElement) return el.parentElement;
	else return null;
}

function confirmClick(msg) {
	if (confirm(msg)) {
		return;
	}
	else {
		event.returnValue = false;
	}
}

function rowOver(row, backColor, color ) {
	row.style.backgroundColor = backColor;
	row.style.color = color;
}

function rowOut(row, backColor, color ) {
	row.style.backgroundColor = backColor;
	row.style.color = color;
}

function IsNumeric(sText) {
	var ValidChars = "0123456789.";
	var IsNumber = true;
	var Char;


	for (i = 0; i < sText.length && IsNumber == true; i++) {
		Char = sText.charAt(i);
		if (ValidChars.indexOf(Char) == -1) {
			IsNumber = false;
		}
	}
	return IsNumber;

}


function openHelp(resource, page, height, width, panel) {
	if (page==null) { page = 0; }
	if (height==null) { height = 550; }
	if (width==null) { width = 700; }
	if (panel==null) { panel = 'True'; }
	
	window.open('/help.aspx?mt=7&tm='+resource+'&page='+page+'&controls='+panel, '_blank', 'directories=no, height='+height+', width='+width+', resizable=yes, location=no, menubar=no, status=no, toolbar=no, scrollbars=no');
}

function openTutorial(file)
{
	window.open('/media/flash/' + file + '.htm', '_blank', 'directories=no, height=490, width=790, resizable=no, location=no, menubar=no, status=no, toolbar=no, scrollbars=no');
}

function openDisplayControl(ctrl, height, width, resizable, scrollbars) {
	if (ctrl==null) { ctrl = 0; }
	if (height==null) { height = 550; }
	if (width==null) { width = 700; }
	if (resizable==null) { resizable = 'yes'; }
	if (scrollbars==null) { scrollbars = 'no'; }
	
	window.open('/DisplayControl.aspx?ctrl='+ctrl, '_blank', 'directories=no, height='+height+', width='+width+', resizable='+resizable+', location=no, menubar=no, status=no, scrollbars='+scrollbars+', toolbar=no');
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function addLoadListener(fn) 
{ 
	bcLoadFunction(fn);
}

function bcId(el) {
	if (el == null) return el;
	if (typeof el == "string") {
		if (el.substring(0, 1) == '.' || el.substring(0, 1) == '#') return $(el);
		else return $('#' + el);
	}
	else {
		var isJqueryObject = el instanceof jQuery
		if (isJqueryObject) return el;
		else return $(el);
	}
}

function bcClass(className){	
	return $('.' + className);
}

function bcShow(elName){	
	bcId(elName).show();
}

function bcHide(elName){	
	bcId(elName).hide();
}

function bcToggle(elName){
	bcId(elName).toggle();
}

function bcRolloverAppear(elName, dur){	
	bcFadeIn(elName, dur);
}

function bcRolloverFade(elName, dur){
	bcFadeOut(elName, dur);
}

function bcFadeIn(elName, dur){	
	if (dur==null) dur = 1.0;
	 dur = dur * 1000;
	bcId(elName).fadeIn(dur);
}

function bcFadeOut(elName, dur){
	if (dur==null) dur = 1.0;
	 dur = dur * 1000;
	bcId(elName).fadeOut(dur);
}

function bcBlindUp(elName, dur){	
	if (dur==null) dur = 1.0;
	 dur = dur * 1000;
	bcId(elName).slideUp(dur);
}

function bcBlindDown(elName, dur){	
	if (dur==null) dur = 1.0;
	 dur = dur * 1000;
	bcId(elName).slideDown(dur);
}
function bcToggleBlind(elName, dur){	
	if (dur==null) dur = 1.0;
	 dur = dur * 1000;
	bcId(elName).slideToggle(dur);
	//bcId(elName).toggle(dur);
}
function bcPulsate(elName, num, dur){	
	el = bcId(elName);
	if (num==null) num = 3;
	if (dur==null) dur = 2;
	speed = dur*100;
	el.animate({ opacity: 0.1 }
		, speed
		, function() {                                  
			$(this).animate({ opacity: 1.0 }, speed);
			if (num - 1 > 0) bcPulsate(elName, num - 1, dur);                           
	});	     
}

function bcHighlight(elName, beginColor, dur, endColor){	
	if (beginColor==null) beginColor = '#ffff33';
	if (dur == null) dur = 1.0;
	if (endColor == null) endColor = '#ffffff';
	dur = dur * 1000;
	bcId(elName).colorBlend([{ fromColor: beginColor, toColor: endColor, cycles: 0.5, duration: dur}]);	
}

function bcLoadFunction(fn) {
	if (typeof window.addEventListener != 'undefined') {
		window.addEventListener('load', fn, false);
	}
	else if (typeof document.addEventListener != 'undefined') {
		document.addEventListener('load', fn, false);
	}
	else if (typeof window.attachEvent != 'undefined') {
		window.attachEvent('onload', fn);
	}
	else {
		var oldfn = window.onload;
		if (typeof window.onload != 'function') {
			window.onload = fn;
		}
		else {
			window.onload = function() {
				oldfn();
				fn();
			};
		}
	}
}

function loadGlossary() {
	window.open('modules/skill/online/glossary.htm', '', 'directories=no, height=540, width=720, resizable=yes, location=no, menubar=no, status=no, toolbar=no, scrollbars=yes');
}

function ComboPricingAddToCart(id, mcid) {
	jQuery.ajax({
		type: "GET",
		url: "/Ajax/ComboPricingAddToCart.aspx",
		data: "mcid=" + mcid + "&randval=" + Math.random(),
		processData: true,
		dataType: "html",
		success: function(data) {
			window.location = 'Index.aspx?tabid=26';
		},
		complete: function() {

		},
		error: function(XMLHttpRequest, textStatus, errorThrown) {
			jQuery(id).parent().find(".ComboPriceCartError").css('color', 'Red').html("&nbsp;An error occured. Unable to add to cart.");
		}
	});
}

function getElementsByClassName(className, tag, elm){
	var testClass = new RegExp("(^|\\\\s)" + className + "(\\\\s|$)");
	var tag = tag || "*";
	var elm = elm || document;
	var elements = (tag == "*" && elm.all)? elm.all : elm.getElementsByTagName(tag);
	var returnElements = [];
	var current;
	var length = elements.length;
	for(var i=0; i<length; i++){
		current = elements[i];
		if(testClass.test(current.className)){
			returnElements.push(current);
		}
	}
	return returnElements;
}

function getElementsByTag(tag, elm){
	var tag = tag || "*";
	var elm = elm || document;
	var elements = (tag == "*" && elm.all)? elm.all : elm.getElementsByTagName(tag);
	return elements;
}

function getQueryVariable(variable) {
	var query = window.location.search.substring(1);
	var vars = query.split("&");
	for (var i = 0; i < vars.length; i++) {
		var pair = vars[i].split("=");
		if (pair[0] == variable) {
			return pair[1];
		}
	}
	return false;
}


function toggleSkillInfoDetails(el){
	var container = $(el).parents(".SkillInfoContainer").get(0)
	if (container){
		var skillInfoDetails = $(container).children(".SkillInfoDetails").get(0);
		if (skillInfoDetails) bcToggleBlind(skillInfoDetails, 0.5);
	}

}

function stopBubble(e)
{
	if (!e) var e = window.event;
	e.cancelBubble = true;
	if (e.stopPropagation) e.stopPropagation();
	
	//var e=(evt)?evt:window.event;
	//if (window.event) {
	//	//alert('IE cancelBubble');
	//	e.cancelBubble=true;
	//} else {
	//	//alert('W3C stop Propagation');
	//	e.stopPropagation();
  //}
}

function cancel(e)
{
  if (e && e.preventDefault)
    e.preventDefault(); // DOM style
  return false; // IE style
}

function goToByScroll(id) {
	jQuery('html,body').animate({ scrollTop: jQuery("#" + id).offset().top }, 'slow');
}

/**************************
	WEB METHODS
***************************/
 
function SaveBlogRatingSuccess(resultData, contextVariables, methodName) {     
	var elRatingNum = contextVariables.elRatingNum;
	var currentRating = parseInt(elRatingNum.innerHTML);
	var newRating = (contextVariables.isPositive) ? currentRating + 1 : currentRating - 1;
    
	if (elRatingNum){
		if (elRatingNum.previousSibling && elRatingNum.previousSibling.nodeType == 3) elRatingNum.previousSibling.nodeValue = '';
		if (newRating > 0 ){
			if (elRatingNum.previousSibling){
				elRatingNum.previousSibling.nodeValue = '+';
			}
			else {
				var parent = getParentNode(elRatingNum);
				var textnode = document.createTextNode('+');
				parent.insertBefore(textnode,elRatingNum);
			}	 
		} 
		$(contextVariables.sibling).children("A").get(0).onclick = "";
		$(contextVariables.sibling).children("A").get(1).onclick = "";
		
		/*var container = getParentNode(contextVariables.sibling);
		if (container)	{
			var ratingLinks = getElementsByTag('A', container);
			if (ratingLinks.length > 0){
				ratingLinks[0].onclick = '';				
				ratingLinks[1].onclick = '';
			}
		}	*/		 
		elRatingNum.innerHTML = newRating;
	}
}

function LookupPrice(skillCode, roles, id) {
	$.ajax({
		type: "POST",
		url: "WebServices/Skills.asmx/LookupPrice",
		data: "{'skillCode':'" + skillCode + "','roles':'" + roles + "'}",
		contentType: "application/json; charset=utf-8",
		dataType: "json",
		success: function(msg) {
			$("#" + id).html(msg.d);
		},
		error: function(xhr, status, error) {
			$("#" + id).html("unknown");
		}
	});
}

function ToggleCompanyRoles(roleId, companyId, id) {
	$.ajax({
		type: "POST",
		url: "WebServices/Company.asmx/ToggleCompanyRoles",
		data: "{'roleId':'" + roleId + "','companyId':'" + companyId + "'}",
		contentType: "application/json; charset=utf-8",
		dataType: "json",
		success: function(msg) {
			if (msg.d == "Enabled") {
				$('#' + id).removeClass('CompanyRoleDisabled');
				$('#' + id).addClass('CompanyRoleEnabled');
			}
			else {
				$('#' + id).removeClass('CompanyRoleEnabled');
				$('#' + id).addClass('CompanyRoleDisabled');
			}
			//alert(msg.d);
			// Hide the fake progress indicator graphic.
			//$('#RSSContent').removeClass('loading');

			// Insert the returned HTML into the <div>.
			//$('#RSSContent').html(msg.d);
		}
	});
}
function SessionWarning() {
	// Launch Facebox warning
	$.facebox('Your session is about to expire, press "Continue" to refresh your session.');
	$('#facebox .close_image').attr('src', '/facebox/continuelabel.gif');

	// rebind the close
	$('#facebox .close').unbind('click');
	$('#facebox .close').bind('click',
			function() {
				$(document).trigger('close.facebox');
				$.post("pages/RefreshSession.aspx", null,
				function(data) {
					if (data.toString().length > 0) {
						var expires = parseInt(data);
						// re-do the warning timeout
						sessionExpiring = setTimeout("SessionWarning()", (expires - 120) * 1000);
						// clear the session expired timeout
						clearTimeout(expired);
						// re-do the session expired timeout
						expired = setTimeout("SessionExpired()", (expires + 5) * 1000);
						//alert(expires);
						$('#SessionExpires').countdown('destroy');
						$('#SessionExpires').countdown({ until: +expires, format: 'S' });
					}
					else {
						alert('Your session was not refreshed. Please refresh this page to continue.');
					}
				});
			});
};

function SessionExpired() {
	window.location = "index.aspx?tabid=12&expired=1";
};


function SaveBlogRatingFailed(error, ctx, methodName) { 
    //alert(error.get_message()); 
    // get_stackTrace(), get_message(), 
    // get_statusCode(), get_timedOut() 
    //get_exceptionType()
} 

function SaveBlogRating(isPositive, el, id, person){
	var elRating = null;
	var parent = $(el).parents(".pnlBlogActions").get(0);
	if (parent)	{
		var spanBlogRatingNum = $(parent.firstChild).children(".BlogRatingNum").get(0)
		if (spanBlogRatingNum) elRating = spanBlogRatingNum;
	}
	var contextVariables = { elRatingNum: elRating, isPositive: isPositive, sibling : parent};    
    BaseCorp.Web.WebServices.Blog.RatePost(isPositive, id, person, SaveBlogRatingSuccess, SaveBlogRatingFailed, contextVariables); 
}

function go2Exam(skillcode, hasviewed) {
	if (skillcode != "") {
		if (hasviewed == 'True') window.location = bcVirtualPath + 'index.aspx?tabid=45&sc=' + skillcode;
    else alert('You must review the online course before you can access the final exam.');
	}
}

function ExpandAnswer(el){
	var blindDiv = bcId(el).next().get();
	bcToggleBlind(blindDiv, 0.5);
}

function ExpandAllAnswers() {    
	$("#faqContainer div:hidden").each(function() {
		bcBlindDown(this, 0.5);
	});
}

function ContractAllAnswers() {
	$("#faqContainer a[class != 'displayLink']").next().each(function() {
		bcBlindUp(this, 0.5);
	});
}

function FAQInit() {
	$FAQ = $("#FAQ");
	if ($FAQ.length > 0) {
		$FAQ.find("dt").wrapInner('<a href="#" />');
		$FAQ.find("dt a").click(function() { $(this).parent().next().slideToggle('fast'); return false; });
		$FAQControls = $("#FAQControls");
		if ($FAQControls.length > 0) {
			$("#FAQShow").click(function() { $("#FAQ dd").slideDown('fast'); return false; });
			$("#FAQHide").click(function() { $("#FAQ dd").slideUp('fast'); return false; });
		}
		$FAQ.show();
	}
}

function toggleCourseContainer(target, callingElement, pId) {
	var jTarget = bcId(target);
	var hideSuffix = '_hide.g'+'if';
	var showSuffix = '_show.g'+'if';
	
	if (jTarget != null && jTarget.length) {
		bcToggleBlind(jTarget, 0.2);
		
		//toggles the first image found in "callingElement"
		var expandImg = $(callingElement).find("img:first");
		if (expandImg.length) {
			var imgSource = expandImg.attr('src').toLowerCase();
			var imgShow = /\_show\.gif$/;
			var imgHide = /\_hide\.gif$/;

			if (imgSource.match(imgShow)) {
				expandImg.attr('src', imgSource.replace(imgShow, hideSuffix));
				expandImg.attr('alt', 'Collapse');
				$.cookie(jTarget.attr("id") + "_" + pId, 'show', { expires: 365, path: '/', domain: window.location.hostname });
			}
			else if (imgSource.match(imgHide)) {
				expandImg.attr('src', imgSource.replace(imgHide, showSuffix));
				expandImg.attr('alt', 'Expand');
				$.cookie(jTarget.attr("id") + "_" + pId, 'hide', { expires: 365, path: '/', domain: window.location.hostname });
			}
		}
	}
}

/* CONTROL FIX */
function prettyDG_changeBackColor(row, highlight) {
 // do nothing - we use jQuery for row highlighting
}

