//Initial js functions to run when js document is loaded

//Load when the page is ready - Using jQuery to run events
$(document).ready(function(){
						   
parseCode('thickbox-code/thickbox.js','ajaxJS');
parseCode('thickbox-code/thickbox.css','ajaxCSS');
parseCode('thickbox-code/thickbox-compressed.js','ajaxJSCompressed');
			  		  
//$('div.roundbox2').corner('round 9px',"#1c2225");
//$('div.roundbox4').corner('round 9px',"#1c2225");
//$('div.roundbox3').corner('round 9px',"#1c2225");
//$('div.round').corner('round 9px',"#1c2225");
//$('div.sliderGallery').corner('round left 9px',"RGB(97,97,97)");
});


///////////////////////////  ajax call to get code off the server for display dependent code ///////////////////////////////////////
function parseCode(o,placement){

	$.get(o,function(code){										  	   
		  code=code.replace(/&/mg,'&#38;');
		  code=code.replace(/</mg,'&#60;');
		  code=code.replace(/>/mg,'&#62;');
		  code=code.replace(/\"/mg,'&#34;');
		  code=code.replace(/\t/g,'  ');
		  code=code.replace(/\r?\n/g,'<br>');
		  code=code.replace(/<br><br>/g,'<br>');
		  code=code.replace(/ /g,'&nbsp;');
		 $('#'+placement).html(code);
	}
	);
 }





