



			window.focus();
		
			var mipWindow;
			function setMipWindow(_win){
				if(mipWindow == _win){return;}
				
				mipWindow = _win;
				mipWindow.resizeTo(800, 600);}
			
			function startWindowSync(_win){
				mipWindow = _win;				
				window.setTimeout(identifyMyself, 1000);}
			
			function identifyMyself(){try{mipWindow.identifyPartnerWindow(window);}catch(e){}}
			function mapIsOpen(){return (document.content.contentWindow.document.location.href.indexOf('interactiveMap.aspx') > -1);}
			function mipWindowIsClosed(){ 
				try{
					return (mipWindow == null || mipWindow == undefined || mipWindow.closed == true);
				}catch(e){
					return false;
				}
			}
			function mipWindowContainsMIP(){
				try{
					return (mipWindow != null && mipWindow != undefined && mipWindow.closed != true && mipWindow.document.location.href.indexOf('moreInfo') > -1);
				}catch(e){
					return false;
				}
			}
			
			
			var syncInterval = window.setInterval(debugWindowReferenceLoss, 1000);
			function debugWindowReferenceLoss(){
				try{
					if(mipWindow == null || mipWindow == undefined || mipWindow.closed == true){
						//window.status = 'mipWindow reference is empty';
					}else{
						//window.status = 'mipWindow reference exists';
						mipWindow.identifyPartnerWindow(window);
					}
				}catch(e){
					//window.status = 'mipWindow reference is empty :: exception occured during detection';
				}
			}
					
			
		
		
		
		
			function attemptToShowNavSectionIcons(){
				try{
					if(window.header.showNavigationSectionIcons != undefined){
						window.header.showNavigationSectionIcons();}
				}catch(e){}			
			}
			
			function setTitle(){				
				var content = document.getElementById('content');
				var title = 'Downtown St. Petersburg Guide/Map';
				
				//Test if content is holding multiple frames
				try{
					/*
					if(content.contentWindow.frames.length > 1){
						title = content.contentWindow.frames[1].document.title;
						if(title == ''){
							title = content.contentWindow.document.title;}						
					}else{
						title = content.contentWindow.document.title;}
					*/
					title = content.contentWindow.document.title;
				}catch(e){}
				
				document.title = title;			
			}		
			
			function testForCookies(){
				try{
					setNamedCookie('cookieTest', 'test');
					fetchNamedCookie('cookieTest');
				}catch(e){		
					if(document.location.search == ''){
						document.location = '/contentManaged/splash/splash.aspx';}
				}
			}
			
			
			if(window.parent != window){
				window.parent.document.location = window.document.location;}
			
			testForCookies();
		