//tndc photo control sctipts


// photo window size
//photoWindowWidth  = 439;
//photoWindowHeight = 520;
	

// temp photo window size
photoWindowWidth  = 415;
photoWindowHeight = 340;
	
	
	function openPhotoWindow2003(thePhotoFile, theName, theTitle, theContent){
	
		//name the parent window
		self.name = 'tndc_main';
		
		photoWindow = window.open( '', 'photoWindow', 'location=no,resizable=yes,toolbar=no,status=no,width=' + photoWindowWidth + ',height=' + photoWindowHeight + ',scrollbars=no');
		//writePhotoWindow(thePhotoFile, theName, theTitle, theContent);
		writeTempPhotoWindow2003(thePhotoFile, theName, theTitle, theContent);
		
		photoWindow.focus();

	}

	function writePhotoWindow2003(thePhotoFile, theName, theTitle, theContent){	
	
		if(gPathtoImageDir == '../images/'){
			rootPath = '../'
		}else if(gPathtoImageDir == '../../images/'){
			rootPath = '../../'
		}else{
			rootPath = ''
		}
		
		var newContent = '<html>\n<head> \n'
		newContent += '<link href="' + rootPath + 'scripts/tndc_styles.css" rel="stylesheet" type="text/css"> \n'
		newContent += '<scr' + 'ipt language=JavaScript src="' + rootPath + 'scripts/photo_control.js"></scr' + 'ipt> \n'
		newContent += '<title>Photo Archives</title>\n</head> \n'
		newContent += '<body leftmargin=10 topmargin=10 marginheight=10 marginwidth=10 bgcolor=#FFFFFF> \n'
		newContent += '<table width=439 height=520 cellpadding=0 cellspacing=0 border=0 background="' + rootPath + 'images/interface/video_background.jpg"> \n'
		newContent += '<tr align=left valign=top><td width=28 height=80>&nbsp;</td><td width=320>&nbsp;</td><td width=91>&nbsp;</td></tr> \n'
		newContent += '<tr align=left valign=top><td width=28 height=62>&nbsp;</td><td width=320> \n'
		newContent += '<div class=videoWindowTitle>Photo Archives</div> \n <div class=videoWindowText>Celebrity Pool Toss X</div> \n'
		newContent += '</td><td width=91>&nbsp;</td></tr> \n'
		newContent += '<tr align=left valign=top><td width=28 height=290>&nbsp;</td><td width=320 class=contentPagesText align=center> \n'
		newContent += '<img src="' + rootPath + 'images/interface/spacer.gif" width=320 height=5 border=0><br> \n'
		
		newContent += '<img src="' + rootPath + 'images/supporting/pooltoss_2003/images/' + thePhotoFile + '" border=0><br> \n'

		newContent += '</td><td width=91>&nbsp; \n </td></tr> \n'		
		newContent += '<tr align=left valign=top><td width=28 height=88>&nbsp;</td><td width=320>&nbsp;</td><td width=91><a href="/give/donate_redirect.html" target="_blank"><img src="' + rootPath + 'images/interface/video_quickdonate.gif" border="0"></a></td></tr> \n'
		newContent += '</table>\n</body>\n</html>'

		photoWindow.document.write(newContent);
		photoWindow.document.close();
		
	}


	function writeTempPhotoWindow2003(thePhotoFile, theName, theTitle, theContent){
	
		if(gPathtoImageDir == '../images/'){
			rootPath = '../'
		}else if(gPathtoImageDir == '../../images/'){
			rootPath = '../../'
		}else{
			rootPath = ''
		}

		
		var newContent = '<html>\n<head> \n'
		newContent += '<link href="' + rootPath + 'scripts/tndc_styles.css" rel="stylesheet" type="text/css"> \n'
		newContent += '<scr' + 'ipt language=JavaScript src="' + rootPath + 'scripts/photo_control.js"></scr' + 'ipt> \n'
		newContent += '<title>Photo Archives</title>\n</head> \n'
		newContent += '<body leftmargin=0 topmargin=0 marginheight=0 marginwidth=0 bgcolor=#FFFFFF> \n'
		//newContent += '<div class=videoWindowTitle>Photo Archives</div> \n <div class=videoWindowText>Celebrity Pool Toss X</div> \n'
		newContent += '<center> \n'
		newContent += '<img src="' + rootPath + 'images/supporting/pooltoss_2003/images/' + thePhotoFile + '" border=0><br> \n'
		newContent += '<br> \n'
		newContent += '<div class=contentPagesText><b>' + theContent + '</b></div>'
		newContent += '</center> \n'

		newContent += '</body>\n</html>'

		photoWindow.document.write(newContent);
		photoWindow.document.close();
		
	}

