// Image Data for cross-fade effect

// crossFadeImages[ bodyRegion ][ procedure ][ item ][ prePost ][ attr ]
// crossFadeImages[ 'face' ][ 'cheek' ][0..n][ 'pre' ][ 'src' ]
var crossFadeImages;
var baseImagePath = "/Images/AbuzeniMD/";

function addImagePair( bodyRegion, procedure, descr, preImage, postImage )
{
/***
	alert( "addImagePair( \n"	+ bodyRegion + ",\n" 
								+ procedure + ",\n" 
								+ descr + ",\n" 
								+ preImage + ",\n" 
								+ postImage + "\n)" );
***/

	// Make sure all the layers exist, starting with the parent
	if ( typeof crossFadeImages == "undefined" )
	{
//		alert( "Creating a new crossFadeImages array" );
		crossFadeImages = [];
	}

	if ( typeof crossFadeImages[ bodyRegion ] == "undefined" )
	{
//		alert( "Creating a new crossFadeImages[" + bodyRegion + "] array" );
		crossFadeImages[ bodyRegion ] = [];
	}

	if ( typeof crossFadeImages[ bodyRegion ][ procedure ] == "undefined" )
	{
//		alert( "Creating a new crossFadeImages[ " + bodyRegion + " ][ " + procedure  + " ] array" );
		crossFadeImages[ bodyRegion ][ procedure ] = [];
	}

	var items = crossFadeImages[ bodyRegion ][ procedure ].length;

//	alert( "There are " + items + " elements in the array" )

	crossFadeImages[ bodyRegion ][ procedure ][items] = [];
	crossFadeImages[ bodyRegion ][ procedure ][items]['alt' ] = descr;
	crossFadeImages[ bodyRegion ][ procedure ][items]['pre' ] = baseImagePath + "/" + bodyRegion + "/" + procedure + "/" + preImage;
	crossFadeImages[ bodyRegion ][ procedure ][items]['post'] = baseImagePath + "/" + bodyRegion + "/" + procedure + "/" + postImage;
}

	// addImagePair( bodyRegion, procedure, descr, preImage, postImage )

	addImagePair( 'Body', 'Abdominoplasty',  'Abdominoplasty',  "TummyPre1.jpg",  "TummyPost1.jpg" );
	addImagePair( 'Body', 'Abdominoplasty',  'Abdominoplasty',  "TummyPre2.jpg",  "TummyPost2.jpg" );
	addImagePair( 'Body', 'Abdominoplasty',  'Abdominoplasty',  "TummyPre3.jpg",  "TummyPost3.jpg" );

	addImagePair( 'Body', 'AugmentationMammo',  'Breast Augmentation',  "BreastPre1.jpg",  "BreastPost1.jpg" );
	addImagePair( 'Body', 'AugmentationMammo',  'Breast Augmentation',  "BreastPre2.jpg",  "BreastPost2.jpg" );
	addImagePair( 'Body', 'AugmentationMammo',  'Breast Augmentation',  "BreastPre3.jpg",  "BreastPost3.jpg" );
	addImagePair( 'Body', 'AugmentationMammo',  'Breast Augmentation',  "BreastPre5.jpg",  "BreastPost5.jpg" );
	addImagePair( 'Body', 'AugmentationMammo',  'Breast Augmentation',  "BreastPre6.jpg",  "BreastPost6.jpg" );
	
		addImagePair( 'Body', 'BenelliMammo',  'Benelli Lift',  "BenelliPre1.jpg",  "BenelliPost1.jpg" );
		
	addImagePair( 'Body', 'FatTransferLarge',  'Fat Transfer',  "FatTranPre1.jpg",  "FatTranPost1.jpg" );
	addImagePair( 'Body', 'FatTransferLarge',  'Fat Transfer',  "FatTranPre2.jpg",  "FatTranPost2.jpg" );
	addImagePair( 'Body', 'FatTransferLarge',  'Fat Transfer',  "FatTranPre3.jpg",  "FatTranPost3.jpg" );
	addImagePair( 'Body', 'FatTransferLarge',  'Fat Transfer',  "FatTranPre4.jpg",  "FatTranPost4.jpg" );
	addImagePair( 'Body', 'FatTransferLarge',  'Fat Transfer',  "FatTranPre5.jpg",  "FatTranPost5.jpg" );


	addImagePair( 'Body', 'Gluteoplasty',  'Gluteoplasty',  "ButtPre1.jpg",  "ButtPost1.jpg" );
	addImagePair( 'Body', 'Gluteoplasty',  'Gluteoplasty',  "ButtPre2.jpg",  "ButtPost2.jpg" );
	addImagePair( 'Body', 'Gluteoplasty',  'Gluteoplasty',  "ButtPre3.jpg",  "ButtPost3.jpg" );
