function magain(){$(document).ready(function(){tb_init('a.sat1');imgLoader = new Image();});}
function sagain(){$(document).ready(function(){tb_init('a.sat2');imgLoader = new Image();});}
$(document).ready(function(){tb_init('a.sata');imgLoader = new Image();});
function tb_init(domChunk){$(domChunk).click(function(){var t = this.title||null;var a=this.href||this.alt;tb_show(t,a);this.blur();return false;});}
function tb_show(caption, url){try{if(typeof document.body.style.maxHeight === "undefined"){$("body","html").css({height: "100%", width: "100%"});$("html").css("overflow","hidden");if (document.getElementById("TB_HideSelect") === null){$("body").append("<iframe id='TB_HideSelect' style='position: absolute;z-index:99;top: 0;left: 0;background-color:#fff;border:none;filter:alpha(opacity=0);-moz-opacity: 0;opacity: 0;height:100%;width:100%;'></iframe><div id='TB_overlay'  style='z-index:100;top: 0px;left: 0px;height:100%;width:100%;'></div><div id='TB_window' style=' background: #ffffff;z-index: 102;color:#000000;display:none;border: 4px solid #525252;text-align:left;top:50%;left:50%;font: 12px tahoma;color: #333333;'></div>");$("#TB_overlay").click(tb_remove);}}else{if(document.getElementById("TB_overlay") === null){$("body").append("<div id='TB_overlay' style='z-index:100;top: 0px;left: 0px;height:100%;width:100%;'></div><div id='TB_window' style='background: #ffffff;z-index: 102;color:#000000;display:none;border: 4px solid #525252;text-align:left;top:50%;left:50%;position: absolute;background: #ffffff;z-index: 102;color:#000000;display:none;border: 4px solid #525252;text-align:left;top:50%;left:50%;'></div>");$("#TB_overlay").click(tb_remove);}}if(tb_detectMacXFF()){$("#TB_overlay").addClass("TB_overlayMacFFBGHack");}else{$("#TB_overlay").addClass("TB_overlayBG");}if(caption===null){caption="";}$("body").append("<div id='TB_load' style='display:none;height:13px;width:208px;z-index:103;top: 50%;left: 50%;	margin: -6px 0 0 -104px;'><img src='css/img/loading.gif' /></div>");$('#TB_load').show();{{if($("#TB_window").css("display") != "block"){$("#TB_window").append("<div style='background-color:#e8e8e8;height:27px;'><div style='color:#009;float:right;padding:7px 7px 5px 10px;margin-bottom:1px; font:18px tahoma;'>"+caption+"</div></div><div id='TB_ajaxContent' style='	clear:both;	padding:2px 1px 1px 1px;overflow:auto;text-align:right;line-height:1.4em;width:600px;height:300px'></div><div style='padding:7px 10px 5px 0;	margin-bottom:1px;	text-align:right;	float:left;'><a href='#' id='TB_closeWindowButton'>close</a> or Esc Key</div>");}}$("#TB_closeWindowButton").click(tb_remove);{$("#TB_ajaxContent").load(url ,function(){tb_position();$("#TB_load").remove();$("#TB_window").css({display:"block"});});}}
document.onkeyup=function(e){if(e==null){keycode=event.keyCode;}else{keycode=e.which;}if(keycode==27){tb_remove();}}}catch(e){}}
function tb_showIframe(){$("#TB_load").remove();$("#TB_window").css({display:"block"});}
function tb_remove(){$("#TB_imageOff").unbind("click");$("#TB_closeWindowButton").unbind("click");$("#TB_window").fadeOut("fast",function(){$('#TB_window,#TB_overlay,#TB_HideSelect').trigger("unload").unbind().remove();});$("#TB_load").remove();if(typeof document.body.style.maxHeight == "undefined") {$("body","html").css({height: "auto", width: "auto"});$("html").css("overflow","");}document.onkeydown = "";document.onkeyup = "";return false;}
function tb_position(){$("#TB_window").css({marginLeft: '-' + parseInt((630 / 2),10) + 'px', width: 630 + 'px'});if(!(jQuery.browser.msie && jQuery.browser.version < 7)) {$("#TB_window").css({marginTop: '-' + parseInt((340 / 2),10) + 'px'});}}
function tb_detectMacXFF(){var userAgent = navigator.userAgent.toLowerCase();if(userAgent.indexOf('mac')!= -1&&userAgent.indexOf('firefox')!=-1){return true;}}