﻿var protocol = new String(parent.location.protocol);
if (protocol=='https:') {
    window.location = document.URL.replace('https://', 'http://');
}
