// JavaScript Document

jQuery.noConflict();
		var $jq = jQuery;
		
$jq('a').focus(function(){
		$jq(this).blur();
		});	

<!-- MAIN NAVI ................................................................ -->
//wenn projektnavi aktiv dann -projekte- in mainnavi auf -on- schalten
$jq('#projektnavi ul li a.on').each(function(){
	$jq('#mainnavi a:first').removeClass('out');
	$jq('#mainnavi a:first').addClass('on');
});
<!-- MAIN NAVI end -->
	
<!-- SKULPTUR PIC over ................................................................  -->
var sxover = $jq('#skulptur_pic a');
var sxpreview = $jq('#overpic');
sxover.preload({ threshold:2 });
sxover.hover(function(){
	sxpreview.attr('src', this.href);
	return false;
});

$jq('#skulptur_pic a').hover(function() {
	pic_text = $jq(this).attr('alt');
	$jq('#sktext').html(' '+pic_text+' ');
});
<!-- SKULPTUR PIC ende  -->

<!-- DIV-INFOTEXT: SCROLLEN wenn Fenster-unterkante über DIV-unterkante geht .......................... -->
$jq(document).ready(function() {
//var container = $jq("#infotext_nx"); // definieren welcher div gemeint ist
//var abstand = container.position(); // auslesen der top und left koordinaten. top-koordinate=abstand.top  .. oder einfacher...
var abstand = $jq("#infotext_nx").position(); // div-#infotext_nx position auslesen. top und left koordinaten.
var windowHeight = $jq(window).height();
var divHoehe = windowHeight - abstand.top;
$jq('#infotext_nx').css('height', divHoehe);
});

$jq(window).resize(function() {
var abstand = $jq("#infotext_nx").position();
var windowHeight = $jq(window).height();
var divHoehe = windowHeight - abstand.top;
$jq('#infotext_nx').css('height', divHoehe);
});
<!-- DIV-INFOTEXT ende -->

<!-- GALERIEN - BESTIMMTES BILD ZEIGEN: wenn ANKER in URL ...............................................  -->
$jq(document).ready(function() {
document.location.hash.substr(1)
if(document.location.hash.substr(1) == 'kaufhaus') {
    $jq('#gxpreview').attr('src', '../images/galerie_birth/eroeffnung_soho_05.jpg');
		$jq('.gxnavi a').removeClass('gxon');
		$jq('.gxnavi a').addClass('gxout');
		$jq('.gxnavi a:nth-child(5)').removeClass('gxout');
		$jq('.gxnavi a:nth-child(5)').addClass('gxon');
		pic_text = $jq('#gxnavi a:nth-child(5)').attr('alt');
		$jq('#gxtext').html(' '+pic_text+' ');
}
});

$jq(document).ready(function() {
document.location.hash.substr(1)
if(document.location.hash.substr(1) == 'guertelpuppe') {
    $jq('#gxpreview').attr('src', '../images/galerie_versprechen/puppe3_4.jpg');
		$jq('.gxnavi a').removeClass('gxon');
		$jq('.gxnavi a').addClass('gxout');
		$jq('.gxnavi a:nth-child(5)').removeClass('gxout');
		$jq('.gxnavi a:nth-child(5)').addClass('gxon');
		pic_text = $jq('#gxnavi a:nth-child(5)').attr('alt');
		$jq('#gxtext').html(' '+pic_text+' ');
}
});

$jq(document).ready(function() {
document.location.hash.substr(1)
if(document.location.hash.substr(1) == 'infuse') {
    $jq('#gx1preview').attr('src', '../images/galerie_versprechen/schlauchherz4.jpg');
		$jq('.gx1navi a').removeClass('gxon');
		$jq('.gx1navi a').addClass('gxout');
		$jq('.gx1navi a:nth-child(9)').removeClass('gxout');
		$jq('.gx1navi a:nth-child(9)').addClass('gxon');
		pic1_text = $jq('#gx1navi a:nth-child(9)').attr('alt');
		$jq('#gx1text').html(' '+pic1_text+' ');
}
});

$jq(document).ready(function() {
document.location.hash.substr(1)
if(document.location.hash.substr(1) == 'dose') {
    $jq('#gxpreview').attr('src', '../images/galerie_trans/dose1.jpg');
		$jq('.gxnavi a').removeClass('gxon');
		$jq('.gxnavi a').addClass('gxout');
		$jq('.gxnavi a:nth-child(7)').removeClass('gxout');
		$jq('.gxnavi a:nth-child(7)').addClass('gxon');
		pic_text = $jq('#gxnavi a:nth-child(7)').attr('alt');
		$jq('#gxtext').html(' '+pic_text+' ');
}
});

