/*
CSS Browser Selector v0.3.1
Rafael Lima (http://rafael.adm.br)
http://rafael.adm.br/css_browser_selector
License: http://creativecommons.org/licenses/by/2.5/
Contributors: http://rafael.adm.br/css_browser_selector#contributors
*/
function css_browser_selector(u){var ua = u.toLowerCase(),is=function(t){return ua.indexOf(t)>-1;},g='gecko',w='webkit',s='safari',h=document.getElementsByTagName('html')[0],b=[(!(/opera|webtv/i.test(ua))&&/msie\s(\d)/.test(ua))?('ie ie'+RegExp.$1):is('firefox/2')?g+' ff2':is('firefox/3')?g+' ff3':is('gecko/')?g:/opera(\s|\/)(\d+)/.test(ua)?'opera opera'+RegExp.$2:is('konqueror')?'konqueror':is('chrome')?w+' '+s+' chrome':is('applewebkit/')?w+' '+s+(/version\/(\d+)/.test(ua)?' '+s+RegExp.$1:''):is('mozilla/')?g:'',is('j2me')?'mobile':is('iphone')?'iphone':is('ipod')?'ipod':is('mac')?'mac':is('darwin')?'mac':is('webtv')?'webtv':is('win')?'win':is('freebsd')?'freebsd':(is('x11')||is('linux'))?'linux':'','js']; c = b.join(' '); h.className += ' '+c; return c;}; css_browser_selector(navigator.userAgent);


$(document).ready(function(){
	$('#options_container').before(''+
	'<div id="alertbar" style="position:relative; width:100%; height:18px; background:#ffca0a url(../../../images/global/alertbar.gif) repeat-x 0 0; text-align:center; font:bold 0.75em/1.7em arial,verdana,sans-serif">'+
	'	This is a sample Web Site template that is available from <a href="http://contractorwebsitesusa.com/" target="_blank">Contractor Websites USA</a>. All contents copyright Contractor Websites USA.'+
	'	<a href="#" id="alertbar_close" style="position:absolute; top:0; right:0px; display:block; width:22px; height:18px; text-indent:-9999px; background:transparent url(../../../images/global/alertbar-close.gif) no-repeat 0 50%; ">close</a>'+
	'</div>');
	$("a#alertbar_close").click(function(){
		$("#alertbar").slideToggle("slow");
		return false;
	});
});


/*
============================================================
Script:    Basic No-Right-Click Script
Functions: Blocks right-click on mouse and shows alert box
Browsers:  NS & IE 4.0 & later; degrades gracefully
Author:    etLux
============================================================
// (C) 2003 CodeLifter.com
// Source: CodeLifter.com
// Do not remove this header
*/
// Set the message for the alert box
am = "This function is disabled!";

// do not edit below this line
// ===========================
bV  = parseInt(navigator.appVersion)
bNS = navigator.appName=="Netscape"
bIE = navigator.appName=="Microsoft Internet Explorer"

function nrc(e) {
   if (bNS && e.which > 1){
      alert(am)
      return false
   } else if (bIE && (event.button >1)) {
     alert(am)
     return false;
   }
}

document.onmousedown = nrc;
if (document.layers) window.captureEvents(Event.MOUSEDOWN);
if (bNS && bV<5) window.onmousedown = nrc;



