$(document).ready(function(){	
		// alert("jquery is on the scene");
});

function noaction(){
	return;	
}

$(window).resize(function(){
	swidth = $('#page_bg').width();
	sheight = $('#page_bg').height();
	resizeshadowbox(swidth,sheight);
});

function resizeshadowbox(fnwidth,fnheight){
	$('#shadowbox').css('width',fnwidth);
	$('#shadowbox').css('height',fnheight);
}

function shadowimage(simg,salt){
	shtml = "<div style='text-align: center; background: white; padding-bottom: 15px;'>\n";
	shtml += "\t<img src='" + simg + "' align='center' /><br /><br />\n";
	shtml += "\t<b>" + salt + "</b><br />\n";
	shtml += "</div>\n";
	
	$('#popimage').html(shtml);
	
	icastashadow();
}

function icastashadow(which){
	$('#shadowbox').toggle();
	$('#popimage').toggle();
	
	$('#shadowbox').css('width',$('#page_bg').width());
	$('#shadowbox').css('height',$('#page_bg').height());
	$('#shadowbox').css('opacity','.9');
	
}

function icloseashadow(){
	$('#popimage').toggle();
	$('#shadowbox').toggle();
}
	
