function swapStyle(target,set,style) {
	if (set == "on") {target.className = style+'-on';}
	else if (set == "off") {target.className = style;}
}

function showDiv(target,set,style) {
	if (set == "on") {document.getElementById(target).className = style+'-on';}
	else if (set == "off") {document.getElementById(target).className =  style+'-off';}
}

function MM_goToURL() { //v3.0
  var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
  for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
}

function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

function PopupPic(sPicURL) { 
window.open("../photos.htm?"+sPicURL, "", "resizable=1,HEIGHT=300,WIDTH=300");
}

function showLBbez(image) {
	var a = document.getElementById("pic"+image);
	if(image<10){
		var url = "images/galerie/0"+image+".jpg";
	} else {
		var url = "images/galerie/"+image+".jpg";
	}
	PopupPic(url);
}

function showLB(image) {
	var a = document.getElementById("pic"+image);
	if(image<10){
		var url = "../images/galerie/0"+image+".jpg";
	} else {
		var url = "../images/galerie/"+image+".jpg";
	}
	
	a.setAttribute('href', url);
	myLightbox.start(a);
}

function doSIFR() {
if(typeof sIFR == "function"){

sIFR.replaceElement(named({sSelector:"h3.leftpanel", sFlashSrc:"config/din-black.swf", sColor:"#999999", sLinkColor:"#FFFFFF", sBgColor:"#000000", sHoverColor:"#0033CC", nPaddingTop:0, nPaddingBottom:0, sFlashVars:"textalign=left&offsetBottom=10", sCase:"upper", sWmode:"transparent"}));
		
sIFR.replaceElement(named({sSelector:"h2.article-header", sFlashSrc:"config/din-regular.swf", sColor:"#FF2913", sLinkColor:"#FF2913", sBgColor:"#000000", sHoverColor:"#FFFFFF", nPaddingTop:0, nPaddingBottom:0,  sFlashVars:"textalign=left&offsetTop=0&offsetLeft=0", sCase:"upper", sWmode:"transparent"}));

sIFR.replaceElement(named({sSelector:"h1.article-header", sFlashSrc:"config/din-regular.swf", sColor:"#FF2913", sLinkColor:"#FF2913", sBgColor:"#454545", sHoverColor:"#FFFFFF", nPaddingTop:0, nPaddingBottom:0,  sFlashVars:"textalign=left&offsetTop=0&offsetLeft=0", sCase:"upper", sWmode:"transparent"}));

};
}
