function scrivinside() {
document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="400" height="300" accesskey="1" tabindex="2" title="panoramicaok"><param name="movie" value="/flash/panoramicaok.swf" /><param name="quality" value="high" /><embed src="/flash/panoramicaok.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="400" height="300"></embed></object>');
}
function scriviflash() {
	document.write('<objectclassid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="750" height="400" title="intro"><param name="movie" value="flash/intro.swf" /><param name="quality" value="high" /><embed src="flash/intro.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="750" height="400"></embed></object>')
}
	function blinker(farbe1, farbe2, tempo) {
		faktor = 0;
		heller = 1;
		rot1 = farbe1.substr(0, 2);
		gruen1 = farbe1.substr(2, 2);
		blau1 = farbe1.substr(4, 2);
		rot1 = parseInt(rot1, 16);
		gruen1 = parseInt(gruen1, 16);
		blau1 = parseInt(blau1, 16);
		rot2 = farbe2.substr(0, 2);
		gruen2 = farbe2.substr(2, 2);
		blau2 = farbe2.substr(4, 2);
		rot2 = parseInt(rot2, 16);
		gruen2 = parseInt(gruen2, 16);
		blau2 = parseInt(blau2, 16);
		rot_diff = rot2 - rot1;
		gruen_diff = gruen2 - gruen1;
		blau_diff = blau2 - blau1;
		tempo_verlauf = tempo;
		blinker_verlauf();
	}
function blinker_verlauf() {
		rot_neu = rot1 + rot_diff / 100 * faktor;
		gruen_neu = gruen1 + gruen_diff / 100 * faktor;
		blau_neu = blau1 + blau_diff / 100 * faktor;
		rot_neu = Math.floor(rot_neu);
		gruen_neu = Math.floor(gruen_neu);
		blau_neu = Math.floor(blau_neu);
		if(heller == 0) {
			faktor += 10;
		} else {
			faktor -= 10;
		}
		if(faktor >= 100) {
			heller = 1;
		}
		if(faktor <= 0) {
			heller = 0;
		}
		for(i=0; i<document.getElementsByTagName("div").length; i++) {
			if(document.getElementsByTagName("div")[i].className == "blink") document.getElementsByTagName("div")[i].style.color = "rgb(" + rot_neu + ", " + gruen_neu + ", " + blau_neu + ")";
		}
		window.setTimeout("blinker_verlauf()", tempo_verlauf);
	}
	function JustSoPicWindow(imageName,imageWidth,imageHeight,alt,bgcolor,hugger,hugMargin) {
// by E Michael Brandt of ValleyWebDesigns.com - Please leave these comments intact.
// version 3.0.2  

	if (bgcolor=="") {
		bgcolor="#FFFFFF";
	}
	var adj=10
	var w = screen.width;
	var h = screen.height;
	var byFactor=1;

	if(w<740){
	  var lift=0.90;
	}
	if(w>=740 & w<835){
	  var lift=0.91;
	}
	if(w>=835){
	  var lift=0.93;
	}
	if (imageWidth>w){	
	  byFactor = w / imageWidth;			
	  imageWidth = w;
	  imageHeight = imageHeight * byFactor;
	}
	if (imageHeight>h-adj){
	  byFactor = h / imageHeight;
	  imageWidth = (imageWidth * byFactor);
	  imageHeight = h; 
	}
	   
	var scrWidth = w-adj;
	var scrHeight = (h*lift)-adj;

	if (imageHeight>scrHeight){
  	  imageHeight=imageHeight*lift;
	  imageWidth=imageWidth*lift;
	}

	var posLeft=0;
	var posTop=0;

	if (hugger == "hug image"){
	  if (hugMargin == ""){
	    hugMargin = 0;
	  }
	  var scrHeightTemp = imageHeight - 0 + 2*hugMargin;
	  if (scrHeightTemp < scrHeight) {
		scrHeight = scrHeightTemp;
	  } 
	  var scrWidthTemp = imageWidth - 0 + 2*hugMargin;
	  if (scrWidthTemp < scrWidth) {
		scrWidth = scrWidthTemp;
	  }
	  
	  if (scrHeight<100){scrHeight=100;}
	  if (scrWidth<100){scrWidth=100;}

	  posTop =  ((h-(scrHeight/lift)-adj)/2);
	  posLeft = ((w-(scrWidth)-adj)/2);
 	}

	if (imageHeight > (h*lift)-adj || imageWidth > w-adj){
		imageHeight=imageHeight-adj;
		imageWidth=imageWidth-adj;
	}
	posTop = parseInt(posTop);
	posLeft = parseInt(posLeft);		
	scrWidth = parseInt(scrWidth); 
	scrHeight = parseInt(scrHeight);
	
	var agt=navigator.userAgent.toLowerCase();
	if (agt.indexOf("opera") != -1){
	  var args= new Array();
	  args[0]='parent';
	  args[1]=imageName;
	  var i ; document.MM_returnValue = false;
	  for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
	} else {
	newWindow = window.open("vwd_justso.htm","newWindow","width="+scrWidth+",height="+scrHeight+",left="+posLeft+",top="+posTop);
	newWindow.document.open();
	newWindow.document.write('<html><title>'+alt+'</title><body leftmargin="0" topmargin="0" marginheight="0" marginwidth="0" bgcolor='+bgcolor+'>');  
	newWindow.document.write('<table width='+imageWidth+' border="0" cellspacing="0" cellpadding="0" align="center" height='+scrHeight+' ><tr><td>');
	newWindow.document.write('<img src="'+imageName+'" width='+imageWidth+' height='+imageHeight+' alt="Click screen to close" >'); 
	newWindow.document.write('</td></tr></table></body></html>');
	newWindow.document.close();
	newWindow.focus();
	}
}
