// JavaScript for Snub Communications.
// www.snubcommunications.com
// Use whatever you like, but give proper credit


// swap image and scroll screen 

function swapPhoto(photoSRC) {
    document.images.servicesImage.src = "assets/portfolio/" + photoSRC;
}


// Craig's pop-window script
// set up centering information

var h = screen.availHeight, w= screen.availWidth;
var popW = 200, popH = 200;
var leftCoord = (w-popW)/2, topCoord = (h-popH-50)/2;

//imgSrc driven by HREF

function newWindow() 
{

windowDefinition=window.open("","ImageWindow","toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=yes,width="+popW+",height="+popH+",left="+leftCoord+",top="+topCoord+"");

windowDefinition.document.open();

// HTML area - if editing, remember to close all quotes or page will die
// font face junk added due to IE 5 Mac bug

windowDefinition.document.write("<html><head><title>Dancing Tree</title></head>");
windowDefinition.document.write("<body bgcolor=\"black\" style=\"height: 100%; background: #000; margin: 0px;\" leftmargin=\"0\" topmargin=\"0\">");
windowDefinition.document.write("<center><table height=\"100%\"><tr><td valign=\"middle\"><embed src=\"../assets/snub_communications/tree.dcr\" width=\"144\" height=\"145\" /></td></tr></table>");
windowDefinition.document.write("</body></html>");
windowDefinition.document.close();
}



