(function() {
var jQuery = null;
var jCorner = null;
if (!jQuery || window.jQuery.fn.jquery < '1.4.2') {
var script_tag = document.createElement ('script');
script_tag.setAttribute ("type","text/javascript");
script_tag.setAttribute ("src", "http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js");
script_tag.onload = loadJQueryCorner;
script_tag.onreadystatechange = function () { // Same thing but for IE
if (this.readyState == 'complete' || this.readyState == 'loaded') {
loadJQueryCorner();
}
};
// Try to find the head, otherwise default to the documentElement
(document.getElementsByTagName("head")[0] || document.documentElement).appendChild(script_tag);
} else {
// The jQuery version on the window is the one we want to use
jQuery = window.jQuery;
loadJQueryCorner();
}
function loadJQueryCorner()
{
if (!jCorner) {
var script_tag = document.createElement ('script');
script_tag.setAttribute ("type","text/javascript");
script_tag.setAttribute ("src", "http://www.tourradar.com/include/js/jquery-corner.js");
script_tag.onload = scriptLoadHandler;
script_tag.onreadystatechange = function () { // Same thing but for IE
if (this.readyState == 'complete' || this.readyState == 'loaded') {
scriptLoadHandler();
}
};
// Try to find the head, otherwise default to the documentElement
(document.getElementsByTagName("head")[0] || document.documentElement).appendChild(script_tag);
} else {
// The jQuery version on the window is the one we want to use
jCorner = window.jQuery.fn.corner;
jQuery.fn.corner = window.jQuery.fn.corner;
scriptLoadHandler();
}
}
function scriptLoadHandler() {
// Restore $ and window.jQuery to their previous values and store the
// new jQuery in our local jQuery variable
jQuery = window.jQuery.noConflict(true);
// Call our main function
main();
}
function main() {
jQuery(document).ready (function ($) {
$('#trys_code_1208_823cae557322').append ('
');
$.getJSON ('http://www.tourradar.com/index.php?c=iframes&m=your_site&user=1208&code=823cae557322&callback=?', function (data) {
if (data.status == 'OK') {
$('#trys_code_1208_823cae557322 #trys-loading').remove();
$('#trys_code_1208_823cae557322').append ('');
$('#trys_code_1208_823cae557322').append ('