
// javascript functions go here

function showInternalNetworkTools(intNetwork){

	if(intNetwork == 'true'){
		var pageUrl = window.location.toString();
		var qsParams = false;
		
		if(pageUrl.indexOf('?') != -1){
			qsParams = true;
		}
			
		if (pageUrl.indexOf('//10.208.193.16') != -1) {
			// Show the Staging imgs on Staging only
			$$('div.staging-div').each(function(el,index){
				el.setStyle('display','block');
			});
			
			// Setup and show the Utility toolbar
	        if ($(parent.document.body).getElement('#modal')){ // Has the modal iframe been created?

	        } else {
			    var utilityTool = $('ut').getElement('div');
			    utilityTool.setStyle('display','block');
			
			    utilityTool.getElements('a').each(function(el){
				    if(qsParams){
					    el.href = pageUrl + '&' + el.hash.substring(1);
				    } else {
					    el.href = pageUrl + '?' + el.hash.substring(1);
				    }
			    });
			    var utSlide = new Fx.Slide('ut-slide', {duration: 300}).hide();

			    utilityTool.addEvent('mouseenter', function(event){
				    utSlide.slideIn();
			    });
			    utilityTool.addEvent('mouseleave', function(event){
				    utSlide.slideOut();
			    });

            }
			
		}
		
	}
}
