window.onresize=resizeBackground;
var backgroundDesti=new Array(2,7,20,37,38,43,44,51,55,62,19,54,56,66,68,97,100,116,118,125,130,142,146,149,150,153,178,183,185,198,199,211,215,213,219,220,224,231,243,249,31,230,196,158,143,253,115,39,119,50,32,254,10,176,254,52,173,35,242,144,159,168,174,206,6,255,112,235,141,148,156,233,114,250,191,195,18,252,5,184,187,188,197,22,61);
function initBackground(C){$("<div></div>").appendTo($("td.left"));
$("<div></div>").appendTo($("td.right"));
var B=$("<div></div>").prependTo($("#header"));
var A=$("<div></div>").appendTo($("#header"));
B.addClass("headerLeft");
A.addClass("headerRight");
$("#header .headerLeft").css("left",$("td.left").innerWidth()-20+"px");
$("#header .headerRight").css("right",$("td.right").innerWidth()-21+"px");
if(C=="HP"){changeBodyBg(backgroundDesti[$.random(backgroundDesti.length)])
}resizeBackground()
}function changeBodyBg(A){if(jQuery.inArray(A,backgroundDesti)!=-1){document.body.setAttribute("className","country"+A);
document.body.setAttribute("class","country"+A);
$(".left div").fadeIn("5000");
$(".right div").fadeIn("5000")
}else{document.body.removeAttribute("className");
document.body.removeAttribute("class")
}}function resizeBackground(){$(".left div").css("width",$("td.left").innerWidth()+"px");
$(".right div").css("width",$("td.right").innerWidth()+"px");
$("#header .headerLeft").css("left",$("td.left").innerWidth()-20+"px");
$("#header .headerRight").css("right",$("td.right").innerWidth()-21+"px")
};