// JavaScript Document
function btn_overs(sel, newImage){
	var theImage=document.getElementById(sel);
	theImage.src=newImage;
}
function showGallery(id){
	loadFlashInDiv('/cms/get/flash/slideshow/ss.swf?id='+id+'&template=custom/bucari/gallery',"slideshow");
	var hrefs=document.getElementById('gallList').getElementsByTagName('a');
	for (var i=0;i<hrefs.length;i++){hrefs[i].style.color='#58616b';} 
	document.getElementById("gallLink"+id).style.color="#806c60";
	
	//var children = document.getElementById('gallList').getElementsByTagName;
//	
//	
//	for(var c=0; c < children.length; c++) {children[c].style.color = '#58616b';alert(children[c].tagName);}
//	document.getElementById("gallLink"+id).style.color="#806c60";
}
function loadFlashInDiv(flash,theDiv){
	//alert (theDiv);
	var flash_width="100%";
	var flash_height="100%";
	var version='8,0,24,0';
	var str='<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version='+version+'" width="'+flash_width+'" height="'+flash_height+'">';
	str+='<param name="movie" value="'+flash+'"><param name="quality" value="high"><param name="wmode" value="transparent"><param name="SCALE" value="noborder">';
	str+='<embed src="'+flash+'" width="'+flash_width+'" height="'+flash_height+'" wmode="transparent" scale="noborder" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed></object>';
	var theTarg=document.getElementById(theDiv);
	theTarg.innerHTML=str;
}
