function ResizeThem()
{
  var maxheight = 100;
  var maxwidth = 75;
  var imgs = document.getElementsByTagName("img");
  for ( var p = 0; p < imgs.length; p++ )
  {
    if ( imgs[p].getAttribute("alt") == "resim" )
    {
      var w = parseInt( imgs[p].width );
      var h = parseInt( imgs[p].height );
      if ( w > maxwidth )
      {
        h = ( maxwidth / w ) * h;
        w = maxwidth;
        imgs[p].height = h;
        imgs[p].width = w;
      }
      if ( h > maxheight )
      {
        imgs[p].width = ( maxheight / h ) * w;
        imgs[p].height = maxheight;
      }
    }
  }
}
function addEngine(name,ext,cat)
{
  if ((typeof window.sidebar == "object") && (typeof
  window.sidebar.addSearchEngine == "function"))
  {

    window.sidebar.addSearchEngine(
      "http://www.kac-lira.com/firefox/"+name+".src",
      "http://www.kac-lira.com/firefox/"+name+"."+ext,
      name,
      cat );
  }
  else
  {
    errorMsg(name,ext,cat);
  }
}
$('.goto').live("click", function(ev, ob){
    $.ajax({type: "GET", async: false, url: "/goto/aid.php?aid=" + $(this).attr('uid')});
    return true;
});
function bookmark() {
 	title = "Kac-Lira.Com - Ürün Arama Motoru - Seçkin Sanal Mağazaları ve Aradığınız Her Çeşit Ürün Burada !"; 
 	url = "http://www.kac-lira.com";
	// Mozilla Firefox
	if (window.sidebar) { 
		window.sidebar.addPanel(title, url,"");
	// IE
	} else if( window.external ) {  
		window.external.AddFavorite( url, title); 
	// Opera
	}else if(window.opera && window.print) {
		return true; 
	}
}
function getLayer(SRC){
	var tDIV = document.getElementById(SRC)             
             tDIV.style.cursor = "hand"
	tDIV.style.visibility = "visible"
}
function floatLayer(SRC){
	var tDIV = document.getElementById(SRC)
             tDIV.style.top = window.event.clientY + 20
	if(window.event.clientX+20>document.body.clientWidth)
	{
		tDIV.style.left = document.body.clientWidth - 20
	}
	else
	{
		tDIV.style.left = window.event.clientX// + 15
	}
}	
function hideLayer(SRC){
	var tDIV = document.getElementById(SRC)
             tDIV.style.visibility='hidden'
}


