

<!--
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

// =======================================
//            MEADOWBROOK STUDIO 
// =======================================
// =======================================
//        Scripts by Debbie Valeri 2009
// =======================================



// ===============================================
// ON MOUSEOVER IMAGE GALLERY: for Portfolio Pages
// ===============================================
function update(url,picWidth,picHeight,LVlink,picTitle,picSize,picPrice,picAvailability,picAvailabilitylink,index,isSuper) {

		//Load mid-size pic into main picture area
 	document['PhotoBig'].src=url;
	
		//get the id of the obj that will be changing it's attribute
		//in this case we're changing: 
		//the dimension's of the image obj called "image box"
		//to the dimensions of the mid size version of the selected thumb
	var selectedImage=document.getElementById("imageBox")
	selectedImage.setAttribute("width", picWidth);
	selectedImage.setAttribute("height", picHeight);
	selectedImage.setAttribute("alt", picTitle);

//document['imageBoxlink'].href=LVlink;
//document['magnifylink'].href=LVlink;
//alert((document['imageBoxlink'].href));

//document.ptgTitle.value=picTitle
//document.ptgSize.value=picSize
//document.ptgPrice.value=picPrice
//document.ptgAvailability.value=picAvailability
	
//var selectedImagelink=document.getElementById("imageBoxlink")
//selectedImagelink.setAttribute("href", LVlink);
//selectedImagelink.setAttribute("target", "_blank");
	
		//var largerviewurl=document.getElementById("imageBox")
	//var magnifyurl=document.getElementById("magnifylink")
		//largerviewurl.setAttribute("href", LVlink);
	//magnifyurl.setAttribute("href", LVlink);
	

//var captionTitle=document.getElementById("ptgTitle");
//var captionSize=document.getElementById("ptgSize");
//var captionPrice=document.getElementById("ptgPrice");
//var captionAvailability=document.getElementById("availability");

document.getElementById("ptgTitle").innerHTML=picTitle;
document.getElementById("ptgSize").innerHTML=picSize;
document.getElementById("ptgPrice").innerHTML=picPrice;


//var backup_idname=availabilitylink //grab value before changing it
//alert();
//a_backup=document.getElementById("availabilitylink").href
//x=availabilitylink.getAttribute("href");

//alert(document.getElementById("ptgAvailability").innerHTML)


	var BigImageHolderCell=document.getElementById("orientation");
	//var picorientation=document.getElementById("")
	var picorientation=this.className;  //"this" isn't working
//alert(index+1);
	if (picorientation=="horiz"){ 
		BigImageHolderCell.setAttribute("className", "horizPicSpacing");
	}	
	else if (picorientation=="vert") {
		BigImageHolderCell.setAttribute("className", "vertPicSpacing");
	}	
	else {//if (picorientation=="vert"){ 
		BigImageHolderCell.setAttribute("className", "");
	}



//availabilty text caption assigned to the <p> obj
document.getElementById("ptgAvailability").innerHTML=picAvailability;
document.getElementById("ptgAvailability").href=picAvailabilitylink;
//document.getElementById("availabilitylink").href=picAvailabilitylink;

//alert(document.getElementById("ptgAvailability").href);
//Make the availabilty text into a link (apply class to it)


//alert(document.getElementById("ptgAvailability").className);  //, "ptgAvailabilitylinks");


//ptgAvailability.setAttribute("href", availabilitylink);
//alert(document.getElementById("ptgAvailability").href);
//document.getElementById("availabilitylink").href=a_backup;
	//If (''!=picAvailabilitylink) {  //if not equal
//availabilitylink=backup_idname
	//backup_idname.setAttribute("idName", availabilitylink);
	//availabilitylink=backup_idname
	
//availabilitylink.setAttribute("href", picAvailabilitylink);
//document.getElementById("availabilitylink").href=picAvailabilitylink;
//}
//document.getElementById("availabilitylink").href=picAvailabitylink


//____________________________________________________
//This worked!!!!!
//document.getElementById("magnifylink").href=LVlink;
//document.getElementById("magnifylink").target="_blank";
//document.getElementById("imageBoxlink").href=LVlink;
//document.getElementById("imageBoxlink").target="_blank";
//________________________________________________________




//document.body.removeChild(captionTitle);
//var captionTitle=document.createElement("p");
//captionTitle.setAttribute("id", ptgTitle)
//document.body.appendChild(captionTitle);
//captionTitle.appendChild(document.createTextNode(picTitle);

//document.body.removeChild(captionSize);
//var captionSize=document.createElement("p");
//captionSize.setAttribute("id", ptgSize)
//document.body.appendChild(captionSize);
//captionSize.appendChild(document.createTextNode(picSize);


//document.body.removeChild(captionPrice);
//var captionPrice=document.createElement("p");
//captionPrice.setAttribute("id", ptgPrice)
//document.body.appendChild(captionPrice);
//captionPrice.appendChild(document.createTextNode(picPrice);


//document.body.removeChild(captionAvailability);
//var captionAvailability=document.createElement("p");
//captionAvailability.setAttribute("id", availability)
//document.body.appendChild(captionAvailability);
//captionAvailability.appendChild(document.createTextNode(availability);

//alert(captionTitle.innerHTML);
//captionTitle.innerHTML=picTitle;
//captionSize.innerHTML=picSize;
//captionPrice.innerHTML=picPrice;
//captionAvailability.innerHTML=picAvailability;


		//Apply the horizPicSpacing class to only the horiz pics
//This doesn't work!!! 
	var BigImageHolderCell=document.getElementById("orientation");
	//var picorientation=document.getElementById("")
	var picorientation=this.className;  //"this" isn't working
	//alert(picorientation);
	if (picorientation=="horiz"){ 
		BigImageHolderCell.setAttribute("className", "horizPicSpacing");
	}	
	else if (picorientation=="vert") {
		BigImageHolderCell.setAttribute("className", "vertPicSpacing");
	}	
	else {//if (picorientation=="vert"){ 
		BigImageHolderCell.setAttribute("className", "");
	}	
	
}












