/*function startGallery() {
var myGallery = new gallery($('myGallery'), {
timed: true,
showArrows: false,
showCarousel: false
});
}*/

function startList() {
if (document.all&&document.getElementById) {
navRoot = document.getElementById("navnav");
for (i=0; i<navRoot.childNodes.length; i++) {
node = navRoot.childNodes[i];
if (node.nodeName=="LI") {
node.onmouseover=function() {
this.className+=" over";
  }
  node.onmouseout=function() {
  this.className=this.className.replace(" over", "");
   }
   }
  }
 }
}

var containerHeight, containerHeight2, brandHeight, collectionHeight;              
Window.onDomReady(function() {
	startList();
	if (document.getElementById) {
		if (document.getElementById('top_colorchart')) {
			containerHeight = new Fx.Slide('top_colorchart', {duration: 500});
			containerHeight.hide();
		}
		if (document.getElementById('contactform_wig')) {
			containerHeight2 = new Fx.Slide('contactform_wig', {duration: 500});
			containerHeight2.hide();
		}
		if (document.getElementById('myGallery')) {
			myShow = new Slideshow('myGallery', {hu: 'images/photos/', images: ['114_2403_debi.web.full.jpg','183_8208dream.full.jpg','167_269_envy_cost.web.full.jpg','159_4502_princess.web.full.jpg','145_2827_harmony.web.full.jpg','132_4503aristocratweb.full.jpg']});
		}
		/*if (document.getElementById('myGallery')) {
			startGallery();
		}*/
		
	}
});

function showPic (whichpic) {
 if (document.getElementById) {
  document.getElementById('placeholder').src = whichpic.href;
  return false;
 } else {
  return true;
 }
}

function colorPic (whichpic) {
 if (document.getElementById) {
  document.getElementById('placeholder_bottom').src = whichpic.href;
  if (whichpic.title) {
   document.getElementById('desc_bottom').childNodes[0].nodeValue = whichpic.title;
  } else {
   document.getElementById('desc_bottom').childNodes[0].nodeValue = whichpic.childNodes[0].nodeValue;
  }
  return false;
 } else {
  return true;
 }
}

function confirmDelete()
{
var agree=confirm("Biztos, hogy törölni akarja?");
if (agree)
return true ;
else
return false ;
}

function open_window(url)
{
cwin = window.open(url,"attach","width=350,height=400,toolbar=no,resizable=yes");
}
function ptoutput(theText)
{
document.write(theText);
}

