$(document).ready(function() {
	/* This is basic - uses default settings */
	
	$("a#openone").fancybox();
	
	
	/* Using custom settings */
	
	$("a#gallery").fancybox({
		'hideOnContentClick': true
	});
	$("a#zoom").fancybox({
		'zoomSpeedIn':		800, 
		'zoomSpeedOut':     700, 
		'overlayShow':		true,
        'easingIn':         'easeOutBack',
		'easingOut':        'easeInBack',
        'zoomOpacity':      true
	});
	$("a.domaincheck").fancybox({
		'frameWidth':			720,
		'frameHeight':			500,
		'hideOnContentClick':	false
	});
});

function showCommunity() {
	obj1 = document.getElementById('community_large');
	obj2 = document.getElementById('community_small');
		
	if (obj1.style.display =='block') {
		obj1.style.display = 'none';
		obj2.style.display = 'block';
	} else {
		obj1.style.display = 'block';
		obj2.style.display = 'none';
	}
}

//Specify affected tags. Add or remove from list:
var tgs = new Array( 'div','td','tr');

//Specify spectrum of different font sizes:
var szs = new Array( 'xx-small','x-small','small','medium','large','x-large','xx-large' );
var startSz = 2;

function ts( trgt,inc ) {
	if (!document.getElementById) return
	var d = document,cEl = null,sz = startSz,i,j,cTags;
	
	sz += inc;
	if ( sz < 0 ) sz = 0;
	if ( sz > 6 ) sz = 6;
	startSz = sz;
		
	if ( !( cEl = d.getElementById( trgt ) ) ) cEl = d.getElementsByTagName( trgt )[ 0 ];

	cEl.style.fontSize = szs[ sz ];

	for ( i = 0 ; i < tgs.length ; i++ ) {
		cTags = cEl.getElementsByTagName( tgs[ i ] );
		for ( j = 0 ; j < cTags.length ; j++ ) cTags[ j ].style.fontSize = szs[ sz ];
	}
}

function mailsend(mail,p1,p2,p3)
	{ 
		var ca; 
		ca = "mailto:" + p2 + "\@" + p3 + "." + p1; 
		mail.href = ca; 
		return (1); 
	}
	
function popup(loc, width, height, scrollbars, w_name) 
	{
		if (!w_name) {
			w_name = "newWin";
			}
		var properties = "width=" + width + ",height=" + height + ",scrollbars=" + scrollbars;
		newWin = window.open(loc, w_name, properties);
	}
	
var y1 = 70;   // change the # on the left to adjuct the Y co-ordinate
	(document.getElementById && !document.all) ? dom = true : dom = false;
	
	function hideIt() {
	  if (dom) {document.getElementById("layer1").style.visibility='hidden';}
	  if (document.layers) {document.layers["layer1"].visibility='hide';}
	  if (document.all) {document.all["layer1"].style.visibility='hidden';}
	  }
	
	function showIt() {
	  if (dom) {document.getElementById("layer1").style.visibility='visible';}
	  if (document.layers) {document.layers["layer1"].visibility='show';}
	  if (document.all) {document.all["layer1"].style.visibility='visible';}}
	
	function placeIt() {
	  if (dom) {document.getElementById("layer1").style.top = window.pageYOffset + (window.innerHeight - (window.innerHeight-y1))}
	  if (document.layers) {document.layers["layer1"].top = window.pageYOffset + (window.innerHeight - (window.innerHeight-y1))}
	  if (document.all) {document.all["layer1"].style.top = document.body.scrollTop + (document.body.clientHeight - (document.body.clientHeight-y1));}
	  window.setTimeout("placeIt()", 10);
	 }

function Social_Load() { 
var d=document; if(d.images){ if(!d.Social) d.Social=new Array();
var i,j=d.Social.length,a=Social_Load.arguments; for(i=0; i<a.length; i++)
if (a[i].indexOf("#")!=0){ d.Social[j]=new Image; d.Social[j++].src=a[i];}}
}
Social_Load('http://www.social-bookmark-script.de/img/bookmarks/wong_trans_ani.gif','http://www.social-bookmark-script.de/img/bookmarks/webnews_trans_ani.gif','http://www.social-bookmark-script.de/img/bookmarks/icio_trans_ani.gif','http://www.social-bookmark-script.de/img/bookmarks/oneview_trans_ani.gif','http://www.social-bookmark-script.de/img/bookmarks/folkd_trans_ani.gif','http://www.social-bookmark-script.de/img/bookmarks/yigg_trans_ani.gif','http://www.social-bookmark-script.de/img/bookmarks/linkarena_trans_ani.gif','http://www.social-bookmark-script.de/img/bookmarks/linksilo_trans_ani.gif','http://www.social-bookmark-script.de/img/bookmarks/readster_trans_ani.gif','http://www.social-bookmark-script.de/img/bookmarks/seekxl_trans_ani.gif','http://www.social-bookmark-script.de/img/bookmarks/favit_trans_ani.gif','http://www.social-bookmark-script.de/img/bookmarks/boni_trans_ani.gif','http://www.social-bookmark-script.de/img/bookmarks/favoriten_trans_ani.gif','http://www.social-bookmark-script.de/img/bookmarks/digg_trans_ani.gif','http://www.social-bookmark-script.de/img/bookmarks/del_trans_ani.gif','http://www.social-bookmark-script.de/img/bookmarks/facebook_trans_ani.gif','http://www.social-bookmark-script.de/img/bookmarks/reddit_trans_ani.gif','http://www.social-bookmark-script.de/img/bookmarks/stumbleupon_trans_ani.gif','http://www.social-bookmark-script.de/img/bookmarks/slashdot_trans_ani.gif','http://www.social-bookmark-script.de/img/bookmarks/furl_trans_ani.gif','http://www.social-bookmark-script.de/img/bookmarks/blinklist_trans_ani.gif','http://www.social-bookmark-script.de/img/bookmarks/technorati_trans_ani.gif','http://www.social-bookmark-script.de/img/bookmarks/newsvine_trans_ani.gif','http://www.social-bookmark-script.de/img/bookmarks/blinkbits_trans_ani.gif','http://www.social-bookmark-script.de/load.gif')
function schnipp() { 
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
function schnupp(n, d) { 
  var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
  d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=schnupp(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
  }
function schnapp() { 
  var i,j=0,x,a=schnapp.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
  if ((x=schnupp(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
  }