//display realitive size div tag on roll over
function displayRealitiveSize()
{
	document.getElementById('silhouetteImage').src = "images/victorForSilhouette.png";
	document.getElementById('silhouetteHolderDiv').style.visibility = "visible";
}

//hide realitive size div tag on roll over
function hideRealitiveSize()
{
	document.getElementById('silhouetteHolderDiv').style.visibility = "hidden";
}

function displayFrameZoom(frame_name)
{
	document.getElementById('frameZoom').src = "images/frames/" + frame_name + "_big.jpg";
	document.getElementById('frameZoomHolder').style.visibility = "visible";
}

function resetFrameZoom()
{
	document.getElementById('frameZoomHolder').style.visibility = "hidden";
}

function MM_openBrWindow(theURL, winName, features) { //v2.0
    window.open(theURL, winName, features);
}

function helpTipsRollOver(x)
{
    var divContents = new Array();
    divContents[0] = "<div style='background-image:url(images/tabDescriptionBKGND_mediaSize.gif); background-repeat:no-repeat; height:52px; font-family:Verdana, Arial, Helvetica, sans-serif; font-weight:normal; font-size:10px; color:#262626; vertical-align:bottom; padding:7px 10px 0 10px;' align='center'>Click on the \"Media/Size\" tab to select the size of the painting and the media you would like it printed on.</div>";
    divContents[1] = "<div style='background-image:url(images/tabDescriptionBKGND_wallColor2.gif); background-repeat:no-repeat; height:52px; font-family:Verdana, Arial, Helvetica, sans-serif; font-weight:normal; font-size:10px; color:#262626; vertical-align:bottom; padding:7px 10px 0 10px;' align='center'>Click on the \"Wall Color\" tab to change the the color around the painting to match your homes wall color.</div>";
    divContents[2] = "<div style='background-image:url(images/tabDescriptionBKGND_mattes2.gif); background-repeat:no-repeat; height:52px; font-family:Verdana, Arial, Helvetica, sans-serif; font-weight:normal; font-size:10px; color:#262626; vertical-align:bottom; padding:7px 10px 0 10px;' align='center'>Click on the \"Mattes\" tab to select matte colors and quantity.</div>";
    divContents[3] = "<div style='background-image:url(images/tabDescriptionBKGND_frames2.gif); background-repeat:no-repeat; height:52px; font-family:Verdana, Arial, Helvetica, sans-serif; font-weight:normal; font-size:10px; color:#262626; vertical-align:bottom; padding:7px 10px 0 10px;' align='center'>Click on the \"Frames\" tab to select a frame.</div>";

    document.getElementById('tabInfoHolder').innerHTML = divContents[x];
}

function helpTipsRollOut()
{
    document.getElementById('tabInfoHolder').innerHTML = "";
}

function testClicks()
{
    alert("this works so far");
}

function openOrderForm()
{
    window.open("pdfs/OstrovskyOrderForm.pdf");
}

function openEnlargedView(collection, paintingName)
{
    var img = "images/" + collection + "/" + paintingName + "_lg.jpg";
    window.open(img);
}

function openEnlargedView2()
{
    var collection = document.getElementById('lbl_paintingCollectionHolder').innerHTML;
    alert(collection);
}

function changeWallColor(bkgndColor)
{
    document.getElementById('wallColorArea').style.backgroundColor = "#" + bkgndColor;
}

function displayCopyright() {
    var now = new Date();
    var menu = "<p class='copyright'>Copyright &copy; 2008 - " + now.getFullYear() + ". Victor Ostrovsky.</p>";
    document.write(menu);
}
