var gmyPic="";
var textMessage="";
function store(gmyVar){
gmyPic=gmyVar;
gmyPic="big_"+gmyPic;

}


$(document).ready(function(){						   

$('.gscale').bind('click',disappear);

function disappear(){
store($(this).children('.gsize').attr("src")),

$('#gwrap').addClass('gbgColor'),
$('#gwrap').removeClass('greturn'),
$('#gwrap').addClass('dummyBack'),


$('#gwrap').animate({'opacity':0.85},'slow'),
$('.gsize').animate({'opacity':0.15},'slow'),


$('#index-01').hide(),
$('#index-02').hide(),
$('#index-03').hide(),
$('#index-04').hide(),
$('#index-05').hide(),
$('#index-06').hide(),
$('#index-07').hide(),
$('#index-08').hide(),
$('#index-09').hide(),
$('#index-10').hide(),
$('#index-11').hide(),
$('#index-12').hide(),
$('#dancers-13').hide(),
$('#dancers-14').hide(),
$('#dancers-15').hide(),
$('#dancers-16').hide(),
$('#dancers-17').hide(),
$('#dancers-18').hide(),
$('#dancers-19').hide(),
$('#dancers-20').hide(),
$('#dancers-21').hide(),
$('#dancers-22').hide(),


$('#gback').addClass('gindexing').animate(
{'width':798},
1250).animate(
{'height':600},
2000).append($('#gs')).append($('#gaddPix')),
$('#gs').fadeIn(),
$('#gaddPix').fadeIn(),
$('#gaddPix').css("background-image", "url("+gmyPic+")"),
$('#gaddPix').html("<div class='insertText'> click photo to close [x]</div>"),



$('.gscale').unbind('click',disappear);

$('#gaddPix').bind('click',reappear);


};

function reappear(){
/*$('#index-01').show(),
$('#index-02').show(),
$('#index-03').show(),
$('#index-04').show(),
$('#index-05').show(),
$('#index-06').show(),
$('#index-07').show(),
$('#index-08').show(),
$('#index-09').show(),
$('#index-10').show(),
$('#index-11').show(),
$('#index-12').show(),
$('#dancers-13').show(),
$('#dancers-14').show(),
$('#dancers-15').show(),
$('#dancers-16').show(),
$('#dancers-17').show(),
$('#dancers-18').show(),
$('#dancers-19').show(),
$('#dancers-20').show(),
$('#dancers-21').show(),
$('#dancers-22').show(),

$('#gwrap').removeClass('gbgColor'),
$('#gwrap').removeClass('dummyBack'),
$('#gwrap').addClass('greturn'),
$('#gwrap').animate({'opacity':1},'slow'),
$('.gsize').animate({'opacity':1},'slow'),
$('#gback').css('width', '1px').css('height', '1px'),
$('#gback').removeClass('gindexing'),
$('#gwrap').append($('#gaddPix')),
$('#gaddPix').hide(),
$('#gaddPix').removeAttr('background-image'),
store(""),
$('.gscale').bind('click',disappear)
$('#gaddPix').unbind('click',reappear);*/
window.location="dancers.php";
}

});