$jq(document).ready(function() {
document.location.hash.substr(1)
if(document.location.hash.substr(1) == 'geweih') {
    $jq('#gxpreview').attr('src', '../images/galerie_trans/schaedelbrett1.jpg');
		$jq('.gxnavi a').removeClass('gxon');
		$jq('.gxnavi a').addClass('gxout');
		$jq('.gxnavi a:nth-child(8)').removeClass('gxout');
		$jq('.gxnavi a:nth-child(8)').addClass('gxon');
		pic_text = $jq('#gxnavi a:nth-child(8)').attr('alt');
		$jq('#gxtext').html(' '+pic_text+' ');
}
});

$jq(document).ready(function() {
document.location.hash.substr(1)
if(document.location.hash.substr(1) == 'leuchtschrift') {
    $jq('#gxpreview').attr('src', '../images/galerie_trans/sp_light.jpg');
		$jq('.gxnavi a').removeClass('gxon');
		$jq('.gxnavi a').addClass('gxout');
		$jq('.gxnavi a:nth-child(5)').removeClass('gxout');
		$jq('.gxnavi a:nth-child(5)').addClass('gxon');
		pic_text = $jq('#gxnavi a:nth-child(5)').attr('alt');
		$jq('#gxtext').html(' '+pic_text+' ');
}
});

$jq(document).ready(function() {
document.location.hash.substr(1)
if(document.location.hash.substr(1) == 'soldaten') {
    $jq('#gxpreview').attr('src', '../images/galerie_verhaeltnis/soldaten1.jpg');
		$jq('.gxnavi a').removeClass('gxon');
		$jq('.gxnavi a').addClass('gxout');
		$jq('.gxnavi a:nth-child(2)').removeClass('gxout');
		$jq('.gxnavi a:nth-child(2)').addClass('gxon');
		pic_text = $jq('#gxnavi a:nth-child(2)').attr('alt');
		$jq('#gxtext').html(' '+pic_text+' ');
}
});

$jq(document).ready(function() {
document.location.hash.substr(1)
if(document.location.hash.substr(1) == 'punch') {
    $jq('#gx5preview').attr('src', '../images/galerie_verhaeltnis/punch2.jpg');
		$jq('.gx5navi a').removeClass('gxon');
		$jq('.gx5navi a').addClass('gxout');
		$jq('.gx5navi a:nth-child(3)').removeClass('gxout');
		$jq('.gx5navi a:nth-child(3)').addClass('gxon');
		pic5_text = $jq('#gx5navi a:nth-child(3)').attr('alt');
		$jq('#gx5text').html(' '+pic5_text+' ');
}
});

$jq(document).ready(function() {
document.location.hash.substr(1)
if(document.location.hash.substr(1) == 'totem') {
    $jq('#gx6preview').attr('src', '../images/galerie_verhaeltnis/totem_all.jpg');
		$jq('.gx6navi a').removeClass('gxon');
		$jq('.gx6navi a').addClass('gxout');
		$jq('.gx6navi a:nth-child(3)').removeClass('gxout');
		$jq('.gx6navi a:nth-child(3)').addClass('gxon');
		pic6_text = $jq('#gx6navi a:nth-child(3)').attr('alt');
		$jq('#gx6text').html(' '+pic6_text+' ');
}
});

$jq(document).ready(function() {
document.location.hash.substr(1)
if(document.location.hash.substr(1) == 'herzblume') {
    $jq('#gx7preview').attr('src', '../images/galerie_verhaeltnis/herzblume1.jpg');
		$jq('.gx7navi a').removeClass('gxon');
		$jq('.gx7navi a').addClass('gxout');
		$jq('.gx7navi a:nth-child(3)').removeClass('gxout');
		$jq('.gx7navi a:nth-child(3)').addClass('gxon');
		pic7_text = $jq('#gx7navi a:nth-child(3)').attr('alt');
		$jq('#gx7text').html(' '+pic7_text+' ');
}
});

