function show_flash(widht,height,src,cyt,trans,bgcolor)
{

if (window.ActiveXObject)
{
document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="https://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="'+widht+'" height="'+height+'" id="'+src+'">');
document.write('<param name="allowScriptAccess" value="always" />');
document.write('<param name="movie" value="'+src+'" />');
document.write('<param name="quality" value="high" />');
document.write('<param name="wmode" value="'+trans+'">');
document.write('<param name="bgcolor" value="'+bgcolor+'" />');
document.write('<param name="wmode" value="transparent" />');
document.write('<PARAM NAME=FlashVars VALUE="'+cyt+'">');
document.write('<embed src="'+src+'" quality="high" FlashVars="'+cyt+'" bgcolor="'+bgcolor+'" width="'+widht+'" height="'+height+'" name="'+src+'" align="middle" allowScriptAccess="always" type="application/x-shockwave-flash" pluginspage="https://www.macromedia.com/go/getflashplayer" wmode="'+trans+'" />');
document.write('</object>');
}
else
{
document.write('<object id="'+src+'" data="'+src+'" type="application/x-shockwave-flash" width="'+widht+'" height="'+height+'">');
document.write('<param name="allowScriptAccess" value="always" />');
document.write('<param name="movie" value="'+src+'" />');
document.write('<param name="quality" value="high" />');
// document.write('<param name="wmode" value="'+trans+'">');
document.write('<param name="bgcolor" value="'+bgcolor+'" />');
document.write('<param name="wmode" value="transparent" />');
document.write('<PARAM NAME=FlashVars VALUE="'+cyt+'">');
document.write('<embed src="'+src+'" quality="high" FlashVars="'+cyt+'" bgcolor="'+bgcolor+'" width="'+widht+'" height="'+height+'" name="'+src+'" align="middle" allowScriptAccess="always" type="application/x-shockwave-flash" pluginspage="https://www.macromedia.com/go/getflashplayer" />');
document.write('</object>');
}
}

function showthumb(i){   
	document.getElementById("pic"+i).style.display = "block";
}
var bildArray=new Array(1,2,3,4,5,6);
function bild(nummer){
	if(document.getElementById)
	for (a=0;a<bildArray.length;a++){
		if(bildArray[a]!=nummer){
			document.getElementById("bild"+bildArray[a]).style.display = "none";
		}else{
			document.getElementById("bild"+nummer).style.display = "block";
		}
	}
}

function cytshort() {
  if(document.getElementById)
  document.getElementById("cytshort").style.display = "block";
  document.getElementById("cytdesc").style.display = "none";
}
function cytdesc() {
  if(document.getElementById)
  document.getElementById("cytdesc").style.display = "block";
  document.getElementById("cytshort").style.display = "none";
}

 function CreateBookmarkLink() {
  title = "Schuhdealer"; 
  url = "http://www.schuhdealer.de"; 
  if (window.sidebar) { // Mozilla Firefox Bookmark	
  window.sidebar.addPanel(title, url,"");
  } else if( window.external ) { // IE Favorite
  window.external.AddFavorite( url, title);
  }	else { 
      alert("Diese Funktion wird leider von ihrem Browser nicht unterstützt");}
  }
function setol_hpos(position) {
ol_hpos = position;
}
function updateajax(){
OLgetRef('ajaxexa1').innerHTML= OLresponseAJAX ;
}
function OLcmdExT1() {
overlib( OLresponseAJAX ,FULLHTML,OFFSETX,-30,OFFSETY,-50,WIDTH,432,HEIGHT,280,STICKY,DELAY,0,FILTER,FADEIN,25,FADEOUT,25,FADETIME,500);
}
quick_view = '';
function change_quick_view(tpl,language) {
	if(quick_view == ''){
	quick_view = 1;
	document.getElementById("quick_view_button").src = tpl + 'images/' + language + '/quick_view_off.gif';
	document.getElementById("quick_view_button2").src = tpl + 'images/' + language + '/quick_view_off.gif';
	}else{
	quick_view = '';
	document.getElementById("quick_view_button").src = tpl + 'images/' + language + '/quick_view_on.gif';
	document.getElementById("quick_view_button2").src = tpl + 'images/' + language + '/quick_view_on.gif';
	}
}

 function mysqlTimeStampToDate(timestamp) {
    //function parses mysql datetime string and returns javascript Date object
    //input has to be in this format: 2007-06-05 15:26:02
    var regex=/^([0-9]{2,4})-([0-1][0-9])-([0-3][0-9]) (?:([0-2][0-9]):([0-5][0-9]):([0-5][0-9]))?$/;
    var parts=timestamp.replace(regex,"$1 $2 $3 $4 $5 $6").split(' ');
    return new Date(parts[0],parts[1]-1,parts[2],parts[3],parts[4],parts[5]);
  }