// JavaScript Document

	$(document).ready(function(){
			$(".patricia-franzreb").qtip({
			   content: '<a class="flyout-link" href="http://www.patriciafranzreb.com">View the portfolio of Patricia Franzreb</a>',
			   hide: { 
					fixed: true, 
					delay: 1000 
					},
			   style: { 
			   		name: 'light', 
     				background: '#8bd82f',
					width: { min: 272, max: 312 },
      				color: '#FFF',
      				border: {
         				width: 3,
         				radius: 0,
         				color: '#8bd82f'
      				},
				  tip: {
						 corner: 'bottomLeft',
						 color: '#8bd82f',
						 size: {
							x: 8,
							y : 8
						 }
					}  
				},
				position: {
      				corner: {
         				target: 'topLeft',
         				tooltip: 'bottomLeft'
      				}
   				} 
			});
			$(".danny-franzreb").qtip({
			   content: '<a class="flyout-link" href="http://www.dannyfranzreb.com">View the portfolio of Prof. Danny Franzreb</a>',
			   hide: { 
					fixed: true, 
					delay: 1000 
					},
			   style: { 
			   		name: 'light', 
     				background: '#8bd82f',
					width: { min: 284, max: 324 },
      				color: '#FFF',
      				border: {
         				width: 3,
         				radius: 0,
         				color: '#8bd82f'
      				},
				  tip: {
						 corner: 'bottomLeft',
						 color: '#8bd82f',
						 size: {
							x: 8,
							y : 8
						 }
					}  
				},
				position: {
      				corner: {
         				target: 'topLeft',
         				tooltip: 'bottomLeft'
      				}
   				} 
			});
			$(".clients").qtip({
			   content: '<a class="flyout-link" href="clients.html">The projects we did were awarded by ADC, DDC, iF, red dot and many more. <br />What we are even more proud of though, are our longterm and trustful client-relationships. Please click here to view a list of selected brands that we enjoy to work with.</a>',
			   hide: { 
					fixed: true, 
					delay: 1000 
					},
			   style: { 
			   		name: 'light', 
					width: { min: 318, max: 318 },
     				background: '#8bd82f',
      				color: '#FFF',
      				border: {
         				width: 3,
         				radius: 0,
         				color: '#8bd82f'
      				},
				  tip: {
						 corner: 'bottomLeft',
						 color: '#8bd82f',
						 size: {
							x: 8,
							y : 8
						 }
					}  
				},
				position: {
      				corner: {
         				target: 'topLeft',
         				tooltip: 'bottomLeft'
      				}
   				} 
			});
			$(".facebook").qtip({
			   content: '<a class="flyout-link" href="http://www.facebook.com/bureau.franzreb">Please follow the link and click the Like-Button directly on our fanpage. We do not share any data without your permission!</a>',
			   hide: { 
					fixed: true, 
					delay: 1000 
					},
			   style: { 
			   		name: 'light', 
					width: { min: 324, max: 324 },
     				background: '#8bd82f',
      				color: '#FFF',
      				border: {
         				width: 3,
         				radius: 0,
         				color: '#8bd82f'
      				},
				  tip: {
						 corner: 'bottomLeft',
						 color: '#8bd82f',
						 size: {
							x: 8,
							y : 8
						 }
					}  
				},
				position: {
      				corner: {
         				target: 'topLeft',
         				tooltip: 'bottomLeft'
      				}
   				} 
			});
			$(".studio").qtip({
			   content: '<iframe width="500" height="340" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.de/maps?f=q&amp;source=s_q&amp;hl=de&amp;geocode=&amp;q=Betty-Friedan-Ring+29+89231+Neu-Ulm&amp;aq=&amp;sll=51.151786,10.415039&amp;sspn=20.84203,57.084961&amp;vpsrc=6&amp;ie=UTF8&amp;hq=&amp;hnear=Betty-Friedan-Ring+29,+Neu-Ulm+89231+Neu-Ulm,+Bayern&amp;t=m&amp;ll=48.375694,10.010605&amp;spn=0.004846,0.010707&amp;z=16&amp;iwloc=A&amp;output=embed"></iframe>',
			   hide: { 
					fixed: true, 
					delay: 1000 
					},
			   style: { 
			   		name: 'light', 
     				background: '#8bd82f',
      				color: '#FFF',
					width: { min: 506, max: 506 },
					classes: {
						content: 'qtip-content-map'
					},
      				border: {
         				width: 3,
         				radius: 0,
         				color: '#8bd82f'
      				},
				  tip: {
						 corner: 'bottomLeft',
						 color: '#8bd82f',
						 size: {
							x: 8,
							y : 8
						 }
					}  
				},
				position: {
      				corner: {
         				target: 'topLeft',
         				tooltip: 'bottomLeft'
      				}
   				} 
			});
			$(".xing").qtip({
			   content: '<ul class="social-media"><li><a href="https://www.xing.com/profile/Danny_Franzreb">XING: Danny Franzreb</a></li><li><a href="https://www.xing.com/profile/Patricia_Franzreb">XING: Patricia Franzreb</a></li></ul>',
			   hide: { 
					fixed: true, 
					delay: 1000 
					},
			   style: { 
			   		name: 'light', 
     				background: '#8bd82f',
      				color: '#FFF',
      				border: {
         				width: 3,
         				radius: 0,
         				color: '#8bd82f'
      				},
				  tip: {
						 corner: 'bottomLeft',
						 color: '#8bd82f',
						 size: {
							x: 8,
							y : 8
						 }
					}  
				},
				position: {
      				corner: {
         				target: 'topLeft',
         				tooltip: 'bottomLeft'
      				}
   				} 
			});
			$(".linkedin").qtip({
			   content: '<ul class="social-media"><li><a href="http://linkedin.com/in/dannyfranzreb">LinkedIn: Danny Franzreb</a></li><li><a href="http://linkedin.com/pub/patricia-franzreb/24/165/55b">LinkedIn: Patricia Franzreb</a></li></ul>',
			   hide: { 
					fixed: true, 
					delay: 1000 
					},
			   style: { 
			   		name: 'light', 
     				background: '#8bd82f',
      				color: '#FFF',
      				border: {
         				width: 3,
         				radius: 0,
         				color: '#8bd82f'
      				},
				  tip: {
						 corner: 'bottomLeft',
						 color: '#8bd82f',
						 size: {
							x: 8,
							y : 8
						 }
					}  
				},
				position: {
      				corner: {
         				target: 'topLeft',
         				tooltip: 'bottomLeft'
      				}
   				} 
			});
			$('#content, #footer').hide();
			$.doTimeout(300, function(){
				$('#content, #footer').show();
				$('#logo').css( "text-indent", "-9999em" );
			});
			
			$('.tooltip').removeAttr("title");
			
			$('body').append('<div id="fullscreen"><div id="stage"><div id="birds"></div></div></div>');
			//  $('#content-related').prepend('<li class="facebook-button"><fb:comments css="http://patriciafranzreb.com/css/fb.css?68"></fb:comments></li>');
			
			checkImages();
			// 
			swfobject.embedSWF("flash/birds.swf", "birds", "100%", "100%", "9.0.0", false, {}, {menu:"false", wmode:"transparent"});
		});

		function checkImages() {
		  if (document.getElementById) {
			var x = document.getElementById('logo').offsetWidth;
			if (x != '300') {
			  document.getElementById('logo').style.textIndent = '0';
			}
		  }
		};
