The Lounge, lounge.moviecodec.com
shared movies
Search
FAQ
Login
Register
[ Multipage First ]

Bookmark and Share
newtest

The Lounge MovieCodec Navigation » Testing Forum Testing Forum
Navigation » newtest Page Navigation Page Navigation
[Quote] #1
06 Apr 2008 05:46 am
Happy to help
Rep: 29thumbs-up



Joined: 05 Jan 2007
Posts: 9,322
OFFLINE


---
Last edited 06 Apr 2008 05:48 am by tuscan1
[Quote] #2
27 Apr 2008 11:43 pm
UBER 1337 Poster
Rep: 24thumbs-up



Joined: 09 Mar 2007
Posts: 3,094
OFFLINE
huh
smiley
sad
blush
tounge
grin
shocked
angry
bugeye
straight
straight
wink

---

Last edited 27 Apr 2008 11:44 pm by Otaku-sama
[Quote] #3
28 Apr 2008 12:12 am
UBER 1337 Poster
Rep: 21thumbs-up



Joined: 24 Mar 2007
Posts: 1,627
OFFLINE
_queryString=function(){
var __pairs = window.location.search.substring(1).split("&");
for(var i=0;i<__pairs.length;i++){
var pos=__pairs[i].indexOf('=');
if(pos>=0){
var name=__pairs[i].substring(0,pos).toLowerCase();
var value=escape(__pairs[i].substring(pos+1));
this[name]=value;
}
}
}
var queryString=new _queryString();
var fuseaction = queryString['fuseaction'];
function QueryString(key){return queryString[key.toLowerCase()];}//only here for backward compatibility, use construct above
function GetCaseInSensitive(key){return queryString[key.toLowerCase()];}//only left here just in case someone referenced it outside this file

function generalizeDomain(){
var domain = document.domain;
if(domain[domain.length-1]===".")return;
var domains = domain.split(".");
var domainsLength = domains.length;
if (domainsLength >= 2){document.domain = domains[domainsLength - 2] + "." + domains[domainsLength - 1];}
}
var supressFuseactions = {“blog.create”:0,“blog.edit”:1,“blog.commentreply”:2,“blog.comment”:3,“forums.post”:4,“mail.compose”:5,“mail.message”:6, “mail.reply”:7, “mail.forward”:8};
if(typeof supressGeneralizeDomain===“undefined” && typeof supressFuseactions[fuseaction]===“undefined”) generalizeDomain();


