function preload_images() {	// make sure that old browsers don't trip up on image arrays	if (document.images) {		//		//  hover (mouseover) images here		//		buttonHover = new Object();		buttonHover["title_musicvideos"] = new Image(73,12);		buttonHover["title_musicvideos"].src = "images/global/mainlabel_musicvideos_hover.gif";		buttonHover["title_commercials"] = new Image(73,12);		buttonHover["title_commercials"].src = "images/global/mainlabel_commercials_hover.gif";		buttonHover["title_narrative"] = new Image(73,12);		buttonHover["title_narrative"].src = "images/global/mainlabel_narrative_hover.gif";		buttonHover["title_steadicam"] = new Image(73,12);		buttonHover["title_steadicam"].src = "images/global/mainlabel_steadicam_hover.gif";		buttonHover["title_other"] = new Image(73,12);		buttonHover["title_other"].src = "images/global/mainlabel_other_hover.gif";				buttonHover["musicvideos_all"] = new Image(51,12);		buttonHover["musicvideos_all"].src = "images/global/mainlabel_showall_hover.gif";		buttonHover["commercials_all"] = new Image(51,12);		buttonHover["commercials_all"].src = "images/global/mainlabel_showall_hover.gif";		buttonHover["narrative_all"] = new Image(51,12);		buttonHover["narrative_all"].src = "images/global/mainlabel_showall_hover.gif";		buttonHover["steadicam_all"] = new Image(51,12);		buttonHover["steadicam_all"].src = "images/global/mainlabel_showall_hover.gif";				buttonHover["sub_musicvideos"] = new Image(66,10);		buttonHover["sub_musicvideos"].src = "images/global/submenu_musicvideos_hover.gif";		buttonHover["sub_commercials"] = new Image(68,10);		buttonHover["sub_commercials"].src = "images/global/submenu_commercials_hover.gif";		buttonHover["sub_narrative"] = new Image(53,10);		buttonHover["sub_narrative"].src = "images/global/submenu_narrative_hover.gif";		buttonHover["sub_steadicam"] = new Image(55,10);		buttonHover["sub_steadicam"].src = "images/global/submenu_steadicam_hover.gif";		buttonHover["sub_equipment"] = new Image(55,10);		buttonHover["sub_equipment"].src = "images/global/submenu_equipment_hover.gif";		buttonHover["sub_links"] = new Image(28,10);		buttonHover["sub_links"].src = "images/global/submenu_links_hover.gif";		buttonHover["sub_contact"] = new Image(44,10);		buttonHover["sub_contact"].src = "images/global/submenu_contact_hover.gif";				buttonHover["link_gregschmitt"] = new Image(99,19);		buttonHover["link_gregschmitt"].src = "images/global/titlebar_greg_hover.gif";				buttonHover["musicvideos_img1"] = new Image(86,64);		buttonHover["musicvideos_img1"].src = "images/thumbs/thermals_pillars_of_salt_hover.jpg";		buttonHover["musicvideos_img2"] = new Image(86,64);		buttonHover["musicvideos_img2"].src = "images/thumbs/sleater_hover.jpg";		buttonHover["musicvideos_img3"] = new Image(86,64);		buttonHover["musicvideos_img3"].src = "images/thumbs/panther_hover.jpg";		buttonHover["musicvideos_img4"] = new Image(86,64);		buttonHover["musicvideos_img4"].src = "images/thumbs/shins_australia_hover.jpg";				buttonHover["commercials_img1"] = new Image(86,64);		buttonHover["commercials_img1"].src = "images/thumbs/amex_jackass_hover.jpg";		buttonHover["commercials_img2"] = new Image(86,64);		buttonHover["commercials_img2"].src = "images/thumbs/honda_ridgeline_hover.jpg";		buttonHover["commercials_img3"] = new Image(86,64);		buttonHover["commercials_img3"].src = "images/thumbs/cleatskins_hover.jpg";		//buttonHover["commercials_img4"] = new Image(86,64);		//buttonHover["commercials_img4"].src = "images/thumbs/mitsubishi_golf_hover.jpg";				buttonHover["narrative_img1"] = new Image(86,64);		buttonHover["narrative_img1"].src = "images/thumbs/occularist_hover.jpg";		buttonHover["narrative_img2"] = new Image(86,64);		buttonHover["narrative_img2"].src = "images/thumbs/skate_na_veia_hover.jpg";		buttonHover["narrative_img3"] = new Image(86,64);		buttonHover["narrative_img3"].src = "images/thumbs/city_park_city_hover.jpg";		buttonHover["narrative_img4"] = new Image(86,64);		buttonHover["narrative_img4"].src = "images/thumbs/ea_skate_hover.jpg";				buttonHover["steadicam_img1"] = new Image(86,64);		buttonHover["steadicam_img1"].src = "images/thumbs/steadicam_reel_2007_hover.jpg";		buttonHover["steadicam_img2"] = new Image(86,64);		buttonHover["steadicam_img2"].src = "images/global/icon_resume_hover.gif";		buttonHover["steadicam_img3"] = new Image(86,64);		buttonHover["steadicam_img3"].src = "images/thumbs/jackpot1_hover.jpg";		buttonHover["steadicam_img4"] = new Image(86,64);		buttonHover["steadicam_img4"].src = "images/global/icon_equipmentlist_hover.gif";			//		//  normal (mouseout) images here		//		buttonNormal = new Object();		buttonNormal["title_musicvideos"] = new Image(73,12);		buttonNormal["title_musicvideos"].src = "images/global/mainlabel_musicvideos_norm.gif";		buttonNormal["title_commercials"] = new Image(73,12);		buttonNormal["title_commercials"].src = "images/global/mainlabel_commercials_norm.gif";		buttonNormal["title_narrative"] = new Image(73,12);		buttonNormal["title_narrative"].src = "images/global/mainlabel_narrative_norm.gif";		buttonNormal["title_steadicam"] = new Image(73,12);		buttonNormal["title_steadicam"].src = "images/global/mainlabel_steadicam_norm.gif";		buttonNormal["title_other"] = new Image(73,12);		buttonNormal["title_other"].src = "images/global/mainlabel_other_norm.gif";				buttonNormal["musicvideos_all"] = new Image(51,12);		buttonNormal["musicvideos_all"].src = "images/global/mainlabel_showall_norm.gif";		buttonNormal["commercials_all"] = new Image(51,12);		buttonNormal["commercials_all"].src = "images/global/mainlabel_showall_norm.gif";		buttonNormal["narrative_all"] = new Image(51,12);		buttonNormal["narrative_all"].src = "images/global/mainlabel_showall_norm.gif";		buttonNormal["steadicam_all"] = new Image(51,12);		buttonNormal["steadicam_all"].src = "images/global/mainlabel_showall_norm.gif";				buttonNormal["sub_musicvideos"] = new Image(66,10);		buttonNormal["sub_musicvideos"].src = "images/global/submenu_musicvideos_norm.gif";		buttonNormal["sub_commercials"] = new Image(68,10);		buttonNormal["sub_commercials"].src = "images/global/submenu_commercials_norm.gif";		buttonNormal["sub_narrative"] = new Image(53,10);		buttonNormal["sub_narrative"].src = "images/global/submenu_narrative_norm.gif";		buttonNormal["sub_steadicam"] = new Image(55,10);		buttonNormal["sub_steadicam"].src = "images/global/submenu_steadicam_norm.gif";		buttonNormal["sub_equipment"] = new Image(55,10);		buttonNormal["sub_equipment"].src = "images/global/submenu_equipment_norm.gif";		buttonNormal["sub_links"] = new Image(28,10);		buttonNormal["sub_links"].src = "images/global/submenu_links_norm.gif";		buttonNormal["sub_contact"] = new Image(44,10);		buttonNormal["sub_contact"].src = "images/global/submenu_contact_norm.gif";				buttonNormal["link_gregschmitt"] = new Image(99,19);		buttonNormal["link_gregschmitt"].src = "images/global/titlebar_greg_norm.gif";				buttonNormal["musicvideos_img1"] = new Image(86,64);		buttonNormal["musicvideos_img1"].src = "images/thumbs/thermals_pillars_of_salt_norm.jpg";		buttonNormal["musicvideos_img2"] = new Image(86,64);		buttonNormal["musicvideos_img2"].src = "images/thumbs/sleater_norm.jpg";		buttonNormal["musicvideos_img3"] = new Image(86,64);		buttonNormal["musicvideos_img3"].src = "images/thumbs/panther_norm.jpg";		buttonNormal["musicvideos_img4"] = new Image(86,64);		buttonNormal["musicvideos_img4"].src = "images/thumbs/shins_australia_norm.jpg";				buttonNormal["commercials_img1"] = new Image(86,64);		buttonNormal["commercials_img1"].src = "images/thumbs/amex_jackass_norm.jpg";		buttonNormal["commercials_img2"] = new Image(86,64);		buttonNormal["commercials_img2"].src = "images/thumbs/honda_ridgeline_norm.jpg";		buttonNormal["commercials_img3"] = new Image(86,64);		buttonNormal["commercials_img3"].src = "images/thumbs/cleatskins_norm.jpg";		//buttonNormal["commercials_img4"] = new Image(86,64);		//buttonNormal["commercials_img4"].src = "images/thumbs/mitsubishi_golf_norm.jpg";				buttonNormal["narrative_img1"] = new Image(86,64);		buttonNormal["narrative_img1"].src = "images/thumbs/occularist_norm.jpg";		buttonNormal["narrative_img2"] = new Image(86,64);		buttonNormal["narrative_img2"].src = "images/thumbs/skate_na_veia_norm.jpg";		buttonNormal["narrative_img3"] = new Image(86,64);		buttonNormal["narrative_img3"].src = "images/thumbs/city_park_city_norm.jpg";		buttonNormal["narrative_img4"] = new Image(86,64);		buttonNormal["narrative_img4"].src = "images/thumbs/ea_skate_norm.jpg";				buttonNormal["steadicam_img1"] = new Image(86,64);		buttonNormal["steadicam_img1"].src = "images/thumbs/steadicam_reel_2007_norm.jpg";		buttonNormal["steadicam_img2"] = new Image(86,64);		buttonNormal["steadicam_img2"].src = "images/global/icon_resume.gif";		buttonNormal["steadicam_img3"] = new Image(86,64);		buttonNormal["steadicam_img3"].src = "images/thumbs/jackpot1_norm.jpg";		buttonNormal["steadicam_img4"] = new Image(86,64);		buttonNormal["steadicam_img4"].src = "images/global/icon_equipmentlist.gif";	}}				function rollover(imageId, type) {	var image = getRawObject(imageId);		if (type == "hover") {		if (imageId != activeId) {			image.src = buttonHover[imageId].src;						var captionId = imageId + '_caption';			var caption = document.getElementById(captionId);			caption.style.color = "#FFCC33"; 					}		return true;	}	else if (type == "normal") {		if (imageId != activeId) {			image.src = buttonNormal[imageId].src;						var captionId = imageId + '_caption';			var caption = document.getElementById(captionId);			caption.style.color = "#999966"; 		}		return true;	}	else if (type == "active") {		if (activeId && (imageId != activeId)) {			var active_img = getRawObject(activeId);			active_img.src = buttonNormal[activeId].src;		}		image.src = buttonHover[imageId].src;		activeId = imageId;		return true; 	}	else		return true;}function openArbPhotoWindow(imgName, imgWidth, imgHeight) {	var width = imgWidth + 34;	var height = imgHeight + 35;	var top = 50;	var left = 50;		var windowFeatures = "width=" + width + ",height=" + height +	     ",screenX=" + left + ",screenY=" + top + ",left=" + left +		 ",top=" + top + ",status=no,location=no,directories=no,menubar=no,toolbar=no,scrollbars=no,resizable";		arbPhotoWindow = window.open("", "arbphotowin", windowFeatures);		timeout_fn = "createArbPhotoPage('" + imgName + "'," + imgWidth + "," + imgHeight + ")";		setTimeout(timeout_fn, 50);}function createArbPhotoPage(imgName, imgWidth, imgHeight) {	var styleFile = "http://www.poshbaby.com/photo_enlarge.css";		iconTop = imgHeight + 10;	iconLeft = imgWidth - 110;		var pageTxt = "<html><head><title>" + imgName + "</title><link href='" + styleFile + "' rel='stylesheet' type='text/css'><style type='text/css'>#photo_large { width: " + imgWidth + "px; height: " + imgHeight + "px; } #close_icon { top: " + iconTop + "px; left: " + iconLeft + "px; }</style></head>";	pageTxt += "<body><div id='photo_large'><img src='" + imgName + "' width='" + imgWidth + "' height='" + imgHeight + "' border='0'></div>";	pageTxt += "<div id='close_icon'><a href='#' onClick='window.close(); return false;'><img src='http://www.poshbaby.com/images/icon_closewindow.gif' width='18' height='18' border='0'></a>";	pageTxt += "<div id='close_label'><a href='#' onClick='window.close(); return false;'>close this window</a></div>";	pageTxt += "</div></body></html>";		arbPhotoWindow.document.write(pageTxt);	arbPhotoWindow.document.close();}function preload_photoviewer() {	// make sure that old browsers don't trip up on image arrays	if (document.images) {		//		//  hover (mouseover) images here		//		buttonHover = new Object();			buttonHover["control_previous"] = new Image(47,8);		buttonHover["control_previous"].src = "images/global/mainlabel_previous_hover.gif";		buttonHover["control_next"] = new Image(27,8);		buttonHover["control_next"].src = "images/global/mainlabel_next_hover.gif";		buttonHover["control_close"] = new Image(32,8);		buttonHover["control_close"].src = "images/global/mainlabel_close_hover.gif";		//		//  normal (mouseout) images here		//		buttonNormal = new Object();			buttonNormal["control_previous"] = new Image(47,8);		buttonNormal["control_previous"].src = "images/global/mainlabel_previous_norm.gif";		buttonNormal["control_next"] = new Image(27,8);		buttonNormal["control_next"].src = "images/global/mainlabel_next_norm.gif";		buttonNormal["control_close"] = new Image(32,8);		buttonNormal["control_close"].src = "images/global/mainlabel_close_norm.gif";		//		//  Deny (mouseout) images here		//		buttonDeny = new Object();			buttonDeny["control_previous"] = new Image(47,8);		buttonDeny["control_previous"].src = "images/global/mainlabel_previous_deny.gif";		buttonDeny["control_next"] = new Image(27,8);		buttonDeny["control_next"].src = "images/global/mainlabel_next_deny.gif";		buttonDeny["control_close"] = new Image(32,8);		buttonDeny["control_close"].src = "images/global/mainlabel_close_deny.gif";		//		// slideshow images		//		photoView = new Object();		photoView[0] = new Image(640,480);		photoView[0].src = "images/photos/greg5.jpg";		photoView[1] = new Image(640,480);		photoView[1].src = "images/photos/greg1.jpg";		photoView[2] = new Image(640,480);		photoView[2].src = "images/photos/greg2.jpg";		photoView[3] = new Image(640,480);		photoView[3].src = "images/photos/greg3.jpg";		photoView[4] = new Image(640,480);		photoView[4].src = "images/photos/greg4.jpg";	}}function rollover_plain(imageId, type) {	var image = getRawObject(imageId);		if (type == "hover") {		if ((imageId != activeId) && (imageId != denyId)) {			image.src = buttonHover[imageId].src;		}		return true;	}	else if (type == "normal") {		if ((imageId != activeId) && (imageId != denyId)) {			image.src = buttonNormal[imageId].src;		}		return true;	}	else if (type == "active") {		if (activeId && (imageId != activeId)) {			var active_img = getRawObject(activeId);			active_img.src = buttonNormal[activeId].src;		}		image.src = buttonHover[imageId].src;		activeId = imageId;		return true; 	}	else if (type == "deny") {				denyId = imageId;				if (imageId != activeId) {			image.src = buttonDeny[imageId].src; 		}		return true;	}	else		return true;}function openPhotoViewerWindow(viewerURL) {	var width = 704;	var height = 545;	var top = 0;	var left = 0;		var windowFeatures = "width=" + width + ",height=" + height +	     ",screenX=" + left + ",screenY=" + top + ",left=" + left +		 ",top=" + top + ",status=no,location=no,directories=no,menubar=no,toolbar=no,scrollbars=no,resizable";		photoViewWindow = window.open(viewerURL, "photowin", windowFeatures);	}function close_window() {		window.close();}function photoViewer(command) {		// modify this to get size of image array and	// use this to determine when to deny Next	// command	//		var image = document.getElementById('photo_content');		if (command == 'previous') {		if (currentPhoto == 0) {			currentPhoto = 0;						rollover_plain('control_previous', 'deny');		}		else {			currentPhoto--;						denyId = "";			rollover_plain('control_next', 'normal');		}	}	else if (command == 'next') {		if (currentPhoto == 4) {			currentPhoto = 4;						rollover_plain('control_next', 'deny');		}		else {			currentPhoto++;						denyId = "";			rollover_plain('control_previous', 'normal');		}	}		image.src = photoView[currentPhoto].src;		return true;}