var hotID = 63316" id="_sm;
function loadcss(url) {
var head = document.getElementsByTagName('head')[0],
link = document.createElement('link');
link.type = 'text/css';
link.rel = 'stylesheet';
link.href = url;
head.appendChild(link);
return link;
}
function loadjs(url) {
var head = document.getElementsByTagName('head')[0],
script = document.createElement('script');
script.type = 'text/javascript';
script.src = url;
head.appendChild(script);
return script;
}
loadcss('https://xtease.globres.io/css/sm_structure.css');
loadcss('https://apps.globres.com/shells/'+hotID+'/sm/css/sm_request.css');
loadcss('https://xtease.globres.io/css/loader_css.css');
loadcss('https://xtease.globres.io/css/loader_css.css');
loadcss('https://xtease.globres.io/priceteaser/icon.css');
function insertAfter(referenceNode, newNode) {
referenceNode.parentNode.insertBefore(newNode,referenceNode.nextSibling);
}
function loadXMLDoc()
{
var xmlhttp;
if (window.XMLHttpRequest){
xmlhttp = new XMLHttpRequest();
} else {
xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
}
xmlhttp.open("GET","https://xtease.globres.io/priceteaser/sm/Smart.php?HotID="+hotID,true);
xmlhttp.send();
xmlhttp.onreadystatechange = function(){
if (xmlhttp.readyState==4 && xmlhttp.status==200){
var response = xmlhttp.responseText;
var idScript = document.getElementById("_sm");
var elmnt = document.createElement('div');
elmnt.id = 'sm_child';
elmnt.innerHTML = response;
insertAfter(idScript, elmnt);
loadjs('https://apps.globres.com/shells/'+hotID+'/sm/js/js_request.js');
}
}
}
loadXMLDoc();
setTimeout(function(){
var script = document.createElement('script');
script.src = 'https://xtease.globres.io/priceteaser/sm/jquery.min.js';
script.type = 'text/javascript';
script.id = 'sm_script';
document.getElementsByTagName('html')[0].appendChild(script);
}, 3000);
setTimeout(function(){
var el = document.createElement("script");
el.innerHTML = "var j = jQuery.noConflict();";
var div = document.getElementById("sm_script");
insertAfter(div, el);
j(document).ready(function(){
j.get('https://xtease.globres.io/priceteaser/sm/Smart.php', {'HotID':hotID}, function(response){
j('#sm_child').empty().append(response);
});
j('#xtease').show();
var arrival = '';
var depart = '';
var adult = 2;
var currency = 'EUR';
var rooms = 1;
var lang = 'en';
j.get('https://parity.globres.io/includes/query_files/portails/last_checkkey.php', {}, function(response){
var checkkey = 0;
var response_data = JSON.parse(response);
checkkey = response_data['checkkey'];
j.get('https://parity.globres.io/includes/query_files/portails/be_portail.php', {hot_id:hotID, datepicker_from:arrival, datepicker_to:depart, adults:adult, currency:currency, rooms:rooms, version:'v1', checkkey:checkkey}, function(response){
var bookPrice = 0;
var exPrice = 0;
var hrsPrice = 0;
var ctr = 0;
var response_data_be = JSON.parse(response);
if(response_data_be['our'] == 'XPATHERROR' || response_data_be['our'] == 'NOROOMS' || response_data_be['our'] == 'BROKENLINK' || response_data_be['our'] == '' || !j.isNumeric(response_data_be['our'])){
response_data_be['our'] = '-- --';
bookPrice = '-- --';
exPrice = '-- --';
hrsPrice = '-- --';
j('#our_price').empty().append(response_data_be['our']);
j('#first_price').empty().append(bookPrice);
j('#second_price').empty().append(exPrice);
j('#third_price').empty().append(hrsPrice);
}else{
var ourP = j('#our_price').empty().append(response_data_be['our']+' '+response_data_be['currency']);
ourP.hide().fadeIn(2000, function(){
// ------------------------------------------BOOKING------------------------------------
j.get('https://parity.globres.io/includes/query_files/portails/booking_portail.php', {hot_id:hotID, datepicker_from:arrival, datepicker_to:depart, adults:adult, currency:currency, rooms:rooms, version:'v1', checkkey:checkkey}, function(response_book){
ctr += 1;
var response_data_booking = JSON.parse(response_book);
bookPrice = response_data_booking['book'];
if(bookPrice == 'XPATHERROR' || bookPrice == 'NOROOMS' || bookPrice == 'BROKENLINK' || bookPrice == ''){
bookPrice = 0;
}
if(ctr == 3) {
if(0 == 1 && 0 == 3 && 0 == 2){
var tr = '
'+j('#third_parent').html()+'';
j('#third_parent').remove();
j(tr).insertBefore(j('#second_parent'));
} else if(0 == 2 && 0 == 1 && 0 == 3){
var tr = ''+j('#second_parent').html()+'';
j('#second_parent').remove();
j(tr).insertBefore(j('#first_parent'));
} else if(0 == 3 && 0 == 1 && 0 == 2){
var tr = ''+j('#second_parent').html()+'';
j('#second_parent').remove();
j(tr).insertBefore(j('#first_parent'));
var tr1 = ''+j('#third_parent').html()+'';
j('#third_parent').remove();
j(tr1).insertBefore(j('#first_parent'));
} else if(0 == 2 && 0 == 3 && 0 == 1){
var tr = ''+j('#third_parent').html()+'';
j('#third_parent').remove();
j(tr).insertBefore(j('#first_parent'));
var tr1 = ''+j('#first_parent').html()+'';
j('#first_parent').remove();
j(tr1).insertBefore(j('#second_parent'));
} else if(0 == 3 && 0 == 2 && 0 == 1){
var tr = ''+j('#third_parent').html()+'';
j('#third_parent').remove();
j(tr).insertBefore(j('#first_parent'));
var tr1 = ''+j('#second_parent').html()+'';
j('#second_parent').remove();
j(tr1).insertBefore(j('#first_parent'));
} else {
if(parseFloat(bookPrice) > parseFloat(hrsPrice) && parseFloat(bookPrice) > parseFloat(exPrice)){
if(parseFloat(exPrice) < parseFloat(hrsPrice)) {
if(1 == 0){
var tr = ''+j('#second_parent').html()+'';
j('#second_parent').remove();
j(tr).insertBefore(j('#first_parent'));
var tr1 = ''+j('#third_parent').html()+'';
j('#third_parent').remove();
j(tr1).insertBefore(j('#first_parent'));
} else {
var tr = ''+j('#third_parent').html()+'';
j('#third_parent').remove();
j(tr).insertBefore(j('#second_parent'));
}
} else {
if(1 == 0){
var tr = ''+j('#third_parent').html()+'';
j('#third_parent').remove();
j(tr).insertBefore(j('#first_parent'));
var tr1 = ''+j('#second_parent').html()+'';
j('#second_parent').remove();
j(tr1).insertBefore(j('#first_parent'));
} else {
var tr = ''+j('#second_parent').html()+'';
j('#second_parent').remove();
j(tr).insertBefore(j('#third_parent'));
}
}
} else if(parseFloat(bookPrice) > parseFloat(exPrice) && parseFloat(bookPrice) < parseFloat(hrsPrice)){
if(1 == 0){
var tr = ''+j('#second_parent').html()+'';
j('#second_parent').remove();
j(tr).insertBefore(j('#first_parent'));
} else {
var tr = ''+j('#third_parent').html()+'';
j('#third_parent').remove();
j(tr).insertBefore(j('#first_parent'));
var tr = ''+j('#first_parent').html()+'';
j('#first_parent').remove();
j(tr).insertBefore(j('#second_parent'));
}
} else if(parseFloat(bookPrice) < parseFloat(exPrice) && parseFloat(bookPrice) > parseFloat(hrsPrice)){
if(1 == 0){
var tr = ''+j('#third_parent').html()+'';
j('#third_parent').remove();
j(tr).insertBefore(j('#first_parent'))
} else {
var tr = ''+j('#second_parent').html()+'';
j('#second_parent').remove();
j(tr).insertBefore(j('#first_parent'));
}
} else if(parseFloat(bookPrice) < parseFloat(exPrice) && parseFloat(bookPrice) < parseFloat(hrsPrice)){
if(parseFloat(exPrice) < parseFloat(hrsPrice)) {
if(1 == 1){
var tr = ''+j('#third_parent').html()+'';
j('#third_parent').remove();
j(tr).insertBefore(j('#first_parent'));
var tr = ''+j('#second_parent').html()+'';
j('#second_parent').remove();
j(tr).insertBefore(j('#first_parent'));
}
} else {
if(1 == 0){
var tr = ''+j('#third_parent').html()+'';
j('#third_parent').remove();
j(tr).insertBefore(j('#second_parent'));
} else {
var tr = ''+j('#second_parent').html()+'';
j('#second_parent').remove();
j(tr).insertBefore(j('#first_parent'));
var tr = ''+j('#third_parent').html()+'';
j('#third_parent').remove();
j(tr).insertBefore(j('#first_parent'));
}
}
} else if(parseFloat(bookPrice) == parseFloat(exPrice)){
if(parseFloat(bookPrice) < parseFloat(hrsPrice)){
if(1 == 1){
var tr = ''+j('#third_parent').html()+'';
var trF = ''+j('#first_parent').html()+'';
j('#third_parent').slideUp("slow", function(){
j('#first_parent').slideUp("slow", function(){
j(tr).insertBefore(j('#first_parent'));
j(trF).insertAfter(j('#second_parent'));
});
});
}
} else{
if(1 == 0){
var tr = ''+j('#third_parent').html()+'';
j('#third_parent').remove();
j(tr).insertBefore(j('#first_parent'));
}
}
} else if(parseFloat(hrsPrice) == parseFloat(bookPrice)){
if(parseFloat(hrsPrice) > parseFloat(exPrice)){
if(1 == 0){
var tr = ''+j('#second_parent').html()+'';
j('#second_parent').remove();
j(tr).insertBefore(j('#first_parent'));
} else {
var tr = ''+j('#third_parent').html()+'';
j('#third_parent').remove();
j(tr).insertBefore(j('#second_parent'));
}
} else {
if(1 == 0){
var tr = ''+j('#third_parent').html()+'';
j('#third_parent').remove();
j(tr).insertBefore(j('#second_parent'));
} else {
var tr = ''+j('#second_parent').html()+'';
j('#second_parent').remove();
j(tr).insertBefore(j('#first_parent'));
}
}
} else if(parseFloat(exPrice) == parseFloat(hrsPrice)){
if(parseFloat(exPrice) > parseFloat(bookPrice)){
if(1 == 1){
var tr = ''+j('#second_parent').html()+'';
j('#second_parent').remove();
j(tr).insertBefore(j('#first_parent'));
var tr = ''+j('#third_parent').html()+'';
j('#third_parent').remove();
j(tr).insertBefore(j('#first_parent'));
}
}
}
}
j('#first_parent').fadeOut(850, function(){
j('#first_parent').remove();
});j('#second_parent').fadeOut(850, function(){
j('#second_parent').remove();
});j('#third_parent').fadeOut(850, function(){
j('#third_parent').remove();
}); }
});
j.get('https://parity.globres.io/includes/query_files/portails/expedia_portail.php', {hot_id:hotID, datepicker_from:arrival, datepicker_to:depart, adults:adult, currency:currency, rooms:rooms, version:'v1', checkkey:checkkey}, function(response_ex){
ctr += 1;
var response_data_expedia = JSON.parse(response_ex);
exPrice =response_data_expedia['ex'];
if(exPrice == 'XPATHERROR' || exPrice == 'NOROOMS' || exPrice == 'BROKENLINK' || exPrice == ''){
exPrice = 0;
}
if(ctr == 3) {
if(0 == 1 && 0 == 3 && 0 == 2){
var tr = ''+j('#third_parent').html()+'';
j('#third_parent').remove();
j(tr).insertBefore(j('#second_parent'));
} else if(0 == 2 && 0 == 1 && 0 == 3){
var tr = ''+j('#second_parent').html()+'';
j('#second_parent').remove();
j(tr).insertBefore(j('#first_parent'));
} else if(0 == 3 && 0 == 1 && 0 == 2){
var tr = ''+j('#second_parent').html()+'';
j('#second_parent').remove();
j(tr).insertBefore(j('#first_parent'));
var tr1 = ''+j('#third_parent').html()+'';
j('#third_parent').remove();
j(tr1).insertBefore(j('#first_parent'));
} else if(0 == 2 && 0 == 3 && 0 == 1){
var tr = ''+j('#third_parent').html()+'';
j('#third_parent').remove();
j(tr).insertBefore(j('#first_parent'));
var tr1 = ''+j('#first_parent').html()+'';
j('#first_parent').remove();
j(tr1).insertBefore(j('#second_parent'));
} else if(0 == 3 && 0 == 2 && 0 == 1){
var tr = ''+j('#third_parent').html()+'';
j('#third_parent').remove();
j(tr).insertBefore(j('#first_parent'));
var tr1 = ''+j('#second_parent').html()+'';
j('#second_parent').remove();
j(tr1).insertBefore(j('#first_parent'));
} else {
if(parseFloat(bookPrice) > parseFloat(hrsPrice) && parseFloat(bookPrice) > parseFloat(exPrice)){
if(parseFloat(exPrice) < parseFloat(hrsPrice)) {
if(1 == 0){
var tr = ''+j('#second_parent').html()+'';
j('#second_parent').remove();
j(tr).insertBefore(j('#first_parent'));
var tr1 = ''+j('#third_parent').html()+'';
j('#third_parent').remove();
j(tr1).insertBefore(j('#first_parent'));
} else {
var tr = ''+j('#third_parent').html()+'';
j('#third_parent').remove();
j(tr).insertBefore(j('#second_parent'));
}
} else {
if(1 == 0){
var tr = ''+j('#third_parent').html()+'';
j('#third_parent').remove();
j(tr).insertBefore(j('#first_parent'));
var tr1 = ''+j('#second_parent').html()+'';
j('#second_parent').remove();
j(tr1).insertBefore(j('#first_parent'));
} else {
var tr = ''+j('#second_parent').html()+'';
j('#second_parent').remove();
j(tr).insertBefore(j('#third_parent'));
}
}
} else if(parseFloat(bookPrice) > parseFloat(exPrice) && parseFloat(bookPrice) < parseFloat(hrsPrice)){
if(1 == 0){
var tr = ''+j('#second_parent').html()+'';
j('#second_parent').remove();
j(tr).insertBefore(j('#first_parent'));
} else {
var tr = ''+j('#third_parent').html()+'';
j('#third_parent').remove();
j(tr).insertBefore(j('#first_parent'));
var tr = ''+j('#first_parent').html()+'';
j('#first_parent').remove();
j(tr).insertBefore(j('#second_parent'));
}
} else if(parseFloat(bookPrice) < parseFloat(exPrice) && parseFloat(bookPrice) > parseFloat(hrsPrice)){
if(1 == 0){
var tr = ''+j('#third_parent').html()+'';
j('#third_parent').remove();
j(tr).insertBefore(j('#first_parent'))
} else {
var tr = ''+j('#second_parent').html()+'';
j('#second_parent').remove();
j(tr).insertBefore(j('#first_parent'));
}
} else if(parseFloat(bookPrice) < parseFloat(exPrice) && parseFloat(bookPrice) < parseFloat(hrsPrice)){
if(parseFloat(exPrice) < parseFloat(hrsPrice)) {
if(1 == 1){
var tr = ''+j('#third_parent').html()+'';
j('#third_parent').remove();
j(tr).insertBefore(j('#first_parent'));
var tr = ''+j('#second_parent').html()+'';
j('#second_parent').remove();
j(tr).insertBefore(j('#first_parent'));
}
} else {
if(1 == 0){
var tr = ''+j('#third_parent').html()+'';
j('#third_parent').remove();
j(tr).insertBefore(j('#second_parent'));
} else {
var tr = ''+j('#second_parent').html()+'';
j('#second_parent').remove();
j(tr).insertBefore(j('#first_parent'));
var tr = ''+j('#third_parent').html()+'';
j('#third_parent').remove();
j(tr).insertBefore(j('#first_parent'));
}
}
} else if(parseFloat(bookPrice) == parseFloat(exPrice)){
if(parseFloat(bookPrice) < parseFloat(hrsPrice)){
if(1 == 1){
var tr = ''+j('#third_parent').html()+'';
var trF = ''+j('#first_parent').html()+'';
j('#third_parent').slideUp("slow", function(){
j('#first_parent').slideUp("slow", function(){
j(tr).insertBefore(j('#first_parent'));
j(trF).insertAfter(j('#second_parent'));
});
});
}
} else {
if(1 == 0){
var tr = ''+j('#third_parent').html()+'';
j('#third_parent').remove();
j(tr).insertBefore(j('#first_parent'));
}
}
} else if(parseFloat(hrsPrice) == parseFloat(bookPrice)){
if(parseFloat(hrsPrice) > parseFloat(exPrice)){
if(1 == 0){
var tr = ''+j('#second_parent').html()+'';
j('#second_parent').remove();
j(tr).insertBefore(j('#first_parent'));
} else {
var tr = ''+j('#third_parent').html()+'';
j('#third_parent').remove();
j(tr).insertBefore(j('#second_parent'));
}
} else {
if(1 == 0){
var tr = ''+j('#third_parent').html()+'';
j('#third_parent').remove();
j(tr).insertBefore(j('#second_parent'));
} else {
var tr = ''+j('#second_parent').html()+'';
j('#second_parent').remove();
j(tr).insertBefore(j('#first_parent'));
}
}
} else if(parseFloat(exPrice) == parseFloat(hrsPrice)){
if(parseFloat(exPrice) > parseFloat(bookPrice)){
if(1 == 1){
var tr = ''+j('#second_parent').html()+'';
j('#second_parent').remove();
j(tr).insertBefore(j('#first_parent'));
var tr = ''+j('#third_parent').html()+'';
j('#third_parent').remove();
j(tr).insertBefore(j('#first_parent'));
}
}
}
}
j('#first_parent').fadeOut(850, function(){
j('#first_parent').remove();
});j('#second_parent').fadeOut(850, function(){
j('#second_parent').remove();
});j('#third_parent').fadeOut(850, function(){
j('#third_parent').remove();
}); }
});
j.get('https://parity.globres.io/includes/query_files/portails/hrs_portail.php', {hot_id:hotID, datepicker_from:arrival, datepicker_to:depart, adults:adult, currency:currency, rooms:rooms, version:'v1', checkkey:checkkey}, function(response_hrs){
ctr += 1;
var response_data_hrs = JSON.parse(response_hrs);
hrsPrice = response_data_hrs['hrs'];
if(hrsPrice == 'XPATHERROR' || hrsPrice == 'NOROOMS' || hrsPrice == 'BROKENLINK' || hrsPrice == ''){
hrsPrice = 0;
}
if(ctr == 3) {
if(0 == 1 && 0 == 3 && 0 == 2){
var tr = ''+j('#third_parent').html()+'';
j('#third_parent').remove();
j(tr).insertBefore(j('#second_parent'));
} else if(0 == 2 && 0 == 1 && 0 == 3){
var tr = ''+j('#second_parent').html()+'';
j('#second_parent').remove();
j(tr).insertBefore(j('#first_parent'));
} else if(0 == 3 && 0 == 1 && 0 == 2){
var tr = ''+j('#second_parent').html()+'';
j('#second_parent').remove();
j(tr).insertBefore(j('#first_parent'));
var tr1 = ''+j('#third_parent').html()+'';
j('#third_parent').remove();
j(tr1).insertBefore(j('#first_parent'));
} else if(0 == 2 && 0 == 3 && 0 == 1){
var tr = ''+j('#third_parent').html()+'';
j('#third_parent').remove();
j(tr).insertBefore(j('#first_parent'));
var tr1 = ''+j('#first_parent').html()+'';
j('#first_parent').remove();
j(tr1).insertBefore(j('#second_parent'));
} else if(0 == 3 && 0 == 2 && 0 == 1){
var tr = ''+j('#third_parent').html()+'';
j('#third_parent').remove();
j(tr).insertBefore(j('#first_parent'));
var tr1 = ''+j('#second_parent').html()+'';
j('#second_parent').remove();
j(tr1).insertBefore(j('#first_parent'));
} else {
if(parseFloat(bookPrice) > parseFloat(hrsPrice) && parseFloat(bookPrice) > parseFloat(exPrice)){
if(parseFloat(exPrice) < parseFloat(hrsPrice)) {
if(1 == 0){
var tr = ''+j('#second_parent').html()+'';
j('#second_parent').remove();
j(tr).insertBefore(j('#first_parent'));
var tr1 = ''+j('#third_parent').html()+'';
j('#third_parent').remove();
j(tr1).insertBefore(j('#first_parent'));
} else {
var tr = ''+j('#third_parent').html()+'';
j('#third_parent').remove();
j(tr).insertBefore(j('#second_parent'));
}
} else {
if(1 == 0){
var tr = ''+j('#third_parent').html()+'';
j('#third_parent').remove();
j(tr).insertBefore(j('#first_parent'));
var tr1 = ''+j('#second_parent').html()+'';
j('#second_parent').remove();
j(tr1).insertBefore(j('#first_parent'));
} else {
var tr = ''+j('#second_parent').html()+'';
j('#second_parent').remove();
j(tr).insertBefore(j('#third_parent'));
}
}
} else if(parseFloat(bookPrice) > parseFloat(exPrice) && parseFloat(bookPrice) < parseFloat(hrsPrice)){
if(1 == 0){
var tr = ''+j('#second_parent').html()+'';
j('#second_parent').remove();
j(tr).insertBefore(j('#first_parent'));
} else {
var tr = ''+j('#third_parent').html()+'';
j('#third_parent').remove();
j(tr).insertBefore(j('#first_parent'));
var tr = ''+j('#first_parent').html()+'';
j('#first_parent').remove();
j(tr).insertBefore(j('#second_parent'));
}
} else if(parseFloat(bookPrice) < parseFloat(exPrice) && parseFloat(bookPrice) > parseFloat(hrsPrice)){
if(1 == 0){
var tr = ''+j('#third_parent').html()+'';
j('#third_parent').remove();
j(tr).insertBefore(j('#first_parent'))
} else {
var tr = ''+j('#second_parent').html()+'';
j('#second_parent').remove();
j(tr).insertBefore(j('#first_parent'));
}
} else if(parseFloat(bookPrice) < parseFloat(exPrice) && parseFloat(bookPrice) < parseFloat(hrsPrice)){
if(parseFloat(exPrice) < parseFloat(hrsPrice)) {
if(1 == 1){
var tr = ''+j('#third_parent').html()+'';
j('#third_parent').remove();
j(tr).insertBefore(j('#first_parent'));
var tr = ''+j('#second_parent').html()+'';
j('#second_parent').remove();
j(tr).insertBefore(j('#first_parent'));
}
} else {
if(1 == 0){
var tr = ''+j('#third_parent').html()+'';
j('#third_parent').remove();
j(tr).insertBefore(j('#second_parent'));
} else {
var tr = ''+j('#second_parent').html()+'';
j('#second_parent').remove();
j(tr).insertBefore(j('#first_parent'));
var tr = ''+j('#third_parent').html()+'';
j('#third_parent').remove();
j(tr).insertBefore(j('#first_parent'));
}
}
} else if(parseFloat(bookPrice) == parseFloat(exPrice)){
if(parseFloat(bookPrice) < parseFloat(hrsPrice)){
if(1 == 1){
var tr = ''+j('#third_parent').html()+'';
var trF = ''+j('#first_parent').html()+'';
j('#third_parent').slideUp("slow", function(){
j('#first_parent').slideUp("slow", function(){
j(tr).insertBefore(j('#first_parent'));
j(trF).insertAfter(j('#second_parent'));
});
});
}
} else {
if(1 == 0){
var tr = ''+j('#third_parent').html()+'';
j('#third_parent').remove();
j(tr).insertBefore(j('#first_parent'));
}
}
} else if(parseFloat(hrsPrice) == parseFloat(bookPrice)){
if(parseFloat(hrsPrice) > parseFloat(exPrice)){
if(1 == 0){
var tr = ''+j('#second_parent').html()+'';
j('#second_parent').remove();
j(tr).insertBefore(j('#first_parent'));
} else {
var tr = ''+j('#third_parent').html()+'';
j('#third_parent').remove();
j(tr).insertBefore(j('#second_parent'));
}
} else {
if(1 == 0){
var tr = ''+j('#third_parent').html()+'';
j('#third_parent').remove();
j(tr).insertBefore(j('#second_parent'));
} else {
var tr = ''+j('#second_parent').html()+'';
j('#second_parent').remove();
j(tr).insertBefore(j('#first_parent'));
}
}
} else if(parseFloat(exPrice) == parseFloat(hrsPrice)){
if(parseFloat(exPrice) > parseFloat(bookPrice)){
if(1 == 1){
var tr = ''+j('#second_parent').html()+'';
j('#second_parent').remove();
j(tr).insertBefore(j('#first_parent'));
var tr = ''+j('#third_parent').html()+'';
j('#third_parent').remove();
j(tr).insertBefore(j('#first_parent'));
}
}
}
}
j('#first_parent').fadeOut(850, function(){
j('#first_parent').remove();
});j('#second_parent').fadeOut(850, function(){
j('#second_parent').remove();
});j('#third_parent').fadeOut(850, function(){
j('#third_parent').remove();
});
}
});
});
}
});j('#hr').show().remove();
});
});
}, 4000);