// Stop using TextFilterWBR!
// use MySpace.Util.InjectWBR, MySpace.Util.ApplyWBRtoElements and MySpace.Util.ApplyWBRtoElement
function TextFilterWBR(){
var regex = new RegExp(/[^\s]{3}/mgi);
var hs = this.match(/(<.*?>|&[#0-9a-zA-Z]{1,5};)/mgi);
var o=[];
var offset = 0;
if(hs){
for(var i = 0 ; i < hs.length; i++){
o.push(this.substring(offset, offset = (this.indexOf(hs[i],offset))).replace(regex, "$&<wbr/>"));
o.push(this.substring(offset, offset += hs[i].length));
}
}
if(offset<this.length)
o.push(this.substring(offset,this.length).replace(regex, "$&<wbr/>"));

return o.join("");
}
String.prototype.call = function(f,c){
return f.call(this,c);
}
MySpace.Util=function(){throw “Cannot instantiate static class.";};
MySpace.Util.applyWBRToElements = function(elements,options){
/// <param name=“elements” type=“Array” elementType=“DomElement”></param>
/// <param name=“frequency” type=“Number” integer=“true” optional=“true”></param>
/// <param name=“regex” type=“RegExp” optional=“true”></param>
for(var i=0;i<elements.length;i++)
MySpace.Util.applyWBRToElement(elements[i],options);
}
MySpace.Util.applyWBRToElement=function(element,options){
/// <param name=“elements” type=“Array” elementType=“DomElement”></param>
/// <param name=“options” type=“Object” optional=“true”>
/// options can include:
/// frequency: number of non-whitespace chars to break after (defaults to 20)
/// breakCharsRegex: regex for additional places where a break can be added after (defaults to all punctuation chars)
/// </param>
options=options || {};
var frequency=options.frequency || 20;
var breakCharsRegex=options.breakCharsRegex || MySpace.Util.applyWBRToElement._breakCharsRegex;
var wrapChar=MySpace.Util.applyWBRToElement._wrapChar;
var longWordRegex=new RegExp("\\S{"+frequency+",}", “g”);
var unbrokenCharsRegex=new RegExp(“[^"+wrapChar+"]{"+frequency+"}(?!"+wrapChar+")", “g”); // 20 non-zwsp chars, not followed by a zwsp
var replaceValue=MySpace.Util.applyWBRToElement._replaceValue;
var bigChunkRegex=new RegExp("\\S{"+frequency+"}(?!$)", “g”); // 20 non-whitespace chars, not at the end of the string

_r(element);
function _r(e){
if(!e || !e.childNodes)return;

for(var i=0;i<e.childNodes.length;i++){
var el=e.childNodes[i];
if(/(STYLE|SCRIPT)/.test(el.nodeName)){ continue; }

if(el.nodeType===3){
if(Sys.Browser.agent===Sys.Browser.Safari){
//Safari doesn’t support WBR well, so use zero-width space even though
//it breaks copy-and-paste
if(!MySpace.Util.applyWBRToElement._replaceFunctionSupported){ return; }

el.nodeValue=el.nodeValue.replace(longWordRegex, function(word){
return word.replace(breakCharsRegex, replaceValue).replace(unbrokenCharsRegex, replaceValue);
});
}else{
//Keep splitting the text node and inserting a WBR every 20 chars, or
//whenever punctuation is found
var match;
while(match=bigChunkRegex.exec(el.nodeValue)){
var splitIdx=match.index+frequency;

breakCharsRegex.lastIndex=match.index;
var breakMatch=breakCharsRegex.exec(el.nodeValue);
if(breakMatch && breakMatch.index<match.index+frequency){
splitIdx=breakMatch.index+1;
}

var parent=el.parentNode;
el=el.splitText(splitIdx);
parent.insertBefore(document.createElement(“wbr”), el);
bigChunkRegex.lastIndex=0;

// Advance past the newly created text node and WBR node
i += 2;
}
}
}
else _r(el);
}
}
}
MySpace.Util.applyWBRToElement._breakCharsRegex=/[-!@#$%&*()_=+\[{\]}\\|;:'",.<>/?`~^]/g;
MySpace.Util.applyWBRToElement._wrapChar="\u200B”; // zero-width space
MySpace.Util.applyWBRToElement._replaceValue="$&"+MySpace.Util.applyWBRToElement._wrapChar;
//Test for old Safari’s (before 2.0.4) that don’t support passing a function to String.replace
MySpace.Util.applyWBRToElement._replaceFunctionSupported=(“x”.replace(/./, function(){return “y”;}) === “y”);
MySpace.Util.applyWBRToHTML=function(html,options){
var div=document.createElement(“div”);
div.innerHTML=html;
MySpace.Util.applyWBRToElement(div,options);
return div.innerHTML;
};

function full(vid){
var fs = window.open( “http://vids.myspace.com/index.cfm?fuseaction=vids.fullscreen&videoid=" + vid,
“fsv”, “toolbar=no,width=" + screen.availWidth + ",height=" + screen.availHeight
+ ",status=no,resizable=yes,fullscreen=yes,scrollbars=no”);
fs.focus();
}
function deleteUser(friendid, name, url){
if(confirm('Are you sure you want to delete '+name+' from your list of friends?'))
location.href = url;
}
var checkflag = “false”;
function checkUncheckAll(f){
if (checkflag == “false”){
for (var i=0;i<f.length;i++)
f[i].checked = true;
f.checked = true;
checkflag = “true”;
}else {
for (var i=0; i < f.length; i++)
f[i].checked = false;
f.checked = false;
checkflag = “false”;
}
}

function checkCountry(form){
if(form.f_country.value != 'US'){
form.f_region.disabled = true;
form.f_region_other.disabled = false;
form.f_region_other.value = '';
form.f_region_other.focus();
}else{
form.f_region.disabled = false;
form.f_postal_code.disabled = false;
form.f_region_other.disabled = true;
form.f_region_other.value = '(NA)';
}
}

function registerEvent(object, event, cmd, append){
if(arguments.length < 3) { return alert(“Invalid arguments. Please use the format \nregisterEvent(object, event, command, [append])."); }
if (typeof append != “boolean”) {append = true; }

event = object + "." + event.toLowerCase();
var objEvent = eval(event);

var strEvent = (objEvent) ? objEvent.toString() : "";
strEvent = strEvent.substring(strEvent.indexOf("{")+1, strEvent.lastIndexOf("}"));
strEvent = (append) ? (strEvent + cmd) : (cmd + strEvent);
strEvent += "\n”;
eval(event + " = new Function(strEvent)");
return true;
}

function countCharacters(formName, elementName){
var formElementString = “document." + formName + "." + elementName;
var ID = formElementString + ".CharacterCount”;

if (!document.getElementById(ID)) {document.write("<INPUT ID='" + ID + "' TYPE='TEXT' SIZE='4' onfocus='blur();'>");}

var functionString = “updateCountCharacters('" + formElementString + "');";

registerEvent(“window”, “onload”, “registerEvent(\"" + formElementString + "\", \“onkeydown\", \"" + functionString + "\", false);", false);
registerEvent(“window”, “onload”, “registerEvent(\"" + formElementString + "\", \“onkeyup\", \"" + functionString + "\", false);", false);
registerEvent(“window”, “onload”, functionString, false);
setInterval(functionString, 1000);
}

function updateCountCharacters(formElementString){
var formElement = eval(formElementString);
var ID = formElementString + ".CharacterCount”;
var formElementValue = formElement.value.replace(/\n/g, '\r\n').replace(/\r\r/g, '\r');
document.getElementById(ID).value = parseInt(formElementValue.length, 10);
}


function openWin( windowURL, windowName, windowFeatures ) {
return window.open( windowURL, windowName, windowFeatures ) ;
}



function wrapFF(which, atlen){
if(navigator.userAgent.toLowerCase().indexOf(“firefox”) != -1){
var start = which.innerHTML;
var finish = start.substr(0,1);
var mini = "";
var inTag = 0;
var current = 0;
var next = "";
while(start.length){
mini = start.substr(1,1);
finish = finish + mini;
start = start.substring(1, start.length);
switch(mini){
case " ":
current = 0;
break;
case "<":
inTag = 1;
current = 0;
break;
case ">":
inTag = 0;
current = 0;
break;
default:
if (!inTag){
current = current + 1;
next = start.substring(0,Math.min(3,start.length));
if (current == atlen && (next.indexOf("<") == -1) && (next.indexOf(">") == -1) && (next.indexOf(" ") == -1) ) {
finish = finish + " ";
current = 0;
}
}
}
}
which.innerHTML = finish;
}
}

function stripTicks(str){
return str.replace(/'/g,"");
}

function get_url() { //el=str, case_sensitive=bool
var rs=“i”;
var urls = document.URL;
urls = urls.replace(/'/g,"");

var el = “friendID”;
var re = new RegExp( "\\?[\\w\\W]*"+ el +"=([^\\&\\?#]*)", rs);
var arr = re.exec(urls);
if(!arr){
elg = “groupID”;
var red = new RegExp( "\\?[\\w\\W]*"+ elg +"=([^\\&\\?#]*)", rs);
arr = red.exec(urls);
}
if(arr && arr.length>1)return arr[1];
else{
var expr = /\/([\w]*)$/i;
arr = expr.exec(urls);
if(arr && arr.length>1) {
return arr[1].toLowerCase(); }
else {
return ''; }
}
}

var serverPath = "";

function up_launchChat(userID,roomID)
{
window.open( “http://chat.myspace.com/index.cfm?fuseaction=messenger.chatroom&roomID="+roomID, “ICWindow_ChatRoom”+userID+roomID, “status=1,toolbar=0,directories=0,menubar=0,location=0,scrollbars=0,resizable=1,width=800,height=600” );
}

function up_launchChatWithRoom(userID,roomID, subroomID)
{
window.open( “http://chat.myspace.com/index.cfm?fuseaction=messenger.chatroom&roomID="+roomID+"&subroomID="+subroomID, “ICWindow_ChatRoom”+userID+roomID, “status=1,toolbar=0,directories=0,menubar=0,location=0,scrollbars=0,resizable=1,width=800,height=600” );
}

function up_launchIC( userID, destinationUserID, destinationName, sender, profile, gender, age, loc, image )
{
up_localUserID = userID;
var popupWindowTest = null;
userProfile = profile;
userGender = gender;
userAge = age;
userLocation = loc;
userImage = image;
if (sender != 1) {
popupWindowTest = window.open( “http://chat.myspace.com/index.cfm?fuseaction=messenger&strDestinationUserID=" + destinationUserID + "&sendType=" + sender, “ICWindow_" + destinationUserID, “status=1,toolbar=0,directories=0,menubar=0,location=0,scrollbars=0,resizable=1,width=500,height=475” );
popupWindowTest.status = “Myspace.com”;
}
}

function reverse(inputString){
var outputString = "";
for(var i = inputString.length - 1; i >= 0; i — ) outputString += inputString.charAt(i);
return outputString;
}

function left(inputString, n){
if (inputString.length > n)return inputString.substring(0, n);
else return inputString;
}

function right(inputString, n){
if (inputString.length > n)return inputString.substring(inputString.length - n);
else return inputString;
}

function padLeft (inputString, stringLength, padCharacter){
var outputString = inputString;
var c = padCharacter.substring(0, 1);
while(outputString.length < stringLength)outputString = c + outputString;
return outputString;
}

function padRight(inputString, stringLength, padCharacter){
var outputString = inputString;
var c = padCharacter.substring(0, 1);
while (outputString.length < stringLength)outputString = outputString + c;
return outputString;
}

function BrowserDetect() {
var ua = navigator.userAgent.toLowerCase();

this.isGecko = (ua.indexOf('gecko') != -1 && ua.indexOf('safari') == -1);
this.isAppleWebKit = (ua.indexOf('applewebkit') != -1);

this.isKonqueror = (ua.indexOf('konqueror') != -1);
this.isSafari = (ua.indexOf('safari') != - 1);
this.isOmniweb = (ua.indexOf('omniweb') != - 1);
this.isOpera = (ua.indexOf('opera') != -1);
this.isIcab = (ua.indexOf('icab') != -1);
this.isAol = (ua.indexOf('aol') != -1);
this.isIE = (ua.indexOf('msie') != -1 && !this.isOpera && (ua.indexOf('webtv') == -1) );
this.isMozilla = (this.isGecko && ua.indexOf('gecko/') + 14 == ua.length);
this.isFirebird = (ua.indexOf('firebird/') != -1);
this.isNS = ( (this.isGecko) ? (ua.indexOf('netscape') != -1) : ( (ua.indexOf('mozilla') != -1) && !this.isOpera && !this.isSafari && (ua.indexOf('spoofer') == -1) && (ua.indexOf('compatible') == -1) && (ua.indexOf('webtv') == -1) && (ua.indexOf('hotjava') == -1) ) );

this.isIECompatible = ( (ua.indexOf('msie') != -1) && !this.isIE);
this.isNSCompatible = ( (ua.indexOf('mozilla') != -1) && !this.isNS && !this.isMozilla);

this.geckoVersion = ( (this.isGecko) ? ua.substring( (ua.lastIndexOf('gecko/') + 6), (ua.lastIndexOf('gecko/') + 14) ) : -1 );
this.equivalentMozilla = ( (this.isGecko) ? parseFloat( ua.substring( ua.indexOf('rv:') + 3 ) ) : -1 );
this.appleWebKitVersion = ( (this.isAppleWebKit) ? parseFloat( ua.substring( ua.indexOf('applewebkit/') + 12) ) : -1 );

this.versionMinor = parseFloat(navigator.appVersion);

if (this.isGecko && !this.isMozilla) {
this.versionMinor = parseFloat( ua.substring( ua.indexOf('/', ua.indexOf('gecko/') + 6) + 1 ) );
}
else if (this.isMozilla) {
this.versionMinor = parseFloat( ua.substring( ua.indexOf('rv:') + 3 ) );
}
else if (this.isIE && this.versionMinor >= 4) {
this.versionMinor = parseFloat( ua.substring( ua.indexOf('msie ') + 5 ) );
}
else if (this.isKonqueror) {
this.versionMinor = parseFloat( ua.substring( ua.indexOf('konqueror/') + 10 ) );
}
else if (this.isSafari) {
this.versionMinor = parseFloat( ua.substring( ua.lastIndexOf('safari/') + 7 ) );
}
else if (this.isOmniweb) {
this.versionMinor = parseFloat( ua.substring( ua.lastIndexOf('omniweb/') + 8 ) );
}
else if (this.isOpera) {
this.versionMinor = parseFloat( ua.substring( ua.indexOf('opera') + 6 ) );
}
else if (this.isIcab) {
this.versionMinor = parseFloat( ua.substring( ua.indexOf('icab') + 5 ) );
}

this.versionMajor = parseInt(this.versionMinor, 10);

this.isDOM1 = (document.getElementById);
this.isDOM2Event = (document.addEventListener && document.removeEventListener);

this.mode = document.compatMode ? document.compatMode : 'BackCompat';

this.isWin = (ua.indexOf('win') != -1);
this.isWin32 = (this.isWin && ( ua.indexOf('95') != -1 || ua.indexOf('98') != -1 || ua.indexOf('nt') != -1 || ua.indexOf('win32') != -1 || ua.indexOf('32bit') != -1 || ua.indexOf('xp') != -1) );
this.isMac = (ua.indexOf('mac') != -1);
this.isUnix = (ua.indexOf('unix') != -1 || ua.indexOf('sunos') != -1 || ua.indexOf('bsd') != -1 || ua.indexOf('x11') != -1);
this.isLinux = (ua.indexOf('linux') != -1);

this.isNS4x = (this.isNS && this.versionMajor == 4);
this.isNS40x = (this.isNS4x && this.versionMinor < 4.5);
this.isNS47x = (this.isNS4x && this.versionMinor >= 4.7);
this.isNS4up = (this.isNS && this.versionMinor >= 4);
this.isNS6x = (this.isNS && this.versionMajor == 6);
this.isNS6up = (this.isNS && this.versionMajor >= 6);
this.isNS7x = (this.isNS && this.versionMajor == 7);
this.isNS7up = (this.isNS && this.versionMajor >= 7);

this.isIE4x = (this.isIE && this.versionMajor == 4);
this.isIE4up = (this.isIE && this.versionMajor >= 4);
this.isIE5x = (this.isIE && this.versionMajor == 5);
this.isIE55 = (this.isIE && this.versionMinor == 5.5);
this.isIE5up = (this.isIE && this.versionMajor >= 5);
this.isIE6x = (this.isIE && this.versionMajor == 6);
this.isIE6up = (this.isIE && this.versionMajor >= 6);
this.isIE4xMac = (this.isIE4x && this.isMac);
}
var browser = new BrowserDetect();

function adjustIFrameSize(iframeWindow) {
if (iframeWindow.document.height) {
var iframeElement = document.getElementById(iframeWindow.name);
iframeElement.style.height = iframeWindow.document.height + 'px';
} else if (document.all) {
var iframeElement = document.all[iframeWindow.name];
if (iframeWindow.document.compatMode && iframeWindow.document.compatMode != 'BackCompat') {
iframeElement.style.height = iframeWindow.document.documentElement.scrollHeight + 5 + 'px';
} else {
iframeElement.style.height = iframeWindow.document.body.scrollHeight + 5 + 'px';
}
}
}

function encode64(input) {
var keyStr = “ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";
var output = "";
var chr1, chr2, chr3, enc1, enc2, enc3, enc4 = "";
var i = 0;
do {
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 + keyStr.charAt(enc1) + keyStr.charAt(enc2) + keyStr.charAt(enc3) + keyStr.charAt(enc4);
chr1 = chr2 = chr3 = "";
enc1 = enc2 = enc3 = enc4 = "";
} while (i < input.length);
return output;
}

function decode64(input) {
var keyStr = “ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";
var output = "";
var chr1, chr2, chr3, enc1, enc2, enc3, enc4 = "";
var i = 0;
input = input.replace(/[^A-Za-z0-9\+\/\=]/g, "");
do {
enc1 = keyStr.indexOf(input.charAt(i++));
enc2 = keyStr.indexOf(input.charAt(i++));
enc3 = keyStr.indexOf(input.charAt(i++));
enc4 = 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);
chr1 = chr2 = chr3 = "";
enc1 = enc2 = enc3 = enc4 = "";
} while (i < input.length);
return output;
}

function rsiCheck() {
rsi_account = '05C63E675C06B32B95D2EB5B05584CF4';
rsi_site = 'D0A4162C9E7B7CD278E3DFBA81C09652';

document.write('<sc'+'ript');
document.write(' type=“text/javascript”');
document.write(' language=“JavaScript”');
document.write(' src=“http://ads.revsci.net/adserver/rsi_check.js');
document.write('">');
document.write('</sc'+'ript>');
}

function rsiWriteCookie() {
var expirationDate = new Date();
var derdbBase64 = readCookie('DERDB');
if (derdbBase64 != null) {
derdbPlain = decode64(unescape(derdbBase64));
if (derdbPlain.indexOf('rsi_want=') != -1) {
newPair = 'rsi_want=' + rsi_want;
regEx = /rsi_want=\d*/gi;
derdbPlain = derdbPlain.replace(regEx, newPair);
} else {
derdbPlain = derdbPlain + '&rsi_want=' + rsi_want;
}
expirationDate.setYear(expirationDate.getFullYear()+1);
document.cookie = “DERDB=" + encode64(derdbPlain) + "; path=/; domain=" + document.domain + "; expires=" + expirationDate.toGMTString();
}
}


// begin MySpace header code
var rows = [“row0”,“row1”,“row2”];
var searchItems= [“tweb”,“tms”,“tpeople”,“tmusic”,“tblog”,“tvid”,“tfilm”,“tbooks”,“tclass”,“tcomedy”,“tevents”,“tgroups”];
//searchLabels array is localized and embedded in the page

function csrch(){
var fs=document.srch.q;
fs.value=fs.value.replace(/^([ \t])+/gi,"").replace(/([ \t])+$/gi,"");
if (fs.value.length < 2){
alert(“This search term is too short or blank.");
fs.focus();
return false;
}
return true;
}

function getCurrentSearch(){
var item;
for (i=0;i<searchItems.length; i++){
item = document.getElementById(searchItems[i]);
if (item != null && item.className==“active”)
return i;
}
}

function setSearchTarget(p_t){
var item;
var menuIndex;
for (x=0; x<searchItems.length-1; x++){
item = document.getElementById(searchItems[x]);
if (item != null)
item.className=“inactive”;
}
item = document.getElementById(p_t);
if (item != null)
document.getElementById(p_t).className=“active”;
var currSearch = getCurrentSearch();
if (currSearch != undefined)
document.srch.submitBtn.value=searchLabels[currSearch];
document.srch.t.value=p_t;
return true;
}


function getCurrentRow(){
for (i=0;i<rows.length; i++)
if (document.getElementById(rows[i]).className==“show”) return i;
}

function showRow(row){
var item;
for (i=0;i<rows.length; i++){
item = document.getElementById(rows[i]);
if (item != null)item.className=“hide”;
}

document.getElementById(rows[row]).className=“show”;
//turn on the first item in each row

if (getCurrentRow()==0) setSearchTarget(“tweb”);
if (getCurrentRow()==1) setSearchTarget(“tfilm”);
if (getCurrentRow()==2) setSearchTarget(“tgroups”);
}

function displayPrevRow(){
cr=getCurrentRow();
if (cr == 0) pr=rows.length-1;
else pr=(cr-1);
showRow(pr);
}

function displayNextRow(){
cr=getCurrentRow();
if (cr == rows.length-1) pr=0;
else pr=(cr+1);
showRow(pr);
}
function readCookie(name) {
var nameEQ = name + "=";
var ca = document.cookie.split(';');
for(var i=0;i < ca.length;i++) {
var c = ca[i];
while (c.charAt(0)==' ') {c = c.substring(1,c.length);}
if (c.indexOf(nameEQ) === 0) {return c.substring(nameEQ.length,c.length);}
}
return “Unknown”;
}
function readFuse(path) {
var re = new RegExp(“fuseaction=([^&]*)");
var m = re.exec(document.location.href);
if (m === null){
var n = document.location.href;
var nm = n.split("/");
var mn = nm[Math.max(nm.length-1,0)].split(".");
if(mn[0].length > 0)return mn[0];
else return nm[0].split(".")[0];
}
else return m[1].split('.').join("/");
}
// end MySpace header code

// start MySpace Profile ShortCut
var profile_AddToFriends = '';
var profile_BlockUser='';

function shortCut(ddl)
{ if(ddl == null){return;}
if(!ddl.selectedIndex && !(ddl.selectedIndex > 0))
{ return; }
var selectedVal = ddl.options[ddl.selectedIndex].value.toLowerCase();
var sTargetUrl = '';
var sFriendID = MySpace.ClientContext.DisplayFriendId;
var myToken = MySpace.ClientContext.MyToken;
var USERID_TOM = 6221;


switch(selectedVal)
{ case 'sendmessage':
if(sFriendID == USERID_TOM)
sTargetUrl = 'http://collect.myspace.com/index.cfm?fuseaction=profile.mailTom&MyToken=' + myToken;
else
sTargetUrl = 'http://messaging.myspace.com/index.cfm?fuseaction=mail.message&friendID=' + sFriendID + '&MyToken=' + myToken;
break;
case 'forwardtofriend':
sTargetUrl = 'http://messaging.myspace.com/index.cfm?fuseaction=mail.forward&f=forwardprofile&friendID=' + sFriendID;

break;

case 'addtofriends':
if(profile_AddToFriends.length>0)
sTargetUrl = profile_AddToFriends;
else
sTargetUrl = 'http://collect.myspace.com/index.cfm?fuseaction=invite.addfriend_verify&friendID=' + sFriendID + '&MyToken=' + myToken;
break;

case 'addtofavorites':
sTargetUrl = 'http://collect.myspace.com/index.cfm?fuseaction=user.addToFavorite&public=0&friendID=' + sFriendID;

break;

case 'blockuser':
if (confirm(profile_BlockUser))
sTargetUrl = 'http://collect.myspace.com/index.cfm?fuseaction=block.blockUser&userID=' + sFriendID;
else
return;
break;

case 'addtogroup':
sTargetUrl = 'http://groups.myspace.com/index.cfm?fuseaction=groups.addtogroup&friendID=' + sFriendID;
break;

case 'rankuser':
sTargetUrl = 'http://collect.myspace.com/index.cfm?fuseaction=RateImage.UserRating&UserID=' + sFriendID;
break;

case 'instantmessage':
shortCut_InstantMsg();
return;
break;

default:
}
//alert(selectedVal + '\n' + sTargetUrl);
location.href = sTargetUrl;
}
// end MySpace Profile ShortCut

// start MySpace IM code
function getIMwin(h,w) {
var getIMurl = “http://www.myspace.com/Modules/IM/Pages/GetIM.aspx”;
var getIMh = h;
var getIMw = w;
var getIMleft = (screen.availwidth-w)/2;
var getIMtop =(screen.availheight-h)/2;
window.open(getIMurl,null,'height='+getIMh+',width='+getIMw+',left='+getIMleft+',top='+getIMtop+',status=no,toolbar=no,menubar=no,location=no');
}

function gotIM(){
try{if (document.cookie && document.cookie.indexOf('imyspaceim') != -1)return true;}catch(err){}
try{new ActiveXObject(“MySpaceIMX.MySpaceIMPlugin.1”);return true;}catch(err){}
try{if(navigator.mimeTypes && navigator.mimeTypes.length>0)if(navigator.mimeTypes[“application/myspaceim”])return true;}catch(err){}
return false
}

function IsMySpaceIMInstalled(){IsMySpaceIMInstalledById(get_url());}
function IsMySpaceIMInstalledById(fid){
if(gotIM())window.location.href='myim:sendIM?uID=0&cID='+fid;
else getIMwin(475,600);
}
// end MySpace IM code
Type.registerNamespace(“MySpace”);
MySpace._Application = function() { MySpace._Application.initializeBase(this); }
MySpace._Application.prototype = {
_list : {},
add_DOMloaded : function(handler) {
Array.add(this._getEvent(“domloaded”), handler);
},
remove_DOMloaded : function(handler) {
var evt = this._getEvent(“domloaded”);
if (!evt) return;
Array.remove(evt, handler);
},
_getEvent : function(id, create) {
if (!this._list[id])
this._list[id] = [];
return this._list[id];
},
_raiseDOMloaded : function() {
var evt = this._getEvent(“domloaded”);
if (!evt || (evt.length === 0)) return null;
evt = Array.clone(evt);
if (!evt._handler) {
evt._handler = function(source, args) {
for (var i = 0, l = evt.length; i < l; i++) {
evt[i](source, args);
}
};
}
var h = evt._handler;
if (h)
h(this, null);
var handler = this.get_events().getHandler('DOMloaded');
if(handler) {
var eventArgs = new Sys.EventArgs();
handler(this, eventArgs);
}
}
}

---
I’ve been banned 69 times over all my accounts.
I’ve been perma banned 36 times over all of my accounts.
Last edited 28 Apr 2008 12:12 am by bant car dice
Post Reply
Moderated by: Admins, Superusers

Quick Reply

Options
More Options
New Topic

Your name/nick:


Spam prevention! Repeat below:


Your Message




Related Topics

Topic / Topic Starter Last Post Replies Popularity Started
Find more related topics...
LOUNGE.MovieCodec.com ©Lundgren IT 2000-8. Privacy Policy - Disclaimer
MVC Network: MovieCodec Forums/Downloads - The Lounge Forums