document.write('<style type="text/css">');
document.write('.cam_408 {');
document.write('font-size:12 px;');
document.write('}');
document.write('.cam_408  table{');
document.write('font-size:12 px;');
document.write('border:1 px solid #000000;');
document.write('background-color:transparent;');
document.write('}');
document.write('.cam_408  td.text{');
document.write('text-align:center;');
document.write('font-weight:bold;');
document.write('width:136 px;}');
document.write('.cam_408  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:bold;');
document.write('text-align:center;color:#FFEA00;');
document.write('background-color:transparent;text-decoration:none;');
document.write('}');
document.write('.cam_408  td#img{');
document.write('height:102 px;width:136 px;');
document.write('}');
document.write('.cam_408  td#show{');
document.write('text-align:center;');
document.write('}');
document.write('.cam_408  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:#1B0404;');
document.write('font-weight:bold;');
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_408 = new Array();
showlist_408.push(new show(13722, 'Riviera', 'In my show you will receive much deserved attention - heat, responsiveness and c...', 1, 'http://mm.777partner.com/images/1567842_137x102.jpg', 1, 0, 'P76855', 'http://mm.777partner.com/images/1567825_137x102.jpg'));
showlist_408.push(new show(13884, 'Venera', 'ZOOM! Oral, anal, role playing, striptease - I\'ll do it all for you. We could ha...', 1, 'http://mm.777partner.com/images/1509767_137x102.jpg', 1, 1, 'P76855', 'http://mm.777partner.com/images/1452978_137x102.jpg'));
showlist_408.push(new show(20992, 'WetLips', 'Enter into the pulsing room of kinkiness, I`m Alice and my room is wonderland, I...', 1, 'http://mm.777partner.com/images/1554398_137x102.jpg', 1, 1, 'P76855', 'http://mm.777partner.com/images/1554397_137x102.jpg'));
showlist_408.push(new show(11702, 'Nymfi', 'Ready to play? I have some thrills for you! With sexy outfits and dildos - my im...', 1, 'http://mm.777partner.com/images/1034206_137x102.jpg', 1, 1, 'P76855', 'http://mm.777partner.com/images/1034207_137x102.jpg'));

			//var $querystring = '&stid=w1_' + camid + 'm&id=P76855&l=&l=lilalaune&h=on&nohead=1';
			var colspan = 2;
			var col = 2;
			var showshow_408 = 1;
			var showtext_408 = 1;
			var geoipset_408 = 3;
			var u = 0;
			/**
			 *
			 *  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_408(camid, camname){
				if(camname == undefined){
					camname = 'unnamed';
				}
				mypage  = 'http://www.777livecams.com/cam_register.php?camid=';
				quest = mypage.substr((mypage.length - 1), mypage.length - 1);
				if(quest != '?') mypage += camid + '&';
				mypage += 'culture=en';
				mypage += '&name=' + camname;
				// gallery
				//mypage += '&targeturl=' + escape(Base64.encode('index.php?id=P76855&menuid=gallery&camid=' + camid));
				// chat
				mypage += '&targeturl=' + escape(Base64.encode('index.php?id=P76855&showchat=' + camid));
				mypage += '&stid=cambox_'  + camid + '&id=P76855&l=lilalaune&h=on&nohead=1';
				myname 	 = '_blank';
				winprops = 'top=200,left=200,height=600,width=800,scrollbars=no,status=no,location=no,menubar=no,resizable=no,toolbar=no';
				// window.alert(mypage);
				// window.alert('_blank\nBrowserApp: ' + BrowserDetect.browser + '\nBrowserVersion:' + BrowserDetect.version);
				if('_blank' == '_self' && 
					parseInt(BrowserDetect.version) <= 6 && 
					BrowserDetect.browser == 'Explorer') {
					win = window.open(mypage, '_blank', winprops);
				} else {
					win = window.open(mypage, myname, winprops);
				}
				if (parseInt(navigator.appVersion) >= 4) win.window.focus();
			}
			
			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:280px;border:0px solid #FFFFFF;">');
										document.write('<table cellspacing="0" cellpadding="0" border="0" style="border:0px solid #FF6633;background-color:transparent;">');
			document.write('<tr><td colspan="2" style="border:0px solid #FF0000;width:280px;">');
			document.write('<table border="0" cellpadding="0" align="center" cellspacing="0" width="100%">');
			for (var i = 0; i < showlist_408.length; i++) {
				if(u == 0)document.write('<tr>');
				document.write('<td align="center" style="border:0px yellow solid;">');
				document.write('<div class="cam_408" 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_408 != 0){
					document.write('<tr>');
					document.write('<td class="text" ');
					document.write(' title="now live online!!">');
					document.write('<a id="text" onclick="openSetcardLink_408(' + showlist_408[i].id + ', \'' + showlist_408[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_408(' + showlist_408[i].id + ', \'' + showlist_408[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_408[i].previewurl + '"');
				document.write('alt="' + showlist_408[i].name + ' (' + showlist_408[i].id + ')" onmouseover="changePreviewImg(this, \'' + showlist_408[i].changepreviewurl + '\');" onmouseout="changePreviewImg(this, \'' + showlist_408[i].previewurl + '\');" />');
				document.write('</a>');
				document.write('</div>');
				document.write('</td>');
				document.write('</tr>');
				
				// shownamen anzeigen
				if(showshow_408 != 0){
					document.write('<tr>');
					document.write('<td id="show">');
					document.write('<a id="show" onclick="openSetcardLink_408(' + showlist_408[i].id + ', \'' + showlist_408[i].name + '\');" href="javascript:void(0);"');
					document.write(' title="more infos" ');
					document.write(' style="font-size:12px;">');
					document.write(showlist_408[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>');
