﻿// JScript File
function showPicture(picturename) {
    alert(picturename);
    var url = "../ui/media/images/gallery/" + picturename + ".jpg";
    alert(url);
    window.open(url, "Contact", "height=440px,width=660px,scrollbars=no,menubar=no,toolbar=no,status=no,resizable=no")
}

function openShowReel(movieType) {
    switch (movieType) {
        case "Flash":
            window.open("MediaFiles/NewShowReel/jo-showreel-apr2007.swf", "ShowReel", "height=300px,width=400px,scrollbars=no,menubar=no,toolbar=no,status=no,resizable=no");
            break;
        case "Windows":
            window.open("MediaFiles/NewShowReel/showReelWindows.asx", "ShowReel", "height=300px,width=400px,scrollbars=no,menubar=no,toolbar=no,status=no,resizable=no");
            break;
    }
}

function openTriangle(movieType) {
    switch (movieType) {
        case "Flash":
            window.open("MediaFiles/TriangleLove/triangle_love.swf", "Triangle Love", "height=300px,width=400px,scrollbars=no,menubar=no,toolbar=no,status=no,resizable=no");
            break;
        case "Windows":
            window.open("MediaFiles/TriangleLove/triangle_love.asx", "Triangle Love", "height=300px,width=400px,scrollbars=no,menubar=no,toolbar=no,status=no,resizable=no");
            break;
    }
}


function openChips(movieType) {
    switch (movieType) {
        case "Flash":
            window.open("MediaFiles/Chips/chips.swf", "Chips", "height=300px,width=400px,scrollbars=no,menubar=no,toolbar=no,status=no,resizable=no");
            break;
        case "Windows":
            window.open("MediaFiles/Chips/chips.asx", "Chips", "height=300px,width=400px,scrollbars=no,menubar=no,toolbar=no,status=no,resizable=no");
            break;
    }
}

function openWedding(movieType) {
    switch (movieType) {
        case "Flash":
            window.open("MediaFiles/Wedding/wedding.swf", "Wedding", "height=300px,width=400px,scrollbars=no,menubar=no,toolbar=no,status=no,resizable=no");
            break;
        case "Windows":
            window.open("MediaFiles/Wedding/Wedding.asx", "Wedding", "height=300px,width=400px,scrollbars=no,menubar=no,toolbar=no,status=no,resizable=no");
            break;
    }
}

function openComfortFood(movieType) {
    switch (movieType) {
        case "Flash":
            window.open("MediaFiles/ComfortEating/ComfortEating.swf", "ComfortFood", "height=300px,width=400px,scrollbars=no,menubar=no,toolbar=no,status=no,resizable=no");
            break;
        case "Windows":
            window.open("MediaFiles/ComfortEating/ComfortEating.asx", "ComfortFood", "height=300px,width=400px,scrollbars=no,menubar=no,toolbar=no,status=no,resizable=no");
            break;
    }
}

function openDatingGame(movieType) {
    switch (movieType) {
        case "Flash":
            window.open("MediaFiles/TheDatingGame/the-dating-game.swf", "TheDatingGame", "height=300px,width=400px,scrollbars=no,menubar=no,toolbar=no,status=no,resizable=no");
            break;
        case "Windows":
            window.open("MediaFiles/TheDatingGame/dating-game.asx", "TheDatingGame", "height=300px,width=400px,scrollbars=no,menubar=no,toolbar=no,status=no,resizable=no");
            break;
    }

}

function openGrotto(movieType) {
    switch (movieType) {
        case "Flash":
            window.open("MediaFiles/TheGrotto/the-grotto.swf", "TheGrotto", "height=300px,width=400px,scrollbars=no,menubar=no,toolbar=no,status=no,resizable=no");
            break;
        case "Windows":
            window.open("MediaFiles/TheGrotto/grotto.asx", "TheDatingGame", "height=300px,width=400px,scrollbars=no,menubar=no,toolbar=no,status=no,resizable=no");
            break;
    }

}


function openDownload(downloadType) {
    switch (downloadType) {
        case "Flash":
            window.open("http://www.adobe.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash", "Download", "height=600px,width=800px,scrollbars=yes,menubar=no,toolbar=no,status=no,resizable=yes");
            break;
        case "Windows":
            window.open("http://www.microsoft.com/windows/windowsmedia/default.mspx", "Download", "height=600px,width=800px,scrollbars=yes,menubar=no,toolbar=no,status=no,resizable=yes");
            break;
        case "Real":
            window.open("http://uk.real.com/realmusic/?src=ppc_google_realmusic_uk_player", "Download", "height=600px,width=800px,scrollbars=yes,menubar=no,toolbar=no,status=no,resizable=yes");
            break;
        case "Quicktime":
            window.open("http://www.apple.com/quicktime/download/win.html", "Download", "height=600px,width=800px,scrollbars=yes,menubar=no,toolbar=no,status=no,resizable=yes");
            break;
    }

}
	


