//<!--

var isNetscape = navigator.appName=="Netscape";
var brw_version=parseInt(navigator.appVersion.substring(0,1));
var brw_name=navigator.appName;


function nickpage(nickname)
{
	window.open('nick_damals.aspx?nick='+nickname,'modDate','width=640,height=480,menubar=no,toolbar=no,scrollbars=yes,resizable=yes,directories=no,location=no,status=no');
}

function nickpage_ch(nickname)
{
	window.open('nick_damals_edit.aspx?nick='+nickname,'modDate','width=640,height=480,menubar=no,toolbar=no,scrollbars=yes,resizable=yes,directories=no,location=no,status=no');
}

//showhidecontentvonjürgen

function showHideContent(lay)
{
	if (get_style(lay)=='none')
		set_style(lay,'');
	else
		set_style(lay,'none');	
}

function set_style(lay,myValue)
{
   if(!isNetscape)
     eval('document.all.'+lay+'.style.display="'+myValue+'"');
   else if (brw_version<=4)  
        eval('document.all.'+lay+'.display="'+myValue+'"');
   else 
     eval('document.getElementById("'+lay+'").style.display="'+myValue+'"');   
}

function get_style(lay)
{
   var tmp='';
   if(!isNetscape)
     eval('tmp=document.all.'+lay+'.style.display');
   else if (brw_version<=4)  
        eval('tmp=document.all.'+lay+'.display');
   else 
     eval('tmp=document.getElementById("'+lay+'").style.display'); 
	return tmp;  
}

// showhide phil

function showOeffnungszeiten(id,show) {
	//alert (id);
	var displayAttribute  = "";
	var visibilityAttribute  = "";
	
	var trHeight = "";
	if (show == 1) {
		displayAttribute = "inline";
		visibilityAttribute = "visible";
	}
	else {
		displayAttribute = "none";
		visibilityAttribute = "hidden";
		trHeight = "0px;"
	}
	
	document.getElementById('filialeOeffnungszeiten_'+id).style.display = displayAttribute;
	document.getElementById('filialeOeffnungszeiten_'+id).style.visibility = visibilityAttribute;
	
	//document.getElementById('filialeOeffnungszeiten_'+id).style.height = trHeight;
	
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  f1=open(theURL,winName,features);
  if(window.focus) f1.focus();
}


function over(element) {
element.style.borderStyle= "solid";
element.style.borderWidth = "1px";
element.style.borderColor = "#000000";
element.style.backgroundColor = "#F1F1F1";
element.style.cursor = "hand";
}

function out(element) {
element.style.borderColor = "#CCCCCC";
element.style.backgroundColor = "#CCCCCC"
element.style.cursor = "default";
}

function readyDiv(divName) {
var theHTML;
theHTML = document.all.tags('div')[divName].innerText;
document.all.tags('div')[divName].innerHTML = theHTML;
}

function cmdExec(cmd,divName,opt) {
eval(divName+'.document.execCommand(cmd,"",opt)');
document.body.all.tags('div')[divName].focus();
}

function createLink() {
cmdExec("CreateLink");
}

function insertImage() {
var sImgSrc = prompt("Image: ", "http://www.[domain].[ext]/[folder]/[file]");
if(sImgSrc!=null)
cmdExec("InsertImage",sImgSrc);
}

function copyhiddensubmit(objForm,divName,toObj) {
	toObj.value = document.all.tags('div')[divName].innerHTML;
	objForm.submit();
}

function copyhidden(objForm,divName,toObj) {
	toObj.value = document.all.tags('div')[divName].innerHTML;
}

function go(where) {
window.location.href = where;
}
//-->

function school_card()
{
	window.open("http://www.alleskarte.at/schulfreunde/index.html","schulcards","width=490,height=580,menubar=no,toolbar=no,scrollbars=no,resizable=no,directories=no,location=no,status=no");
}