// =======================================
// SLIDESHOW SCRIPT: set the following variables   
// =======================================

// Set slideShowSpeed (milliseconds)
var slideShowSpeed = 3500

// Duration of crossfade (seconds)
var crossFadeDuration = 3

// Specify the image files
var Pic = new Array() // don't touch this

// to add more images, just continue
// the pattern, adding to the array below

Pic[0] = 'images/slideshow1_01.jpg'
Pic[1] = 'images/slideshow1_02.jpg'
Pic[2] = 'images/slideshow1_03.jpg'
Pic[3] = 'images/slideshow1_04.jpg'
Pic[4] = 'images/slideshow1_05.jpg'
Pic[5] = 'images/slideshow1_06.jpg'
Pic[6] = 'images/slideshow1_07.jpg'
Pic[7] = 'images/slideshow1_08.jpg'
Pic[8] = 'images/slideshow1_09.jpg'
Pic[9] = 'images/slideshow1_10.jpg'
Pic[10] = 'images/slideshow1_11.jpg'
Pic[11] = 'images/slideshow1_12.jpg'
Pic[12] = 'images/slideshow1_13.jpg'



// =======================================
// do not edit anything below this line
// =======================================

var t
var j = 0
var p = Pic.length

var preLoad = new Array()
for (i = 0; i < p; i++){
   preLoad[i] = new Image()
   preLoad[i].src = Pic[i]
}

function runSlideShow(){
   if (document.all){
      document.images.SlideShow.style.filter="blendTrans(duration=2)"
      document.images.SlideShow.style.filter="blendTrans(duration=crossFadeDuration)"
      document.images.SlideShow.filters.blendTrans.Apply()      
   }
   document.images.SlideShow.src = preLoad[j].src
   if (document.all){
      document.images.SlideShow.filters.blendTrans.Play()
   }
   j = j + 1
   if (j > (p-1)) j=0
   t = setTimeout('runSlideShow()', slideShowSpeed)
}

// --

