// JavaScript Document
$(document).ready(function(){
        if(location.host == "fitfetishclips.com"){
            jQuery("a[href^='http:']").not("[href*='fitfetishclips.com']").attr('rel','external nofollow');
        }else if(location.host == "store.fitfetishclips.com"){
            jQuery("a[href^='http:']").not("[href*='store.fitfetishclips.com']").attr('rel','external nofollow');
        }else if(location.host == "blog.fitfetishclips.com"){
            jQuery("a[href^='http:']").not("[href*='blog.fitfetishclips.com']").attr('rel','external nofollow');
        }else if(location.host == "teststore.fitfetishclips.com"){
            jQuery("a[href^='http:']").not("[href*='teststore.fitfetishclips.com']").attr('rel','external nofollow');
        }else{
            jQuery("a[href^='http:']").not("[href*='fitfetishclips.net']").attr('rel','external nofollow');
        }
        
	$('a[rel="external"]').attr('target', '_blank');
        $('a[rel="external nofollow"]').attr('target', '_blank');
        $('a[rel="visit store"]').attr('target', '_blank');



        if(window.opera) {
		if ($(".outer-right a").attr("rel") != ""){ // don't overwrite the rel attrib if already set
			$(".outer-right a").attr("rel","sidebar");
		}
	}

	$(".outer-right a").click(function(event){
		event.preventDefault(); // prevent the anchor tag from sending the user off to the link
		var url = this.href;
		var title = this.title;

		if (window.sidebar) { // Mozilla Firefox Bookmark
			window.sidebar.addPanel(title, url,"");
		} else if( window.external ) { // IE Favorite
			window.external.AddFavorite( url, title);
		} else if(window.opera) { // Opera 7+
			return false; // do nothing - the rel="sidebar" should do the trick
		} else { // for Safari, Konq etc - browsers who do not support bookmarking scripts (that i could find anyway)
			 alert('Unfortunately, this browser does not support the requested action,'
			 + ' please bookmark this page manually.');
		}

	});
});

