
function change()
{
number = Math.floor(Math.random()*21)
if (number==0)
document.write('<img src="portfolio/tn/barb_wire_tn.jpg" width="99" height="140" border="1">')
if (number==1)
document.write('<img src="portfolio/tn/chinese_monkey_tn.jpg" width="99" height="140" border="1">')
if (number==2)
document.write('<img src="portfolio/tn/chinese_lettering_tn.jpg" width="99" height="140" border="1">')
if (number==3)
document.write('<img src="portfolio/tn/demon_tn.jpg" width="99" height="140" border="1">')
if (number==4)
document.write('<img src="portfolio/tn/dragon_tn.jpg" width="99" height="140" border="1">')
if (number==5)
document.write('<img src="portfolio/tn/fantasy_mural_tn.jpg" width="99" height="140" border="1">')
if (number==6)
document.write('<img src="portfolio/tn/flower_tn.jpg" width="99" height="140" border="1">')
if (number==7)
document.write('<img src="portfolio/tn/genie_tn.jpg" width="99" height="140" border="1">')
if (number==8)
document.write('<img src="portfolio/tn/justice_tn.jpg" width="99" height="140" border="1">')
if (number==9)
document.write('<img src="portfolio/tn/life_death_tn.jpg" width="99" height="140" border="1">')
if (number==10)
document.write('<img src="portfolio/tn/phoenix_col_tn.jpg" width="99" height="140" border="1">')
if (number==11)
document.write('<img src="portfolio/tn/portrait_tn.jpg" width="99" height="140" border="1">')
if (number==12)
document.write('<img src="portfolio/tn/rose_tn.jpg" width="99" height="140" border="1">')
if (number==13)
document.write('<img src="portfolio/tn/skull_tn.jpg" width="99" height="140" border="1">')
if (number==14)
document.write('<img src="portfolio/tn/skull2_tn.jpg" width="99" height="140" border="1">')
if (number==15)
document.write('<img src="portfolio/tn/sun_tn.jpg" width="99" height="140" border="1">')
if (number==16)
document.write('<img src="portfolio/tn/tiger_head_tn.jpg" width="99" height="140" border="1">')
if (number==17)
document.write('<img src="portfolio/tn/tiger_tn.jpg" width="99" height="140" border="1">')
if (number==18)
document.write('<img src="portfolio/tn/tiger2_tn.jpg" width="99" height="140" border="1">')
if (number==19)
document.write('<img src="portfolio/tn/tiger3_tn.jpg" width="99" height="140" border="1">')
if (number==20)
document.write('<img src="portfolio/tn/tigers_tn.jpg" width="99" height="140" border="1">')
if (number==21)
document.write('<img src="portfolio/tn/wolf_tn.jpg" width="99" height="140" border="1">')
}

//This is the image swap.
       
if (document.images) {
                
    Home_on = new Image(); 
    Home_on.src = "images/home_on1.gif";   
    Gallery_on = new Image();
    Gallery_on.src = "images/gallery_on1.gif";
    Piercing_on = new Image();
    Piercing_on.src = "images/piercing_on1.gif";
    Healing_on = new Image(); 
    Healing_on.src = "images/healing_on1.gif";   
    Locations_on = new Image();
    Locations_on.src = "images/locations_on1.gif";
    Contacts_on = new Image();
    Contacts_on.src = "images/contacts_on1.gif";

    Home_off = new Image(); 
    Home_off.src = "images/home_off1.gif";   
    Gallery_off = new Image();
    Gallery_off.src = "images/gallery_off1.gif";
    Piercing_off = new Image();
    Piercing_off.src = "images/piercing_off1.gif";
    Healing_off = new Image(); 
    Healing_off.src = "images/healing_off1.gif";   
    Locations_off = new Image();
    Locations_off.src = "images/locations_off1.gif";
    Contacts_off = new Image();
    Contacts_off.src = "images/contacts_off1.gif";

    Home_other = new Image();
    Home_other.src = "images/home_bottom_anim.gif";
    Gallery_other = new Image();
    Gallery_other.src = "images/gallery_bottom_anim.gif";
    Piercing_other = new Image();
    Piercing_other.src = "images/piercing_bottom_anim.gif";
    Healing_other = new Image();
    Healing_other.src = "images/healing_bottom_anim.gif";
    Locations_other = new Image();
    Locations_other.src = "images/locations_bottom_anim.gif";
    Contacts_other = new Image();
    Contacts_other.src = "images/contacts_bottom_anim.gif";
                                                      
        }


function imgOn(imgName) {
        if (document.images) {
               document[imgName].src = eval(imgName + "_on.src");
               document["message"].src = eval(imgName + "_other.src");
                

        }
}

//New Window Preconfigured Script

function OpenNewWindow(cPicture,nWidth,nHeight,cMessage,nBorder)
        {
        NewWindow=window.open("","NewOne","HEIGHT="+nHeight+",WIDTH="+nWidth+",scrollbars=no,resizable=no,top=5,left=5");
        NewWindow.document.write ("<HTML><HEAD><TITLE>Inkman Tattoo Gallery");
        NewWindow.document.write ("</TITLE></HEAD>");
        NewWindow.document.write ("<BODY BGCOLOR='black' onblur='focus()'>");
        NewWindow.document.write ("<P ALIGN=CENTER>");
        NewWindow.document.write ("<B><FONT FACE='Arial' SIZE='3' COLOR='#FFFFFF'>");
        NewWindow.document.write (cMessage);
        NewWindow.document.write ("<BR><BR></FONT></B>");
        NewWindow.document.write ("<IMG SRC=");
        NewWindow.document.write (cPicture);
        NewWindow.document.write (">");
        NewWindow.document.write ("</P>");
        NewWindow.document.write ("<center><a href='javascript:parent.close()'><img src='images/close_window.gif' border='0'></a>");
        NewWindow.document.write ("</FORM></CENTER></BODY></HTML>");
        NewWindow.document.write ("</BODY></HTML>");
        NewWindow.document.close();
        return false;
}

//Mouse Over effect DW's

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v3.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}


