function addLoadEvent(func){
var oldonload=window.onload;
if(typeof window.onload!='function'){
window.onload=func;
}else{
window.onload=function(){
if(oldonload){
oldonload();
}
func();
}
}
}
function getObj(name){
if(document.getElementById){
this.obj=document.getElementById(name);
this.style=document.getElementById(name).style;
}else if(document.all){
this.obj=document.all[name];
this.style=document.all[name].style;
}else if(document.layers){
this.obj=document.layers[name];
this.style=document.layers[name];
}
}
function display(){
var x=new getObj('next');x.style.display=(x.style.display=='block')?'none':'block';}
function disappear(){
var x=new getObj('first');x.style.display=(x.style.display=='none')?'block':'none';}
function showit(txt){
document.getElementById("tip").innerHTML=txt
}
function hideit(){
document.getElementById("tip").innerHTML=""
}
function nav_showit(txt){
document.getElementById("navComments").innerHTML=txt
}
function nav_hideit(){
document.getElementById("navComments").innerHTML="<br /><br /><br />"
}
function perf_showit(txt){
document.getElementById("perf").innerHTML=txt
}
function perf_hideit(){
document.getElementById("perf").innerHTML="&nbsp;&nbsp;&nbsp;"
}
function perfPics(txt){
document.getElementById("perf_pics").innerHTML=txt
}
function rolloverTxt_showit(txt){
document.getElementById("rolloverTxt").innerHTML=txt
}
function rolloverTxt_hideit(){
document.getElementById("rolloverTxt").innerHTML="&nbsp;&nbsp;&nbsp;"
}
function windowPop(nameoffile,name,width,height){
window.open(nameoffile,name,'top=100,screeny=100,width='+width+',height='+height+',buttons=no,scrollbars=no,location=no,menubar=no,resizable=no,status=no,directories=no,toolbar=no');
}
function WinPop(nameoffile,name,width_px,top_px,left_px,height_px){
window.open(nameoffile,name,'top=100,screeny=100,left=450,screenx=100,width=340,height=500,buttons=no,scrollbars=no,location=no,menubar=no,resizable=no,status=no,directories=no,toolbar=no');
}
function splash(nameoffile){
window.open(nameoffile,'width=800,height=640,buttons=no,scrollbars=no,location=no,menubar=no,resizable=no,status=no,directories=no,toolbar=no');
}
function videoPop(nameoffile,windowname){
window.open(nameoffile,windowname,'top=100,screeny=100,left=350,screenx=525,width=340,height=500,buttons=no,scrollbars=no,location=no,menubar=no,resizable=no,status=no,directories=no,toolbar=no');
}
function perfPop(nameoffile,windowname){
window.open(nameoffile,windowname,'top=200,screeny=200,left=350,screenx=525,width=350,height=400,buttons=no,scrollbars=no,location=no,menubar=no,resizable=no,status=no,directories=no,toolbar=no');
}
function perfPopLarge(nameoffile,windowname){
window.open(nameoffile,windowname,'width=640,height=480,buttons=no,scrollbars=no,location=no,menubar=no,resizable=no,status=no,directories=no,toolbar=no');
}
function photoPop(nameoffile,windowname){
window.open(nameoffile,windowname,'top=100,screeny=100,left=350,screenx=250,width=640,height=550,buttons=no,scrollbars=no,location=no,menubar=no,resizable=no,status=no,directories=no,toolbar=no');
}
function googleme(){
window.open('http://blogsearch.google.com/blogsearch?hl=en&ie=UTF-8&scoring=d&q=%22michelle+handelman%22&btnG=Search+Blogs');
}
function hiLite(imgDocID,imgObjName,comment){
if(browserVer==1){
document.images[imgDocID].src=eval(imgObjName+".src");
window.status=comment;return true;
}}
function launchMain(){
window.open('main.php?page=presskit','performance','top=100,left=50,width=800,height=600,buttons=no,scrollbars=no,location=no,menubar=no,resizable=no,status=no,directories=no,toolbar=no');return false;
}
function windowOpener(url,name,args){
if(typeof(popupWin)!="object"){
popupWin=window.open(url,name,args);
}else{
if(!popupWin.closed){
popupWin.location.href=url;
}else{
popupWin=window.open(url,name,args);
}
}
popupWin.focus();
}
function LoadHPImage(){
var image=5;
var randomnumber=Math.random();
var rand1=Math.round((image-1)*randomnumber)+1;
var div_holder=document.getElementById("photoholder");
the_image=new Array;
the_image[1]='http://images.michellehandelman.com/splash_v2.jpg';
the_image[2]='http://images.michellehandelman.com/splash_rx.jpg';
the_image[3]='http://images.michellehandelman.com/splash_v1.jpg';
the_image[4]='http://images.michellehandelman.com/splash_bikinitop.jpg';
the_image[5]='http://images.michellehandelman.com/splash_doriangrey.jpg';
var image_of_the_day=the_image[rand1];
hp_image=document.createElement("img");
hp_image.src=image_of_the_day;
hp_image.id="thephoto";
hp_image.border="0";
if(div_holder.addEventListener){
div_holder.addEventListener(
"click",
function(){windowOpener('/main.php?page=presskit','presskit','width=800,height=600,buttons=no,scrollbars=no,location=no,menubar=no,resizable=no,status=no,directories=no,toolbar=no')},
false);
}else if(div_holder.attachEvent){
div_holder.attachEvent(
"onclick",
function(){windowOpener('/main.php?page=presskit','presskit','width=800,height=600,buttons=no,scrollbars=no,location=no,menubar=no,resizable=no,status=no,directories=no,toolbar=no')},
false);
}
div_holder.appendChild(hp_image);
var div_splashInfoText=document.getElementById("splashInfoText");
}
function setOpacity(obj,opacity){
opacity=(opacity==100)?99.999:opacity;
obj.style.filter="alpha(opacity:"+opacity+";)";
obj.style.KHTMLOpacity=opacity/100;
obj.style.MozOpacity=opacity/100;
obj.style.opacity=opacity/100;
}
function initImage(){
imageId='thephoto';
image=document.getElementById(imageId);
setOpacity(image,0);
image.style.visibility="visible";
fadeIn(imageId,0);
}
function initPhotoImage(){
imageId='cardtray';
image=document.getElementById(imageId);
setOpacity(image,0);
image.style.visibility="visible";
fadeIn(imageId,90);
}
function fadeIn(objId,opacity){
if(document.getElementById){
obj=document.getElementById(objId);
if(opacity<=100){
setOpacity(obj,opacity);
opacity+=5;
window.setTimeout("fadeIn('"+objId+"',"+opacity+")",100);
}
}
}
function initRolloverImage(number){
imageId=new Array;
imageId[1]='perf_id_1';
imageId[2]='perf_id_2';
imageId[3]='perf_id_3';
imageId[4]='perf_id_4';
imageId[5]='perf_id_5';
imageId[6]='perf_id_6';
imageId[7]='perf_id_7';
imageId[8]='perf_id_8';
imageId[11]='video_1';
imageId[12]='video_2';
imageId[13]='video_3';
imageId[14]='video_4';
imageId[15]='video_5';
imageId[16]='video_6';
imageId[17]='video_7';
imageId[18]='video_8';
imageId[19]='video_9';
imageId[21]='cannibalPhoto';
imageId[22]='sewPhoto';
imageId[23]='jumpPhoto';
imageId[24]='monsterPhoto';
image=document.getElementById(imageId[number]);
setOpacity(image,10);
image.style.visibility="visible";
fadeIn(imageId[number],80);
}