function cornerShadow(nonant) {var shadowimage='<IMG SRC="http://www.photoflush.com/static/images/dott.gif" CLASS="dso';
var pixelOpacities=[[1,2,3,4],[2,4,7,10,11],[1,4,9,15,20,23],[2,7,15,25,33,38],[3,10,20,33,43,49],[4,11,23,38,49,57]];
document.write('<TABLE WIDTH='+pixelOpacities.length+' HEIGHT='+pixelOpacities.length+' CELLSPACING=0 CELLPADDING=0 BORDER=0>');
document.write('<TR><TD WIDTH='+pixelOpacities.length+' HEIGHT='+pixelOpacities.length+' ');
if (nonant==1) {document.write('ALIGN=RIGHT VALIGN=BOTTOM>');for (i=0;i<pixelOpacities.length;i++) {document.write('<NOBR>');
for (j=0;j<pixelOpacities[i].length;j++) {document.write(shadowimage+pixelOpacities[i][j]+'">');}
document.write('</NOBR>');if (i!=(pixelOpacities.length-1)) {document.write('<BR>');}}}
if (nonant==3) {document.write('ALIGN=LEFT VALIGN=BOTTOM>');for (i=0;i<pixelOpacities.length;i++) {document.write('<NOBR>');
for (j=(pixelOpacities[i].length-1);j>-1;j--) {document.write(shadowimage+pixelOpacities[i][j]+'">');}
document.write('</NOBR>');if (i!=(pixelOpacities.length-1)) {document.write('<BR>');}}}
if (nonant==7) {document.write('ALIGN=RIGHT VALIGN=TOP>');for (i=(pixelOpacities.length-1);i>-1;i--) {document.write('<NOBR>');
for (j=0;j<pixelOpacities[i].length;j++) {document.write(shadowimage+pixelOpacities[i][j]+'">');}
document.write('</NOBR>');if (i>0) {document.write('<BR>');}}}
if (nonant==9) {document.write('ALIGN=LEFT VALIGN=TOP>');for (i=(pixelOpacities.length-1);i>-1;i--) {document.write('<NOBR>');
for (j=(pixelOpacities[i].length-1);j>-1;j--) {document.write(shadowimage+pixelOpacities[i][j]+'">');}
document.write('</NOBR>');if (i>0) {document.write('<BR>');}}}
document.write('</TD></TR></TABLE>');}

function sideShadow(nonant) {var lineOpacities=[4,12,24,41,53,61];if ((nonant<3)||(nonant>7)) {
document.write('<TABLE WIDTH="100%" HEIGHT='+lineOpacities.length+' CELLSPACING=0 CELLPADDING=0 BORDER=0>');
for (i=0;i<lineOpacities.length;i++) {document.write('<TR><TD WIDTH="100%" HEIGHT=1 CLASS="dso');
if (nonant<5) {document.write(lineOpacities[i]);} else {document.write(lineOpacities[(lineOpacities.length-(i+1))]);}
document.write('"><IMG SRC="http://www.photoflush.com/static/images/dott.gif"></TD></TR>');}document.write('</TABLE>');} else {
document.write('<TABLE WIDTH='+lineOpacities.length+' HEIGHT="100%" CELLSPACING=0 CELLPADDING=0 BORDER=0><TR>');
for (i=0;i<lineOpacities.length;i++) {document.write('<TD WIDTH=1 HEIGHT="100%" CLASS="dso');
if (nonant<5) {document.write(lineOpacities[i]);} else {document.write(lineOpacities[(lineOpacities.length-(i+1))]);}
document.write('"><IMG SRC="http://www.photoflush.com/static/images/dott.gif"></TD>');}document.write('</TR></TABLE>');}}

function dropShadow(nonant) {if (nonant%2==0) {sideShadow(nonant);} else {cornerShadow(nonant);}}

function textShadow(w,h) {var dstextno,dstexttxt=document.getElementById('dstext1').innerHTML;
for (i=2;i<6;i++) {dstextno='dstext'+i;document.getElementById(dstextno).innerHTML=dstexttxt;}}

function tableDiver() {var y=(window.innerHeight!=undefined)?(window.innerHeight-180):(document.body.offsetHeight-164);
var x=(window.innerWidth!=undefined)?window.innerWidth:document.body.offsetWidth;x=(x*0.45);if ((x%2)!=0) {x=Math.floor(x);}
document.getElementById("innertable").style.width=(x-30)+"px";document.getElementById("outertable").style.width=x+"px";
document.getElementById("innertable").style.height=(y-30)+"px";document.getElementById("outertable").style.height=y+"px";}

function hideShow() {var currvis=document.getElementById('outertable').style.visibility;
if (currvis=='visible') {document.getElementById('outertable').style.visibility='hidden';document.getElementById('hideshowicon').src='http://www.photoflush.com/clients/Z9O4rIG/images/icon_showtext.gif';
} else {document.getElementById('outertable').style.visibility='visible';document.getElementById('hideshowicon').src='http://www.photoflush.com/clients/Z9O4rIG/images/icon_hidetext.gif';}}

function gallery(i,c,t) {photo=i;photoflush(0);document.getElementById('caption').style.color=c;document.getElementById('dstext1').innerHTML=t;textShadow();}

function textShadow() {var dstextno,dstexttxt=document.getElementById('dstext1').innerHTML;
for (i=2;i<6;i++) {dstextno='dstext'+i;document.getElementById(dstextno).innerHTML=dstexttxt;}}
