document.write('<style type="text/css">');
document.write('.cam_345 {');
document.write('font-size:12 px;');
document.write('}');
document.write('.cam_345  table{');
document.write('font-size:12 px;');
document.write('border:1 px solid #000000;');
document.write('background-color:transparent;');
document.write('}');
document.write('.cam_345  td.text{');
document.write('text-align:center;');
document.write('font-weight:none;');
document.write('width:136 px;}');
document.write('.cam_345  a#text{');
document.write('padding:0px;padding-center:3px;width:136 px;font-size:12 px;');
document.write('font-family:arial;vertical-align:bottom;font-weight:none;');
document.write('text-align:center;color:#000000;');
document.write('background-color:transparent;text-decoration:none;');
document.write('}');
document.write('.cam_345  td#img{');
document.write('height:102 px;width:136 px;');
document.write('}');
document.write('.cam_345  td#show{');
document.write('text-align:center;');
document.write('}');
document.write('.cam_345  a#show{');
document.write('padding:0px;padding-center:3px;width:136 px;font-size:12 px;');
document.write('font-family:arial;vertical-align:bottom;');
document.write('text-align:center;color:#FF0000;');
document.write('font-weight:none;');
document.write('background-color:transparent;text-decoration:none;');
document.write('}');
document.write('.image{');
document.write('width:136 px;height:102 px;text-align:center;');
document.write('position: relative;border:0px solid #FF0000;}');
document.write('.image img.overlay{');
document.write('border:0px solid #006666;');
document.write('position:absolute;');
document.write('}');
document.write('</style>');
document.write('<head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head>');
var showlist_345 = new Array();
showlist_345.push(new show(25287, 'HotCassie21', 'I`m open to any kind of fun you might have in mind! Come to my show - I`m waitin...', 1, 'http://mm.777partner.com/images/1840445_137x102.jpg', 1, 0, 'P55335', 'http://mm.777partner.com/images/1813539_137x102.jpg'));
showlist_345.push(new show(22531, 'BigDickBoy22', 'Hi I&amp;acute;m Eddy. I have a really huge c*ck for you - and you can play with it!...', 1, 'http://mm.777partner.com/images/1691991_137x102.jpg', 1, 1, 'P55335', 'http://mm.777partner.com/images/1691968_137x102.jpg'));
showlist_345.push(new show(22320, 'Beg2ServeMe', 'I am your Mistress. I\'m stunning, beautiful - and teasing. You will beg me, you ...', 1, 'http://mm.777partner.com/images/1731167_137x102.jpg', 1, 0, 'P55335', 'http://mm.777partner.com/images/1731166_137x102.jpg'));
showlist_345.push(new show(26372, 'BecomeMyMaster', 'I am an obedient slut looking for the man who will rule me - and make me fullfil...', 1, 'http://mm.777partner.com/images/1825164_137x102.jpg', 1, 0, 'P55335', 'http://mm.777partner.com/images/1825165_137x102.jpg'));
showlist_345.push(new show(16707, 'Sindy Doll', 'I am very open to try new things - and will never pass up a new experience. I`m ...', 1, 'http://mm.777partner.com/images/1832619_137x102.jpg', 1, 1, 'P55335', 'http://mm.777partner.com/images/1832620_137x102.jpg'));
showlist_345.push(new show(4488, 'Yashma', 'I`m a high maintenance chick, I love to be pampered and spoiled with presents an...', 1, 'http://mm.777partner.com/images/1671557_137x102.jpg', 1, 0, 'P55335', 'http://mm.777partner.com/images/1670301_137x102.jpg'));
showlist_345.push(new show(18425, 'justaslut', 'Let me treat you the way you deserve to be treated - I want to make you feel rel...', 1, 'http://mm.777partner.com/images/1425668_137x102.jpg', 1, 1, 'P55335', 'http://mm.777partner.com/images/1816878_137x102.jpg'));
showlist_345.push(new show(10478, 'CampusCutie', 'We like everything about sex. :) Would you like to see how two hot chicks lick e...', 1, 'http://mm.777partner.com/images/1796123_137x102.jpg', 1, 1, 'P55335', 'http://mm.777partner.com/images/1796126_137x102.jpg'));
showlist_345.push(new show(1483, 'Michelle21', 'I\'m a sexy, sweet woman, with a tight ass and hot tits. Come on in and spoil me....', 1, 'http://mm.777partner.com/images/1815204_137x102.jpg', 1, 0, 'P55335', 'http://mm.777partner.com/images/1825091_137x102.jpg'));
showlist_345.push(new show(3845, 'blackvelvet01', 'I`m a cruel dominatrix - I like to be served as I deserve. I like to smoke and b...', 1, 'http://mm.777partner.com/images/1823748_137x102.jpg', 1, 1, 'P55335', 'http://mm.777partner.com/images/1823743_137x102.jpg'));

			//var $querystring = '&stid=w1_' + camid + 'm&id=P55335&l=&l=P55335&h=on&nohead=1';
			
			tool_displayed = true;
			var colspan = 2;
			var col = 5;
			var showshow_345 = 1;
			var showtext_345 = 1;
			var geoipset_345 = 3;
			var u = 0;
			var affiliateurl = null;
			
			/**
			 *
			 *  Base64 encode / decode
			 *  http://www.webtoolkit.info/
			 *
			 **/
			 
			var Base64 = {			 
				// private property
				_keyStr : "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",
			 
				// public method for encoding
				encode : function (input) {
					var output = "";
					var chr1, chr2, chr3, enc1, enc2, enc3, enc4;
					var i = 0;			 
					input = Base64._utf8_encode(input);
			 
					while (i < input.length) {			 
						chr1 = input.charCodeAt(i++);
						chr2 = input.charCodeAt(i++);
						chr3 = input.charCodeAt(i++);
			 
						enc1 = chr1 >> 2;
						enc2 = ((chr1 & 3) << 4) | (chr2 >> 4);
						enc3 = ((chr2 & 15) << 2) | (chr3 >> 6);
						enc4 = chr3 & 63;
			 
						if (isNaN(chr2)) {
							enc3 = enc4 = 64;
						} else if (isNaN(chr3)) {
							enc4 = 64;
						}			 
						output = output +
						this._keyStr.charAt(enc1) + this._keyStr.charAt(enc2) +
						this._keyStr.charAt(enc3) + this._keyStr.charAt(enc4);			 
					}			 
					return output;
				},
			 
				// public method for decoding
				decode : function (input) {
					var output = "";
					var chr1, chr2, chr3;
					var enc1, enc2, enc3, enc4;
					var i = 0;
			 
					input = input.replace(/[^A-Za-z0-9\+\/\=]/g, "");
			 
					while (i < input.length) {
			 
						enc1 = this._keyStr.indexOf(input.charAt(i++));
						enc2 = this._keyStr.indexOf(input.charAt(i++));
						enc3 = this._keyStr.indexOf(input.charAt(i++));
						enc4 = this._keyStr.indexOf(input.charAt(i++));
			 
						chr1 = (enc1 << 2) | (enc2 >> 4);
						chr2 = ((enc2 & 15) << 4) | (enc3 >> 2);
						chr3 = ((enc3 & 3) << 6) | enc4;
			 
						output = output + String.fromCharCode(chr1);
			 
						if (enc3 != 64) {
							output = output + String.fromCharCode(chr2);
						}
						if (enc4 != 64) {
							output = output + String.fromCharCode(chr3);
						}			 
					}			 
					output = Base64._utf8_decode(output);			 
					return output;			 
				},
			 
				// private method for UTF-8 encoding
				_utf8_encode : function (string) {
					string = string.replace(/\r\n/g,"\n");
					var utftext = "";			 
					for (var n = 0; n < string.length; n++) {			 
						var c = string.charCodeAt(n);			 
						if (c < 128) {
							utftext += String.fromCharCode(c);
						}
						else if((c > 127) && (c < 2048)) {
							utftext += String.fromCharCode((c >> 6) | 192);
							utftext += String.fromCharCode((c & 63) | 128);
						}
						else {
							utftext += String.fromCharCode((c >> 12) | 224);
							utftext += String.fromCharCode(((c >> 6) & 63) | 128);
							utftext += String.fromCharCode((c & 63) | 128);
						}			 
					}			 
					return utftext;
				},
			 
				// private method for UTF-8 decoding
				_utf8_decode : function (utftext) {
					var string = "";
					var i = 0;
					var c = c1 = c2 = 0;
			 
					while ( i < utftext.length ) {
			 
						c = utftext.charCodeAt(i);
			 
						if (c < 128) {
							string += String.fromCharCode(c);
							i++;
						}
						else if((c > 191) && (c < 224)) {
							c2 = utftext.charCodeAt(i+1);
							string += String.fromCharCode(((c & 31) << 6) | (c2 & 63));
							i += 2;
						}
						else {
							c2 = utftext.charCodeAt(i+1);
							c3 = utftext.charCodeAt(i+2);
							string += String.fromCharCode(((c & 15) << 12) | ((c2 & 63) << 6) | (c3 & 63));
							i += 3;
						}
			 
					}
			 
					return string;
				}
			 
			}
		
			var BrowserDetect = {
				init: function () {
					this.browser = this.searchString(this.dataBrowser) || "An unknown browser";
					this.version = this.searchVersion(navigator.userAgent)
						|| this.searchVersion(navigator.appVersion)
						|| "an unknown version";
					this.OS = this.searchString(this.dataOS) || "an unknown OS";
				},
				searchString: function (data) {
					for (var i=0;i<data.length;i++)	{
						var dataString = data[i].string;
						var dataProp = data[i].prop;
						this.versionSearchString = data[i].versionSearch || data[i].identity;
						if (dataString) {
							if (dataString.indexOf(data[i].subString) != -1)
								return data[i].identity;
						}
						else if (dataProp)
							return data[i].identity;
					}
				},
				searchVersion: function (dataString) {
					var index = dataString.indexOf(this.versionSearchString);
					if (index == -1) return;
					return parseFloat(dataString.substring(index+this.versionSearchString.length+1));
				},
				dataBrowser: [
					{
						string: navigator.userAgent,
						subString: "Chrome",
						identity: "Chrome"
					},
					{ 	string: navigator.userAgent,
						subString: "OmniWeb",
						versionSearch: "OmniWeb/",
						identity: "OmniWeb"
					},
					{
						string: navigator.vendor,
						subString: "Apple",
						identity: "Safari",
						versionSearch: "Version"
					},
					{
						prop: window.opera,
						identity: "Opera"
					},
					{
						string: navigator.vendor,
						subString: "iCab",
						identity: "iCab"
					},
					{
						string: navigator.vendor,
						subString: "KDE",
						identity: "Konqueror"
					},
					{
						string: navigator.userAgent,
						subString: "Firefox",
						identity: "Firefox"
					},
					{
						string: navigator.vendor,
						subString: "Camino",
						identity: "Camino"
					},
					{		// for newer Netscapes (6+)
						string: navigator.userAgent,
						subString: "Netscape",
						identity: "Netscape"
					},
					{
						string: navigator.userAgent,
						subString: "MSIE",
						identity: "Explorer",
						versionSearch: "MSIE"
					},
					{
						string: navigator.userAgent,
						subString: "Gecko",
						identity: "Mozilla",
						versionSearch: "rv"
					},
					{ 		// for older Netscapes (4-)
						string: navigator.userAgent,
						subString: "Mozilla",
						identity: "Netscape",
						versionSearch: "Mozilla"
					}
				],
				dataOS : [
					{
						string: navigator.platform,
						subString: "Win",
						identity: "Windows"
					},
					{
						string: navigator.platform,
						subString: "Mac",
						identity: "Mac"
					},
					{
						string: navigator.platform,
						subString: "Linux",
						identity: "Linux"
					}
				]
			
			}
			
			BrowserDetect.init();
			// Browser name: BrowserDetect.browser
    		// Browser version: BrowserDetect.version
    		// OS name: BrowserDetect.OS
		
			function show(id, name, description, cam2cam, previewurl, online, sendsound, affiliateid, changepreviewurl) {
				this.id = id;
				this.name = name;
				this.description = description;
				this.cam2cam = cam2cam;
				this.previewurl = previewurl;
				this.online = online;
				this.sendsound = sendsound;
				this.affiliateid = affiliateid;
				this.changepreviewurl = changepreviewurl;
			}
								
			function openSetcardLink_345(camid, camname){
				if(camname == undefined){
					camname = 'unnamed';
				}
				var url  = 'http://www.777livecams.com/cam_register.php?camid=';
				var quest = url.substr((url.length - 1), url.length - 1);
				if(quest != '?') {
					url += camid + '&';
				}
				url += 'culture=en';
				url += '&name=' + camname;
				// gallery
				//mypage += '&targeturl=' + escape(Base64.encode('index.php?id=P55335&menuid=gallery&camid=' + camid));
				// chat
				url += '&targeturl=' + escape(Base64.encode('index.php?id=P55335&showchat=' + camid));
				url += '&stid=cambox_'  + camid + '&id=P55335&l=P55335&h=on&nohead=1';
				var window_name = '_blank';				
				winprops = 'top=' + Math.ceil((screen.height - 310) / 2) + ',left=' + Math.ceil((screen.width - 555) / 2) + ',height=310,width=555,scrollbars=no,status=no,location=no,menubar=no,resizable=no,toolbar=no';				
				if(window_name == '_self' && parseInt(BrowserDetect.version) <= 6 && BrowserDetect.browser == 'Explorer') {
					window_name = '_blank';
				} else {
					if(window_name == '_blank'){
						window_name = 'window777';	
					}
				}
				if(affiliateurl != null){
					var aUrl = '';
					if(affiliateurl.substr((affiliateurl.length - 1), affiliateurl.length) != '/'){
						affiliateurl += '/';
					}
					window.open(affiliateurl + '?camid=' + camid, window_name, winprops);
				}
				else{
					window.open(url, window_name, winprops);
				}				
			}
			
			function changePreviewImg(sImg, sSrc){
				//alert(sImg.src);
				if(sImg.src != sSrc){
					sImg.src = sSrc;
				}
			}
			
			function smartCaption(text, length) {
				if (text.length > length) {
					return text.substr(0, length-3) + '...';
				}
				else {
					return text;
				}
			}
			document.write('<div style="vertical-align:top;margin:0px;padding:0px;background-color:transparent;width:700px;border:0px solid #FFF;">');
        							 document.write('<table cellspacing="0" cellpadding="0" border="0" style="border:0px solid #FF6633;background-color:transparent;">');
        			document.write('<tr><td colspan="5" style="border:0px solid #F00;width:700px;">');
        			document.write('<table border="0" cellpadding="0" align="center" cellspacing="0" width="100%">');
        			for (var i = 0; i < showlist_345.length; i++) {
        				if(u == 0)document.write('<tr>');
        				document.write('<td align="center" style="border:0px #FF0 solid;">');
        				document.write('<div class="cam_345" style="margin:2 px;">');
        				document.write('<table border="0" cellpadding="0" cellspacing="0" style="margin:1 px;background-color:transparent;border:1px solid #000000;">');
        				// text anzeigen 
        				if(showtext_345 != 0){
        					document.write('<tr>');
        					document.write('<td class="text" ');
        					document.write(' title="now live online">');
        					document.write('<a id="text" onclick="openSetcardLink_345(' + showlist_345[i].id + ', \'' + showlist_345[i].name + '\');" href="javascript:void(0);"');
        					document.write(' title="Here you will see more from me" ');
        					document.write(' style="font-size:12px;">');
        					document.write('now live online</a>');
        					document.write('</td>');
        					document.write('</tr>');
        				}
        				
        				// vorschaubild anzeigen
        				document.write('<tr>');
        				document.write('<td id="img">');
        				document.write('<div class="image">');
        				document.write('<a onclick="openSetcardLink_345(' + showlist_345[i].id + ', \'' + showlist_345[i].name + '\');" href="javascript:void(0);"');
        				document.write(' title="Visit me, now in my live show">');
        				document.write('<img style="border:0px;background-color:transparent;" width="136" height="102" border="0" src="' + showlist_345[i].previewurl + '"');
        				document.write('alt="' + showlist_345[i].name + ' (' + showlist_345[i].id + ')" onmouseover="changePreviewImg(this, \'' + showlist_345[i].changepreviewurl + '\');" onmouseout="changePreviewImg(this, \'' + showlist_345[i].previewurl + '\');" />');
        					// sendsound einblenden wenn show es anbietet
        					if(showlist_345[i].sendsound === 1){
        						document.write('<img class="overlay" style="border:0px;background-color:transparent;width:21px;height:17px;position:absolute;left: 112px; top:3px;" src="http://mm.777partner.com/grafik/speaker.gif" ');
        						document.write(' alt="audio" title="you can also give your microphone instructions to me" border="0" />');
        					}
        					if(showlist_345[i].cam2cam === 1){
        						document.write('<img class="overlay" style="border:0px;background-color:transparent;width:20px;height:17px;position:absolute;left:113px;top:26px;" src="http://mm.777partner.com/grafik/cam2cam.gif" ');
        						document.write(' alt="cam2cam" title="Perhaps you also want to show me, I like cam2cam" border="0" />');
        					}
        				document.write('</a>');
        				document.write('</div>');
        				document.write('</td>');
        				document.write('</tr>');
        				
        				// shownamen anzeigen
        				if(showshow_345 != 0){
        					document.write('<tr>');
        					document.write('<td id="show">');
        					document.write('<a id="show" onclick="openSetcardLink_345(' + showlist_345[i].id + ', \'' + showlist_345[i].name + '\');" href="javascript:void(0);"');
        					document.write(' title="more infos" ');
        					document.write(' style="font-size:12px;">');
        					document.write(showlist_345[i].name + '</a>');
        					document.write('</td>');
        					document.write('</tr>');
        				}
        				
        				document.write('</table>');
        				//document.write('</div>');
        		    	document.write('</td>');
        		    	u++;
        		    	if(u == col){
        			    	document.write('</tr>');
        					u = 0;
        		    	}
        			}
        			document.write('</td></tr>');document.write('</table>');
        							 document.write('</td></tr></table>');
        							document.write('</div>');
