function WinOpen(id, p_type) 
{
  iMyWidth = (window.screen.width/2) + 30;
  iMyHeight = 25; // (window.screen.height/2) - 350; 
  
  if (p_type == "raffle")
  {
  		XWidth = 420;
  		YWidth = 655;
  		Goal = "front_content.php?idcatart=" + id;
    var win2 = window.open(Goal,"best_partner","height=" + YWidth + ",width=" + XWidth +",resizable=no,left=" + iMyWidth + ",top=" + iMyHeight + ",screenX=" + iMyWidth + ",screenY=" + iMyHeight + ",scrollbars=yes,status=no,alwaysraised=yes");
    return;
  }
  else if (!p_type)
  {
  	XWidth = 465;
  	YWidth = 635;
  	Goal = "manage/topview.php?id=" + id;
  }

  var win2 = window.open(Goal,"best_partner","height=" + YWidth + ",width=" + XWidth +",resizable=no,left=" + iMyWidth + ",top=" + iMyHeight + ",screenX=" + iMyWidth + ",screenY=" + iMyHeight + ",scrollbars=no,status=no,alwaysraised=yes");
}

function ShowAnfahrtOld(id) 
{
	XWidth = 333;
	YWidth = 400;
	Goal = "manage/anfahrt.php?id=" + id;
                 

	iMyWidth = (window.screen.width/2) + 30;
	iMyHeight = (window.screen.height/2) - 300; 

	
	var win2 = window.open(Goal,"best_partner","height=" + YWidth + ",width=" + XWidth +",resizable=no,left=" + iMyWidth + ",top=" + iMyHeight + ",screenX=" + iMyWidth + ",screenY=" + iMyHeight + ",scrollbars=no,status=no,alwaysraised=yes");
}

function open_Win(url){

        newwin = window.open(url,"help","location=no,toolbar=no,statusbar=no,menubar=no,scrollbars=no,width=350px,height=350px,screenX=450,screenY=150,left=450px,top=75px,alwaysRaised=yes");

}


var IsCat = false;

function set_Cat(CatName)
{
	if(CatName)
	{
		IsCat = CatName;
	}
}

function set_Image()
{
      //alert("Kategorie: " + IsCat + " " + document.images['topCat'].src);
}

function mclick()
{
	self.location.href = this.URL;
}

function mout()
{
	if(document.images)
	{
		document.images["" + this.ImgID].src = this.psource.src;
	} else {
	  im = document.getElementByID(this.ImgID);
	  if (im != null) im.src = this.psource.src;
  }
}

function mover()
{
	if(document.images)
	{
		document.images["" + this.ImgID].src = this.asource.src;
	} else {
	  im = document.getElementByID(this.ImgID);
	  if (im != null) im.src = this.asource.src;
  }
}

function navigation(URL,ImgID,StatusTXT)
{
	this.URL = URL;
	this.ImgID = ImgID;
	this.StatusTXT = StatusTXT;
	
	this.psource = new Image();
	this.psource.src = "upload/nav/" + this.ImgID + "p.gif";

	this.asource = new Image();
	this.asource.src = "upload/nav/" + this.ImgID + "a.gif";
	
	this.mover = mover;
	this.mout = mout;
	this.mclick = mclick;
}

