$(document).ready(function(){
         
submenu_position();
$("#video_show").click(function(){$("#video").show();});
$("#video_show_img").click(function(){$("#video").show();});
$("#video_close").click(function(){$("#video").hide();});

$("#buy_ticket").hover(function()
{
 $("#buy_ticket .buy_ticket_top").css("background","url(../images/button_buy_ticket_hover.png) no-repeat");
},
function()
{
 $("#buy_ticket .buy_ticket_top").css("background","url(../images/button_buy_ticket.png) no-repeat");   
});


$("#buy_ticket_bottom").hover(function()
{
    $("#buy_ticket_bottom .buy_ticket_top").css("background","url(../images/button_buy_ticket_hover.png) no-repeat");
},
function()
{
$("#buy_ticket_bottom .buy_ticket_top").css("background","url(../images/button_buy_ticket.png) no-repeat");   
});


$("#buy_ticket_index").hover(function(){
 $("#buy_ticket_index .buy_ticket_top_index").css("background","url(images/buy_index_bt_over.png) no-repeat");
},
function()
{
$("#buy_ticket_index .buy_ticket_top_index").css("background","url(images/buy_index_bt.png) no-repeat");   
});




$("#diler_show").click(function(){$("#diler_form").slideToggle(); return false;}); 
$("#fotos_show").click(function(){$("#fotos_form").slideToggle(); $(this).hide(); return false;}); 
$(".download_show").click(function(){$("#download_form").slideToggle(); $(this).hide(); return false;}); 

if($(".single_image").length)
$(".single_image").fancybox(); 
var photow=$(".photo_small").width();   
      
 
 
$(".all_container").css("top","80%").css("left","0");




})


function submenu_position(){
_position();
}

function _position(){
 var p, x; 
 p = document.getElementById("anhor");
 x = p.offsetLeft;
 while((p=p.offsetParent)!=null){
  x += p.offsetLeft;
}
 if(document.getElementById("aurora_live_header")!=null)
 document.getElementById("aurora_live_header").style.left = x - 30;
}


function openWin2() {
  myWin= open("/info/print_office_map.aspx", "displayWindow", 
    "width=630,height=800,status=no,toolbar=no,menubar=no");
}

function openWin1() {
    myWin = open("/info/print_camp_map.aspx", "displayWindow", 
    "width=630,height=800,status=no,toolbar=no,menubar=no");
}


