
/*
 * Url preview script 
 * powered by jQuery (http://www.jquery.com)
 * 
 * written by Alen Grakalic (http://cssglobe.com)
 * 
 * for more info visit http://cssglobe.com/post/1695/easiest-tooltip-and-image-preview-using-jquery
 *
 */
 
this.screenshotPreview = function(){	
		xOffset = -5;
		yOffset = 1;
	
	$("a.screenshot").hover(function(e){
		this.t = this.title;
		this.title = "";	
		var c = (this.t != "") ? "<br/>" + this.t : "";
		$("body").append("<p id='screenshot'><img src='images/tip_"+ this.rel +".jpg' alt='' />"+ c +"</p>");								 
		$("#screenshot")
			.css("top",(e.pageY - xOffset) + "px")
			.css("left",(e.pageX + yOffset) + "px")
			.show();						
    },
	function(){
		this.title = this.t;	
		$("#screenshot").remove();
    });	
	$("a.screenshot").mousemove(function(e){
		$("#screenshot")
			.css("top",(e.pageY - xOffset) + "px")
			.css("left",(e.pageX + yOffset) + "px");
	});			
};



$(document).ready(function(){
	screenshotPreview();
});


function email(name, domain,tld) {
	var link = "<a href='mailto:"+name+"@"+domain+"."+tld+"'>";
	document.write(link);
}
function emailschliessen() {
	document.write("</a>");
}

function emailAB1(name, domain,tld) {
	var link = "<a href='mailto:"+name+"@"+domain+"."+tld+"' class='screenshot' rel='andrebachofner'>";
	document.write(link);
}
function emailAB2(name, domain,tld) {
	var link = "<a href='mailto:"+name+"@"+domain+"."+tld+"' class='screenshot' rel='andre'>";
	document.write(link);
}
function emailCF1(name, domain,tld) {
	var link = "<a href='mailto:"+name+"@"+domain+"."+tld+"' class='screenshot' rel='christianflaccus'>";
	document.write(link);
}
function emailCF2(name, domain,tld) {
	var link = "<a href='mailto:"+name+"@"+domain+"."+tld+"' class='screenshot' rel='flaccus'>";
	document.write(link);
}
function emailPZ1(name, domain,tld) {
	var link = "<a href='mailto:"+name+"@"+domain+"."+tld+"' class='screenshot' rel='paulzentner'>";
	document.write(link);
}
function emailPZ2(name, domain,tld) {
	var link = "<a href='mailto:"+name+"@"+domain+"."+tld+"' class='screenshot' rel='paul'>";
	document.write(link);
}
function emailAK1(name, domain,tld) {
	var link = "<a href='mailto:"+name+"@"+domain+"."+tld+"' class='screenshot' rel='alexanderkohlhofer'>";
	document.write(link);
}
function emailAK2(name, domain,tld) {
	var link = "<a href='mailto:"+name+"@"+domain+"."+tld+"' class='screenshot' rel='alex'>";
	document.write(link);
}


WinAppearanceScroll="toolbar=no,location=no,directories=no,scrollbars=yes,status=no,resizable=yes,copyhistory=no,top=0,";

function OpenRef(URL){ 
	URL2 = 'ref2006/snkRef.php?RefTargetName='+URL;
  xsize=960;
  ysize=(screen.availHeight);
  xpos=Math.round((screen.width - xsize)/2);
	window.open(URL2,URL,WinAppearanceScroll+"left="+xpos+",width="+xsize+",height="+ysize);
}


function showSnkHeader()
{			document.writeln("<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0' width='100%' height='100%' id='snkHeaderBase_schoeneneuekinder' align='middle'>");		
			document.writeln("<param name='allowScriptAccess' value='sameDomain' />");
			document.writeln("<param name='movie' value='snkHeaderBase_schoeneneuekinder.swf' />");
			document.writeln("<param name='quality' value='high' />");
			document.writeln("<param name='scale' value='noscale' />");
			document.writeln("<param name='bgcolor' value='#ffffff' />");
			document.writeln("<PARAM NAME=menu VALUE=false>");
			document.writeln("<EMBED src='snkHeaderBase_schoeneneuekinder.swf' menu=false quality=high salign=LT scale='noscale' bgcolor=#ffffff  WIDTH='100%' HEIGHT='100%' NAME='snkHeaderBase_schoeneneuekinder' align='middle' TYPE='application/x-shockwave-flash' PLUGINSPAGE='http://www.macromedia.com/go/getflashplayer'>");
			document.writeln("</EMBED>");
			document.writeln("</OBJECT>");
}



function showSnkHeader2010(){
			document.writeln("<div id='flash'>");
			document.writeln("<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0' width='100%' height='100%' id='snkHeaderBase_schoeneneuekinder' align='middle'>");		
			document.writeln("<param name='allowScriptAccess' value='sameDomain' />");
			document.writeln("<param name='movie' value='snkHeaderBase_schoeneneuekinder_2010.swf' />");
			document.writeln("<param name='quality' value='high' />");
			document.writeln("<param name='scale' value='noscale' />");
			document.writeln("<param name='bgcolor' value='transparent' />");
			document.writeln("<PARAM NAME=menu VALUE=false>");
			document.writeln("<EMBED src='snkHeaderBase_schoeneneuekinder_2010.swf' menu=false quality=high salign=LT scale='noscale' bgcolor='transparent'  WIDTH='100%' HEIGHT='100%' NAME='snkHeaderBase_schoeneneuekinder' align='middle' TYPE='application/x-shockwave-flash' PLUGINSPAGE='http://www.macromedia.com/go/getflashplayer'>");
			document.writeln("</EMBED>");
			document.writeln("</OBJECT>");
			document.writeln("</div>");
}


/*
 * Url preview script 
 * powered by jQuery (http://www.jquery.com)
 * 
 * written by Alen Grakalic (http://cssglobe.com)
 * 
 * for more info visit http://cssglobe.com/post/1695/easiest-tooltip-and-image-preview-using-jquery
 *
 */
 




this.impressum = function(){	
	$("#impressum").css("display","block");
}
this.impressumOFF = function(){	
	$("#impressum").css("display","none");
}

