document.write('<style type="text/css">');
document.write('.cam_91 {');
document.write('font-size:12 px;');
document.write('}');
document.write('.cam_91  table{');
document.write('font-size:12 px;');
document.write('border:1 px solid #000000;');
document.write('background-color:transparent;');
document.write('}');
document.write('.cam_91  td.text{');
document.write('text-align:center;');
document.write('font-weight:bold;');
document.write('width:136 px;}');
document.write('.cam_91  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:#FF0000;');
document.write('background-color:transparent;text-decoration:none;');
document.write('}');
document.write('.cam_91  td#img{');
document.write('height:102 px;width:136 px;');
document.write('}');
document.write('.cam_91  td#show{');
document.write('text-align:center;');
document.write('}');
document.write('.cam_91  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: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>');
document.write('<style type=\'text/css\'>');
document.write('.layertd{');
document.write('padding-left:1 px;background-color:#000000;padding-right:1 px;');
document.write('}');
document.write('.layerDiv_91 {');
document.write('height:1px;width:1px;background-color:transparent;}');
document.write('.layerTable_91 {');
document.write('vertical-align:top;margin:0px;padding:0px;');
document.write('background-color:transparent;border:1 px solid #FF6633;');
document.write('height:323;width:143;');
document.write('}');
document.write('.layerText_91 {');
document.write('background-color:#000000;cursor:default;padding-left:3px;');
document.write('font-family:arial;color:#FFFFFF;');
document.write('font-size:12 px;text-align:left;');
document.write('width:123px;padding-right:2px;');
document.write('}');
document.write('.layerImg_91 {');
document.write('background-color:#000000;cursor:pointer;');
document.write('vertical-align:top;padding:2px;');
document.write('width:10px; height: 10px;border:0px solid #000000;');
document.write('}');
document.write('img#layer_91 {');
document.write('background-color:#000000;');
document.write('width:10px; height:10px;padding:2px;');
document.write('}');
document.write('.button_91 {');
document.write('padding-bottom:2px;padding-left:2px;background-color:#C0C0C0;border:1px solid #000000;');
document.write('font-size:10.8;vertical-align:middle;font-family:arial;color:#000000;}');
document.write('.handyclip_91 {');
document.write('}');
document.write('.handyclip_91{');
document.write('font-size:16 px;vertical-align:middle;text-align:center;');
document.write('font-family:arial;color:#FFFFFF;');
document.write('background-color:#000000;');
document.write('}');
document.write('}');
document.write('</style>');
var showlist_91 = new Array();
showlist_91.push(new show(0, 'ANGIE27', 'Ich bin eine S&uuml;nde wert, zwinker. Hast du Lust dich auch real verw&ouml;hnen zu las...', 1, 'http://mm.777partner.com/images/1027400_137x102.jpg', 0, 0, 'A61880', 'http://mm.777partner.com/images/1013299_137x102.jpg'));
showlist_91.push(new show(0, 'luciegirl', 'Manchmal, wenn mein Freund ausser Haus ist, da packt mich die Lust, und ich nehm...', 1, 'http://mm.777partner.com/images/1019522_137x102.jpg', 0, 0, 'A61880', 'http://mm.777partner.com/images/1019523_137x102.jpg'));
showlist_91.push(new show(0, 'reifes Loch', 'Bin f&uuml;r alles offen und st&auml;ndig geil. Ich brauche es oft lang und hart. Auch m...', 1, 'http://mm.777partner.com/images/1018522_137x102.jpg', 0, 0, 'A61880', 'http://mm.777partner.com/images/1018523_137x102.jpg'));

			//var $querystring = '&stid=w5_' + camid + 'm&id=A61880&l=&l=redrose&h=on&nohead=0';
			var colspan = 2;
			var col = 1;
			var showshow_91 = 0;
			var showtext_91 = 0;
			var geoipset_91 = 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_91(camid, camname){
				if(camname == undefined){
					camname = 'unnamed';
				}
				mypage  = 'http://www.777livecams.com/?menuid=handyclips&show=';
				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=A61880&menuid=gallery&camid=' + camid));
				// chat
				mypage += '&targeturl=' + escape(Base64.encode('index.php?id=A61880&showchat=' + camid));
				mypage += '&stid=handyclip_'  + camid + '&id=A61880&l=redrose&h=on&nohead=0';
				myname 	 = '_blank';
				winprops = 'top=0,left=0,height=' + screen.width + ',width=' + screen.height +  ',scrollbars=yes,status=yes,location=yes,menubar=yes,resizable=yes,toolbar=yes';
				// 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:142px;border:0px solid #FFFFFF;">');
										document.write('<table cellspacing="0" cellpadding="0" border="0" style="border:1px solid #FF6633;background-color:transparent;">');document.write('<tr><td colspan="1">');
document.write('<div ');
document.write(' height="32"');
document.write(' style="font-size:16px;');
document.write('text-align:center;');
document.write('font-family:arial;');
document.write('height:32 px;');
document.write('background-color:#000000;');
document.write('border:#FF0000 0px solid;');
document.write('width:100%;');
document.write('color:#FFFFFF; ');
document.write('padding-top:5px; ');
document.write('padding-bottom:5px;" ');
document.write('padding-left:0px;" ');
document.write('padding-right:0px;" ');
document.write('>');
document.write('Exchange sexy phone clips with your friends');
document.write('</div>');
document.write('</tr></td>');

			document.write('<tr><td colspan="1" style="border:0px solid #FF0000;width:141px;">');
			document.write('<table border="0" cellpadding="0" align="center" cellspacing="0" width="100%">');
			for (var i = 0; i < showlist_91.length; i++) {
				if(u == 0)document.write('<tr>');
				document.write('<td align="center" style="border:0px yellow solid;">');
				document.write('<div class="cam_91" style="margin:3 px;">');
				document.write('<table border="0" cellpadding="0" cellspacing="0" style="margin:2 px;background-color:transparent;border:1px solid #000000;">');
				// text anzeigen 
				if(showtext_91 != 0){
					document.write('<tr>');
					document.write('<td class="text" ');
					document.write(' title="now live online!!">');
					document.write('<a id="text" onclick="openSetcardLink_91(' + showlist_91[i].id + ', \'' + showlist_91[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_91(' + showlist_91[i].id + ', \'' + showlist_91[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_91[i].previewurl + '"');
				document.write('alt="' + showlist_91[i].name + ' (' + showlist_91[i].id + ')" onmouseover="changePreviewImg(this, \'' + showlist_91[i].changepreviewurl + '\');" onmouseout="changePreviewImg(this, \'' + showlist_91[i].previewurl + '\');" />');
					// sendsound einblenden wenn show es anbietet
					if(showlist_91[i].sendsound === 1){
						document.write('<img class="overlay" style="border:0px;background-color:transparent;width:21px;height:17 px;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_91[i].cam2cam === 1){
						document.write('<img class="overlay" style="border:0px;background-color:transparent;width:20px;height:17 px;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('<img class="overlay" style="border:0px;background-color:transparent;width:30px;height:22 px;position:absolute;left:103px;top:49px;" src="http://mm.777partner.com/grafik/handyclip.gif" ');
						document.write(' alt="handyclip" title="get a hot clip from ' + showlist_91[i].name + ' for your mobile phone" border="0" />');
					
				document.write('</a>');
				document.write('</div>');
				document.write('</td>');
				document.write('</tr>');
				
				// shownamen anzeigen
				if(showshow_91 != 0){
					document.write('<tr>');
					document.write('<td id="show">');
					document.write('<a id="show" onclick="openSetcardLink_91(' + showlist_91[i].id + ', \'' + showlist_91[i].name + '\');" href="javascript:void(0);"');
					document.write(' title="more infos" ');
					document.write(' style="font-size:12px;">');
					document.write(showlist_91[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>');