addthis_pub = 'Meo';
addthis_brand = 'Tranny Clips';
addthis_options = 'google, twitter, favorites, live, facebook, reddit, delicious, technorati, myspace, more';

if (parent.frames.length > 0) top.location.replace(document.location);

function gallery_status () {
var F=document.links;

for (i = 0; i < F.length; i++) {
 urlStart=F[i].href.lastIndexOf("http://");
 if ( ((F[i].name.length > 0) || (urlStart != -1)) && (!F[i].realurl) ) { 
	F[i].realurl = F[i].href;
	if ( F[i].name.length == 0 ) {
	 urlLen=F[i].href.length;
	 urlString=F[i].href.substring(urlStart,urlLen);
	 if ( urlString.indexOf("?") > -1) {
	 	urlString = urlString.substring(0,urlString.indexOf("?")); } 
	 if ( urlString.indexOf("&") > -1) {
		urlString = urlString.substring(0,urlString.indexOf("&")); } 
	 F[i].name=urlString;
	}
	F[i].href=F[i].name;
	F[i].onclick = s1; 
	F[i].onmouseup = s0; 
	F[i].onmouseout = s0; 
	F[i].onblur = s0; 
 }
}
}

function s1 () { 
  this.href=this.realurl;
} 

function s0 () { 
  this.href=this.name;
} 

function addBookmark() {
	var url='http://www.tsflix.com/';
	var title='TS Flix - Transsexual Movie Gallery Post';
        if (window.sidebar) { // firefox
        	window.sidebar.addPanel(title, url,"");
        } else if( document.all ) { //MSIE
                window.external.AddFavorite( url, title);
        } else if(window.opera && window.print) { // Opera Hotlist
		var dcE = document.createElement('a');
		dcE.setAttribute('rel','sidebar');
		dcE.setAttribute('href',url);
		dcE.setAttribute('title',title);
		dcE.click();
	}

}

function imlive_reposition() {
 var imlivediv = document.getElementById("slide_up");
 if (imlivediv) {
	imlivetop = (document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop);
	imlivetop += (document.documentElement.clientHeight ? document.documentElement.clientHeight : document.body.clientHeight);
	imlivetop -= (imlivediv.clientHeight + 2);
	imlivediv.style.top = imlivetop + "px";
 }
}