/***
	addImagePair( 'Body', 'Liposuction',  'Liposuction',  "LipoPre1.jpg",  "CellPost1.jpg" );
	addImagePair( 'Body', 'Liposuction',  'Liposuction',  "LipoPre2.jpg",  "CellPost2.jpg" );
	addImagePair( 'Body', 'Liposuction',  'Liposuction',  "LipoPre3.jpg",  "CellPost3.jpg" );
***/
	addImagePair( 'Body', 'ReductionMammo',  'Breast Reduction',  "ReductionPre1.jpg",  "ReductionPost1.jpg" );

	addImagePair( 'Body', 'VerticalMammoplasty',  'Breast Lift',  "MastopexyPre1.jpg",  "MastopexyPost1.jpg" );
	
	
	addImagePair( 'Face', 'AngleAugmentation',  'Jaw Augmentation',  "AnglePre1.jpg",  "AnglePost1.jpg" );

	addImagePair( 'Face', 'Blepharoplasty',  'Blepharoplasty',  "BlephPre1.jpg",  "BlephPost1.jpg" );	
	addImagePair( 'Face', 'Blepharoplasty',  'Blepharoplasty',  "BlephPre2.jpg",  "BlephPost2.jpg" );	
	addImagePair( 'Face', 'Blepharoplasty',  'Blepharoplasty',  "BlephPre3.jpg",  "BlephPost3.jpg" );	
	addImagePair( 'Face', 'Blepharoplasty',  'Blepharoplasty',  "BlephPre4.jpg",  "BlephPost4.jpg" );	
	
	addImagePair( 'Face', 'Botox',  'Botox',  "BotoxPre1.jpg",  "BotoxPost1.jpg" );	
	addImagePair( 'Face', 'Botox',  'Botox',  "BotoxPre2.jpg",  "BotoxPost2.jpg" );	
