function bigImage(kep,w,h,ablakcim)
{
//	ujablak=window.open("","","width=" + w + ",height=" + h + ",status=no,toolbar=no,menubar=no,resizable=no,scrollbars=yes");
	ujablak=window.open("","","width=" + w + ",height=" + h + ",status=yes,toolbar=yes,menubar=yes,resizable=,scrollbars=yes");
	ujablak.document.write('<title>' + ablakcim + '</title>');
	ujablak.document.write('<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">');

	ujablak.document.write('<a href="javascript:window.close()"><img src="' + kep + '" width="' + w + '" height="' + h + '" border="0"></a>');

}

function popup2(mylink, windowname,strType,strHeight,strWidth)
{
if (! window.focus)return true;
var href;
if (typeof(mylink) == 'string')
   href=mylink;
else
   href=mylink.href;
//if (strType=="console") strOptions="resizable,scrollbars,top=0,left=120,height="+strHeight+",width="+strWidth;
if (strType=="console") strOptions="status,toolbar,menubar,resizable,scrollbars,top=0,left=120,height="+strHeight+",width="+strWidth;
if (strType=="cons_h") strOptions="status,top=0,left=120,scrollbars,height="+strHeight+",width="+strWidth;
window.open(href, windowname, strOptions);
return false;
}

/***********************************************
* Bookmark site script- © Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
***********************************************/

function bookmarksite(title,url){
if (window.sidebar) // firefox
	window.sidebar.addPanel(title, url, "");
else if(window.opera && window.print){ // opera
	var elem = document.createElement('a');
	elem.setAttribute('href',url);
	elem.setAttribute('title',title);
	elem.setAttribute('rel','sidebar');
	elem.click();
} 
else if(document.all)// ie
	window.external.AddFavorite(url, title);
}

Effect.Pulsate = function(element) {
  element = $(element);
  var options    = arguments[1] || {};
  var oldOpacity = element.getInlineOpacity();
  var transition = options.transition || Effect.Transitions.sinoidal;
  var reverser   = function(pos){ return transition(1-Effect.Transitions.pulse(pos, options.pulses)) };
  reverser.bind(transition);
  return new Effect.Opacity(element, 
    Object.extend(Object.extend({  duration: 2.0, from: 0,
      afterFinishInternal: function(effect) { effect.element.setStyle({opacity: oldOpacity}); }
    }, options), {transition: reverser}));
}
