 $(document).ready(function(){
	 var browserName=navigator.appName; 
	  if (browserName=="Microsoft Internet Explorer")
	  {
		  $('#pricelist,#linkbox,#enqform,#livechat,#detailsarea').css("border", "0");	 
 $('#pricelist,#linkbox,#enqform,#livechat,#detailsarea').cornerz({background:"#E0E0E0",radius:8});    
	  }
	  
	  $('A[rel="external"]')
.click( function() {
window.open( $(this).attr('href') );
return false;
});
 });
 
 
 d = new Date();
 dateText = "";
 dayValue = d.getDay();
 if (dayValue == 0)
     dateText += "Sunday";
 else if (dayValue == 1)
     dateText += "Monday";
 else if (dayValue == 2)
     dateText += "Tuesday";
 else if (dayValue == 3)
     dateText += "Wednesday";
 else if (dayValue == 4)
     dateText += "Thursday";
 else if (dayValue == 5)
     dateText += "Friday";
 else if (dayValue == 6)
     dateText += "Saturday";

 monthValue = d.getMonth();
 dateText += " "
 if (monthValue == 0)
     dateText += "January";
 if (monthValue == 1)
     dateText += "February";
 if (monthValue == 2)
     dateText += "March";
 if (monthValue == 3)
     dateText += "April";
 if (monthValue == 4)
     dateText += "May";
 if (monthValue == 5)
     dateText += "June";
 if (monthValue == 6)
     dateText += "July";
 if (monthValue == 7)
     dateText += "August";
 if (monthValue == 8)
     dateText += "September";
 if (monthValue == 9)
     dateText += "October";
 if (monthValue == 10)
     dateText += "November";
 if (monthValue == 11)
     dateText += "December";

 if (navigator.appName.indexOf('Microsoft') != -1)
 dateText += " " + d.getDate() + ", " + (0000 + d.getYear());
 else if (navigator.appName.indexOf('Netscape') != -1)
 dateText += " " + d.getDate() + ", " + (1900 + d.getYear());

 minuteValue = d.getMinutes();
 if (minuteValue < 10)
     minuteValue = "0" + minuteValue

 hourValue = d.getHours();
 if (hourValue < 12)
     {
     greeting = "Welcome to WebCreationUK";
     timeText = " at " + hourValue + ":" + minuteValue + 
 " AM. ";
     }
 else if (hourValue == 12)
     {
     greeting = "Welcome to WebCreationUK";
     timeText = " at " + hourValue + ":" + minuteValue + 
 " PM. ";
     }
 else if (hourValue < 17)
     {
     greeting = "Welcome to WebCreationUK";
     timeText = " at " + (hourValue-12) + ":" + minuteValue +
  " PM. ";
     }
 else
     {
     greeting = "Welcome to WebCreationUK";
     timeText = " at " + (hourValue-12) + ":" + minuteValue + 
 " PM. ";
     }

 

	
	function filtertype()
	{
		$gotopage="indexport.php?"+document.getElementById('siteselector').value;
		window.location = $gotopage;
	}
	
	function filtersector()
	{
		$gotopage="indexport.php?"+document.getElementById('filtersector').value;
		window.location = $gotopage;
	}

	function portclick(siteID)
	{

		$.ajax({
			   type: "POST",
			   url: "ajax/logclick.php",
			   data: "spid="+siteID,
			   success: function(msg){
			   
			   }
			 });
		
	}
	
	function portexit(siteID)
	{

		$.ajax({
			   type: "POST",
			   url: "ajax/logexit.php",
			   data: "spid="+siteID,
			   success: function(msg){
		
			   }
			 });
	
	}
	
	function portenquiry(siteID)
	{

		$.ajax({
			   type: "POST",
			   url: "ajax/logenquiry.php",
			   data: "spid="+siteID,
			   success: function(msg){
		
			   }
			 });
		return true;
	}
	
	function appearchild(outerselect)
	{
		$(".infopop").hide();
		$(outerselect).children(".infopop").show();
	}