/***
	addImagePair( 'Body', 'BrowLift',  'Brow Lift',  "BrowPre1.jpg",  "BrowPost1.jpg" );
	addImagePair( 'Body', 'BrowLift',  'Brow Lift',  "BrowPre2.jpg",  "BrowPost2.jpg" );
	addImagePair( 'Body', 'BrowLift',  'Brow Lift',  "BrowPre3.jpg",  "BrowPost3.jpg" );
***/
/***
	addImagePair( 'Body', 'CheekAugmentation',  'Cheek Augmentation',  "CheekAugPre1.jpg",  "CheekAugPost1.jpg" );
	addImagePair( 'Body', 'CheekAugmentation',  'Cheek Augmentation',  "CheekAugPre2.jpg",  "CheekAugPost2.jpg" );
	addImagePair( 'Body', 'CheekAugmentation',  'Cheek Augmentation',  "CheekAugPre3.jpg",  "CheekAugPost3.jpg" );
***/
	addImagePair( 'Face', 'CheekLift', 'Midface Lift', "CheekPre1.jpg", "CheekPost1.jpg" );
	addImagePair( 'Face', 'CheekLift', 'Midface Lift', "CheekPre2.jpg", "CheekPost2.jpg" );
	addImagePair( 'Face', 'CheekLift',  'Midface Lift',  "CheekPre3.jpg",  "CheekPost3.jpg" );
	addImagePair( 'Face', 'CheekLift',  'Chin Augmentation & Midface Lift',  "CheekChinPre.jpg",  "CheekChinPost.jpg" );	

	addImagePair( 'Face', 'ChinAugmentation',  'Chin Augmentation',  "ChinPre1.jpg",  "ChinPost1.jpg" );
	addImagePair( 'Face', 'ChinAugmentation',  'Chin Augmentation',  "ChinPre2.jpg",  "ChinPost2.jpg" );
	addImagePair( 'Face', 'ChinAugmentation',  'Chin Augmentation',  "ChinPre3.jpg",  "ChinPost3.jpg" );	
	addImagePair( 'Face', 'ChinAugmentation',  'Chin Augmentation & Midface Lift',  "CheekChinPre.jpg",  "CheekChinPost.jpg" );	
		
	//addImagePair( 'Face', 'FaceLift',  'Face Lift',  "FacePre1.jpg",  "FacePost1.jpg" );	
	addImagePair( 'Face', 'FaceLift',  'Face Lift',  "FacePre2.jpg",  "FacePost2.jpg" );	
	addImagePair( 'Face', 'FaceLift',  'Face Lift',  "FacePre3.jpg",  "FacePost3.jpg" );	
	addImagePair( 'Face', 'FaceLift',  'Face Lift',  "FacePre4.jpg",  "FacePost4.jpg" );
	
	addImagePair( 'Face', 'FatTransferSmall',  'Fat Transfer',  "FatTranSmallPre1.jpg",  "FatTranSmallPost1.jpg" );
	addImagePair( 'Face', 'FatTransferSmall',  'Fat Transfer',  "FatTranSmallPre2.jpg",  "FatTranSmallPost2.jpg" );
	addImagePair( 'Face', 'FatTransferSmall',  'Fat Transfer',  "FatTranSmallPre3.jpg",  "FatTranSmallPost3.jpg" );
	
	addImagePair( 'Face', 'LaserResurfacing',  'CO2 Laser Resurfacing',  "LaserPre1.jpg",  "LaserPost1.jpg" );	
	addImagePair( 'Face', 'LaserResurfacing',  'CO2 Laser Resurfacing',  "LaserPre2.jpg",  "LaserPost2.jpg" );	
	addImagePair( 'Face', 'LaserResurfacing',  'CO2 Laser Resurfacing',  "LaserPre3.jpg",  "LaserPost3.jpg" );	

	addImagePair( 'Face', 'Neck',  'Neck Lift',  "NeckPre1.jpg",  "NeckPost1.jpg" );
	addImagePair( 'Face', 'Neck',  'Neck Lift',  "NeckPre2.jpg",  "NeckPost2.jpg" );
/***	
	addImagePair( 'Face', 'Obagi',  'Obagi SRS',  "ObagiPre1.jpg",  "ObagiPost1.jpg" );
	addImagePair( 'Face', 'Obagi',  'Obagi SRS',  "ObagiPre2.jpg",  "ObagiPost2.jpg" );
	addImagePair( 'Face', 'Obagi',  'Obagi SRS',  "ObagiPre3.jpg",  "ObagiPost3.jpg" );
***/
/***	
	addImagePair( 'Face', 'Otoplasty',  'Otoplasty',  "EarsPre1.jpg",  "EarsPost1.jpg" );
	addImagePair( 'Face', 'Otoplasty',  'Otoplasty',  "EarsPre2.jpg",  "EarsPost2.jpg" );
	addImagePair( 'Face', 'Otoplasty',  'Otoplasty',  "EarsPre3.jpg",  "EarsPost3.jpg" );
***/
/***	
	addImagePair( 'Face', 'Restylane',  'Restylane',  "RestyPre1.jpg",  "RestyPost1.jpg" );
	addImagePair( 'Face', 'Restylane',  'Restylane',  "RestyPre2.jpg",  "RestyPost2.jpg" );
	addImagePair( 'Face', 'Restylane',  'Restylane',  "RestyPre3.jpg",  "RestyPost3.jpg" );
***/
	addImagePair( 'Face', 'Rhinoplasty',  'Rhinoplasty',  "NosePre1.jpg",  "NosePost1.jpg" );
	addImagePair( 'Face', 'Rhinoplasty',  'Rhinoplasty',  "NosePre2.jpg",  "NosePost2.jpg" );
	addImagePair( 'Face', 'Rhinoplasty',  'Rhinoplasty',  "NosePre3.jpg",  "NosePost3.jpg" );
