

var ACPuzzleInfo = {
    protocol:       !window.location.protocol.match(/^https?:$/) ? 'http:' : '',
    apiserver:      '//api.solvemedia.com',
    mediaserver:    '//api.solvemedia.com',
    magic:          'FBCn4spCTEomAMofykJMSg',
    chalapi:        'ajax',
    chalstamp:      1449462168,
    lang:           'en',
    size:           'standard',
    theme:          'white',
    type:           'img',
    onload:         (typeof(ACPuzzleOptions) == 'undefined' ? null : (ACPuzzleOptions.onload || null))
};

var _ACAjaxUtil = {
    append_head : function(app){
	var head = document.getElementsByTagName('head');
	var node = (head.length < 1) ? document.body : head[0];
	node.appendChild(app);
    } ,
    load_script : function(url){
	var script = document.createElement('script');
	script.type = 'text/javascript';
	script.src = url;
	this.append_head(script);
    }
}

if ( typeof ACPuzzleObject == "undefined" ) {
    _ACAjaxUtil.load_script((ACPuzzleInfo.protocol || '') + ACPuzzleInfo.apiserver + '/papi/_puzzle.js');
}


