this.ajax = 'http://www.orifly.lv/anketa/ajax'; // Must set in Ajax include
//console.info(this.ajax);

//for ajax includes
function include(filename , functionToRun)
{
	var head = document.getElementsByTagName('head')[0];
	
	script = document.createElement('script');
	script.src = filename;
	script.type = 'text/javascript';
	
	head.appendChild(script);
	if (typeof functionToRun != 'undefined'){
		window[functionToRun]();
	}
}

//include('anketa/jquery.myhighlight-3.min.js' , 'highLightCodes');
//s.
 $(document).ready(function() {
	highLightCodes();
	$(".highlight").live("click", function() { 
		getOriflameProuctPreview
	});	
	
   // put all your jQuery goodness in here.
 });

function highLightCodes(){
	//addCss('.highlight {    background-color: yellow;}');
	$('#content_main').highlight(/[0-9]{4,15}/i);
	/*$('.highlight').cluetip({arrows: true, sticky: true, splitTitle: '|', cluetipClass: 'rounded', showTitle: false , rel:'index.php'});*/
}

function onclickCode(){

}

function addCss(cssCode) {
var styleElement = document.createElement("style");
  styleElement.type = "text/css";
  if (styleElement.styleSheet) {
    styleElement.styleSheet.cssText = cssCode;
  } else {
    styleElement.appendChild(document.createTextNode(cssCode));
  }
  document.getElementsByTagName("head")[0].appendChild(styleElement);
}