$jq(document).ready(function() {
document.location.hash.substr(1)
if(document.location.hash.substr(1) == 'leuchtfigur') {
    $jq('#gx2preview').attr('src', '../images/galerie_prekaer/leuchtfigur_bluebox6.jpg');
		$jq('.gx2navi a').removeClass('gxon');
		$jq('.gx2navi a').addClass('gxout');
		$jq('.gx2navi a:nth-child(2)').removeClass('gxout');
		$jq('.gx2navi a:nth-child(2)').addClass('gxon');
		pic2_text = $jq('#gx2navi a:nth-child(2)').attr('alt');
		$jq('#gx2text').html(' '+pic2_text+' ');
}
});
<!-- GALERIEN ende  -->

<!-- HASE und IGEL in formaldehyd ...............................................  -->
	var over = $jq('#hase1 img');
	over.preload({ threshold:2 });
	$jq('#h1').mouseover(function(){
		$jq('#h3').attr('src', '../images/duererhase/dhase.gif');
	return false;
	});
	$jq('#h2').mouseover(function(){
		$jq('#h1').attr('src', '../images/duererhase/dhase.gif');
	return false;
	});
	$jq('#h3').mouseover(function(){
		$jq('#h2').attr('src', '../images/duererhase/dhase.gif');
	return false;
	});	
	var over = $jq('#hase1 img');
	over.preload({ threshold:2 });
	over.mouseout(function(){
		$jq('#h1').attr('src', '../images/duererhase/1.jpg');
		$jq('#h2').attr('src', '../images/duererhase/4.jpg');
		$jq('#h3').attr('src', '../images/duererhase/3.jpg');
	return false;
	});
	
	var over = $jq('#i1');
	over.preload({ threshold:2 });
	$jq('#i1').mouseover(function(){
		$jq('#i1').attr('src', '../images/duererhase/igel1move.gif');
	return false;
	});
	$jq('#i1').mouseout(function(){
		$jq('#i1').attr('src', '../images/duererhase/igel1_1.jpg');
	return false;
	});
	
	var over = $jq('#r1');
	over.preload({ threshold:2 });
	$jq('#r1').click(function(){
		$jq('#r2').attr('src', '../images/duererhase/raeuber1_ex.jpg');
	return false;
	});
	$jq('#r1').mouseout(function(){
		$jq('#r2').attr('src', '../images/duererhase/raeuber1_mit.jpg');
	return false;
	});
<!-- HASE ende  -->

	
	
/* ALTE SEITEN ................................................... */

 /* ticker */
  timer=null;
  text="";
  wahl="";
  ll=0;
  ii=0;
  function start(cc) {
    wahl=cc;
    if(cc == '1') {
      start1
      ("                                   exhibition  LIVING SCULPTUR"+"           //  LAVEN ? SWAMP ? PIRONKOV"+"           //  opening _ freitag 4. april 19??           exhibition _ jeden freitag bis 2. mai ab 16??           oder _ nach absprache fon 0650/95 08 909"+"           //  DAS KABINETT  wien  16. brunnengasse 19"+"                                 ");
    } 
  }
  function start1(cc) {
    text=cc;
    ll=text.length;
    ii=0;
    lauf1();
  }  function lauf1() {
    if(wahl != '1')return;
    document.form1.text1.value=text.substring(ii,ll)+" "+text.substring(0,ii);
    ii++;
    if(ii > ll)ii=0;
    timer=setTimeout("lauf1()", 150);
  
  }
  function lauf2() {
    if(wahl != '2')return;
    document.form1.text1.value=text.substring(0,ii);
    ii++;
    if(ii > ll)ii=0;
    timer=setTimeout("lauf2()", 150);
  }

/* ALLE ROLLOVER BILDER code von programm ...................................... */ 
function MM_swapImgRestore() { //v3.0
  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 MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  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=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
  
/* WINDOW.OPEN für VIDEO ................................................... */  
  function NewWindowMoment (url2) {
fenster = window.open(url2, "videomoment", "width=800, height=600, left=360, top=140, directories=no, toolbar=no, scrollbars=no, resizable=yes, dependent=yes, statusbar=no, status=no, location=no, menubar=no, titlebar=no, overflow=hidden");
fenster.focus();
}

  function NewWindowTanz (url2) {
fenster = window.open(url2, "videotanz", "width=667, height=889, left=360, top=50, directories=no, toolbar=no, scrollbars=no, resizable=no, dependent=yes, statusbar=no, status=no, location=no, menubar=no, titlebar=no, overflow=hidden" ); 
fenster.focus();
}



