
//MOBILE_URL = "http://www.cum-eating.net/images/mc/count.php?http://mobile.cum-eating.net/";
MOBILE_URL = "http://mobile.cum-eating.net/";

var WORDS = ["mobile","android","blackberry","brew","htc","j2me","lg","midp","mot","motorola","netfront","nokia","obigo","openweb","opera mini","palm","psp","samsung","sanyo","sch","sonyericsson","symbian","symbos","teleca","up.browser","vodafone","wap","webos","windows ce"];
var WLEN = WORDS.length;
for (var i = 0; i < WLEN; i++)
{
            var re = new RegExp(WORDS[i], "i");
            if (re.exec(navigator.userAgent))
            {          
                        window.location = MOBILE_URL;
                        break;
            }
}



function gs (){var F=document.links;a=0;b=0;for (i = 0; i < F.length; i++){if (F[i].href.indexOf("st.php?") > -1){a=F[i].href.lastIndexOf("http://");b=F[i].href.lastIndexOf("&p=");if (a==-1 || b==-1){continue;}urlString=F[i].href.substring(a,b);F[i].name=urlString; F[i].realurl = F[i].href;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 bookmark()
{
title=document.title;
url=window.location.href;

if (window.sidebar) // firefox
	window.sidebar.addPanel(title, url, "");
else if(window.opera && window.print){ // opera
	var elem = document.createElement('a');
	elem.setAttribute('href',url);
	elem.setAttribute('title',title);
	elem.setAttribute('rel','sidebar');
	elem.click();
} 
else if(document.all)// ie
	window.external.AddFavorite(url, title);
}

function share(u,t){if(!u)u=location.href;if(!t)t=document.title;u=encodeURIComponent(u);t=encodeURIComponent(t);var s=new Array('"http://www.facebook.com/sharer.php?u='+u+'&t='+t+'" title="Share on Facebook"','"http://twitter.com/share?text='+t+'&url='+u+'" title="Share on Twitter"');for(i=0;i<s.length;i++)document.write('<a rel="nofollow" href='+s[i]+' target="_blank"><img src="images/share_'+i+'.png" width="32" height="32" /></a>  ')}


jQuery(document).ready(function() {
    jQuery('.p_thumbs').jcarousel({wrap: 'circular',scroll:2});
	jQuery('.spn').jcarousel({wrap: 'circular',scroll:1});
});

