﻿jQuery(document).ready(function(){try{document.execCommand("BackgroundImageCache",false,true);}
catch(err){}});$.fn.externalLinks=function(){$("a[rel]").each(function(){if(this.getAttribute("rel").indexOf("external")>-1){this.target="_blank";}});};$.fn.clearDefault=function(options){var defaults={initialText:"Search"};options=$.extend(defaults,options);return this.each(function(){$(this).focus(function(){if(this.value==options.initialText)
this.value="";else
this.select();});$(this).blur(function(){if(this.value=="")
this.value=options.initialText;});});};jQuery.fn.ZIndexFix=function()
{return this.each(function()
{if(IsIE())
{jQuery(this).parents().each(function()
{var p=jQuery(this);var pos=p.css("position");if(pos=="relative"||pos=="absolute"||pos=="fixed")
{p.hover(function(){jQuery(this).addClass("on-top");},function(){jQuery(this).removeClass("on-top");});}});}});};$(document).ready(function(){jQuery().externalLinks();});function IsIE()
{if(navigator.userAgent.match(/MSIE \d\.\d+/))
return true;return false;}
function IsIE8()
{if(/MSIE (\d+\.\d+);/.test(navigator.userAgent))
{var ieversion=new Number(RegExp.$1);if(ieversion>=7)
return true;}
return false;}
function IsIPhone()
{return navigator.userAgent.match(/iPhone/i)!=null;}
function IsIPad()
{return navigator.userAgent.match(/iPad/i)!=null;}
function IsAndroid()
{return navigator.userAgent.match(/Android/i)!=null;}
