﻿<!--
/*
* ## CONFIG ##
*/
// Log to Firebug Console, set to false for Live!
var _debug = true;
var _ImageFolder = "/ui/site/images/"
var _webServiceURL = "/includes/fundingwebserviceresponse.xml";
/*
* ## END CONFIG ##
*/

// IE specific handling of rounded coners for print preview
/*@cc_on
window.onbeforeprint = printThis;

function printThis() {
	// remove corner elements that mess up print preview
	$('.DD_roundies_sizeFinder').hide();
	$('div').removeAttr('style');
	$('div').removeAttr('vmlBg');
	$('ignore').remove();
	// reload page
	setTimeout("document.location=document.location;", 1000)
}
@*/

$(function() {

    // add corners in ie only
    /*@cc_on
    DD_roundies.addRule('.button', '10px');
    @*/
    
    // set site search box text
    $('#site-search').example(function() {
        return $(this).attr('title');
    });
    
    //open windows in external window
    $('a[rel="external"]').click( function() {
      window.open( $(this).attr('href') );
      return false;
    });

});

// log to firebug console - remove for production environment
function debug(message) {
    if (_debug) if (window.console) console.log(message);
}

// addtion to find control from .Net client ID
$.extend({
	clientID: function(id) {
		return $("[id$='" + id + "']");
	}
});
// -->