var outerDIV = ""; //transparent part of clay
var innerDIV = ""; //text part of clay
var winW = ""; //window width
var winH = ""; //window height
var delayCount = 0; //used to delay onkeyup
var delayMenuCount = 0;
var overMain = 0;
var overSub = 0;
var subArrow = "blue";
function ieWarning() {
moldClay(464, 160, '
It appears you are using an older edition of Internet Explorer. This version lacks security updates and new features required to run this page. You may update
here.
Close', "none");
}
function goToCircle(url) {
if (!clickingDesc) window.location = url;
}
function addslashes(str) {
str=str.replace(/\'/g,'\\\'');
str=str.replace(/\"/g,'\\"');
str=str.replace(/\\/g,'\\\\');
str=str.replace(/\0/g,'\\0');
return str;
}
function replaceClass(curObj, newClass) {
curObj.className = newClass;
}
function defaultText(obj, text) {
if (obj.value == text) obj.value = "";
else if (obj.value == "") obj.value = text;
}
/*
* To be sure all rollovers are using the correct limelight URL, this function
* can determine if you're on the sandbox or production server.
*/
function llMedia() {
return 'http://behance.vo.llnwd.net/';
}
var prepend = llMedia(); //-> to be sure we request the media from the right server
image11 = new Image();
image11.src = prepend + "menu/galleryOff.gif";
image12 = new Image();
image12.src = prepend + "menu/__portfolioOff.gif";
image13 = new Image();
image13.src = prepend + "menu/circlesOff.gif";
image14 = new Image();
image14.src = prepend + "menu/tipOff.gif";
image15 = new Image();
image15.src = prepend + "menu/joblist2Off.gif";
image16 = new Image();
image16.src = prepend + "menu/_moreOff.gif";
image21 = new Image();
image21.src = prepend + "menu/galleryOn.gif";
image22 = new Image();
image22.src = prepend + "menu/__portfolioOn.gif";
image23 = new Image();
image23.src = prepend + "menu/circlesOn.gif";
image24 = new Image();
image24.src = prepend + "menu/tipOn.gif";
image25 = new Image();
image25.src = prepend + "menu/giglistOn.gif";
image26 = new Image();
image26.src = prepend + "menu/_moreOn.gif";
var refreshNav = 1;
function MouseEvent(e)
{
if(e) {
this.e = e;
} else {
this.e = window.event;
}
if(e.pageX) { //NOT IE
this.x = e.pageX;
}
else { //for IE
scrollX = document.documentElement.scrollLeft;
this.x = e.clientX + scrollX;
}
if(e.pageY) { //NOT IE
this.y = e.pageY;
}
else { //for IE
scrollY = document.documentElement.scrollTop;
this.y = e.clientY + scrollY;
}
if(e.target) {
this.target = e.target;
} else {
this.target = e.srcElement;
}
}
function resetNav(e) {
if (!$('loadingScreen') && !ajaxLoading) {
var e = new MouseEvent(e);
if (e.y < 100 || e.y > 190) {
if (refreshNav == 1) {
if ($('projectToolBar') && !$('circleBg')) { //if viewing project not in contest
$('projectToolBar').style.display = 'block';
$('menuSubDIV').style.display = "none";
}
var curMain = currentMainPage+'TxtImg';
obj = $('menuTabs');
divs = obj.getElementsByTagName('img');
for (i=0;i
3) {
if (navigator.appName=="Netscape") {
winW = top.window.innerWidth;
winH = top.window.innerHeight;
scrollPosY = top.window.pageYOffset;
scrollPosX = top.window.pageXOffset;
}
if (navigator.appName.indexOf("Microsoft")!=-1) {
winW = top.document.documentElement.clientWidth;
winH = top.document.documentElement.clientHeight;
scrollPosY = top.document.documentElement.scrollTop;
scrollPosX = top.document.documentElement.scrollLeft;
}
}
}
function moldClay(outerWidth, outerHeight, action, the_id, redirect) { //creates clay and determines what to fill it with
outerDIV = ($('outerDIV')) ? $('outerDIV').innerHTML : null;
if (outerDIV == null) {
var ClayCreation = document.createElement('div');
ClayCreation.id = "clay";
ClayCreation.style.position = "absolute";
document.body.appendChild(ClayCreation);
Clay = $('clay');
getDimensions();
var outerDIV = top.document.createElement('div'); //create DIV
innerDIV = top.document.createElement('div'); //create DIV
//assign IDs to manipulate
innerDIV.id = 'innerDIV';
innerDIV.name = 'innerDIV';
//style
innerDIV.style.position = 'absolute';
innerDIV.style.width = (outerWidth-34-30)+'px';
innerDIV.style.height = (outerHeight-34-30)+'px';
innerDIV.style.color = '#FFFFFF';
innerDIV.style.backgroundColor = '#2A2A28';
innerDIV.style.zIndex = 100;
innerDIV.style.padding = 15+'px';
innerDIV.style.top = 17+'px';
innerDIV.style.left = 17+'px';
var innerHeight = innerDIV.style.height;
innerHeight = innerHeight.replace(/[A-Za-z]+/, '');
innerHeight = parseInt(innerHeight);
//assign IDs to manipulate
outerDIV.id = 'outerDIV';
outerDIV.name = 'outerDIV';
//style
outerDIV.style.position = 'absolute';
outerDIV.style.width = outerWidth+'px';
outerDIV.style.height = outerHeight+'px';
outerDIV.style.backgroundColor = '#CCCCCC';
outerDIV.style.top = 0+'px';
outerDIV.style.left = 0+'px';
outerDIV.style.zIndex = 99;
outerDIV.style.opacity = '.55';
outerDIV.style.filter ='alpha(opacity=55)';
Clay.appendChild(outerDIV); //add outerDIV to Clay
Clay.appendChild(innerDIV); //add innerDIV to Clay
//adjust clay to same dimensions as outer div
Clay.style.width = outerWidth+'px';
Clay.style.height = outerHeight+'px';
//place clay horizontally centered
ScrollWin = scrollPosX + (winW/2);
newInnerLeft = (ScrollWin) - ((outerWidth-12)/2);
Clay.style.left = newInnerLeft+"px";
//place clay vertically centered
ScrollWin = scrollPosY + (winH/2);
newInnerTop = (ScrollWin) - ((outerHeight-12)/2);
Clay.style.top = newInnerTop+"px";
var myText = "";
var delay = 0;
if (action == "giveFeedback") { //with behance
replaceOrderBy();
new Ajax.Request('/replacement/giveFeedback?reportingBug=1', {
method : 'get',
onComplete : function (transport) {
$('innerDIV').update(transport.responseText);
}
});
}
else {
myText = action;
var closeThis = 1;
delay = the_id;
}
if (myText != "") {
innerDIV.innerHTML = myText;
if (closeThis) {
if (delay != "none") {
if (!delay || delay == 0) delay = 1500;
setTimeout("clearClay()", delay);
}
}
}
Clay.style.display = 'block';
}
else clearClay();
}
Event.observe(window, 'load', function(e) {
if ($('galleryDIV')) {
var e = new MouseEvent(e);
var extra_event = (conf_browser == "ie") ? null : e;
$('galleryDIV').onmouseover = function (extra_evt) {
if (extra_evt == null) extra_evt = event;
if (!ajaxLoading) selectNav(extra_evt,'galleryDIV');
}
$('portfolioDIV').onmouseover = function (extra_evt) {
if (extra_evt == null) extra_evt = event;
if (!ajaxLoading) selectNav(extra_evt,'portfolioDIV');
}
$('circleDIV').onmouseover = function (extra_evt) {
if (extra_evt == null) extra_evt = event;
if (!ajaxLoading) selectNav(extra_evt,'circleDIV');
}
$('tipexchangeDIV').onmouseover = function (extra_evt) {
if (extra_evt == null) extra_evt = event;
if (!ajaxLoading) selectNav(extra_evt,'tipexchangeDIV');
}
$('giglistDIV').onmouseover = function (extra_evt) {
if (extra_evt == null) extra_evt = event;
if (!ajaxLoading) selectNav(extra_evt,'giglistDIV');
}
$('thinktankDIV').onmouseover = function (extra_evt) {
if (extra_evt == null) extra_evt = event;
if (!ajaxLoading) selectNav(extra_evt,'thinktankDIV');
}
var subDIV = $('mainSubNavDIV');
var subDIVs = subDIV.getElementsByTagName('div');
for (var sd=0;sdIt appears you are using an older edition of Internet Explorer. This version lacks security updates and new features required to run this page. You may update here.
Close', "none");
}
function getFrameByName(frameName) {
for (var fl=0;fl Safari does not support this feature.
Please hit CMD + D.
";
// Opera Hotlist
return true; }
} else {
window.open('/includes/addTo.php?action='+action+'&url='+url+'&title='+title+'&from='+from, '_blank');
}
}
function sharePageAction(redirect) {
new Ajax.Request('/replacement/sharePage?redirect='+redirect+'&friend_emails='+$F('friend_emails')+'&your_email='+$F('your_email')+'&your_name='+document.getElementById('your_name').value+'&send_copy='+$('send_copy').checked+'&additional_comments='+$F('additional_comments'), {
method : 'get',
onComplete : function (transport) {
$('innerDIV').update(transport.responseText);
setTimeout("clearClay();", 1500);
}
});
}