/*
* Site
* 
* @brief: site specific things
*/
function Site( parent ) {
	this.parent = parent;
}

Site.prototype.init = function() {
}

function cloudfront() {
	var a = document.createElement( 'script' );
	if( ( typeof( a ) == 'object' ) && ( typeof( document.getElementsByTagName( 'script' ) ) == 'object' ) && ( typeof( document.getElementsByTagName( 'script' )[ 0 ] ) == 'object' ) ) {
		var b = document.getElementsByTagName( 'script' )[ 0 ];
		a.src = document.location.protocol + '//dnn506yrbagrg.cloudfront.net/pages/scripts/0012/0786.js?' + Math.floor( new Date().getTime() / 3600000 );
		a.async = true;
		a.type = 'text/javascript';
		b.parentNode.insertBefore( a , b );
	}
}

ajax.original_request = ajax.request;

ajax.request = function( url , param , callback , method , response ) {
	var resp = ajax.original_request( url , param , callback , method , response );
	if( ( url == 'public/products/highlighted' ) || ( url == '#public/products/highlighted' ) || ( url == 'public' ) || ( url == '#public' ) ) cloudfront();
	return resp;
}