/***
	addImagePair( 'MDspas', 'BluePeel',  'Blue Peel',  "BluePre1.jpg",  "BluePost1.jpg" );	
	addImagePair( 'MDspas', 'BluePeel',  'Blue Peel',  "BluePre2.jpg",  "BluePost2.jpg" );	
***/
	addImagePair( 'MDspas', 'Botox',  'Botox',  "BotoxPre1.jpg",  "BotoxPost1.jpg" );	
	addImagePair( 'MDspas', 'Botox',  'Botox',  "BotoxPre2.jpg",  "BotoxPost2.jpg" );	
/***
	addImagePair( 'MDspas', 'LaserHair',  'Laser Hair Removal',  "HairPre1.jpg",  "HairPost1.jpg" );	
	addImagePair( 'MDspas', 'LaserHair',  'Laser Hair Removal',  "HairPre2.jpg",  "HairPost2.jpg" );	
	addImagePair( 'MDspas', 'LaserHair',  'Laser Hair Removal',  "HairPre3.jpg",  "HairPost3.jpg" );	
***/
/***
	addImagePair( 'MDspas', 'Obagi',  'Obagi SRS',  "ObagiPre1.jpg",  "ObagiPost1.jpg" );	
	addImagePair( 'MDspas', 'Obagi',  'Obagi SRS',  "ObagiPre2.jpg",  "ObagiPost2.jpg" );	
	addImagePair( 'MDspas', 'Obagi',  'Obagi SRS',  "ObagiPre3.jpg",  "ObagiPost3.jpg" );	
***/
	addImagePair( 'MDspas', 'FaceLift',  'Face Lift',  "FacePre2.jpg",  "FacePost2.jpg" );	
	addImagePair( 'MDspas', 'FaceLift',  'Face Lift',  "FacePre3.jpg",  "FacePost3.jpg" );	
	addImagePair( 'MDspas', 'FaceLift',  'Face Lift',  "FacePre4.jpg",  "FacePost4.jpg" );

	addImagePair( 'MDspas', 'FatTransferSmall',  'Fat Transfer',  "FatTranSmallPre1.jpg",  "FatTranSmallPost1.jpg" );
	addImagePair( 'MDspas', 'FatTransferSmall',  'Fat Transfer',  "FatTranSmallPre2.jpg",  "FatTranSmallPost2.jpg" );
	addImagePair( 'MDspas', 'FatTransferSmall',  'Fat Transfer',  "FatTranSmallPre3.jpg",  "FatTranSmallPost3.jpg" );

	addImagePair( 'MDspas', 'LaserResurfacing',  'CO2 Laser Resurfacing',  "LaserPre1.jpg",  "LaserPost1.jpg" );	
	addImagePair( 'MDspas', 'LaserResurfacing',  'CO2 Laser Resurfacing',  "LaserPre2.jpg",  "LaserPost2.jpg" );	
	addImagePair( 'MDspas', 'LaserResurfacing',  'CO2 Laser Resurfacing',  "LaserPre3.jpg",  "LaserPost3.jpg" );	

/***	
	addImagePair( 'MDspas', 'Restylane',  'Restylane',  "RestyPre1.jpg",  "RestyPost1.jpg" );
	addImagePair( 'MDspas', 'Restylane',  'Restylane',  "RestyPre2.jpg",  "RestyPost2.jpg" );
	addImagePair( 'MDspas', 'Restylane',  'Restylane',  "RestyPre3.jpg",  "RestyPost3.jpg" );
***/
/***
	addImagePair( 'MDspas', 'Sclero',  'Vein Treatment',  "VeinPre1.jpg",  "VeinPost1.jpg" );	
	addImagePair( 'MDspas', 'Sclero',  'Vein Treatment',  "VeinPre2.jpg",  "VeinPost2.jpg" );	
	addImagePair( 'MDspas', 'Sclero',  'Vein Treatment',  "VeinPre3.jpg",  "VeinPost3.jpg" );	
***/







				