var whichgallery = 0;
var whichtotal = 0;
var whichname = "";
var PhotoWindow = null;
var PressWindow = null;
var TestimonialWindow = null;
new ypSlideOutMenu("menu1", "down", 352, 101, 170,  85);

if( parseInt(navigator.appVersion) >= 3 ) {
    imgNav1on = new Image(175, 38);    imgNav1on.src = "images/nav01on.gif";
    imgNav1off = new Image(175,38);   	imgNav1off.src = "images/nav01off.gif";
    imgNav2on = new Image(157, 38);    imgNav2on.src = "images/nav02on.gif";
    imgNav2off = new Image(157,38);    imgNav2off.src = "images/nav02off.gif";
    imgNav3on = new Image(175, 40);   	imgNav3on.src = "images/nav03on.gif";
    imgNav3off = new Image(175,40);   	imgNav3off.src = "images/nav03off.gif";
    imgNav4on = new Image(157, 40);   	imgNav4on.src = "images/nav04on.gif";
    imgNav4off = new Image(157,40);   	imgNav4off.src = "images/nav04off.gif";
    imgNav5on = new Image(54, 41);  	imgNav5on.src = "images/nav05on.gif";
    imgNav5off = new Image(54,41);  	imgNav5off.src = "images/nav05off.gif";
    imgNav6on = new Image(54, 42);  	imgNav6on.src = "images/nav06on.gif";
    imgNav6off = new Image(54,42);  	imgNav6off.src = "images/nav06off.gif";
}

function ImgOn(imgNum) {
	if( parseInt(navigator.appVersion) >= 3 ) {
		document["Nav" + imgNum].src = eval("imgNav" + imgNum + "on.src");
		if( imgNum == 3 ){
			ypSlideOutMenu.showMenu( 'menu1' );
		}
	}
}

function ImgOff(imgNum) {
	if( parseInt(navigator.appVersion) >= 3 ) {
		document["Nav" + imgNum].src = eval("imgNav" + imgNum + "off.src");
		if( imgNum == 5 || imgNum == 6 ){ mainframe.endScroll(); }
		if( imgNum == 3 ){
			ypSlideOutMenu.hideMenu( 'menu1' );
		}
	}
}

function Create_Photo_Window( whichgal, whichtot, whichnm ){
    var temptext = "<HTML><HEAD><TITLE>Rebecca Stevens Net - Photo Window</TITLE></HEAD>";
    temptext += "<BODY BGCOLOR='#FFFFFF'><BR><BR><BR><H3 ALIGN=CENTER>Loading...</H3></BODY></HTML>";
    if( PhotoWindow != null ){ PhotoWindow.close(); }
    PhotoWindow = window.open("about:blank","PhotoWindow", "width=750,height=450");
    whichgallery = whichgal;
    whichtotal = whichtot;
    whichname = whichnm;
    PhotoWindow.document.open();
    PhotoWindow.document.write( temptext );
    PhotoWindow.document.close();
    PhotoWindow.location = "photomain.html";
    PhotoWindow.window.focus();
}


function Create_Press_Window( filename ){
    var temptext = "<HTML><HEAD><TITLE>Rebecca Stevens Net - Press Window</TITLE></HEAD>";
    temptext += "<BODY BGCOLOR='#FFFFFF'><BR><BR><BR><H3 ALIGN=CENTER>Loading...</H3></BODY></HTML>";
    if( PressWindow != null ){ PressWindow.close(); }
    PressWindow = window.open("about:blank","PressWindow", "width=700,height=500,scrollbars,resizable");
    PressWindow.document.open();
    PressWindow.document.write( temptext );
    PressWindow.document.close();
    PressWindow.location = filename;
    PressWindow.window.focus();
}

function Create_Testimonial_Window(){
    var temptext = "<HTML><HEAD><TITLE>Rebecca Stevens Net - Testimonial Window</TITLE></HEAD>";
    temptext += "<BODY BGCOLOR='#FFFFFF'><BR><BR><BR><H3 ALIGN=CENTER>Loading...</H3></BODY></HTML>";
    if( TestimonialWindow != null ){ TestimonialWindow.close(); }
    TestimonialWindow = window.open("about:blank","TestimonialWindow", "width=480,height=400,scrollbars,resizable");
    TestimonialWindow.document.open();
    TestimonialWindow.document.write( temptext );
    TestimonialWindow.document.close();
    TestimonialWindow.location = "testimon.html";
    TestimonialWindow.window.focus();
}

function Init_Menu(){
	var outstr = "";
	outstr += '<DIV ID="menu1Container"><TABLE ID="menu1Content" ';
	outstr += 'BORDER="0" CELLPADDING="2" CELLSPACING="0" WIDTH="200" CLASS="menu">';
//	outstr += '<TR><TD BGCOLOR="#FFFFFF" CLASS="menucell"><A HREF="resume.html" TARGET="ResumeHTMLWindow" CLASS="TextNav">Resume (HTML)</A></TD></TR>';
	outstr += '<TR><TD BGCOLOR="#FFFFFF" CLASS="menucell"><A HREF="resume.doc" TARGET="ResumeDocWindow" CLASS="TextNav">Resume (Word)</A></TD></TR>';
	outstr += '<TR><TD BGCOLOR="#FFFFFF" CLASS="menucell"><A HREF="resume.pdf" TARGET="ResumePDFWindow" CLASS="TextNav">Resume (PDF)</A></TD></TR>';
	outstr += '<TR><TD BGCOLOR="#FFFFFF"><A HREF="javascript:Create_Testimonial_Window();" CLASS="TextNav">Testimonials</A></TD></TR>';
	outstr += '</TABLE> </DIV>';
	return outstr;
}
// END OF FILE

