// JavaScript Document
jQuery.fn.extend({
  enter: function() {
    return this.each(function() {
							  var pth = $(this).find("img")[0];
							  //var linka=$(this).find("a")[0];
							  if($(this).children().attr("href")==document.location.href){
								  //alert($(pth).attr("src"));
								 $(pth).attr("src",pth.src.replace(/.gif/g, '_over.gif'));
								 //$(pth).clone()appendTo(this);
								 //alert($(this).find("a")[0]);
								//$(linka).removeAttr("href");
								
							  }
							  else{
	
			$(this).hover(function(){
			$(pth).attr("src",pth.src.replace(/.gif/g, '_over.gif'));
			},function(){
			 $(pth).attr("src",pth.src.replace(/_over.gif/g, '.gif'));			
  });
							  }
});
}
});

function setpath(){
	var InternetExplorer = navigator.appName.indexOf("Microsoft") != -1;
	var flashObj1 = (InternetExplorer) ? window.movie : window.document.movie;
	flashObj1.SetVariable("page", "http://heritagetoursorissa.com/new/");
	//alert(1);
}
$(function() {
	//$("#MenuBar1").children().enter();
	$(".enquiry").enter();
	$(".blog").enter();
	//setpath();
});


